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
5236 default) ENABLE_CLANG_STATIC_ANALYZER=1
5238 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5239 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5240 { (exit 1); exit 1; }; } ;;
5243 # Check whether --enable-clang-rewriter was given.
5244 if test "${enable_clang_rewriter+set}" = set; then
5245 enableval=$enable_clang_rewriter;
5250 case "$enableval" in
5251 yes) ENABLE_CLANG_REWRITER=1
5254 if test ${clang_arcmt} != "no" ; then
5255 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5256 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5257 { (exit 1); exit 1; }; }
5259 if test ${clang_static_analyzer} != "no" ; then
5260 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5261 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5262 { (exit 1); exit 1; }; }
5264 ENABLE_CLANG_REWRITER=0
5267 default) ENABLE_CLANG_REWRITER=1
5269 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5271 { (exit 1); exit 1; }; } ;;
5274 # Check whether --enable-optimized was given.
5275 if test "${enable_optimized+set}" = set; then
5276 enableval=$enable_optimized;
5281 if test ${enableval} = "no" ; then
5285 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5289 # Check whether --enable-profiling was given.
5290 if test "${enable_profiling+set}" = set; then
5291 enableval=$enable_profiling;
5296 if test ${enableval} = "no" ; then
5300 ENABLE_PROFILING=ENABLE_PROFILING=1
5304 # Check whether --enable-assertions was given.
5305 if test "${enable_assertions+set}" = set; then
5306 enableval=$enable_assertions;
5311 if test ${enableval} = "yes" ; then
5315 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5319 # Check whether --enable-werror was given.
5320 if test "${enable_werror+set}" = set; then
5321 enableval=$enable_werror;
5326 case "$enableval" in
5327 yes) ENABLE_WERROR=1
5331 default) ENABLE_WERROR=0
5333 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5334 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5335 { (exit 1); exit 1; }; } ;;
5338 # Check whether --enable-expensive-checks was given.
5339 if test "${enable_expensive_checks+set}" = set; then
5340 enableval=$enable_expensive_checks;
5345 if test ${enableval} = "yes" ; then
5346 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5348 EXPENSIVE_CHECKS=yes
5351 ENABLE_EXPENSIVE_CHECKS=
5357 # Check whether --enable-debug-runtime was given.
5358 if test "${enable_debug_runtime+set}" = set; then
5359 enableval=$enable_debug_runtime;
5364 if test ${enableval} = "no" ; then
5368 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5372 # Check whether --enable-debug-symbols was given.
5373 if test "${enable_debug_symbols+set}" = set; then
5374 enableval=$enable_debug_symbols;
5379 if test ${enableval} = "no" ; then
5383 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5387 # Check whether --enable-keep-symbols was given.
5388 if test "${enable_keep_symbols+set}" = set; then
5389 enableval=$enable_keep_symbols;
5394 if test ${enableval} = "no" ; then
5398 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5402 # Check whether --enable-jit was given.
5403 if test "${enable_jit+set}" = set; then
5404 enableval=$enable_jit;
5409 if test ${enableval} = "no"
5414 case "$llvm_cv_target_arch" in
5415 x86) TARGET_HAS_JIT=1
5417 Sparc) TARGET_HAS_JIT=0
5419 PowerPC) TARGET_HAS_JIT=1
5421 x86_64) TARGET_HAS_JIT=1
5423 ARM) TARGET_HAS_JIT=1
5425 AArch64) TARGET_HAS_JIT=0
5427 Mips) TARGET_HAS_JIT=1
5429 XCore) TARGET_HAS_JIT=0
5431 MSP430) TARGET_HAS_JIT=0
5433 Hexagon) TARGET_HAS_JIT=0
5435 NVPTX) TARGET_HAS_JIT=0
5437 SystemZ) TARGET_HAS_JIT=1
5444 # Check whether --enable-docs was given.
5445 if test "${enable_docs+set}" = set; then
5446 enableval=$enable_docs;
5451 case "$enableval" in
5456 default) ENABLE_DOCS=1
5458 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5459 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5460 { (exit 1); exit 1; }; } ;;
5463 # Check whether --enable-doxygen was given.
5464 if test "${enable_doxygen+set}" = set; then
5465 enableval=$enable_doxygen;
5470 case "$enableval" in
5471 yes) ENABLE_DOXYGEN=1
5473 no) ENABLE_DOXYGEN=0
5475 default) ENABLE_DOXYGEN=0
5477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5478 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5479 { (exit 1); exit 1; }; } ;;
5482 # Check whether --enable-threads was given.
5483 if test "${enable_threads+set}" = set; then
5484 enableval=$enable_threads;
5489 case "$enableval" in
5490 yes) LLVM_ENABLE_THREADS=1
5492 no) LLVM_ENABLE_THREADS=0
5494 default) LLVM_ENABLE_THREADS=1
5496 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5497 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5498 { (exit 1); exit 1; }; } ;;
5501 cat >>confdefs.h <<_ACEOF
5502 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5506 # Check whether --enable-pthreads was given.
5507 if test "${enable_pthreads+set}" = set; then
5508 enableval=$enable_pthreads;
5513 case "$enableval" in
5514 yes) ENABLE_PTHREADS=1
5516 no) ENABLE_PTHREADS=0
5518 default) ENABLE_PTHREADS=1
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5521 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5525 # Check whether --enable-zlib was given.
5526 if test "${enable_zlib+set}" = set; then
5527 enableval=$enable_zlib;
5532 case "$enableval" in
5533 yes) LLVM_ENABLE_ZLIB=1
5535 no) LLVM_ENABLE_ZLIB=0
5537 default) LLVM_ENABLE_ZLIB=1
5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5540 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5544 cat >>confdefs.h <<_ACEOF
5545 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5549 # Check whether --enable-pic was given.
5550 if test "${enable_pic+set}" = set; then
5551 enableval=$enable_pic;
5556 case "$enableval" in
5561 default) ENABLE_PIC=1
5563 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5564 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5565 { (exit 1); exit 1; }; } ;;
5568 cat >>confdefs.h <<_ACEOF
5569 #define ENABLE_PIC $ENABLE_PIC
5573 # Check whether --enable-shared was given.
5574 if test "${enable_shared+set}" = set; then
5575 enableval=$enable_shared;
5580 case "$enableval" in
5581 yes) ENABLE_SHARED=1
5585 default) ENABLE_SHARED=0
5587 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5588 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5589 { (exit 1); exit 1; }; } ;;
5592 # Check whether --enable-embed-stdcxx was given.
5593 if test "${enable_embed_stdcxx+set}" = set; then
5594 enableval=$enable_embed_stdcxx;
5599 case "$enableval" in
5600 yes) ENABLE_EMBED_STDCXX=1
5602 no) ENABLE_EMBED_STDCXX=0
5604 default) ENABLE_EMBED_STDCXX=0
5606 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5607 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5608 { (exit 1); exit 1; }; } ;;
5611 # Check whether --enable-timestamps was given.
5612 if test "${enable_timestamps+set}" = set; then
5613 enableval=$enable_timestamps;
5618 case "$enableval" in
5619 yes) ENABLE_TIMESTAMPS=1
5621 no) ENABLE_TIMESTAMPS=0
5623 default) ENABLE_TIMESTAMPS=1
5625 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5626 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5627 { (exit 1); exit 1; }; } ;;
5630 cat >>confdefs.h <<_ACEOF
5631 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5636 # Check whether --enable-backtraces was given.
5637 if test "${enable_backtraces+set}" = set; then
5638 enableval=$enable_backtraces;
5643 case "$enableval" in
5644 yes) ENABLE_BACKTRACES=1
5646 no) ENABLE_BACKTRACES=0
5648 default) ENABLE_BACKTRACES=1
5650 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5651 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5652 { (exit 1); exit 1; }; } ;;
5655 cat >>confdefs.h <<_ACEOF
5656 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5661 # Check whether --enable-targets was given.
5662 if test "${enable_targets+set}" = set; then
5663 enableval=$enable_targets;
5668 if test "$enableval" = host-only ; then
5671 case "$enableval" in
5672 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5673 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5675 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5676 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5677 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5678 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5679 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5680 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5681 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5682 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5683 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5684 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5685 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5686 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5687 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5688 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5689 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5690 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5691 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5692 host) case "$llvm_cv_target_arch" in
5693 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5701 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5702 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5703 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5704 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5705 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5706 echo "$as_me: error: Can not set target to build" >&2;}
5707 { (exit 1); exit 1; }; } ;;
5709 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5710 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5711 { (exit 1); exit 1; }; } ;;
5717 # Check whether --enable-experimental-targets was given.
5718 if test "${enable_experimental_targets+set}" = set; then
5719 enableval=$enable_experimental_targets;
5725 if test ${enableval} != "disable"
5727 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5730 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5733 for a_target in $TARGETS_TO_BUILD; do
5734 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5740 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5741 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5742 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5743 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5744 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5745 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5747 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5748 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5751 cat >>confdefs.h <<_ACEOF
5752 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5761 cat >>confdefs.h <<_ACEOF
5762 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5766 cat >>confdefs.h <<_ACEOF
5767 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5770 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5772 cat >>confdefs.h <<_ACEOF
5773 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5777 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5779 cat >>confdefs.h <<_ACEOF
5780 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5787 LLVM_ENUM_TARGETS=""
5788 LLVM_ENUM_ASM_PRINTERS=""
5789 LLVM_ENUM_ASM_PARSERS=""
5790 LLVM_ENUM_DISASSEMBLERS=""
5791 for target_to_build in $TARGETS_TO_BUILD; do
5792 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5793 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5794 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5796 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5797 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5799 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5800 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5809 # Check whether --with-optimize-option was given.
5810 if test "${with_optimize_option+set}" = set; then
5811 withval=$with_optimize_option;
5816 { echo "$as_me:$LINENO: checking optimization flags" >&5
5817 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5820 case "$llvm_cv_os_type" in
5821 FreeBSD) optimize_option=-O2 ;;
5822 MingW) optimize_option=-O2 ;;
5823 *) optimize_option=-O3 ;;
5825 *) optimize_option="$withval" ;;
5827 OPTIMIZE_OPTION=$optimize_option
5829 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5830 echo "${ECHO_T}$optimize_option" >&6; }
5833 # Check whether --with-extra-options was given.
5834 if test "${with_extra_options+set}" = set; then
5835 withval=$with_extra_options;
5841 default) EXTRA_OPTIONS= ;;
5842 *) EXTRA_OPTIONS=$withval ;;
5844 EXTRA_OPTIONS=$EXTRA_OPTIONS
5848 # Check whether --with-extra-ld-options was given.
5849 if test "${with_extra_ld_options+set}" = set; then
5850 withval=$with_extra_ld_options;
5856 default) EXTRA_LD_OPTIONS= ;;
5857 *) EXTRA_LD_OPTIONS=$withval ;;
5859 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5862 # Check whether --enable-bindings was given.
5863 if test "${enable_bindings+set}" = set; then
5864 enableval=$enable_bindings;
5869 BINDINGS_TO_BUILD=""
5870 case "$enableval" in
5871 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5872 all ) BINDINGS_TO_BUILD="ocaml" ;;
5873 none | no) BINDINGS_TO_BUILD="" ;;
5874 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5875 case "$a_binding" in
5876 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5877 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5878 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5879 { (exit 1); exit 1; }; } ;;
5886 # Check whether --with-ocaml-libdir was given.
5887 if test "${with_ocaml_libdir+set}" = set; then
5888 withval=$with_ocaml_libdir;
5894 auto) with_ocaml_libdir="$withval" ;;
5895 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5896 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5897 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5898 { (exit 1); exit 1; }; } ;;
5902 # Check whether --with-clang-srcdir was given.
5903 if test "${with_clang_srcdir+set}" = set; then
5904 withval=$with_clang_srcdir;
5910 -) clang_src_root="" ;;
5911 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5912 *) clang_src_root="$ac_pwd/$withval" ;;
5914 CLANG_SRC_ROOT=$clang_src_root
5918 # Check whether --with-clang-resource-dir was given.
5919 if test "${with_clang_resource_dir+set}" = set; then
5920 withval=$with_clang_resource_dir;
5926 cat >>confdefs.h <<_ACEOF
5927 #define CLANG_RESOURCE_DIR "$withval"
5932 # Check whether --with-c-include-dirs was given.
5933 if test "${with_c_include_dirs+set}" = set; then
5934 withval=$with_c_include_dirs;
5940 cat >>confdefs.h <<_ACEOF
5941 #define C_INCLUDE_DIRS "$withval"
5945 # Clang normally uses the system c++ headers and libraries. With this option,
5946 # clang will use the ones provided by a gcc installation instead. This option should
5947 # be passed the same value that was used with --prefix when configuring gcc.
5949 # Check whether --with-gcc-toolchain was given.
5950 if test "${with_gcc_toolchain+set}" = set; then
5951 withval=$with_gcc_toolchain;
5957 cat >>confdefs.h <<_ACEOF
5958 #define GCC_INSTALL_PREFIX "$withval"
5963 # Check whether --with-default-sysroot was given.
5964 if test "${with_default_sysroot+set}" = set; then
5965 withval=$with_default_sysroot;
5971 cat >>confdefs.h <<_ACEOF
5972 #define DEFAULT_SYSROOT "$withval"
5977 # Check whether --with-binutils-include was given.
5978 if test "${with_binutils_include+set}" = set; then
5979 withval=$with_binutils_include;
5985 default) WITH_BINUTILS_INCDIR=default ;;
5986 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5987 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5988 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5989 { (exit 1); exit 1; }; } ;;
5991 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5992 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5994 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5995 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5996 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5997 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5998 { (exit 1); exit 1; }; };
6003 # Check whether --with-bug-report-url was given.
6004 if test "${with_bug_report_url+set}" = set; then
6005 withval=$with_bug_report_url;
6007 withval="http://llvm.org/bugs/"
6011 cat >>confdefs.h <<_ACEOF
6012 #define BUG_REPORT_URL "$withval"
6016 # Check whether --enable-terminfo was given.
6017 if test "${enable_terminfo+set}" = set; then
6018 enableval=$enable_terminfo; case "$enableval" in
6019 yes) llvm_cv_enable_terminfo="yes" ;;
6020 no) llvm_cv_enable_terminfo="no" ;;
6021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6022 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6026 llvm_cv_enable_terminfo="yes"
6030 # Check whether --enable-libffi was given.
6031 if test "${enable_libffi+set}" = set; then
6032 enableval=$enable_libffi; case "$enableval" in
6033 yes) llvm_cv_enable_libffi="yes" ;;
6034 no) llvm_cv_enable_libffi="no" ;;
6035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6036 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6037 { (exit 1); exit 1; }; } ;;
6040 llvm_cv_enable_libffi=no
6045 # Check whether --with-internal-prefix was given.
6046 if test "${with_internal_prefix+set}" = set; then
6047 withval=$with_internal_prefix;
6052 INTERNAL_PREFIX=$withval
6056 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6057 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6058 if test "${lt_cv_path_NM+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 if test -n "$NM"; then
6062 # Let the user override the test.
6065 lt_nm_to_check="${ac_tool_prefix}nm"
6066 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6067 lt_nm_to_check="$lt_nm_to_check nm"
6069 for lt_tmp_nm in $lt_nm_to_check; do
6070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6073 test -z "$ac_dir" && ac_dir=.
6074 tmp_nm="$ac_dir/$lt_tmp_nm"
6075 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6076 # Check to see if the nm accepts a BSD-compat flag.
6077 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6078 # nm: unknown option "B" ignored
6079 # Tru64's nm complains that /dev/null is an invalid object file
6080 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6081 */dev/null* | *'Invalid file or object type'*)
6082 lt_cv_path_NM="$tmp_nm -B"
6086 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6088 lt_cv_path_NM="$tmp_nm -p"
6092 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6093 continue # so that we can try to find one that supports BSD flags
6102 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6105 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6106 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6111 { echo "$as_me:$LINENO: checking for GNU make" >&5
6112 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6113 if test "${llvm_cv_gnu_make_command+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 llvm_cv_gnu_make_command=''
6117 for a in "$MAKE" make gmake gnumake ; do
6118 if test -z "$a" ; then continue ; fi ;
6119 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6121 llvm_cv_gnu_make_command=$a ;
6126 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6127 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6128 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6132 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6133 echo "${ECHO_T}\"Not found\"" >&6; };
6137 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6138 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6140 if test "$LN_S" = "ln -s"; then
6141 { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6144 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6145 echo "${ECHO_T}no, using $LN_S" >&6; }
6148 # Extract the first word of "cmp", so it can be a program name with args.
6149 set dummy cmp; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_path_CMP+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6180 if test -n "$CMP"; then
6181 { echo "$as_me:$LINENO: result: $CMP" >&5
6182 echo "${ECHO_T}$CMP" >&6; }
6184 { echo "$as_me:$LINENO: result: no" >&5
6185 echo "${ECHO_T}no" >&6; }
6189 # Extract the first word of "cp", so it can be a program name with args.
6190 set dummy cp; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_path_CP+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6221 if test -n "$CP"; then
6222 { echo "$as_me:$LINENO: result: $CP" >&5
6223 echo "${ECHO_T}$CP" >&6; }
6225 { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6230 # Extract the first word of "date", so it can be a program name with args.
6231 set dummy date; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_path_DATE+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6261 DATE=$ac_cv_path_DATE
6262 if test -n "$DATE"; then
6263 { echo "$as_me:$LINENO: result: $DATE" >&5
6264 echo "${ECHO_T}$DATE" >&6; }
6266 { echo "$as_me:$LINENO: result: no" >&5
6267 echo "${ECHO_T}no" >&6; }
6271 # Extract the first word of "find", so it can be a program name with args.
6272 set dummy find; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_path_FIND+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6302 FIND=$ac_cv_path_FIND
6303 if test -n "$FIND"; then
6304 { echo "$as_me:$LINENO: result: $FIND" >&5
6305 echo "${ECHO_T}$FIND" >&6; }
6307 { echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6; }
6312 # Extract the first word of "grep", so it can be a program name with args.
6313 set dummy grep; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_path_GREP+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6343 GREP=$ac_cv_path_GREP
6344 if test -n "$GREP"; then
6345 { echo "$as_me:$LINENO: result: $GREP" >&5
6346 echo "${ECHO_T}$GREP" >&6; }
6348 { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6353 # Extract the first word of "mkdir", so it can be a program name with args.
6354 set dummy mkdir; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_path_MKDIR+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6384 MKDIR=$ac_cv_path_MKDIR
6385 if test -n "$MKDIR"; then
6386 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6387 echo "${ECHO_T}$MKDIR" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6394 # Extract the first word of "mv", so it can be a program name with args.
6395 set dummy mv; ac_word=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_MV+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6426 if test -n "$MV"; then
6427 { echo "$as_me:$LINENO: result: $MV" >&5
6428 echo "${ECHO_T}$MV" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_RANLIB+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 if test -n "$RANLIB"; then
6444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 RANLIB=$ac_cv_prog_RANLIB
6464 if test -n "$RANLIB"; then
6465 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6466 echo "${ECHO_T}$RANLIB" >&6; }
6468 { echo "$as_me:$LINENO: result: no" >&5
6469 echo "${ECHO_T}no" >&6; }
6474 if test -z "$ac_cv_prog_RANLIB"; then
6475 ac_ct_RANLIB=$RANLIB
6476 # Extract the first word of "ranlib", so it can be a program name with args.
6477 set dummy ranlib; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 if test -n "$ac_ct_RANLIB"; then
6484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_RANLIB="ranlib"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6504 if test -n "$ac_ct_RANLIB"; then
6505 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6506 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6508 { echo "$as_me:$LINENO: result: no" >&5
6509 echo "${ECHO_T}no" >&6; }
6512 if test "x$ac_ct_RANLIB" = x; then
6515 case $cross_compiling:$ac_tool_warned in
6517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet. If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&5
6520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6521 whose name does not start with the host triplet. If you think this
6522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6523 ac_tool_warned=yes ;;
6525 RANLIB=$ac_ct_RANLIB
6528 RANLIB="$ac_cv_prog_RANLIB"
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}ar; ac_word=$2
6534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536 if test "${ac_cv_prog_AR+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 if test -n "$AR"; then
6540 ac_cv_prog_AR="$AR" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_AR="${ac_tool_prefix}ar"
6550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 if test -n "$AR"; then
6561 { echo "$as_me:$LINENO: result: $AR" >&5
6562 echo "${ECHO_T}$AR" >&6; }
6564 { echo "$as_me:$LINENO: result: no" >&5
6565 echo "${ECHO_T}no" >&6; }
6570 if test -z "$ac_cv_prog_AR"; then
6572 # Extract the first word of "ar", so it can be a program name with args.
6573 set dummy ar; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 if test -n "$ac_ct_AR"; then
6580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_AR="ar"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600 if test -n "$ac_ct_AR"; then
6601 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6602 echo "${ECHO_T}$ac_ct_AR" >&6; }
6604 { echo "$as_me:$LINENO: result: no" >&5
6605 echo "${ECHO_T}no" >&6; }
6608 if test "x$ac_ct_AR" = x; then
6611 case $cross_compiling:$ac_tool_warned in
6613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet. If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&5
6616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet. If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6619 ac_tool_warned=yes ;;
6627 # Extract the first word of "rm", so it can be a program name with args.
6628 set dummy rm; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_RM+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6659 if test -n "$RM"; then
6660 { echo "$as_me:$LINENO: result: $RM" >&5
6661 echo "${ECHO_T}$RM" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6668 # Extract the first word of "sed", so it can be a program name with args.
6669 set dummy sed; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_SED+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6700 if test -n "$SED"; then
6701 { echo "$as_me:$LINENO: result: $SED" >&5
6702 echo "${ECHO_T}$SED" >&6; }
6704 { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6709 # Extract the first word of "tar", so it can be a program name with args.
6710 set dummy tar; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_TAR+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6741 if test -n "$TAR"; then
6742 { echo "$as_me:$LINENO: result: $TAR" >&5
6743 echo "${ECHO_T}$TAR" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6750 # Extract the first word of "pwd", so it can be a program name with args.
6751 set dummy pwd; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_BINPWD+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6769 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6781 BINPWD=$ac_cv_path_BINPWD
6782 if test -n "$BINPWD"; then
6783 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6784 echo "${ECHO_T}$BINPWD" >&6; }
6786 { echo "$as_me:$LINENO: result: no" >&5
6787 echo "${ECHO_T}no" >&6; }
6792 # Extract the first word of "Graphviz", so it can be a program name with args.
6793 set dummy Graphviz; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6823 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6824 if test -n "$GRAPHVIZ"; then
6825 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6826 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6828 { echo "$as_me:$LINENO: result: no" >&5
6829 echo "${ECHO_T}no" >&6; }
6833 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_GRAPHVIZ 1
6839 if test "$llvm_cv_os_type" = "MingW" ; then
6840 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6843 cat >>confdefs.h <<_ACEOF
6844 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6848 # Extract the first word of "dot", so it can be a program name with args.
6849 set dummy dot; ac_word=$2
6850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6852 if test "${ac_cv_path_DOT+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6880 if test -n "$DOT"; then
6881 { echo "$as_me:$LINENO: result: $DOT" >&5
6882 echo "${ECHO_T}$DOT" >&6; }
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6889 if test "$DOT" != "echo dot" ; then
6891 cat >>confdefs.h <<\_ACEOF
6895 if test "$llvm_cv_os_type" = "MingW" ; then
6896 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6899 cat >>confdefs.h <<_ACEOF
6900 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6904 # Extract the first word of "fdp", so it can be a program name with args.
6905 set dummy fdp; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_FDP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6936 if test -n "$FDP"; then
6937 { echo "$as_me:$LINENO: result: $FDP" >&5
6938 echo "${ECHO_T}$FDP" >&6; }
6940 { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6945 if test "$FDP" != "echo fdp" ; then
6947 cat >>confdefs.h <<\_ACEOF
6951 if test "$llvm_cv_os_type" = "MingW" ; then
6952 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6955 cat >>confdefs.h <<_ACEOF
6956 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6960 # Extract the first word of "neato", so it can be a program name with args.
6961 set dummy neato; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_NEATO+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6991 NEATO=$ac_cv_path_NEATO
6992 if test -n "$NEATO"; then
6993 { echo "$as_me:$LINENO: result: $NEATO" >&5
6994 echo "${ECHO_T}$NEATO" >&6; }
6996 { echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6; }
7001 if test "$NEATO" != "echo neato" ; then
7003 cat >>confdefs.h <<\_ACEOF
7004 #define HAVE_NEATO 1
7007 if test "$llvm_cv_os_type" = "MingW" ; then
7008 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7011 cat >>confdefs.h <<_ACEOF
7012 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7016 # Extract the first word of "twopi", so it can be a program name with args.
7017 set dummy twopi; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_path_TWOPI+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7047 TWOPI=$ac_cv_path_TWOPI
7048 if test -n "$TWOPI"; then
7049 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7050 echo "${ECHO_T}$TWOPI" >&6; }
7052 { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7057 if test "$TWOPI" != "echo twopi" ; then
7059 cat >>confdefs.h <<\_ACEOF
7060 #define HAVE_TWOPI 1
7063 if test "$llvm_cv_os_type" = "MingW" ; then
7064 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7067 cat >>confdefs.h <<_ACEOF
7068 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7072 # Extract the first word of "circo", so it can be a program name with args.
7073 set dummy circo; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_CIRCO+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7103 CIRCO=$ac_cv_path_CIRCO
7104 if test -n "$CIRCO"; then
7105 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7106 echo "${ECHO_T}$CIRCO" >&6; }
7108 { echo "$as_me:$LINENO: result: no" >&5
7109 echo "${ECHO_T}no" >&6; }
7113 if test "$CIRCO" != "echo circo" ; then
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_CIRCO 1
7119 if test "$llvm_cv_os_type" = "MingW" ; then
7120 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7123 cat >>confdefs.h <<_ACEOF
7124 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7128 for ac_prog in gv gsview32
7130 # Extract the first word of "$ac_prog", so it can be a program name with args.
7131 set dummy $ac_prog; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_path_GV+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 if test -n "$GV"; then
7162 { echo "$as_me:$LINENO: result: $GV" >&5
7163 echo "${ECHO_T}$GV" >&6; }
7165 { echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6; }
7170 test -n "$GV" && break
7172 test -n "$GV" || GV="echo gv"
7174 if test "$GV" != "echo gv" ; then
7176 cat >>confdefs.h <<\_ACEOF
7180 if test "$llvm_cv_os_type" = "MingW" ; then
7181 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7184 cat >>confdefs.h <<_ACEOF
7185 #define LLVM_PATH_GV "$GV${EXEEXT}"
7189 # Extract the first word of "dotty", so it can be a program name with args.
7190 set dummy dotty; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_DOTTY+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7220 DOTTY=$ac_cv_path_DOTTY
7221 if test -n "$DOTTY"; then
7222 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7223 echo "${ECHO_T}$DOTTY" >&6; }
7225 { echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6; }
7230 if test "$DOTTY" != "echo dotty" ; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_DOTTY 1
7236 if test "$llvm_cv_os_type" = "MingW" ; then
7237 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7240 cat >>confdefs.h <<_ACEOF
7241 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7245 for ac_prog in xdot xdot.py
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_XDOT+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 XDOT=$ac_cv_path_XDOT
7278 if test -n "$XDOT"; then
7279 { echo "$as_me:$LINENO: result: $XDOT" >&5
7280 echo "${ECHO_T}$XDOT" >&6; }
7282 { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7287 test -n "$XDOT" && break
7289 test -n "$XDOT" || XDOT="echo xdot"
7291 if test "$XDOT" != "echo xdot" ; then
7293 cat >>confdefs.h <<\_ACEOF
7297 if test "$llvm_cv_os_type" = "MingW" ; then
7298 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7301 cat >>confdefs.h <<_ACEOF
7302 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7307 # Find a good install program. We prefer a C program (faster),
7308 # so one script is as good as another. But avoid the broken or
7309 # incompatible versions:
7310 # SysV /etc/install, /usr/sbin/install
7311 # SunOS /usr/etc/install
7312 # IRIX /sbin/install
7314 # AmigaOS /C/install, which installs bootblocks on floppy discs
7315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7318 # OS/2's system install, which has a completely different semantic
7319 # ./install, which can be erroneously created by make from ./install.sh.
7320 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7321 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7322 if test -z "$INSTALL"; then
7323 if test "${ac_cv_path_install+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 # Account for people who put trailing slashes in PATH elements.
7333 ./ | .// | /cC/* | \
7334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7335 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7338 # OSF1 and SCO ODT 3.0 have their own names for install.
7339 # Don't use installbsd from OSF since it installs stuff as root
7341 for ac_prog in ginstall scoinst install; do
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7344 if test $ac_prog = install &&
7345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # AIX install. It has an incompatible calling convention.
7348 elif test $ac_prog = install &&
7349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7350 # program-specific install script used by HP pwplus--don't use.
7353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7366 if test "${ac_cv_path_install+set}" = set; then
7367 INSTALL=$ac_cv_path_install
7369 # As a last resort, use the slow shell script. Don't cache a
7370 # value for INSTALL within a source directory, because that will
7371 # break other packages using the cache if that directory is
7372 # removed, or if the value is a relative name.
7373 INSTALL=$ac_install_sh
7376 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7377 echo "${ECHO_T}$INSTALL" >&6; }
7379 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7380 # It thinks the first close brace ends the variable substitution.
7381 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7383 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7385 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7388 [\\/$]* | ?:[\\/]* ) ;;
7389 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7392 # Extract the first word of "bzip2", so it can be a program name with args.
7393 set dummy bzip2; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_BZIP2+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 BZIP2=$ac_cv_path_BZIP2
7423 if test -n "$BZIP2"; then
7424 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7425 echo "${ECHO_T}$BZIP2" >&6; }
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7432 # Extract the first word of "cat", so it can be a program name with args.
7433 set dummy cat; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_CAT+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$CAT"; then
7464 { echo "$as_me:$LINENO: result: $CAT" >&5
7465 echo "${ECHO_T}$CAT" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 # Extract the first word of "doxygen", so it can be a program name with args.
7473 set dummy doxygen; ac_word=$2
7474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7476 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 DOXYGEN=$ac_cv_path_DOXYGEN
7503 if test -n "$DOXYGEN"; then
7504 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7505 echo "${ECHO_T}$DOXYGEN" >&6; }
7507 { echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6; }
7512 # Extract the first word of "groff", so it can be a program name with args.
7513 set dummy groff; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_GROFF+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 GROFF=$ac_cv_path_GROFF
7543 if test -n "$GROFF"; then
7544 { echo "$as_me:$LINENO: result: $GROFF" >&5
7545 echo "${ECHO_T}$GROFF" >&6; }
7547 { echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6; }
7552 # Extract the first word of "gzip", so it can be a program name with args.
7553 set dummy gzip; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 GZIPBIN=$ac_cv_path_GZIPBIN
7583 if test -n "$GZIPBIN"; then
7584 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7585 echo "${ECHO_T}$GZIPBIN" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 # Extract the first word of "pdfroff", so it can be a program name with args.
7593 set dummy pdfroff; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_PDFROFF+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 PDFROFF=$ac_cv_path_PDFROFF
7623 if test -n "$PDFROFF"; then
7624 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7625 echo "${ECHO_T}$PDFROFF" >&6; }
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 # Extract the first word of "zip", so it can be a program name with args.
7633 set dummy zip; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_path_ZIP+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 if test -n "$ZIP"; then
7664 { echo "$as_me:$LINENO: result: $ZIP" >&5
7665 echo "${ECHO_T}$ZIP" >&6; }
7667 { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7672 for ac_prog in ocamlc
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7678 if test "${ac_cv_path_OCAMLC+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 OCAMLC=$ac_cv_path_OCAMLC
7705 if test -n "$OCAMLC"; then
7706 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7707 echo "${ECHO_T}$OCAMLC" >&6; }
7709 { echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6; }
7714 test -n "$OCAMLC" && break
7717 for ac_prog in ocamlopt
7719 # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 OCAMLOPT=$ac_cv_path_OCAMLOPT
7750 if test -n "$OCAMLOPT"; then
7751 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7752 echo "${ECHO_T}$OCAMLOPT" >&6; }
7754 { echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6; }
7759 test -n "$OCAMLOPT" && break
7762 for ac_prog in ocamldep
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7768 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7783 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 OCAMLDEP=$ac_cv_path_OCAMLDEP
7795 if test -n "$OCAMLDEP"; then
7796 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7797 echo "${ECHO_T}$OCAMLDEP" >&6; }
7799 { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7804 test -n "$OCAMLDEP" && break
7807 for ac_prog in ocamldoc
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 OCAMLDOC=$ac_cv_path_OCAMLDOC
7840 if test -n "$OCAMLDOC"; then
7841 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7842 echo "${ECHO_T}$OCAMLDOC" >&6; }
7844 { echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6; }
7849 test -n "$OCAMLDOC" && break
7852 for ac_prog in gas as
7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
7855 set dummy $ac_prog; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_GAS+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 if test -n "$GAS"; then
7886 { echo "$as_me:$LINENO: result: $GAS" >&5
7887 echo "${ECHO_T}$GAS" >&6; }
7889 { echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6; }
7894 test -n "$GAS" && break
7898 { echo "$as_me:$LINENO: checking for linker version" >&5
7899 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7900 if test "${llvm_cv_link_version+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 version_string="$(ld -v 2>&1 | head -1)"
7907 if (echo "$version_string" | grep -q "ld64"); then
7908 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7910 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7914 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7915 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7917 cat >>confdefs.h <<_ACEOF
7918 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_r+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 CFLAGS="$CFLAGS -Wl,-R."
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (ac_try="$ac_link"
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_link") 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_try") 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 llvm_cv_link_use_r=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 llvm_cv_link_use_r=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8005 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8006 if test "$llvm_cv_link_use_r" = yes ; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LINK_R 1
8015 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8016 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8017 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 CFLAGS="$CFLAGS -rdynamic"
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_link") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8058 { (case "(($ac_try" in
8059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8063 (eval "$ac_try") 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest$ac_exeext'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
8077 llvm_cv_link_use_export_dynamic=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 llvm_cv_link_use_export_dynamic=no
8085 rm -f core conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
8089 ac_cpp='$CPP $CPPFLAGS'
8090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8097 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8098 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8100 cat >>confdefs.h <<\_ACEOF
8101 #define HAVE_LINK_EXPORT_DYNAMIC 1
8107 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8108 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8109 if test "${llvm_cv_link_use_version_script+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120 # The following code is from the autoconf manual,
8121 # "11.13: Limitations of Usual Tools".
8122 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8123 # Use mktemp if possible; otherwise fall back on mkdir,
8124 # with $RANDOM to make collisions less likely.
8128 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8130 test -n "$tmp" && test -d "$tmp"
8132 tmp=$TMPDIR/foo$$-$RANDOM
8133 (umask 077 && mkdir "$tmp")
8136 echo "{" > "$tmp/export.map"
8137 echo " global: main;" >> "$tmp/export.map"
8138 echo " local: *;" >> "$tmp/export.map"
8139 echo "};" >> "$tmp/export.map"
8141 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_link") 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_try") 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 llvm_cv_link_use_version_script=yes
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8196 llvm_cv_link_use_version_script=no
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 rm "$tmp/export.map"
8205 ac_cpp='$CPP $CPPFLAGS'
8206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8212 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8213 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8214 if test "$llvm_cv_link_use_version_script" = yes ; then
8215 HAVE_LINK_VERSION_SCRIPT=1
8222 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8223 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8224 if test "${ac_cv_c_const+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8237 /* FIXME: Include the comments suggested by Paul. */
8239 /* Ultrix mips cc rejects this. */
8240 typedef int charset[2];
8242 /* SunOS 4.1.1 cc rejects this. */
8243 char const *const *ccp;
8245 /* NEC SVR4.0.2 mips cc rejects this. */
8246 struct point {int x, y;};
8247 static struct point const zero = {0,0};
8248 /* AIX XL C 1.02.0.0 rejects this.
8249 It does not let you subtract one const X* pointer from another in
8250 an arm of an if-expression whose if-part is not a constant
8252 const char *g = "string";
8253 ccp = &g + (g ? g-g : 0);
8254 /* HPUX 7.0 cc rejects these. */
8257 ccp = (char const *const *) p;
8258 { /* SCO 3.2v4 cc rejects this. */
8260 char const *s = 0 ? (char *) 0 : (char const *) 0;
8265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8267 const int *foo = &x[0];
8270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8271 typedef const int *iptr;
8275 { /* AIX XL C 1.02.0.0 rejects this saying
8276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8277 struct s { int j; const int *ap[3]; };
8278 struct s *b; b->j = 5;
8280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8284 return !x[0] && !zero.x;
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; } &&
8315 { ac_try='test -s conftest.$ac_objext'
8316 { (case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_try") 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8336 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8337 if test $ac_cv_c_const = no; then
8339 cat >>confdefs.h <<\_ACEOF
8351 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8352 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8353 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8354 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <sys/types.h>
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 eval "$as_ac_Header=yes"
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 eval "$as_ac_Header=no"
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 ac_res=`eval echo '${'$as_ac_Header'}'`
8421 { echo "$as_me:$LINENO: result: $ac_res" >&5
8422 echo "${ECHO_T}$ac_res" >&6; }
8423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8424 cat >>confdefs.h <<_ACEOF
8425 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8428 ac_header_dirent=$ac_hdr; break
8432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8433 if test $ac_header_dirent = dirent.h; then
8434 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8436 if test "${ac_cv_search_opendir+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_func_search_save_LIBS=$LIBS
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any GCC internal prototype to avoid an error.
8448 Use char because int might match the return type of a GCC
8449 builtin and then its argument prototype would still apply. */
8462 for ac_lib in '' dir; do
8463 if test -z "$ac_lib"; then
8464 ac_res="none required"
8467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (ac_try="$ac_link"
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_link") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } &&
8483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8484 { (case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_try") 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; } &&
8493 { ac_try='test -s conftest$ac_exeext'
8494 { (case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_try") 2>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_cv_search_opendir=$ac_res
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8511 rm -f core conftest.err conftest.$ac_objext \
8513 if test "${ac_cv_search_opendir+set}" = set; then
8517 if test "${ac_cv_search_opendir+set}" = set; then
8520 ac_cv_search_opendir=no
8523 LIBS=$ac_func_search_save_LIBS
8525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8527 ac_res=$ac_cv_search_opendir
8528 if test "$ac_res" != no; then
8529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8534 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8536 if test "${ac_cv_search_opendir+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 ac_func_search_save_LIBS=$LIBS
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any GCC internal prototype to avoid an error.
8548 Use char because int might match the return type of a GCC
8549 builtin and then its argument prototype would still apply. */
8562 for ac_lib in '' x; do
8563 if test -z "$ac_lib"; then
8564 ac_res="none required"
8567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_link") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_try") 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_cv_search_opendir=$ac_res
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8611 rm -f core conftest.err conftest.$ac_objext \
8613 if test "${ac_cv_search_opendir+set}" = set; then
8617 if test "${ac_cv_search_opendir+set}" = set; then
8620 ac_cv_search_opendir=no
8623 LIBS=$ac_func_search_save_LIBS
8625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8627 ac_res=$ac_cv_search_opendir
8628 if test "$ac_res" != no; then
8629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8636 for ac_header in dlfcn.h
8638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 ac_res=`eval echo '${'$as_ac_Header'}'`
8646 { echo "$as_me:$LINENO: result: $ac_res" >&5
8647 echo "${ECHO_T}$ac_res" >&6; }
8649 # Is the header compilable?
8650 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8652 cat >conftest.$ac_ext <<_ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 $ac_includes_default
8659 #include <$ac_header>
8661 rm -f conftest.$ac_objext
8662 if { (ac_try="$ac_compile"
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8676 { (case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_try") 2>&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest.$ac_objext'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_header_compiler=yes
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_header_compiler=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8705 echo "${ECHO_T}$ac_header_compiler" >&6; }
8707 # Is the header present?
8708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 #include <$ac_header>
8718 if { (ac_try="$ac_cpp conftest.$ac_ext"
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 if test -z "$ac_cpp_err"; then
8741 ac_header_preproc=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 ac_header_preproc=no
8749 rm -f conftest.err conftest.$ac_ext
8750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6; }
8753 # So? What about this header?
8754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8760 ac_header_preproc=yes
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8776 ## ------------------------------------ ##
8777 ## Report this to http://llvm.org/bugs/ ##
8778 ## ------------------------------------ ##
8780 ) | sed "s/^/$as_me: WARNING: /" >&2
8783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 eval "$as_ac_Header=\$ac_header_preproc"
8790 ac_res=`eval echo '${'$as_ac_Header'}'`
8791 { echo "$as_me:$LINENO: result: $ac_res" >&5
8792 echo "${ECHO_T}$ac_res" >&6; }
8795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796 cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 # Check whether --enable-ltdl-install was given.
8805 if test "${enable_ltdl_install+set}" = set; then
8806 enableval=$enable_ltdl_install;
8812 if test x"${enable_ltdl_install-no}" != xno; then
8814 INSTALL_LTDL_FALSE='#'
8816 INSTALL_LTDL_TRUE='#'
8822 if test x"${enable_ltdl_convenience-no}" != xno; then
8823 CONVENIENCE_LTDL_TRUE=
8824 CONVENIENCE_LTDL_FALSE='#'
8826 CONVENIENCE_LTDL_TRUE='#'
8827 CONVENIENCE_LTDL_FALSE=
8831 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8832 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8834 libname_spec='lib$name'
8842 shlibpath_overrides_runpath=unknown
8844 dynamic_linker="$host_os ld.so"
8845 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8846 if test "$GCC" = yes; then
8847 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8848 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8849 # if the path contains ";" then we assume it to be the separator
8850 # otherwise default to the standard path separator (i.e. ":") - it is
8851 # assumed that no part of a normal pathname contains ";" but that should
8852 # okay in the real world where ";" in dirpaths is itself problematic.
8853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8860 need_lib_prefix=unknown
8861 hardcode_into_libs=no
8863 # when you set need_version to no, make sure it does not cause -set_version
8864 # flags to be left without arguments
8865 need_version=unknown
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8871 shlibpath_var=LIBPATH
8873 # AIX 3 has no versioning support, so we append a major version to the name.
8874 soname_spec='${libname}${release}${shared_ext}$major'
8881 hardcode_into_libs=yes
8882 if test "$host_cpu" = ia64; then
8883 # AIX 5 supports IA64
8884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8885 shlibpath_var=LD_LIBRARY_PATH
8887 # With GCC up to 2.95.x, collect2 would create an import file
8888 # for dependence libraries. The import file would start with
8889 # the line `#! .'. This would cause the generated library to
8890 # depend on `.', always an invalid library. This was fixed in
8891 # development snapshots of GCC prior to 3.0.
8893 aix4 | aix4.[01] | aix4.[01].*)
8894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8896 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8904 # soname into executable. Probably we can add versioning support to
8905 # collect2, so additional links can be useful in future.
8906 if test "$aix_use_runtimelinking" = yes; then
8907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8908 # instead of lib<name>.a to let people know that these are not
8909 # typical AIX shared libraries.
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8912 # We preserve .a as extension for shared libraries through AIX4.2
8913 # and later when we are not doing run time linking.
8914 library_names_spec='${libname}${release}.a $libname.a'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8917 shlibpath_var=LIBPATH
8922 library_names_spec='$libname.ixlibrary $libname.a'
8923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8924 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'
8928 library_names_spec='${libname}${shared_ext}'
8929 dynamic_linker="$host_os ld.so"
8930 shlibpath_var=LIBRARY_PATH
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8939 shlibpath_var=LD_LIBRARY_PATH
8940 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8941 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8942 # the default ld.so.conf also contains /usr/contrib/lib and
8943 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8944 # libtool to hard-code these into programs
8947 cygwin* | mingw* | pw32*)
8948 version_type=windows
8953 case $GCC,$host_os in
8954 yes,cygwin* | yes,mingw* | yes,pw32*)
8955 library_names_spec='$libname.dll.a'
8956 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8957 postinstall_cmds='base_file=`basename \${file}`~
8958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8959 dldir=$destdir/`dirname \$dlpath`~
8960 test -d \$dldir || mkdir -p \$dldir~
8961 $install_prog $dir/$dlname \$dldir/$dlname~
8962 chmod a+x \$dldir/$dlname'
8963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8964 dlpath=$dir/\$dldll~
8966 shlibpath_overrides_runpath=yes
8970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8972 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8975 # MinGW DLLs use traditional 'lib' prefix
8976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8978 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8979 # It is most probably a Windows format PATH printed by
8980 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8981 # path with ; separators, and with drive letters. We can handle the
8982 # drive letters (cygwin fileutils understands them), so leave them,
8983 # especially as we might pass files found there to a mingw objdump,
8984 # which wouldn't understand a cygwinified path. Ahh.
8985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8991 # pw32 DLLs use 'pw' prefix rather than 'lib'
8992 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9001 dynamic_linker='Win32 ld.exe'
9002 # FIXME: first we should search . and the directory the executable is in
9006 darwin* | rhapsody*)
9007 dynamic_linker="$host_os dyld"
9011 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9012 soname_spec='${libname}${release}${major}$shared_ext'
9013 shlibpath_overrides_runpath=yes
9014 shlibpath_var=DYLD_LIBRARY_PATH
9015 shrext_cmds='.dylib'
9016 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9017 if test "$GCC" = yes; then
9018 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"`
9020 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9022 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9047 dynamic_linker='GNU ld.so'
9050 freebsd* | dragonfly*)
9051 # DragonFly does not have aout. When/if they implement a new
9052 # versioning mechanism, adjust this.
9053 if test -x /usr/bin/objformat; then
9054 objformat=`/usr/bin/objformat`
9057 freebsd[123].*) objformat=aout ;;
9061 version_type=freebsd-$objformat
9062 case $version_type in
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9073 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9078 freebsd3.[01]* | freebsdelf3.[01]*)
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084 shlibpath_overrides_runpath=no
9085 hardcode_into_libs=yes
9087 freebsd*) # from 4.6 on
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 hardcode_into_libs=yes
9104 hpux9* | hpux10* | hpux11*)
9105 # Give a soname corresponding to the major version so that dld.sl refuses to
9106 # link against other versions.
9113 hardcode_into_libs=yes
9114 dynamic_linker="$host_os dld.so"
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 if test "X$HPUX_IA64_MODE" = X32; then
9120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9128 hardcode_into_libs=yes
9129 dynamic_linker="$host_os dld.sl"
9130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9139 dynamic_linker="$host_os dld.sl"
9140 shlibpath_var=SHLIB_PATH
9141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147 postinstall_cmds='chmod 555 $lib'
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=no
9159 hardcode_into_libs=yes
9162 irix5* | irix6* | nonstopux*)
9164 nonstopux*) version_type=nonstopux ;;
9166 if test "$lt_cv_prog_gnu_ld" = yes; then
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9177 irix5* | nonstopux*)
9181 case $LD in # libtool.m4 will add one of these switches to LD
9182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183 libsuff= shlibsuff= libmagic=32-bit;;
9184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185 libsuff=32 shlibsuff=N32 libmagic=N32;;
9186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188 *) libsuff= shlibsuff= libmagic=never-match;;
9192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196 hardcode_into_libs=yes
9199 # No shared lib support for Linux oldld, aout, or coff.
9200 linux*oldld* | linux*aout* | linux*coff*)
9204 # This must be Linux ELF.
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 shlibpath_overrides_runpath=no
9214 # This implies no fast_install, which is unacceptable.
9215 # Some rework will be needed to allow for fast_install
9216 # before this can be enabled.
9217 hardcode_into_libs=yes
9219 # Append ld.so.conf contents to the search path
9220 if test -f /etc/ld.so.conf; then
9221 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' ' '`
9222 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9225 # We used to test for /lib/ld.so.1 and disable shared libraries on
9226 # powerpc, because MkLinux only supported shared libraries with the
9227 # GNU dynamic linker. Since this was broken with cross compilers,
9228 # most powerpc-linux boxes support dynamic linking these days and
9229 # people can always --disable-shared, the test was removed, and we
9230 # assume the GNU/Linux dynamic linker is in use.
9231 dynamic_linker='GNU/Linux ld.so'
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=no
9242 hardcode_into_libs=yes
9243 dynamic_linker='GNU ld.so'
9250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9253 dynamic_linker='NetBSD (a.out) ld.so'
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9257 dynamic_linker='NetBSD ld.elf_so'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=yes
9261 hardcode_into_libs=yes
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 shlibpath_overrides_runpath=yes
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9283 sys_lib_dlsearch_path_spec="/usr/lib"
9285 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9287 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9288 *) need_version=no ;;
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9292 shlibpath_var=LD_LIBRARY_PATH
9293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9295 openbsd2.[89] | openbsd2.[89].*)
9296 shlibpath_overrides_runpath=no
9299 shlibpath_overrides_runpath=yes
9303 shlibpath_overrides_runpath=yes
9308 libname_spec='$name'
9311 library_names_spec='$libname${shared_ext} $libname.a'
9312 dynamic_linker='OS/2 ld.exe'
9313 shlibpath_var=LIBPATH
9316 osf3* | osf4* | osf5*)
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9324 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9336 # ldd complains unless libraries are executable
9337 postinstall_cmds='chmod +x $lib'
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=yes
9346 if test "$with_gnu_ld" = yes; then
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 case $host_vendor in
9359 shlibpath_overrides_runpath=no
9361 export_dynamic_flag_spec='${wl}-Blargedynsym'
9362 runpath_var=LD_RUN_PATH
9370 shlibpath_overrides_runpath=no
9371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9377 if test -d /usr/nec ;then
9379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9380 soname_spec='$libname${shared_ext}.$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9386 version_type=freebsd-elf
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9390 soname_spec='${libname}${release}${shared_ext}$major'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 hardcode_into_libs=yes
9393 if test "$with_gnu_ld" = yes; then
9394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9395 shlibpath_overrides_runpath=no
9397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9398 shlibpath_overrides_runpath=yes
9401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9405 sys_lib_dlsearch_path_spec='/usr/lib'
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 shlibpath_var=LD_LIBRARY_PATH
9419 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9420 echo "${ECHO_T}$dynamic_linker" >&6; }
9421 test "$dynamic_linker" = no && can_build_shared=no
9423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9424 if test "$GCC" = yes; then
9425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9429 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9430 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9431 if test "${libltdl_cv_shlibext+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 eval libltdl_cv_shlibext=$shrext_cmds
9439 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9440 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9441 if test -n "$libltdl_cv_shlibext"; then
9443 cat >>confdefs.h <<_ACEOF
9444 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9450 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9451 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9452 if test "${libltdl_cv_sys_search_path+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9458 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9459 if test -n "$libltdl_cv_sys_search_path"; then
9461 for dir in $libltdl_cv_sys_search_path; do
9462 if test -z "$sys_search_path"; then
9463 sys_search_path="$dir"
9465 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9469 cat >>confdefs.h <<_ACEOF
9470 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9475 { echo "$as_me:$LINENO: checking for objdir" >&5
9476 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9477 if test "${libltdl_cv_objdir+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 libltdl_cv_objdir="$objdir"
9481 if test -n "$objdir"; then
9484 rm -f .libs 2>/dev/null
9485 mkdir .libs 2>/dev/null
9486 if test -d .libs; then
9487 libltdl_cv_objdir=.libs
9489 # MS-DOS does not allow filenames that begin with a dot.
9490 libltdl_cv_objdir=_libs
9492 rmdir .libs 2>/dev/null
9496 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9497 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9499 cat >>confdefs.h <<_ACEOF
9500 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9508 # Check for command to grab the raw symbol name followed by C symbol from nm.
9509 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9510 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9511 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 # These are sane defaults that work on at least a few old systems.
9516 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9518 # Character class describing NM global symbol codes.
9519 symcode='[BCDEGRST]'
9521 # Regexp to match symbols that can be accessed directly from C.
9522 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9524 # Transform an extracted symbol line into a proper C declaration
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9527 # Transform an extracted symbol line into symbol name and symbol address
9528 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'"
9530 # Define system-specific variables.
9535 cygwin* | mingw* | pw32*)
9536 symcode='[ABCDGISTW]'
9538 hpux*) # Its linker distinguishes data from code symbols
9539 if test "$host_cpu" = ia64; then
9540 symcode='[ABCDEGRST]'
9542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9543 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9546 if test "$host_cpu" = ia64; then
9547 symcode='[ABCDGIRSTW]'
9548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9549 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'"
9553 symcode='[BCDEGRST]'
9556 symcode='[BCDEGQRST]'
9567 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9575 # Handle CRLF in mingw tool chain
9579 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9583 # If we're using GNU nm, then use its standard symbol codes.
9584 case `$NM -V 2>&1` in
9585 *GNU* | *'with BFD'*)
9586 symcode='[ABCDGIRSTW]' ;;
9589 # Try without a prefix undercore, then with it.
9590 for ac_symprfx in "" "_"; do
9592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9593 symxfrm="\\1 $ac_symprfx\\2 \\2"
9595 # Write the raw and C identifiers.
9596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9598 # Check to see that the pipe works correctly.
9602 cat > conftest.$ac_ext <<EOF
9607 void nm_test_func(){}
9611 int main(){nm_test_var='a';nm_test_func();return(0);}
9614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; then
9619 # Now try to grab the symbols.
9621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && test -s "$nlist"; then
9626 # Try sorting and uniquifying the output.
9627 if sort "$nlist" | uniq > "$nlist"T; then
9628 mv -f "$nlist"T "$nlist"
9633 # Make sure that we snagged all the symbols we need.
9634 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9635 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9636 cat <<EOF > conftest.$ac_ext
9642 # Now generate the symbol file.
9643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9645 cat <<EOF >> conftest.$ac_ext
9646 #if defined (__STDC__) && __STDC__
9647 # define lt_ptr_t void *
9649 # define lt_ptr_t char *
9653 /* The mapping between symbol names and symbols. */
9658 lt_preloaded_symbols[] =
9661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9662 cat <<\EOF >> conftest.$ac_ext
9670 # Now try linking the two files.
9671 mv conftest.$ac_objext conftstm.$ac_objext
9672 lt_save_LIBS="$LIBS"
9673 lt_save_CFLAGS="$CFLAGS"
9674 LIBS="conftstm.$ac_objext"
9675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9683 LIBS="$lt_save_LIBS"
9684 CFLAGS="$lt_save_CFLAGS"
9686 echo "cannot find nm_test_func in $nlist" >&5
9689 echo "cannot find nm_test_var in $nlist" >&5
9692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695 echo "$progname: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9698 rm -f conftest* conftst*
9700 # Do not use the global_symbol_pipe unless it works.
9701 if test "$pipe_works" = yes; then
9704 lt_cv_sys_global_symbol_pipe=
9710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9711 lt_cv_sys_global_symbol_to_cdecl=
9713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9714 { echo "$as_me:$LINENO: result: failed" >&5
9715 echo "${ECHO_T}failed" >&6; }
9717 { echo "$as_me:$LINENO: result: ok" >&5
9718 echo "${ECHO_T}ok" >&6; }
9722 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9723 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9724 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9728 libltdl_cv_preloaded_symbols=yes
9730 libltdl_cv_preloaded_symbols=no
9734 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9735 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9736 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_PRELOADED_SYMBOLS 1
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753 { echo "$as_me:$LINENO: checking for shl_load" >&5
9754 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9755 if test "${ac_cv_func_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9766 #define shl_load innocuous_shl_load
9768 /* System header to define __stub macros and hopefully few prototypes,
9769 which can conflict with char shl_load (); below.
9770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771 <limits.h> exists even on freestanding compilers. */
9774 # include <limits.h>
9776 # include <assert.h>
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9788 /* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791 #if defined __stub_shl_load || defined __stub___shl_load
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9818 { (case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_try") 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_try") 2>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_cv_func_shl_load=yes
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9842 ac_cv_func_shl_load=no
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9848 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9849 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9850 if test $ac_cv_func_shl_load = yes; then
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_SHL_LOAD 1
9857 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9858 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9859 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 ac_check_lib_save_LIBS=$LIBS
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9871 /* Override any GCC internal prototype to avoid an error.
9872 Use char because int might match the return type of a GCC
9873 builtin and then its argument prototype would still apply. */
9886 rm -f conftest.$ac_objext conftest$ac_exeext
9887 if { (ac_try="$ac_link"
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 ac_cv_lib_dld_shl_load=yes
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9925 ac_cv_lib_dld_shl_load=no
9928 rm -f core conftest.err conftest.$ac_objext \
9929 conftest$ac_exeext conftest.$ac_ext
9930 LIBS=$ac_check_lib_save_LIBS
9932 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9933 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9934 if test $ac_cv_lib_dld_shl_load = yes; then
9936 cat >>confdefs.h <<\_ACEOF
9937 #define HAVE_SHL_LOAD 1
9940 LIBADD_DL="$LIBADD_DL -ldld"
9942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 ac_check_lib_save_LIBS=$LIBS
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_cv_lib_dl_dlopen=yes
10007 echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10010 ac_cv_lib_dl_dlopen=no
10013 rm -f core conftest.err conftest.$ac_objext \
10014 conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10019 if test $ac_cv_lib_dl_dlopen = yes; then
10021 cat >>confdefs.h <<\_ACEOF
10022 #define HAVE_LIBDL 1
10025 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 # include <dlfcn.h>
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_link") 2>conftest.er1
10054 grep -v '^ *+' conftest.er1 >conftest.err
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10060 { (case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_try") 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest$ac_exeext'
10070 { (case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_try") 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_LIBDL 1
10083 libltdl_cv_func_dlopen="yes"
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10089 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10090 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 ac_check_lib_save_LIBS=$LIBS
10094 LIBS="-lsvld $LIBS"
10095 cat >conftest.$ac_ext <<_ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (ac_try="$ac_link"
10119 case "(($ac_try" in
10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_link") 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10132 { (case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_try") 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest$ac_exeext'
10142 { (case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_try") 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_cv_lib_svld_dlopen=yes
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_cv_lib_svld_dlopen=no
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10164 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10165 if test $ac_cv_lib_svld_dlopen = yes; then
10167 cat >>confdefs.h <<\_ACEOF
10168 #define HAVE_LIBDL 1
10171 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10173 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10174 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10175 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 ac_check_lib_save_LIBS=$LIBS
10180 cat >conftest.$ac_ext <<_ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10197 return dld_link ();
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10217 { (case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222 (eval "$ac_try") 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; } &&
10226 { ac_try='test -s conftest$ac_exeext'
10227 { (case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_try") 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_cv_lib_dld_dld_link=yes
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 ac_cv_lib_dld_dld_link=no
10244 rm -f core conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10248 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10249 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10250 if test $ac_cv_lib_dld_dld_link = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10256 LIBADD_DL="$LIBADD_DL -ldld"
10258 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10259 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10260 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10271 #define _dyld_func_lookup innocuous__dyld_func_lookup
10273 /* System header to define __stub macros and hopefully few prototypes,
10274 which can conflict with char _dyld_func_lookup (); below.
10275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10276 <limits.h> exists even on freestanding compilers. */
10279 # include <limits.h>
10281 # include <assert.h>
10284 #undef _dyld_func_lookup
10286 /* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10292 char _dyld_func_lookup ();
10293 /* The GNU C library defines this for functions which it implements
10294 to always fail with ENOSYS. Some functions are actually named
10295 something starting with __ and the normal name is an alias. */
10296 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10303 return _dyld_func_lookup ();
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10323 { (case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_try") 2>&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; } &&
10332 { ac_try='test -s conftest$ac_exeext'
10333 { (case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_try") 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_func__dyld_func_lookup=yes
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10347 ac_cv_func__dyld_func_lookup=no
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10354 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10355 if test $ac_cv_func__dyld_func_lookup = yes; then
10357 cat >>confdefs.h <<\_ACEOF
10358 #define HAVE_DYLD 1
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10384 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10386 lt_save_LIBS="$LIBS"
10387 LIBS="$LIBS $LIBADD_DL"
10389 for ac_func in dlerror
10391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10405 #define $ac_func innocuous_$ac_func
10407 /* System header to define __stub macros and hopefully few prototypes,
10408 which can conflict with char $ac_func (); below.
10409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10410 <limits.h> exists even on freestanding compilers. */
10413 # include <limits.h>
10415 # include <assert.h>
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10427 /* The GNU C library defines this for functions which it implements
10428 to always fail with ENOSYS. Some functions are actually named
10429 something starting with __ and the normal name is an alias. */
10430 #if defined __stub_$ac_func || defined __stub___$ac_func
10437 return $ac_func ();
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_link") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10457 { (case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_try") 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; } &&
10466 { ac_try='test -s conftest$ac_exeext'
10467 { (case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_try") 2>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 eval "$as_ac_var=yes"
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 eval "$as_ac_var=no"
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10487 ac_res=`eval echo '${'$as_ac_var'}'`
10488 { echo "$as_me:$LINENO: result: $ac_res" >&5
10489 echo "${ECHO_T}$ac_res" >&6; }
10490 if test `eval echo '${'$as_ac_var'}'` = yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10498 LIBS="$lt_save_LIBS"
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10508 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10509 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10510 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 ac_cv_sys_symbol_underscore=no
10514 cat > conftest.$ac_ext <<EOF
10515 void nm_test_func(){}
10516 int main(){nm_test_func;return 0;}
10518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; then
10523 # Now try to grab the symbols.
10524 ac_nlist=conftest.nm
10525 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10526 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && test -s "$ac_nlist"; then
10530 # See whether the symbols have a leading underscore.
10531 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10532 ac_cv_sys_symbol_underscore=yes
10534 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10537 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10541 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10544 echo "configure: failed program was:" >&5
10550 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10551 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10554 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10555 if test x"$libltdl_cv_func_dlopen" = xyes ||
10556 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10557 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10558 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10559 if test "${libltdl_cv_need_uscore+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 libltdl_cv_need_uscore=unknown
10564 LIBS="$LIBS $LIBADD_DL"
10565 if test "$cross_compiling" = yes; then :
10566 libltdl_cv_need_uscore=cross
10568 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10569 lt_status=$lt_dlunknown
10570 cat > conftest.$ac_ext <<EOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10581 # define LT_DLGLOBAL RTLD_GLOBAL
10584 # define LT_DLGLOBAL DL_GLOBAL
10586 # define LT_DLGLOBAL 0
10590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10591 find out it does not work in some platform. */
10592 #ifndef LT_DLLAZY_OR_NOW
10594 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10597 # define LT_DLLAZY_OR_NOW DL_LAZY
10600 # define LT_DLLAZY_OR_NOW RTLD_NOW
10603 # define LT_DLLAZY_OR_NOW DL_NOW
10605 # define LT_DLLAZY_OR_NOW 0
10613 extern "C" void exit (int);
10616 void fnord() { int i=42;}
10619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10620 int status = $lt_dlunknown;
10624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10625 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10626 /* dlclose (self); */
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635 (eval $ac_link) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10639 (./conftest; exit; ) >&5 2>/dev/null
10641 case x$lt_status in
10642 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10643 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10644 x$lt_dlunknown|x*) ;;
10647 # compilation failed
10656 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10657 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10661 if test x"$libltdl_cv_need_uscore" = xyes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define NEED_USCORE 1
10670 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10671 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10672 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 # PORTME does your system automatically load deplibs for dlopen?
10676 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10677 # For now, we just catch OSes we know something about -- in the
10678 # future, we'll try test this programmatically.
10679 libltdl_cv_sys_dlopen_deplibs=unknown
10681 aix3*|aix4.1.*|aix4.2.*)
10682 # Unknown whether this is true for these versions of AIX, but
10683 # we want this `case' here to explicitly catch those versions.
10684 libltdl_cv_sys_dlopen_deplibs=unknown
10687 libltdl_cv_sys_dlopen_deplibs=yes
10690 # Assuming the user has installed a libdl from somewhere, this is true
10691 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10692 libltdl_cv_sys_dlopen_deplibs=yes
10694 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10695 # GNU and its variants, using gnu ld.so (Glibc)
10696 libltdl_cv_sys_dlopen_deplibs=yes
10699 libltdl_cv_sys_dlopen_deplibs=yes
10702 libltdl_cv_sys_dlopen_deplibs=yes
10704 irix[12345]*|irix6.[01]*)
10705 # Catch all versions of IRIX before 6.2, and indicate that we don't
10706 # know how it worked for any of those versions.
10707 libltdl_cv_sys_dlopen_deplibs=unknown
10710 # The case above catches anything before 6.2, and it's known that
10711 # at 6.2 and later dlopen does load deplibs.
10712 libltdl_cv_sys_dlopen_deplibs=yes
10715 libltdl_cv_sys_dlopen_deplibs=yes
10718 libltdl_cv_sys_dlopen_deplibs=yes
10721 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10722 # it did *not* use an RPATH in a shared library to find objects the
10723 # library depends on, so we explicitly say `no'.
10724 libltdl_cv_sys_dlopen_deplibs=no
10726 osf5.0|osf5.0a|osf5.1)
10727 # dlopen *does* load deplibs and with the right loader patch applied
10728 # it even uses RPATH in a shared library to search for shared objects
10729 # that the library depends on, but there's no easy way to know if that
10730 # patch is installed. Since this is the case, all we can really
10731 # say is unknown -- it depends on the patch being installed. If
10732 # it is, this changes to `yes'. Without it, it would be `no'.
10733 libltdl_cv_sys_dlopen_deplibs=unknown
10736 # the two cases above should catch all versions of osf <= 5.1. Read
10737 # the comments above for what we know about them.
10738 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10739 # is used to find them so we can finally say `yes'.
10740 libltdl_cv_sys_dlopen_deplibs=yes
10743 libltdl_cv_sys_dlopen_deplibs=yes
10745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10746 libltdl_cv_sys_dlopen_deplibs=yes
10751 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10752 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10753 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define LTDL_DLOPEN_DEPLIBS 1
10762 for ac_header in argz.h
10764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 ac_res=`eval echo '${'$as_ac_Header'}'`
10772 { echo "$as_me:$LINENO: result: $ac_res" >&5
10773 echo "${ECHO_T}$ac_res" >&6; }
10775 # Is the header compilable?
10776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10778 cat >conftest.$ac_ext <<_ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 $ac_includes_default
10785 #include <$ac_header>
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_compile") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ac_header_compiler=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ac_header_compiler=no
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10831 echo "${ECHO_T}$ac_header_compiler" >&6; }
10833 # Is the header present?
10834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <$ac_header>
10844 if { (ac_try="$ac_cpp conftest.$ac_ext"
10845 case "(($ac_try" in
10846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847 *) ac_try_echo=$ac_try;;
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null; then
10857 if test -s conftest.err; then
10858 ac_cpp_err=$ac_c_preproc_warn_flag
10859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10866 if test -z "$ac_cpp_err"; then
10867 ac_header_preproc=yes
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_header_preproc=no
10875 rm -f conftest.err conftest.$ac_ext
10876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10877 echo "${ECHO_T}$ac_header_preproc" >&6; }
10879 # So? What about this header?
10880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10886 ac_header_preproc=yes
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10902 ## ------------------------------------ ##
10903 ## Report this to http://llvm.org/bugs/ ##
10904 ## ------------------------------------ ##
10906 ) | sed "s/^/$as_me: WARNING: /" >&2
10909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 eval "$as_ac_Header=\$ac_header_preproc"
10916 ac_res=`eval echo '${'$as_ac_Header'}'`
10917 { echo "$as_me:$LINENO: result: $ac_res" >&5
10918 echo "${ECHO_T}$ac_res" >&6; }
10921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10922 cat >>confdefs.h <<_ACEOF
10923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931 { echo "$as_me:$LINENO: checking for error_t" >&5
10932 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10933 if test "${ac_cv_type_error_t+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 cat >conftest.$ac_ext <<_ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h. */
10946 typedef error_t ac__type_new_;
10950 if ((ac__type_new_ *) 0)
10952 if (sizeof (ac__type_new_))
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965 (eval "$ac_compile") 2>conftest.er1
10967 grep -v '^ *+' conftest.er1 >conftest.err
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10973 { (case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_try") 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try='test -s conftest.$ac_objext'
10983 { (case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_try") 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10992 ac_cv_type_error_t=yes
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ac_cv_type_error_t=no
11000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11003 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11004 if test $ac_cv_type_error_t = yes; then
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_ERROR_T 1
11013 cat >>confdefs.h <<\_ACEOF
11014 #define error_t int
11025 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11041 #define $ac_func innocuous_$ac_func
11043 /* System header to define __stub macros and hopefully few prototypes,
11044 which can conflict with char $ac_func (); below.
11045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046 <limits.h> exists even on freestanding compilers. */
11049 # include <limits.h>
11051 # include <assert.h>
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11063 /* The GNU C library defines this for functions which it implements
11064 to always fail with ENOSYS. Some functions are actually named
11065 something starting with __ and the normal name is an alias. */
11066 #if defined __stub_$ac_func || defined __stub___$ac_func
11073 return $ac_func ();
11078 rm -f conftest.$ac_objext conftest$ac_exeext
11079 if { (ac_try="$ac_link"
11080 case "(($ac_try" in
11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082 *) ac_try_echo=$ac_try;;
11084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085 (eval "$ac_link") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } &&
11092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11093 { (case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_try") 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; } &&
11102 { ac_try='test -s conftest$ac_exeext'
11103 { (case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_try") 2>&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 eval "$as_ac_var=yes"
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 eval "$as_ac_var=no"
11120 rm -f core conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11123 ac_res=`eval echo '${'$as_ac_var'}'`
11124 { echo "$as_me:$LINENO: result: $ac_res" >&5
11125 echo "${ECHO_T}$ac_res" >&6; }
11126 if test `eval echo '${'$as_ac_var'}'` = yes; then
11127 cat >>confdefs.h <<_ACEOF
11128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11156 for ac_header in errno.h malloc.h memory.h unistd.h
11158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 ac_res=`eval echo '${'$as_ac_Header'}'`
11166 { echo "$as_me:$LINENO: result: $ac_res" >&5
11167 echo "${ECHO_T}$ac_res" >&6; }
11169 # Is the header compilable?
11170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 #include <$ac_header>
11181 rm -f conftest.$ac_objext
11182 if { (ac_try="$ac_compile"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_compile") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest.$ac_objext'
11206 { (case "(($ac_try" in
11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208 *) ac_try_echo=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_try") 2>&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 ac_header_compiler=yes
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 ac_header_compiler=no
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11225 echo "${ECHO_T}$ac_header_compiler" >&6; }
11227 # Is the header present?
11228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11230 cat >conftest.$ac_ext <<_ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 #include <$ac_header>
11238 if { (ac_try="$ac_cpp conftest.$ac_ext"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } >/dev/null; then
11251 if test -s conftest.err; then
11252 ac_cpp_err=$ac_c_preproc_warn_flag
11253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11260 if test -z "$ac_cpp_err"; then
11261 ac_header_preproc=yes
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11266 ac_header_preproc=no
11269 rm -f conftest.err conftest.$ac_ext
11270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11271 echo "${ECHO_T}$ac_header_preproc" >&6; }
11273 # So? What about this header?
11274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11280 ac_header_preproc=yes
11283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11296 ## ------------------------------------ ##
11297 ## Report this to http://llvm.org/bugs/ ##
11298 ## ------------------------------------ ##
11300 ) | sed "s/^/$as_me: WARNING: /" >&2
11303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 eval "$as_ac_Header=\$ac_header_preproc"
11310 ac_res=`eval echo '${'$as_ac_Header'}'`
11311 { echo "$as_me:$LINENO: result: $ac_res" >&5
11312 echo "${ECHO_T}$ac_res" >&6; }
11315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11316 cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11325 for ac_header in mach-o/dyld.h
11327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 ac_res=`eval echo '${'$as_ac_Header'}'`
11335 { echo "$as_me:$LINENO: result: $ac_res" >&5
11336 echo "${ECHO_T}$ac_res" >&6; }
11338 # Is the header compilable?
11339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 #include <$ac_header>
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11359 grep -v '^ *+' conftest.er1 >conftest.err
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest.$ac_objext'
11375 { (case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_try") 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_header_compiler=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_compiler=no
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11394 echo "${ECHO_T}$ac_header_compiler" >&6; }
11396 # Is the header present?
11397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 #include <$ac_header>
11407 if { (ac_try="$ac_cpp conftest.$ac_ext"
11408 case "(($ac_try" in
11409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410 *) ac_try_echo=$ac_try;;
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11415 grep -v '^ *+' conftest.er1 >conftest.err
11417 cat conftest.err >&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } >/dev/null; then
11420 if test -s conftest.err; then
11421 ac_cpp_err=$ac_c_preproc_warn_flag
11422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11429 if test -z "$ac_cpp_err"; then
11430 ac_header_preproc=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_header_preproc=no
11438 rm -f conftest.err conftest.$ac_ext
11439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11440 echo "${ECHO_T}$ac_header_preproc" >&6; }
11442 # So? What about this header?
11443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11449 ac_header_preproc=yes
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11465 ## ------------------------------------ ##
11466 ## Report this to http://llvm.org/bugs/ ##
11467 ## ------------------------------------ ##
11469 ) | sed "s/^/$as_me: WARNING: /" >&2
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 eval "$as_ac_Header=\$ac_header_preproc"
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480 { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11497 for ac_func in closedir opendir readdir
11499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11513 #define $ac_func innocuous_$ac_func
11515 /* System header to define __stub macros and hopefully few prototypes,
11516 which can conflict with char $ac_func (); below.
11517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11518 <limits.h> exists even on freestanding compilers. */
11521 # include <limits.h>
11523 # include <assert.h>
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11535 /* The GNU C library defines this for functions which it implements
11536 to always fail with ENOSYS. Some functions are actually named
11537 something starting with __ and the normal name is an alias. */
11538 #if defined __stub_$ac_func || defined __stub___$ac_func
11545 return $ac_func ();
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (ac_try="$ac_link"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_link") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 eval "$as_ac_var=yes"
11586 echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 eval "$as_ac_var=no"
11592 rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
11595 ac_res=`eval echo '${'$as_ac_var'}'`
11596 { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11598 if test `eval echo '${'$as_ac_var'}'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11608 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11609 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11622 if test "$GCC" != "yes" && test "$ICC" != "yes"
11624 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11625 echo "$as_me: error: gcc|icc required but not found" >&2;}
11626 { (exit 1); exit 1; }; }
11629 if test "$GXX" != "yes" && test "$IXX" != "yes"
11631 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11632 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11633 { (exit 1); exit 1; }; }
11636 if test "$GCC" = "yes"
11638 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11646 #if !defined(__GNUC__) || __GNUC__ < 3
11647 #error Unsupported GCC version
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
11688 echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11692 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11693 { (exit 1); exit 1; }; }
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 if test -z "$llvm_cv_gnu_make_command"
11701 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11702 echo "$as_me: error: GNU Make required but not found" >&2;}
11703 { (exit 1); exit 1; }; }
11706 { echo "$as_me:$LINENO: result: ok" >&5
11707 echo "${ECHO_T}ok" >&6; }
11709 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11710 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11711 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11713 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11715 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11719 NO_MAYBE_UNINITIALIZED=
11720 if test "$GXX" = "yes"
11722 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11724 if test -z "$NO_MAYBE_UNINITIALIZED"
11726 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11730 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11731 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11734 # Check whether --with-python was given.
11735 if test "${with_python+set}" = set; then
11736 withval=$with_python; PYTHON="$withval"
11740 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11741 { echo "$as_me:$LINENO: checking for python" >&5
11742 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11743 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11744 echo "${ECHO_T}user defined: $with_python" >&6; }
11746 if test -n "$PYTHON" ; then
11747 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11748 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11751 # Extract the first word of "python python2 python26", so it can be a program name with args.
11752 set dummy python python2 python26; ac_word=$2
11753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11755 if test "${ac_cv_path_PYTHON+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11767 test -z "$as_dir" && as_dir=.
11768 for ac_exec_ext in '' $ac_executable_extensions; do
11769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11770 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11778 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11779 echo "${ECHO_T}not found" >&6; }
11780 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11781 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11782 { (exit 1); exit 1; }; }"
11786 PYTHON=$ac_cv_path_PYTHON
11787 if test -n "$PYTHON"; then
11788 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11789 echo "${ECHO_T}$PYTHON" >&6; }
11791 { echo "$as_me:$LINENO: result: no" >&5
11792 echo "${ECHO_T}no" >&6; }
11798 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11799 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11800 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11801 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11802 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11803 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11804 if test "$ac_python_version_major" -eq "2" \
11805 && test "$ac_python_version_minor" -ge "5" ; then
11806 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11807 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11809 { echo "$as_me:$LINENO: result: not found" >&5
11810 echo "${ECHO_T}not found" >&6; }
11811 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11812 See \`config.log' for more details." >&5
11813 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11814 See \`config.log' for more details." >&2;}
11815 { (exit 1); exit 1; }; }
11820 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11821 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11822 if test "${ac_cv_lib_m_sin+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 ac_check_lib_save_LIBS=$LIBS
11827 cat >conftest.$ac_ext <<_ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11834 /* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (ac_try="$ac_link"
11851 case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_link") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11864 { (case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_try") 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest$ac_exeext'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_lib_m_sin=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11891 rm -f core conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11895 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11896 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11897 if test $ac_cv_lib_m_sin = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define HAVE_LIBM 1
11906 if test "$llvm_cv_os_type" = "MingW" ; then
11908 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11909 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11910 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-limagehlp $LIBS"
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_link") 2>conftest.er1
11940 grep -v '^ *+' conftest.er1 >conftest.err
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946 { (case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_try") 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_try") 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_imagehlp_main=yes
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ac_cv_lib_imagehlp_main=no
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11977 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11978 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11979 if test $ac_cv_lib_imagehlp_main = yes; then
11980 cat >>confdefs.h <<_ACEOF
11981 #define HAVE_LIBIMAGEHLP 1
11984 LIBS="-limagehlp $LIBS"
11989 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11990 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11991 if test "${ac_cv_lib_psapi_main+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-lpsapi $LIBS"
11996 cat >conftest.$ac_ext <<_ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h. */
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (ac_try="$ac_link"
12014 case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_link") 2>conftest.er1
12021 grep -v '^ *+' conftest.er1 >conftest.err
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_lib_psapi_main=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_lib_psapi_main=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12058 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12059 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12060 if test $ac_cv_lib_psapi_main = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_LIBPSAPI 1
12065 LIBS="-lpsapi $LIBS"
12071 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12072 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12073 if test "${ac_cv_search_dlopen+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 ac_func_search_save_LIBS=$LIBS
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12099 for ac_lib in '' dl; do
12100 if test -z "$ac_lib"; then
12101 ac_res="none required"
12104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_search_dlopen=$ac_res
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext \
12150 if test "${ac_cv_search_dlopen+set}" = set; then
12154 if test "${ac_cv_search_dlopen+set}" = set; then
12157 ac_cv_search_dlopen=no
12159 rm conftest.$ac_ext
12160 LIBS=$ac_func_search_save_LIBS
12162 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12163 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12164 ac_res=$ac_cv_search_dlopen
12165 if test "$ac_res" != no; then
12166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12168 cat >>confdefs.h <<\_ACEOF
12169 #define HAVE_DLOPEN 1
12173 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12174 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12178 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12179 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12180 if test "${ac_cv_search_clock_gettime+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 ac_func_search_save_LIBS=$LIBS
12184 cat >conftest.$ac_ext <<_ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12197 char clock_gettime ();
12201 return clock_gettime ();
12206 for ac_lib in '' rt; do
12207 if test -z "$ac_lib"; then
12208 ac_res="none required"
12211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_link") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228 { (case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_try") 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest$ac_exeext'
12238 { (case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_try") 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_search_clock_gettime=$ac_res
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12255 rm -f core conftest.err conftest.$ac_objext \
12257 if test "${ac_cv_search_clock_gettime+set}" = set; then
12261 if test "${ac_cv_search_clock_gettime+set}" = set; then
12264 ac_cv_search_clock_gettime=no
12266 rm conftest.$ac_ext
12267 LIBS=$ac_func_search_save_LIBS
12269 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12270 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12271 ac_res=$ac_cv_search_clock_gettime
12272 if test "$ac_res" != no; then
12273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12278 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12279 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12280 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12281 if test "${ac_cv_search_setupterm+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 ac_func_search_save_LIBS=$LIBS
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12302 return setupterm ();
12307 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12308 if test -z "$ac_lib"; then
12309 ac_res="none required"
12312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12314 rm -f conftest.$ac_objext conftest$ac_exeext
12315 if { (ac_try="$ac_link"
12316 case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_link") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1 >conftest.err
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try='test -s conftest$ac_exeext'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_search_setupterm=$ac_res
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12356 rm -f core conftest.err conftest.$ac_objext \
12358 if test "${ac_cv_search_setupterm+set}" = set; then
12362 if test "${ac_cv_search_setupterm+set}" = set; then
12365 ac_cv_search_setupterm=no
12367 rm conftest.$ac_ext
12368 LIBS=$ac_func_search_save_LIBS
12370 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12371 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12372 ac_res=$ac_cv_search_setupterm
12373 if test "$ac_res" != no; then
12374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_TERMINFO 1
12384 if test "$llvm_cv_enable_libffi" = "yes" ; then
12385 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12386 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12387 if test "${ac_cv_search_ffi_call+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 ac_func_search_save_LIBS=$LIBS
12391 cat >conftest.$ac_ext <<_ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12408 return ffi_call ();
12413 for ac_lib in '' ffi; do
12414 if test -z "$ac_lib"; then
12415 ac_res="none required"
12418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_link") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_try") 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
12445 { (case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_try") 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_search_ffi_call=$ac_res
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12462 rm -f core conftest.err conftest.$ac_objext \
12464 if test "${ac_cv_search_ffi_call+set}" = set; then
12468 if test "${ac_cv_search_ffi_call+set}" = set; then
12471 ac_cv_search_ffi_call=no
12473 rm conftest.$ac_ext
12474 LIBS=$ac_func_search_save_LIBS
12476 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12477 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12478 ac_res=$ac_cv_search_ffi_call
12479 if test "$ac_res" != no; then
12480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12482 cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_FFI_CALL 1
12487 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12488 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12489 { (exit 1); exit 1; }; }
12494 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12495 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12496 if test "${ac_cv_search_mallinfo+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_func_search_save_LIBS=$LIBS
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12517 return mallinfo ();
12522 for ac_lib in '' malloc; do
12523 if test -z "$ac_lib"; then
12524 ac_res="none required"
12527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1 >conftest.err
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } &&
12543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_search_mallinfo=$ac_res
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12571 rm -f core conftest.err conftest.$ac_objext \
12573 if test "${ac_cv_search_mallinfo+set}" = set; then
12577 if test "${ac_cv_search_mallinfo+set}" = set; then
12580 ac_cv_search_mallinfo=no
12582 rm conftest.$ac_ext
12583 LIBS=$ac_func_search_save_LIBS
12585 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12586 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12587 ac_res=$ac_cv_search_mallinfo
12588 if test "$ac_res" != no; then
12589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12591 cat >>confdefs.h <<\_ACEOF
12592 #define HAVE_MALLINFO 1
12598 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12600 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12601 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12602 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lpthread $LIBS"
12607 cat >conftest.$ac_ext <<_ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h. */
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12620 char pthread_mutex_init ();
12624 return pthread_mutex_init ();
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_link") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644 { (case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_try") 2>&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest$ac_exeext'
12654 { (case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_try") 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 ac_cv_lib_pthread_pthread_mutex_init=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_cv_lib_pthread_pthread_mutex_init=no
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12675 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12676 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12677 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12678 cat >>confdefs.h <<_ACEOF
12679 #define HAVE_LIBPTHREAD 1
12682 LIBS="-lpthread $LIBS"
12686 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12687 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12688 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_func_search_save_LIBS=$LIBS
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12705 char pthread_mutex_lock ();
12709 return pthread_mutex_lock ();
12714 for ac_lib in '' pthread; do
12715 if test -z "$ac_lib"; then
12716 ac_res="none required"
12719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_cv_search_pthread_mutex_lock=$ac_res
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12763 rm -f core conftest.err conftest.$ac_objext \
12765 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12769 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12772 ac_cv_search_pthread_mutex_lock=no
12774 rm conftest.$ac_ext
12775 LIBS=$ac_func_search_save_LIBS
12777 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12778 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12779 ac_res=$ac_cv_search_pthread_mutex_lock
12780 if test "$ac_res" != no; then
12781 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12783 cat >>confdefs.h <<\_ACEOF
12784 #define HAVE_PTHREAD_MUTEX_LOCK 1
12789 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12790 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12791 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 ac_func_search_save_LIBS=$LIBS
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12802 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */
12808 char pthread_rwlock_init ();
12812 return pthread_rwlock_init ();
12817 for ac_lib in '' pthread; do
12818 if test -z "$ac_lib"; then
12819 ac_res="none required"
12822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (ac_try="$ac_link"
12826 case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_link") 2>conftest.er1
12833 grep -v '^ *+' conftest.er1 >conftest.err
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12839 { (case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12844 (eval "$ac_try") 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } &&
12848 { ac_try='test -s conftest$ac_exeext'
12849 { (case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_try") 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_search_pthread_rwlock_init=$ac_res
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12866 rm -f core conftest.err conftest.$ac_objext \
12868 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12872 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12875 ac_cv_search_pthread_rwlock_init=no
12877 rm conftest.$ac_ext
12878 LIBS=$ac_func_search_save_LIBS
12880 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12881 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12882 ac_res=$ac_cv_search_pthread_rwlock_init
12883 if test "$ac_res" != no; then
12884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_PTHREAD_RWLOCK_INIT 1
12892 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12893 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12894 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 ac_func_search_save_LIBS=$LIBS
12898 cat >conftest.$ac_ext <<_ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12911 char pthread_getspecific ();
12915 return pthread_getspecific ();
12920 for ac_lib in '' pthread; do
12921 if test -z "$ac_lib"; then
12922 ac_res="none required"
12925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12927 rm -f conftest.$ac_objext conftest$ac_exeext
12928 if { (ac_try="$ac_link"
12929 case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12942 { (case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_try") 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (case "(($ac_try" in
12953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_try") 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_search_pthread_getspecific=$ac_res
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12969 rm -f core conftest.err conftest.$ac_objext \
12971 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12975 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12978 ac_cv_search_pthread_getspecific=no
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12983 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12984 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12985 ac_res=$ac_cv_search_pthread_getspecific
12986 if test "$ac_res" != no; then
12987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989 cat >>confdefs.h <<\_ACEOF
12990 #define HAVE_PTHREAD_GETSPECIFIC 1
12997 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12999 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13000 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13001 if test "${ac_cv_lib_z_compress2+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 ac_check_lib_save_LIBS=$LIBS
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13013 /* Override any GCC internal prototype to avoid an error.
13014 Use char because int might match the return type of a GCC
13015 builtin and then its argument prototype would still apply. */
13023 return compress2 ();
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_try") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_lib_z_compress2=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_cv_lib_z_compress2=no
13070 rm -f core conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072 LIBS=$ac_check_lib_save_LIBS
13074 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13075 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13076 if test $ac_cv_lib_z_compress2 = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define HAVE_LIBZ 1
13088 # Check whether --with-udis86 was given.
13089 if test "${with_udis86+set}" = set; then
13090 withval=$with_udis86;
13095 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13098 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13099 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13100 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-ludis86 $LIBS"
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_udis86_ud_init=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_lib_udis86_ud_init=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13174 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13175 if test $ac_cv_lib_udis86_ud_init = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177 #define HAVE_LIBUDIS86 1
13180 LIBS="-ludis86 $LIBS"
13184 echo "Error! You need to have libudis86 around."
13196 cat >>confdefs.h <<_ACEOF
13197 #define USE_UDIS86 $USE_UDIS86
13202 # Check whether --with-oprofile was given.
13203 if test "${with_oprofile+set}" = set; then
13204 withval=$with_oprofile;
13208 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13209 no) llvm_cv_oppath=
13212 *) llvm_cv_oppath="${withval}/lib/oprofile"
13213 CPPFLAGS="-I${withval}/include";;
13215 case $llvm_cv_os_type in
13217 if test -n "$llvm_cv_oppath" ; then
13218 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13219 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13220 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13221 if test "${ac_cv_search_bfd_init+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13224 ac_func_search_save_LIBS=$LIBS
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13242 return bfd_init ();
13247 for ac_lib in '' bfd; do
13248 if test -z "$ac_lib"; then
13249 ac_res="none required"
13252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13254 rm -f conftest.$ac_objext conftest$ac_exeext
13255 if { (ac_try="$ac_link"
13256 case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_link") 2>conftest.er1
13263 grep -v '^ *+' conftest.er1 >conftest.err
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_search_bfd_init=$ac_res
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13296 rm -f core conftest.err conftest.$ac_objext \
13298 if test "${ac_cv_search_bfd_init+set}" = set; then
13302 if test "${ac_cv_search_bfd_init+set}" = set; then
13305 ac_cv_search_bfd_init=no
13307 rm conftest.$ac_ext
13308 LIBS=$ac_func_search_save_LIBS
13310 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13311 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13312 ac_res=$ac_cv_search_bfd_init
13313 if test "$ac_res" != no; then
13314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13318 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13319 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13320 if test "${ac_cv_search_op_open_agent+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_func_search_save_LIBS=$LIBS
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13337 char op_open_agent ();
13341 return op_open_agent ();
13346 for ac_lib in '' opagent; do
13347 if test -z "$ac_lib"; then
13348 ac_res="none required"
13351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13353 rm -f conftest.$ac_objext conftest$ac_exeext
13354 if { (ac_try="$ac_link"
13355 case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_link") 2>conftest.er1
13362 grep -v '^ *+' conftest.er1 >conftest.err
13364 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest$ac_exeext'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_search_op_open_agent=$ac_res
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13395 rm -f core conftest.err conftest.$ac_objext \
13397 if test "${ac_cv_search_op_open_agent+set}" = set; then
13401 if test "${ac_cv_search_op_open_agent+set}" = set; then
13404 ac_cv_search_op_open_agent=no
13406 rm conftest.$ac_ext
13407 LIBS=$ac_func_search_save_LIBS
13409 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13410 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13411 ac_res=$ac_cv_search_op_open_agent
13412 if test "$ac_res" != no; then
13413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417 echo "Error! You need to have libopagent around."
13422 if test "${ac_cv_header_opagent_h+set}" = set; then
13423 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13424 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13425 if test "${ac_cv_header_opagent_h+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13429 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13431 # Is the header compilable?
13432 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13433 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13441 #include <opagent.h>
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_compile") 2>conftest.er1
13452 grep -v '^ *+' conftest.er1 >conftest.err
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13458 { (case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_try") 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } &&
13467 { ac_try='test -s conftest.$ac_objext'
13468 { (case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_try") 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler=yes
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_header_compiler=no
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13487 echo "${ECHO_T}$ac_header_compiler" >&6; }
13489 # Is the header present?
13490 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13491 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <opagent.h>
13500 if { (ac_try="$ac_cpp conftest.$ac_ext"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13508 grep -v '^ *+' conftest.er1 >conftest.err
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } >/dev/null; then
13513 if test -s conftest.err; then
13514 ac_cpp_err=$ac_c_preproc_warn_flag
13515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13522 if test -z "$ac_cpp_err"; then
13523 ac_header_preproc=yes
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 ac_header_preproc=no
13531 rm -f conftest.err conftest.$ac_ext
13532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13533 echo "${ECHO_T}$ac_header_preproc" >&6; }
13535 # So? What about this header?
13536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13538 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13539 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13540 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13541 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13542 ac_header_preproc=yes
13545 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13546 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13548 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13550 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13552 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13554 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13556 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13558 ## ------------------------------------ ##
13559 ## Report this to http://llvm.org/bugs/ ##
13560 ## ------------------------------------ ##
13562 ) | sed "s/^/$as_me: WARNING: /" >&2
13565 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13567 if test "${ac_cv_header_opagent_h+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 ac_cv_header_opagent_h=$ac_header_preproc
13572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576 if test $ac_cv_header_opagent_h = yes; then
13580 echo "Error! You need to have opagent.h around."
13588 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13589 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13590 { (exit 1); exit 1; }; } ;;
13601 cat >>confdefs.h <<_ACEOF
13602 #define LLVM_USE_OPROFILE $USE_OPROFILE
13607 # Check whether --with-intel-jitevents was given.
13608 if test "${with_intel_jitevents+set}" = set; then
13609 withval=$with_intel_jitevents;
13611 yes) USE_INTEL_JITEVENTS=1
13613 no) USE_INTEL_JITEVENTS=0
13615 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13616 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13617 { (exit 1); exit 1; }; };;
13620 case $llvm_cv_os_type in
13621 Linux|Win32|Cygwin|MingW) ;;
13622 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13623 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13624 { (exit 1); exit 1; }; };;
13627 case "$llvm_cv_target_arch" in
13629 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13630 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13631 { (exit 1); exit 1; }; };;
13636 USE_INTEL_JITEVENTS=0
13642 cat >>confdefs.h <<_ACEOF
13643 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13647 for ac_prog in xml2-config
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13653 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 if test -n "$XML2CONFIG"; then
13657 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13666 ac_cv_prog_XML2CONFIG="$ac_prog"
13667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13677 if test -n "$XML2CONFIG"; then
13678 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13679 echo "${ECHO_T}$XML2CONFIG" >&6; }
13681 { echo "$as_me:$LINENO: result: no" >&5
13682 echo "${ECHO_T}no" >&6; }
13686 test -n "$XML2CONFIG" && break
13690 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13691 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13692 if test "x$XML2CONFIG" = "x"; then
13693 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13694 echo "${ECHO_T}xml2-config not found" >&6; }
13696 LIBXML2_INC=`$XML2CONFIG --cflags`
13697 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13698 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13699 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13700 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13701 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 ac_check_lib_save_LIBS=$LIBS
13705 LIBS="-lxml2 $LIBS"
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 /* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
13719 char xmlReadFile ();
13723 return xmlReadFile ();
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (ac_try="$ac_link"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_link") 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743 { (case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_try") 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_lib_xml2_xmlReadFile=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_cv_lib_xml2_xmlReadFile=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 LIBS=$ac_check_lib_save_LIBS
13774 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13775 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13776 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13778 cat >>confdefs.h <<\_ACEOF
13779 #define CLANG_HAVE_LIBXML 1
13782 LIBXML2_LIBS="-lxml2"
13795 ac_header_dirent=no
13796 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13797 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13798 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13799 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 #include <sys/types.h>
13821 rm -f conftest.$ac_objext
13822 if { (ac_try="$ac_compile"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13830 grep -v '^ *+' conftest.er1 >conftest.err
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13836 { (case "(($ac_try" in
13837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_try") 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_try") 2>&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; }; then
13855 eval "$as_ac_Header=yes"
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 eval "$as_ac_Header=no"
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 ac_res=`eval echo '${'$as_ac_Header'}'`
13866 { echo "$as_me:$LINENO: result: $ac_res" >&5
13867 echo "${ECHO_T}$ac_res" >&6; }
13868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13869 cat >>confdefs.h <<_ACEOF
13870 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13873 ac_header_dirent=$ac_hdr; break
13877 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13878 if test $ac_header_dirent = dirent.h; then
13879 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13881 if test "${ac_cv_search_opendir+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 ac_func_search_save_LIBS=$LIBS
13885 cat >conftest.$ac_ext <<_ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13892 /* Override any GCC internal prototype to avoid an error.
13893 Use char because int might match the return type of a GCC
13894 builtin and then its argument prototype would still apply. */
13907 for ac_lib in '' dir; do
13908 if test -z "$ac_lib"; then
13909 ac_res="none required"
13912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest$ac_exeext'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_search_opendir=$ac_res
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13956 rm -f core conftest.err conftest.$ac_objext \
13958 if test "${ac_cv_search_opendir+set}" = set; then
13962 if test "${ac_cv_search_opendir+set}" = set; then
13965 ac_cv_search_opendir=no
13967 rm conftest.$ac_ext
13968 LIBS=$ac_func_search_save_LIBS
13970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13972 ac_res=$ac_cv_search_opendir
13973 if test "$ac_res" != no; then
13974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13979 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13980 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13981 if test "${ac_cv_search_opendir+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 ac_func_search_save_LIBS=$LIBS
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13992 /* Override any GCC internal prototype to avoid an error.
13993 Use char because int might match the return type of a GCC
13994 builtin and then its argument prototype would still apply. */
14007 for ac_lib in '' x; do
14008 if test -z "$ac_lib"; then
14009 ac_res="none required"
14012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_link") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14029 { (case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_try") 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; } &&
14038 { ac_try='test -s conftest$ac_exeext'
14039 { (case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_try") 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_cv_search_opendir=$ac_res
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14056 rm -f core conftest.err conftest.$ac_objext \
14058 if test "${ac_cv_search_opendir+set}" = set; then
14062 if test "${ac_cv_search_opendir+set}" = set; then
14065 ac_cv_search_opendir=no
14067 rm conftest.$ac_ext
14068 LIBS=$ac_func_search_save_LIBS
14070 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14071 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14072 ac_res=$ac_cv_search_opendir
14073 if test "$ac_res" != no; then
14074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14080 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14081 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14082 if test "${ac_cv_header_mmap_anon+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 ac_cpp='$CPP $CPPFLAGS'
14087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <sys/mman.h>
14098 #include <unistd.h>
14103 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_compile") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_header_mmap_anon=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_header_mmap_anon=no
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 ac_cpp='$CPP $CPPFLAGS'
14153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14160 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14161 if test "$ac_cv_header_mmap_anon" = yes; then
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_MMAP_ANONYMOUS 1
14169 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14170 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14171 if test "${ac_cv_header_stat_broken+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 #include <sys/types.h>
14181 #include <sys/stat.h>
14183 #if defined S_ISBLK && defined S_IFDIR
14184 # if S_ISBLK (S_IFDIR)
14189 #if defined S_ISBLK && defined S_IFCHR
14190 # if S_ISBLK (S_IFCHR)
14195 #if defined S_ISLNK && defined S_IFREG
14196 # if S_ISLNK (S_IFREG)
14201 #if defined S_ISSOCK && defined S_IFREG
14202 # if S_ISSOCK (S_IFREG)
14208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14209 $EGREP "You lose" >/dev/null 2>&1; then
14210 ac_cv_header_stat_broken=yes
14212 ac_cv_header_stat_broken=no
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14218 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14219 if test $ac_cv_header_stat_broken = yes; then
14221 cat >>confdefs.h <<\_ACEOF
14222 #define STAT_MACROS_BROKEN 1
14227 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14228 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/types.h>
14239 #include <sys/wait.h>
14240 #ifndef WEXITSTATUS
14241 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14244 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14252 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_compile") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_cv_header_sys_wait_h=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_cv_header_sys_wait_h=no
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14303 if test $ac_cv_header_sys_wait_h = yes; then
14305 cat >>confdefs.h <<\_ACEOF
14306 #define HAVE_SYS_WAIT_H 1
14311 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14313 if test "${ac_cv_header_time+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <sys/types.h>
14323 #include <sys/time.h>
14329 if ((struct tm *) 0)
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14350 { (case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_try") 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; } &&
14359 { ac_try='test -s conftest.$ac_objext'
14360 { (case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_try") 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_header_time=yes
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 ac_cv_header_time=no
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14379 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14380 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14381 if test $ac_cv_header_time = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define TIME_WITH_SYS_TIME 1
14391 ac_cpp='$CXXCPP $CPPFLAGS'
14392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14397 ac_cpp='$CXXCPP $CPPFLAGS'
14398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14401 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14402 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14403 if test -z "$CXXCPP"; then
14404 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 # Double quotes because CXXCPP needs to be expanded
14408 for CXXCPP in "$CXX -E" "/lib/cpp"
14410 ac_preproc_ok=false
14411 for ac_cxx_preproc_warn_flag in '' yes
14413 # Use a header file that comes with gcc, so configuring glibc
14414 # with a fresh cross-compiler works.
14415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14416 # <limits.h> exists even on freestanding compilers.
14417 # On the NeXT, cc -E runs the code through the compiler's parser,
14418 # not just through cpp. "Syntax error" is here to catch this case.
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14426 # include <limits.h>
14428 # include <assert.h>
14432 if { (ac_try="$ac_cpp conftest.$ac_ext"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } >/dev/null; then
14445 if test -s conftest.err; then
14446 ac_cpp_err=$ac_cxx_preproc_warn_flag
14447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14454 if test -z "$ac_cpp_err"; then
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14460 # Broken: fails on valid input.
14464 rm -f conftest.err conftest.$ac_ext
14466 # OK, works on sane cases. Now check whether nonexistent headers
14467 # can be detected and how.
14468 cat >conftest.$ac_ext <<_ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #include <ac_nonexistent.h>
14476 if { (ac_try="$ac_cpp conftest.$ac_ext"
14477 case "(($ac_try" in
14478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14479 *) ac_try_echo=$ac_try;;
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484 grep -v '^ *+' conftest.er1 >conftest.err
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } >/dev/null; then
14489 if test -s conftest.err; then
14490 ac_cpp_err=$ac_cxx_preproc_warn_flag
14491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14498 if test -z "$ac_cpp_err"; then
14499 # Broken: success on invalid input.
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 # Passes both tests.
14510 rm -f conftest.err conftest.$ac_ext
14513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14514 rm -f conftest.err conftest.$ac_ext
14515 if $ac_preproc_ok; then
14520 ac_cv_prog_CXXCPP=$CXXCPP
14523 CXXCPP=$ac_cv_prog_CXXCPP
14525 ac_cv_prog_CXXCPP=$CXXCPP
14527 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14528 echo "${ECHO_T}$CXXCPP" >&6; }
14529 ac_preproc_ok=false
14530 for ac_cxx_preproc_warn_flag in '' yes
14532 # Use a header file that comes with gcc, so configuring glibc
14533 # with a fresh cross-compiler works.
14534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14535 # <limits.h> exists even on freestanding compilers.
14536 # On the NeXT, cc -E runs the code through the compiler's parser,
14537 # not just through cpp. "Syntax error" is here to catch this case.
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 # include <limits.h>
14547 # include <assert.h>
14551 if { (ac_try="$ac_cpp conftest.$ac_ext"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14559 grep -v '^ *+' conftest.er1 >conftest.err
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } >/dev/null; then
14564 if test -s conftest.err; then
14565 ac_cpp_err=$ac_cxx_preproc_warn_flag
14566 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14573 if test -z "$ac_cpp_err"; then
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 # Broken: fails on valid input.
14583 rm -f conftest.err conftest.$ac_ext
14585 # OK, works on sane cases. Now check whether nonexistent headers
14586 # can be detected and how.
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <ac_nonexistent.h>
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev/null; then
14608 if test -s conftest.err; then
14609 ac_cpp_err=$ac_cxx_preproc_warn_flag
14610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14617 if test -z "$ac_cpp_err"; then
14618 # Broken: success on invalid input.
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 # Passes both tests.
14629 rm -f conftest.err conftest.$ac_ext
14632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14633 rm -f conftest.err conftest.$ac_ext
14634 if $ac_preproc_ok; then
14637 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14638 See \`config.log' for more details." >&5
14639 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14640 See \`config.log' for more details." >&2;}
14641 { (exit 1); exit 1; }; }
14645 ac_cpp='$CXXCPP $CPPFLAGS'
14646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14652 for ac_header in cxxabi.h
14654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 ac_res=`eval echo '${'$as_ac_Header'}'`
14662 { echo "$as_me:$LINENO: result: $ac_res" >&5
14663 echo "${ECHO_T}$ac_res" >&6; }
14665 # Is the header compilable?
14666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14675 #include <$ac_header>
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14692 { (case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_try") 2>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest.$ac_objext'
14702 { (case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_try") 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_header_compiler=yes
14713 echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14716 ac_header_compiler=no
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14721 echo "${ECHO_T}$ac_header_compiler" >&6; }
14723 # Is the header present?
14724 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 #include <$ac_header>
14734 if { (ac_try="$ac_cpp conftest.$ac_ext"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } >/dev/null; then
14747 if test -s conftest.err; then
14748 ac_cpp_err=$ac_cxx_preproc_warn_flag
14749 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14756 if test -z "$ac_cpp_err"; then
14757 ac_header_preproc=yes
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14762 ac_header_preproc=no
14765 rm -f conftest.err conftest.$ac_ext
14766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14767 echo "${ECHO_T}$ac_header_preproc" >&6; }
14769 # So? What about this header?
14770 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14776 ac_header_preproc=yes
14779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14792 ## ------------------------------------ ##
14793 ## Report this to http://llvm.org/bugs/ ##
14794 ## ------------------------------------ ##
14796 ) | sed "s/^/$as_me: WARNING: /" >&2
14799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 eval "$as_ac_Header=\$ac_header_preproc"
14806 ac_res=`eval echo '${'$as_ac_Header'}'`
14807 { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14812 cat >>confdefs.h <<_ACEOF
14813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14821 ac_cpp='$CPP $CPPFLAGS'
14822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14831 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_res=`eval echo '${'$as_ac_Header'}'`
14841 { echo "$as_me:$LINENO: result: $ac_res" >&5
14842 echo "${ECHO_T}$ac_res" >&6; }
14844 # Is the header compilable?
14845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14847 cat >conftest.$ac_ext <<_ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14854 #include <$ac_header>
14856 rm -f conftest.$ac_objext
14857 if { (ac_try="$ac_compile"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_compile") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1 >conftest.err
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871 { (case "(($ac_try" in
14872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_try") 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_try") 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_header_compiler=yes
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14895 ac_header_compiler=no
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14900 echo "${ECHO_T}$ac_header_compiler" >&6; }
14902 # Is the header present?
14903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <$ac_header>
14913 if { (ac_try="$ac_cpp conftest.$ac_ext"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } >/dev/null; then
14926 if test -s conftest.err; then
14927 ac_cpp_err=$ac_c_preproc_warn_flag
14928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14935 if test -z "$ac_cpp_err"; then
14936 ac_header_preproc=yes
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_header_preproc=no
14944 rm -f conftest.err conftest.$ac_ext
14945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14946 echo "${ECHO_T}$ac_header_preproc" >&6; }
14948 # So? What about this header?
14949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14955 ac_header_preproc=yes
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14971 ## ------------------------------------ ##
14972 ## Report this to http://llvm.org/bugs/ ##
14973 ## ------------------------------------ ##
14975 ) | sed "s/^/$as_me: WARNING: /" >&2
14978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 eval "$as_ac_Header=\$ac_header_preproc"
14985 ac_res=`eval echo '${'$as_ac_Header'}'`
14986 { echo "$as_me:$LINENO: result: $ac_res" >&5
14987 echo "${ECHO_T}$ac_res" >&6; }
14990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14991 cat >>confdefs.h <<_ACEOF
14992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15005 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 ac_res=`eval echo '${'$as_ac_Header'}'`
15015 { echo "$as_me:$LINENO: result: $ac_res" >&5
15016 echo "${ECHO_T}$ac_res" >&6; }
15018 # Is the header compilable?
15019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 $ac_includes_default
15028 #include <$ac_header>
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_compile") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_header_compiler=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_header_compiler=no
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15074 echo "${ECHO_T}$ac_header_compiler" >&6; }
15076 # Is the header present?
15077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 #include <$ac_header>
15087 if { (ac_try="$ac_cpp conftest.$ac_ext"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } >/dev/null; then
15100 if test -s conftest.err; then
15101 ac_cpp_err=$ac_c_preproc_warn_flag
15102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15109 if test -z "$ac_cpp_err"; then
15110 ac_header_preproc=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_preproc=no
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122 # So? What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15129 ac_header_preproc=yes
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15145 ## ------------------------------------ ##
15146 ## Report this to http://llvm.org/bugs/ ##
15147 ## ------------------------------------ ##
15149 ) | sed "s/^/$as_me: WARNING: /" >&2
15152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 eval "$as_ac_Header=\$ac_header_preproc"
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160 { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15174 for ac_header in utime.h
15176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 ac_res=`eval echo '${'$as_ac_Header'}'`
15184 { echo "$as_me:$LINENO: result: $ac_res" >&5
15185 echo "${ECHO_T}$ac_res" >&6; }
15187 # Is the header compilable?
15188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <$ac_header>
15199 rm -f conftest.$ac_objext
15200 if { (ac_try="$ac_compile"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_compile") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest.$ac_objext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_header_compiler=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_compiler=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <$ac_header>
15256 if { (ac_try="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15264 grep -v '^ *+' conftest.er1 >conftest.err
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null; then
15269 if test -s conftest.err; then
15270 ac_cpp_err=$ac_c_preproc_warn_flag
15271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15278 if test -z "$ac_cpp_err"; then
15279 ac_header_preproc=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_preproc=no
15287 rm -f conftest.err conftest.$ac_ext
15288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15289 echo "${ECHO_T}$ac_header_preproc" >&6; }
15291 # So? What about this header?
15292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15298 ac_header_preproc=yes
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15314 ## ------------------------------------ ##
15315 ## Report this to http://llvm.org/bugs/ ##
15316 ## ------------------------------------ ##
15318 ) | sed "s/^/$as_me: WARNING: /" >&2
15321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 eval "$as_ac_Header=\$ac_header_preproc"
15328 ac_res=`eval echo '${'$as_ac_Header'}'`
15329 { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15334 cat >>confdefs.h <<_ACEOF
15335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15347 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15354 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 ac_res=`eval echo '${'$as_ac_Header'}'`
15357 { echo "$as_me:$LINENO: result: $ac_res" >&5
15358 echo "${ECHO_T}$ac_res" >&6; }
15360 # Is the header compilable?
15361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15363 cat >conftest.$ac_ext <<_ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h. */
15369 $ac_includes_default
15370 #include <$ac_header>
15372 rm -f conftest.$ac_objext
15373 if { (ac_try="$ac_compile"
15374 case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_compile") 2>conftest.er1
15381 grep -v '^ *+' conftest.er1 >conftest.err
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387 { (case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_try") 2>&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; } &&
15396 { ac_try='test -s conftest.$ac_objext'
15397 { (case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_try") 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 ac_header_compiler=yes
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_header_compiler=no
15414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6; }
15418 # Is the header present?
15419 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15421 cat >conftest.$ac_ext <<_ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 #include <$ac_header>
15429 if { (ac_try="$ac_cpp conftest.$ac_ext"
15430 case "(($ac_try" in
15431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15432 *) ac_try_echo=$ac_try;;
15434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437 grep -v '^ *+' conftest.er1 >conftest.err
15439 cat conftest.err >&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); } >/dev/null; then
15442 if test -s conftest.err; then
15443 ac_cpp_err=$ac_c_preproc_warn_flag
15444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15451 if test -z "$ac_cpp_err"; then
15452 ac_header_preproc=yes
15454 echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 ac_header_preproc=no
15460 rm -f conftest.err conftest.$ac_ext
15461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15462 echo "${ECHO_T}$ac_header_preproc" >&6; }
15464 # So? What about this header?
15465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15471 ac_header_preproc=yes
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15487 ## ------------------------------------ ##
15488 ## Report this to http://llvm.org/bugs/ ##
15489 ## ------------------------------------ ##
15491 ) | sed "s/^/$as_me: WARNING: /" >&2
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 eval "$as_ac_Header=\$ac_header_preproc"
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15518 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15531 # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 #include <$ac_header>
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15622 if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_header_preproc=no
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15635 # So? What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15658 ## ------------------------------------ ##
15659 ## Report this to http://llvm.org/bugs/ ##
15660 ## ------------------------------------ ##
15662 ) | sed "s/^/$as_me: WARNING: /" >&2
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 eval "$as_ac_Header=\$ac_header_preproc"
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678 cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15687 for ac_header in valgrind/valgrind.h
15689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 ac_res=`eval echo '${'$as_ac_Header'}'`
15697 { echo "$as_me:$LINENO: result: $ac_res" >&5
15698 echo "${ECHO_T}$ac_res" >&6; }
15700 # Is the header compilable?
15701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 $ac_includes_default
15710 #include <$ac_header>
15712 rm -f conftest.$ac_objext
15713 if { (ac_try="$ac_compile"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_compile") 2>conftest.er1
15721 grep -v '^ *+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } &&
15726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15727 { (case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_try") 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } &&
15736 { ac_try='test -s conftest.$ac_objext'
15737 { (case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_try") 2>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_header_compiler=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_header_compiler=no
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15756 echo "${ECHO_T}$ac_header_compiler" >&6; }
15758 # Is the header present?
15759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 #include <$ac_header>
15769 if { (ac_try="$ac_cpp conftest.$ac_ext"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15777 grep -v '^ *+' conftest.er1 >conftest.err
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } >/dev/null; then
15782 if test -s conftest.err; then
15783 ac_cpp_err=$ac_c_preproc_warn_flag
15784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15791 if test -z "$ac_cpp_err"; then
15792 ac_header_preproc=yes
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ac_header_preproc=no
15800 rm -f conftest.err conftest.$ac_ext
15801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15802 echo "${ECHO_T}$ac_header_preproc" >&6; }
15804 # So? What about this header?
15805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15811 ac_header_preproc=yes
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15827 ## ------------------------------------ ##
15828 ## Report this to http://llvm.org/bugs/ ##
15829 ## ------------------------------------ ##
15831 ) | sed "s/^/$as_me: WARNING: /" >&2
15834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 eval "$as_ac_Header=\$ac_header_preproc"
15841 ac_res=`eval echo '${'$as_ac_Header'}'`
15842 { echo "$as_me:$LINENO: result: $ac_res" >&5
15843 echo "${ECHO_T}$ac_res" >&6; }
15846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15856 for ac_header in fenv.h
15858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 ac_res=`eval echo '${'$as_ac_Header'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15869 # Is the header compilable?
15870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <$ac_header>
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_compile") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
15895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15896 { (case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_try") 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_header_compiler=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_compiler=no
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev/null; then
15951 if test -s conftest.err; then
15952 ac_cpp_err=$ac_c_preproc_warn_flag
15953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15960 if test -z "$ac_cpp_err"; then
15961 ac_header_preproc=yes
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_header_preproc=no
15969 rm -f conftest.err conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15971 echo "${ECHO_T}$ac_header_preproc" >&6; }
15973 # So? What about this header?
15974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15980 ac_header_preproc=yes
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15996 ## ------------------------------------ ##
15997 ## Report this to http://llvm.org/bugs/ ##
15998 ## ------------------------------------ ##
16000 ) | sed "s/^/$as_me: WARNING: /" >&2
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 eval "$as_ac_Header=\$ac_header_preproc"
16010 ac_res=`eval echo '${'$as_ac_Header'}'`
16011 { echo "$as_me:$LINENO: result: $ac_res" >&5
16012 echo "${ECHO_T}$ac_res" >&6; }
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16024 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16025 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16026 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16040 #ifndef FE_ALL_EXCEPT
16041 char *p = (char *) FE_ALL_EXCEPT;
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest.$ac_objext'
16074 { (case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_try") 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_have_decl_FE_ALL_EXCEPT=no
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16094 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16095 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_DECL_FE_ALL_EXCEPT 1
16103 cat >>confdefs.h <<_ACEOF
16104 #define HAVE_DECL_FE_ALL_EXCEPT 0
16109 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16110 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16111 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16126 char *p = (char *) FE_INEXACT;
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_compile") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_cv_have_decl_FE_INEXACT=yes
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ac_cv_have_decl_FE_INEXACT=no
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16179 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16180 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_DECL_FE_INEXACT 1
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL_FE_INEXACT 0
16196 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16198 for ac_header in pthread.h
16200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 ac_res=`eval echo '${'$as_ac_Header'}'`
16208 { echo "$as_me:$LINENO: result: $ac_res" >&5
16209 echo "${ECHO_T}$ac_res" >&6; }
16211 # Is the header compilable?
16212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16214 cat >conftest.$ac_ext <<_ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 $ac_includes_default
16221 #include <$ac_header>
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_header_compiler=yes
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_header_compiler=no
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16267 echo "${ECHO_T}$ac_header_compiler" >&6; }
16269 # Is the header present?
16270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16278 #include <$ac_header>
16280 if { (ac_try="$ac_cpp conftest.$ac_ext"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } >/dev/null; then
16293 if test -s conftest.err; then
16294 ac_cpp_err=$ac_c_preproc_warn_flag
16295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16302 if test -z "$ac_cpp_err"; then
16303 ac_header_preproc=yes
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_header_preproc=no
16311 rm -f conftest.err conftest.$ac_ext
16312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16313 echo "${ECHO_T}$ac_header_preproc" >&6; }
16315 # So? What about this header?
16316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16322 ac_header_preproc=yes
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16338 ## ------------------------------------ ##
16339 ## Report this to http://llvm.org/bugs/ ##
16340 ## ------------------------------------ ##
16342 ) | sed "s/^/$as_me: WARNING: /" >&2
16345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 eval "$as_ac_Header=\$ac_header_preproc"
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16374 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16376 for ac_header in zlib.h
16378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 ac_res=`eval echo '${'$as_ac_Header'}'`
16386 { echo "$as_me:$LINENO: result: $ac_res" >&5
16387 echo "${ECHO_T}$ac_res" >&6; }
16389 # Is the header compilable?
16390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 $ac_includes_default
16399 #include <$ac_header>
16401 rm -f conftest.$ac_objext
16402 if { (ac_try="$ac_compile"
16403 case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_compile") 2>conftest.er1
16410 grep -v '^ *+' conftest.er1 >conftest.err
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try='test -s conftest.$ac_objext'
16426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_header_compiler=yes
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_header_compiler=no
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16445 echo "${ECHO_T}$ac_header_compiler" >&6; }
16447 # Is the header present?
16448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 #include <$ac_header>
16458 if { (ac_try="$ac_cpp conftest.$ac_ext"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } >/dev/null; then
16471 if test -s conftest.err; then
16472 ac_cpp_err=$ac_c_preproc_warn_flag
16473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16480 if test -z "$ac_cpp_err"; then
16481 ac_header_preproc=yes
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_header_preproc=no
16489 rm -f conftest.err conftest.$ac_ext
16490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 echo "${ECHO_T}$ac_header_preproc" >&6; }
16493 # So? What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16516 ## ------------------------------------ ##
16517 ## Report this to http://llvm.org/bugs/ ##
16518 ## ------------------------------------ ##
16520 ) | sed "s/^/$as_me: WARNING: /" >&2
16523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 eval "$as_ac_Header=\$ac_header_preproc"
16530 ac_res=`eval echo '${'$as_ac_Header'}'`
16531 { echo "$as_me:$LINENO: result: $ac_res" >&5
16532 echo "${ECHO_T}$ac_res" >&6; }
16535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16553 if test "$llvm_cv_enable_libffi" = "yes" ; then
16556 for ac_header in ffi.h ffi/ffi.h
16558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16565 ac_res=`eval echo '${'$as_ac_Header'}'`
16566 { echo "$as_me:$LINENO: result: $ac_res" >&5
16567 echo "${ECHO_T}$ac_res" >&6; }
16569 # Is the header compilable?
16570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 $ac_includes_default
16579 #include <$ac_header>
16581 rm -f conftest.$ac_objext
16582 if { (ac_try="$ac_compile"
16583 case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_compile") 2>conftest.er1
16590 grep -v '^ *+' conftest.er1 >conftest.err
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_header_compiler=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_header_compiler=no
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625 echo "${ECHO_T}$ac_header_compiler" >&6; }
16627 # Is the header present?
16628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16630 cat >conftest.$ac_ext <<_ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 #include <$ac_header>
16638 if { (ac_try="$ac_cpp conftest.$ac_ext"
16639 case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16646 grep -v '^ *+' conftest.er1 >conftest.err
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } >/dev/null; then
16651 if test -s conftest.err; then
16652 ac_cpp_err=$ac_c_preproc_warn_flag
16653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16660 if test -z "$ac_cpp_err"; then
16661 ac_header_preproc=yes
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_header_preproc=no
16669 rm -f conftest.err conftest.$ac_ext
16670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16671 echo "${ECHO_T}$ac_header_preproc" >&6; }
16673 # So? What about this header?
16674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16680 ac_header_preproc=yes
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16696 ## ------------------------------------ ##
16697 ## Report this to http://llvm.org/bugs/ ##
16698 ## ------------------------------------ ##
16700 ) | sed "s/^/$as_me: WARNING: /" >&2
16703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16708 eval "$as_ac_Header=\$ac_header_preproc"
16710 ac_res=`eval echo '${'$as_ac_Header'}'`
16711 { echo "$as_me:$LINENO: result: $ac_res" >&5
16712 echo "${ECHO_T}$ac_res" >&6; }
16715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16716 cat >>confdefs.h <<_ACEOF
16717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16727 for ac_header in CrashReporterClient.h
16729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16736 ac_res=`eval echo '${'$as_ac_Header'}'`
16737 { echo "$as_me:$LINENO: result: $ac_res" >&5
16738 echo "${ECHO_T}$ac_res" >&6; }
16740 # Is the header compilable?
16741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16743 cat >conftest.$ac_ext <<_ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h. */
16749 $ac_includes_default
16750 #include <$ac_header>
16752 rm -f conftest.$ac_objext
16753 if { (ac_try="$ac_compile"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_compile") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest.$ac_objext'
16777 { (case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_try") 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_header_compiler=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_header_compiler=no
16794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16796 echo "${ECHO_T}$ac_header_compiler" >&6; }
16798 # Is the header present?
16799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 #include <$ac_header>
16809 if { (ac_try="$ac_cpp conftest.$ac_ext"
16810 case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16817 grep -v '^ *+' conftest.er1 >conftest.err
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } >/dev/null; then
16822 if test -s conftest.err; then
16823 ac_cpp_err=$ac_c_preproc_warn_flag
16824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16831 if test -z "$ac_cpp_err"; then
16832 ac_header_preproc=yes
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_header_preproc=no
16840 rm -f conftest.err conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16842 echo "${ECHO_T}$ac_header_preproc" >&6; }
16844 # So? What about this header?
16845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16851 ac_header_preproc=yes
16854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16857 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16861 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16867 ## ------------------------------------ ##
16868 ## Report this to http://llvm.org/bugs/ ##
16869 ## ------------------------------------ ##
16871 ) | sed "s/^/$as_me: WARNING: /" >&2
16874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 eval "$as_ac_Header=\$ac_header_preproc"
16881 ac_res=`eval echo '${'$as_ac_Header'}'`
16882 { echo "$as_me:$LINENO: result: $ac_res" >&5
16883 echo "${ECHO_T}$ac_res" >&6; }
16886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16896 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16897 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16898 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16906 extern const char *__crashreporter_info__;
16908 __crashreporter_info__ = "test";
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1 >conftest.err
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest$ac_exeext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16949 { echo "$as_me:$LINENO: result: yes" >&5
16950 echo "${ECHO_T}yes" >&6; }
16952 cat >>confdefs.h <<\_ACEOF
16953 #define HAVE_CRASHREPORTER_INFO 1
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16962 { echo "$as_me:$LINENO: result: no" >&5
16963 echo "${ECHO_T}no" >&6; }
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_CRASHREPORTER_INFO 0
16972 rm -f core conftest.err conftest.$ac_objext \
16973 conftest$ac_exeext conftest.$ac_ext
16977 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16978 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16979 if test "${ac_cv_huge_val_sanity+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16984 ac_cpp='$CXXCPP $CPPFLAGS'
16985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16989 ac_save_CXXFLAGS=$CXXFLAGS
16990 CXXFLAGS="$CXXFLAGS -pedantic"
16991 if test "$cross_compiling" = yes; then
16992 ac_cv_huge_val_sanity=yes
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17004 double x = HUGE_VAL; return x != x;
17009 rm -f conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_link") 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020 { (case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_try") 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_huge_val_sanity=yes
17031 echo "$as_me: program exited with status $ac_status" >&5
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 ( exit $ac_status )
17036 ac_cv_huge_val_sanity=no
17038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17042 CXXFLAGS=$ac_save_CXXFLAGS
17044 ac_cpp='$CPP $CPPFLAGS'
17045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17051 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17052 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17053 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17056 { echo "$as_me:$LINENO: checking for pid_t" >&5
17057 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17058 if test "${ac_cv_type_pid_t+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 $ac_includes_default
17068 typedef pid_t ac__type_new_;
17072 if ((ac__type_new_ *) 0)
17074 if (sizeof (ac__type_new_))
17080 rm -f conftest.$ac_objext
17081 if { (ac_try="$ac_compile"
17082 case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_compile") 2>conftest.er1
17089 grep -v '^ *+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_type_pid_t=yes
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_type_pid_t=no
17122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17124 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17125 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17126 if test $ac_cv_type_pid_t = yes; then
17130 cat >>confdefs.h <<_ACEOF
17136 { echo "$as_me:$LINENO: checking for size_t" >&5
17137 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17138 if test "${ac_cv_type_size_t+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 $ac_includes_default
17148 typedef size_t ac__type_new_;
17152 if ((ac__type_new_ *) 0)
17154 if (sizeof (ac__type_new_))
17160 rm -f conftest.$ac_objext
17161 if { (ac_try="$ac_compile"
17162 case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_compile") 2>conftest.er1
17169 grep -v '^ *+' conftest.er1 >conftest.err
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest.$ac_objext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
17194 ac_cv_type_size_t=yes
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17199 ac_cv_type_size_t=no
17202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17205 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17206 if test $ac_cv_type_size_t = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211 #define size_t unsigned int
17217 cat >>confdefs.h <<_ACEOF
17218 #define RETSIGTYPE void
17221 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17222 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17223 if test "${ac_cv_struct_tm+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 cat >conftest.$ac_ext <<_ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 #include <sys/types.h>
17238 struct tm *tp; tp->tm_sec;
17243 rm -f conftest.$ac_objext
17244 if { (ac_try="$ac_compile"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_compile") 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_try") 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_struct_tm=time.h
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_struct_tm=sys/time.h
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17287 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17288 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17289 if test $ac_cv_struct_tm = sys/time.h; then
17291 cat >>confdefs.h <<\_ACEOF
17292 #define TM_IN_SYS_TIME 1
17297 { echo "$as_me:$LINENO: checking for int64_t" >&5
17298 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17299 if test "${ac_cv_type_int64_t+set}" = set; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 $ac_includes_default
17309 typedef int64_t ac__type_new_;
17313 if ((ac__type_new_ *) 0)
17315 if (sizeof (ac__type_new_))
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest.$ac_objext'
17346 { (case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_type_int64_t=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_type_int64_t=no
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17366 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17367 if test $ac_cv_type_int64_t = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_INT64_T 1
17375 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17376 echo "$as_me: error: Type int64_t required but not found" >&2;}
17377 { (exit 1); exit 1; }; }
17380 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17381 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17382 if test "${ac_cv_type_uint64_t+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 $ac_includes_default
17392 typedef uint64_t ac__type_new_;
17396 if ((ac__type_new_ *) 0)
17398 if (sizeof (ac__type_new_))
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest.$ac_objext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_type_uint64_t=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_type_uint64_t=no
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17448 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17449 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17450 if test $ac_cv_type_uint64_t = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define HAVE_UINT64_T 1
17458 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17459 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17460 if test "${ac_cv_type_u_int64_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 $ac_includes_default
17470 typedef u_int64_t ac__type_new_;
17474 if ((ac__type_new_ *) 0)
17476 if (sizeof (ac__type_new_))
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17491 grep -v '^ *+' conftest.er1 >conftest.err
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; } &&
17506 { ac_try='test -s conftest.$ac_objext'
17507 { (case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_try") 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_type_u_int64_t=yes
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_cv_type_u_int64_t=no
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17527 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17528 if test $ac_cv_type_u_int64_t = yes; then
17530 cat >>confdefs.h <<_ACEOF
17531 #define HAVE_U_INT64_T 1
17536 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17537 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17538 { (exit 1); exit 1; }; }
17552 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define $ac_func innocuous_$ac_func
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17576 # include <limits.h>
17578 # include <assert.h>
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 return $ac_func ();
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620 { (case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_try") 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest$ac_exeext'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 eval "$as_ac_var=yes"
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 eval "$as_ac_var=no"
17647 rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17650 ac_res=`eval echo '${'$as_ac_var'}'`
17651 { echo "$as_me:$LINENO: result: $ac_res" >&5
17652 echo "${ECHO_T}$ac_res" >&6; }
17653 if test `eval echo '${'$as_ac_var'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17665 for ac_func in powf fmodf strtof round
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 cat >conftest.$ac_ext <<_ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17689 # include <limits.h>
17691 # include <assert.h>
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17713 return $ac_func ();
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 eval "$as_ac_var=yes"
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 eval "$as_ac_var=no"
17760 rm -f core conftest.err conftest.$ac_objext \
17761 conftest$ac_exeext conftest.$ac_ext
17763 ac_res=`eval echo '${'$as_ac_var'}'`
17764 { echo "$as_me:$LINENO: result: $ac_res" >&5
17765 echo "${ECHO_T}$ac_res" >&6; }
17766 if test `eval echo '${'$as_ac_var'}'` = yes; then
17767 cat >>confdefs.h <<_ACEOF
17768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17779 for ac_func in log log2 log10 exp exp2
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17827 return $ac_func ();
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest$ac_exeext'
17857 { (case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_try") 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 eval "$as_ac_var=yes"
17868 echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 eval "$as_ac_var=no"
17874 rm -f core conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
17877 ac_res=`eval echo '${'$as_ac_var'}'`
17878 { echo "$as_me:$LINENO: result: $ac_res" >&5
17879 echo "${ECHO_T}$ac_res" >&6; }
17880 if test `eval echo '${'$as_ac_var'}'` = yes; then
17881 cat >>confdefs.h <<_ACEOF
17882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17901 cat >conftest.$ac_ext <<_ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17909 #define $ac_func innocuous_$ac_func
17911 /* System header to define __stub macros and hopefully few prototypes,
17912 which can conflict with char $ac_func (); below.
17913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17914 <limits.h> exists even on freestanding compilers. */
17917 # include <limits.h>
17919 # include <assert.h>
17924 /* Override any GCC internal prototype to avoid an error.
17925 Use char because int might match the return type of a GCC
17926 builtin and then its argument prototype would still apply. */
17931 /* The GNU C library defines this for functions which it implements
17932 to always fail with ENOSYS. Some functions are actually named
17933 something starting with __ and the normal name is an alias. */
17934 #if defined __stub_$ac_func || defined __stub___$ac_func
17941 return $ac_func ();
17946 rm -f conftest.$ac_objext conftest$ac_exeext
17947 if { (ac_try="$ac_link"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_link") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } &&
17960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17961 { (case "(($ac_try" in
17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_try") 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest$ac_exeext'
17971 { (case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 eval "$as_ac_var=yes"
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17985 eval "$as_ac_var=no"
17988 rm -f core conftest.err conftest.$ac_objext \
17989 conftest$ac_exeext conftest.$ac_ext
17991 ac_res=`eval echo '${'$as_ac_var'}'`
17992 { echo "$as_me:$LINENO: result: $ac_res" >&5
17993 echo "${ECHO_T}$ac_res" >&6; }
17994 if test `eval echo '${'$as_ac_var'}'` = yes; then
17995 cat >>confdefs.h <<_ACEOF
17996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18005 for ac_func in isatty mkdtemp mkstemp
18007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18008 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 cat >conftest.$ac_ext <<_ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18021 #define $ac_func innocuous_$ac_func
18023 /* System header to define __stub macros and hopefully few prototypes,
18024 which can conflict with char $ac_func (); below.
18025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18026 <limits.h> exists even on freestanding compilers. */
18029 # include <limits.h>
18031 # include <assert.h>
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18043 /* The GNU C library defines this for functions which it implements
18044 to always fail with ENOSYS. Some functions are actually named
18045 something starting with __ and the normal name is an alias. */
18046 #if defined __stub_$ac_func || defined __stub___$ac_func
18053 return $ac_func ();
18058 rm -f conftest.$ac_objext conftest$ac_exeext
18059 if { (ac_try="$ac_link"
18060 case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_link") 2>conftest.er1
18067 grep -v '^ *+' conftest.er1 >conftest.err
18069 cat conftest.err >&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); } &&
18072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18073 { (case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_try") 2>&5
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try='test -s conftest$ac_exeext'
18083 { (case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18088 (eval "$ac_try") 2>&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); }; }; then
18092 eval "$as_ac_var=yes"
18094 echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18097 eval "$as_ac_var=no"
18100 rm -f core conftest.err conftest.$ac_objext \
18101 conftest$ac_exeext conftest.$ac_ext
18103 ac_res=`eval echo '${'$as_ac_var'}'`
18104 { echo "$as_me:$LINENO: result: $ac_res" >&5
18105 echo "${ECHO_T}$ac_res" >&6; }
18106 if test `eval echo '${'$as_ac_var'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18136 #define $ac_func innocuous_$ac_func
18138 /* System header to define __stub macros and hopefully few prototypes,
18139 which can conflict with char $ac_func (); below.
18140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18141 <limits.h> exists even on freestanding compilers. */
18144 # include <limits.h>
18146 # include <assert.h>
18151 /* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply. */
18158 /* The GNU C library defines this for functions which it implements
18159 to always fail with ENOSYS. Some functions are actually named
18160 something starting with __ and the normal name is an alias. */
18161 #if defined __stub_$ac_func || defined __stub___$ac_func
18168 return $ac_func ();
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (ac_try="$ac_link"
18175 case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_link") 2>conftest.er1
18182 grep -v '^ *+' conftest.er1 >conftest.err
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest$ac_exeext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 eval "$as_ac_var=yes"
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 eval "$as_ac_var=no"
18215 rm -f core conftest.err conftest.$ac_objext \
18216 conftest$ac_exeext conftest.$ac_ext
18218 ac_res=`eval echo '${'$as_ac_var'}'`
18219 { echo "$as_me:$LINENO: result: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18221 if test `eval echo '${'$as_ac_var'}'` = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18233 for ac_func in strerror strerror_r setenv arc4random
18235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 cat >conftest.$ac_ext <<_ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h. */
18247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18249 #define $ac_func innocuous_$ac_func
18251 /* System header to define __stub macros and hopefully few prototypes,
18252 which can conflict with char $ac_func (); below.
18253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18254 <limits.h> exists even on freestanding compilers. */
18257 # include <limits.h>
18259 # include <assert.h>
18264 /* Override any GCC internal prototype to avoid an error.
18265 Use char because int might match the return type of a GCC
18266 builtin and then its argument prototype would still apply. */
18271 /* The GNU C library defines this for functions which it implements
18272 to always fail with ENOSYS. Some functions are actually named
18273 something starting with __ and the normal name is an alias. */
18274 #if defined __stub_$ac_func || defined __stub___$ac_func
18281 return $ac_func ();
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (ac_try="$ac_link"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_link") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; } &&
18310 { ac_try='test -s conftest$ac_exeext'
18311 { (case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_try") 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 eval "$as_ac_var=yes"
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 eval "$as_ac_var=no"
18328 rm -f core conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18331 ac_res=`eval echo '${'$as_ac_var'}'`
18332 { echo "$as_me:$LINENO: result: $ac_res" >&5
18333 echo "${ECHO_T}$ac_res" >&6; }
18334 if test `eval echo '${'$as_ac_var'}'` = yes; then
18335 cat >>confdefs.h <<_ACEOF
18336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18362 #define $ac_func innocuous_$ac_func
18364 /* System header to define __stub macros and hopefully few prototypes,
18365 which can conflict with char $ac_func (); below.
18366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18367 <limits.h> exists even on freestanding compilers. */
18370 # include <limits.h>
18372 # include <assert.h>
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18384 /* The GNU C library defines this for functions which it implements
18385 to always fail with ENOSYS. Some functions are actually named
18386 something starting with __ and the normal name is an alias. */
18387 #if defined __stub_$ac_func || defined __stub___$ac_func
18394 return $ac_func ();
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406 (eval "$ac_link") 2>conftest.er1
18408 grep -v '^ *+' conftest.er1 >conftest.err
18410 cat conftest.err >&5
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); } &&
18413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 eval "$as_ac_var=yes"
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 eval "$as_ac_var=no"
18441 rm -f core conftest.err conftest.$ac_objext \
18442 conftest$ac_exeext conftest.$ac_ext
18444 ac_res=`eval echo '${'$as_ac_var'}'`
18445 { echo "$as_me:$LINENO: result: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18447 if test `eval echo '${'$as_ac_var'}'` = yes; then
18448 cat >>confdefs.h <<_ACEOF
18449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18460 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18466 echo $ECHO_N "(cached) $ECHO_C" >&6
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18476 #define $ac_func innocuous_$ac_func
18478 /* System header to define __stub macros and hopefully few prototypes,
18479 which can conflict with char $ac_func (); below.
18480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18481 <limits.h> exists even on freestanding compilers. */
18484 # include <limits.h>
18486 # include <assert.h>
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18498 /* The GNU C library defines this for functions which it implements
18499 to always fail with ENOSYS. Some functions are actually named
18500 something starting with __ and the normal name is an alias. */
18501 #if defined __stub_$ac_func || defined __stub___$ac_func
18508 return $ac_func ();
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 eval "$as_ac_var=yes"
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 eval "$as_ac_var=no"
18555 rm -f core conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18558 ac_res=`eval echo '${'$as_ac_var'}'`
18559 { echo "$as_me:$LINENO: result: $ac_res" >&5
18560 echo "${ECHO_T}$ac_res" >&6; }
18561 if test `eval echo '${'$as_ac_var'}'` = yes; then
18562 cat >>confdefs.h <<_ACEOF
18563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18571 for ac_func in futimes futimens
18573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18587 #define $ac_func innocuous_$ac_func
18589 /* System header to define __stub macros and hopefully few prototypes,
18590 which can conflict with char $ac_func (); below.
18591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18592 <limits.h> exists even on freestanding compilers. */
18595 # include <limits.h>
18597 # include <assert.h>
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18609 /* The GNU C library defines this for functions which it implements
18610 to always fail with ENOSYS. Some functions are actually named
18611 something starting with __ and the normal name is an alias. */
18612 #if defined __stub_$ac_func || defined __stub___$ac_func
18619 return $ac_func ();
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (ac_try="$ac_link"
18626 case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_link") 2>conftest.er1
18633 grep -v '^ *+' conftest.er1 >conftest.err
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18639 { (case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_try") 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); }; } &&
18648 { ac_try='test -s conftest$ac_exeext'
18649 { (case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_try") 2>&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 eval "$as_ac_var=yes"
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no"
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 ac_res=`eval echo '${'$as_ac_var'}'`
18670 { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673 cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18680 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18681 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18682 if test "${llvm_cv_c_printf_a+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 ac_cpp='$CPP $CPPFLAGS'
18687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18691 if test "$cross_compiling" = yes; then
18692 llvmac_cv_c_printf_a=no
18694 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18703 #include <stdlib.h>
18709 volatile double A, B;
18713 sprintf(Buffer, "%a", A);
18717 if (A != 0x1.999999999999ap-4)
18724 rm -f conftest$ac_exeext
18725 if { (ac_try="$ac_link"
18726 case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 llvm_cv_c_printf_a=yes
18746 echo "$as_me: program exited with status $ac_status" >&5
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ( exit $ac_status )
18751 llvmac_cv_c_printf_a=no
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18758 ac_cpp='$CPP $CPPFLAGS'
18759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18765 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18766 if test "$llvm_cv_c_printf_a" = "yes"; then
18768 cat >>confdefs.h <<\_ACEOF
18769 #define HAVE_PRINTF_A 1
18776 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18777 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18778 if test "${ac_cv_func_rand48+set}" = set; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 #include <stdlib.h>
18798 srand48(0);lrand48();drand48();
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_cv_func_rand48=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_func_rand48=no
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18854 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18855 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18857 if test "$ac_cv_func_rand48" = "yes" ; then
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_RAND48 1
18866 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18867 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18868 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18877 $ac_includes_default
18882 char *p = (char *) strerror_s;
18890 rm -f conftest.$ac_objext
18891 if { (ac_try="$ac_compile"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } &&
18904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18905 { (case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_try") 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_have_decl_strerror_s=yes
18926 echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18929 ac_cv_have_decl_strerror_s=no
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18935 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18936 if test $ac_cv_have_decl_strerror_s = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define HAVE_DECL_STRERROR_S 1
18944 cat >>confdefs.h <<_ACEOF
18945 #define HAVE_DECL_STRERROR_S 0
18953 if test "$llvm_cv_os_type" = "MingW" ; then
18954 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18955 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 ac_check_lib_save_LIBS=$LIBS
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18968 /* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gcc__alloca=yes
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_cv_lib_gcc__alloca=no
19025 rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19031 if test $ac_cv_lib_gcc__alloca = yes; then
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE__ALLOCA 1
19039 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19040 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_check_lib_save_LIBS=$LIBS
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19053 /* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19063 return __alloca ();
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest$ac_exeext'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_cv_lib_gcc___alloca=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_cv_lib_gcc___alloca=no
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19116 if test $ac_cv_lib_gcc___alloca = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___ALLOCA 1
19124 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19125 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19126 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_check_lib_save_LIBS=$LIBS
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19148 return __chkstk ();
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (ac_try="$ac_link"
19155 case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_link") 2>conftest.er1
19162 grep -v '^ *+' conftest.er1 >conftest.err
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168 { (case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_try") 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest$ac_exeext'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_lib_gcc___chkstk=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_lib_gcc___chkstk=no
19195 rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19200 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19201 if test $ac_cv_lib_gcc___chkstk = yes; then
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE___CHKSTK 1
19209 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19210 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19211 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 ac_check_lib_save_LIBS=$LIBS
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 /* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19233 return ___chkstk ();
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_link") 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253 { (case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_try") 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest$ac_exeext'
19263 { (case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_try") 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_lib_gcc____chkstk=yes
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_cv_lib_gcc____chkstk=no
19280 rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19285 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19286 if test $ac_cv_lib_gcc____chkstk = yes; then
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE____CHKSTK 1
19295 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19296 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 ac_check_lib_save_LIBS=$LIBS
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19319 return __ashldi3 ();
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_gcc___ashldi3=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_lib_gcc___ashldi3=no
19366 rm -f core conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19372 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE___ASHLDI3 1
19380 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19381 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19404 return __ashrdi3 ();
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_gcc___ashrdi3=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_lib_gcc___ashrdi3=no
19451 rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19457 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___ASHRDI3 1
19465 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19466 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19467 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_check_lib_save_LIBS=$LIBS
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19489 return __divdi3 ();
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_link") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_lib_gcc___divdi3=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_gcc___divdi3=no
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19541 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19542 if test $ac_cv_lib_gcc___divdi3 = yes; then
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE___DIVDI3 1
19550 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19551 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS=$LIBS
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19574 return __fixdfdi ();
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } &&
19593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19594 { (case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_try") 2>&5
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; } &&
19603 { ac_try='test -s conftest$ac_exeext'
19604 { (case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_try") 2>&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_lib_gcc___fixdfdi=yes
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_lib_gcc___fixdfdi=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19626 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19627 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE___FIXDFDI 1
19635 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19636 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19637 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 ac_check_lib_save_LIBS=$LIBS
19642 cat >conftest.$ac_ext <<_ACEOF
19645 cat confdefs.h >>conftest.$ac_ext
19646 cat >>conftest.$ac_ext <<_ACEOF
19647 /* end confdefs.h. */
19649 /* Override any GCC internal prototype to avoid an error.
19650 Use char because int might match the return type of a GCC
19651 builtin and then its argument prototype would still apply. */
19659 return __fixsfdi ();
19664 rm -f conftest.$ac_objext conftest$ac_exeext
19665 if { (ac_try="$ac_link"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_link") 2>conftest.er1
19673 grep -v '^ *+' conftest.er1 >conftest.err
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19679 { (case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_try") 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest$ac_exeext'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_lib_gcc___fixsfdi=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19703 ac_cv_lib_gcc___fixsfdi=no
19706 rm -f core conftest.err conftest.$ac_objext \
19707 conftest$ac_exeext conftest.$ac_ext
19708 LIBS=$ac_check_lib_save_LIBS
19710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19711 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19712 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19714 cat >>confdefs.h <<\_ACEOF
19715 #define HAVE___FIXSFDI 1
19720 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19721 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19722 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19725 ac_check_lib_save_LIBS=$LIBS
19727 cat >conftest.$ac_ext <<_ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19734 /* Override any GCC internal prototype to avoid an error.
19735 Use char because int might match the return type of a GCC
19736 builtin and then its argument prototype would still apply. */
19740 char __floatdidf ();
19744 return __floatdidf ();
19749 rm -f conftest.$ac_objext conftest$ac_exeext
19750 if { (ac_try="$ac_link"
19751 case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_link") 2>conftest.er1
19758 grep -v '^ *+' conftest.er1 >conftest.err
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19764 { (case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_try") 2>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest$ac_exeext'
19774 { (case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_try") 2>&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_lib_gcc___floatdidf=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_lib_gcc___floatdidf=no
19791 rm -f core conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19796 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19797 if test $ac_cv_lib_gcc___floatdidf = yes; then
19799 cat >>confdefs.h <<\_ACEOF
19800 #define HAVE___FLOATDIDF 1
19805 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19806 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19807 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 ac_check_lib_save_LIBS=$LIBS
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19819 /* Override any GCC internal prototype to avoid an error.
19820 Use char because int might match the return type of a GCC
19821 builtin and then its argument prototype would still apply. */
19829 return __lshrdi3 ();
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } &&
19848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest$ac_exeext'
19859 { (case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_try") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_cv_lib_gcc___lshrdi3=yes
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_cv_lib_gcc___lshrdi3=no
19876 rm -f core conftest.err conftest.$ac_objext \
19877 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19881 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19882 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19884 cat >>confdefs.h <<\_ACEOF
19885 #define HAVE___LSHRDI3 1
19890 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19891 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19892 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 ac_check_lib_save_LIBS=$LIBS
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19904 /* Override any GCC internal prototype to avoid an error.
19905 Use char because int might match the return type of a GCC
19906 builtin and then its argument prototype would still apply. */
19914 return __moddi3 ();
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (ac_try="$ac_link"
19921 case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_link") 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
19933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest$ac_exeext'
19944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
19953 ac_cv_lib_gcc___moddi3=yes
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_cv_lib_gcc___moddi3=no
19961 rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19963 LIBS=$ac_check_lib_save_LIBS
19965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19966 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19967 if test $ac_cv_lib_gcc___moddi3 = yes; then
19969 cat >>confdefs.h <<\_ACEOF
19970 #define HAVE___MODDI3 1
19975 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19976 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19977 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 ac_check_lib_save_LIBS=$LIBS
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19989 /* Override any GCC internal prototype to avoid an error.
19990 Use char because int might match the return type of a GCC
19991 builtin and then its argument prototype would still apply. */
19999 return __udivdi3 ();
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (ac_try="$ac_link"
20006 case "(($ac_try" in
20007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20008 *) ac_try_echo=$ac_try;;
20010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20011 (eval "$ac_link") 2>conftest.er1
20013 grep -v '^ *+' conftest.er1 >conftest.err
20015 cat conftest.err >&5
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
20018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20019 { (case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024 (eval "$ac_try") 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest$ac_exeext'
20029 { (case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_try") 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; }; then
20038 ac_cv_lib_gcc___udivdi3=yes
20040 echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20043 ac_cv_lib_gcc___udivdi3=no
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20048 LIBS=$ac_check_lib_save_LIBS
20050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20051 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20052 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20054 cat >>confdefs.h <<\_ACEOF
20055 #define HAVE___UDIVDI3 1
20060 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20061 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20062 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 ac_check_lib_save_LIBS=$LIBS
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20084 return __umoddi3 ();
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20098 grep -v '^ *+' conftest.er1 >conftest.err
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20104 { (case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_try") 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); }; } &&
20113 { ac_try='test -s conftest$ac_exeext'
20114 { (case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_try") 2>&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); }; }; then
20123 ac_cv_lib_gcc___umoddi3=yes
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ac_cv_lib_gcc___umoddi3=no
20131 rm -f core conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20136 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20137 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE___UMODDI3 1
20146 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20147 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20148 if test "${ac_cv_lib_gcc___main+set}" = set; then
20149 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 ac_check_lib_save_LIBS=$LIBS
20153 cat >conftest.$ac_ext <<_ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20160 /* Override any GCC internal prototype to avoid an error.
20161 Use char because int might match the return type of a GCC
20162 builtin and then its argument prototype would still apply. */
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_link") 2>conftest.er1
20184 grep -v '^ *+' conftest.er1 >conftest.err
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20190 { (case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_try") 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_try") 2>&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_lib_gcc___main=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_lib_gcc___main=no
20217 rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20221 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20222 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20223 if test $ac_cv_lib_gcc___main = yes; then
20225 cat >>confdefs.h <<\_ACEOF
20226 #define HAVE___MAIN 1
20231 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20232 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 ac_check_lib_save_LIBS=$LIBS
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 /* Override any GCC internal prototype to avoid an error.
20246 Use char because int might match the return type of a GCC
20247 builtin and then its argument prototype would still apply. */
20255 return __cmpdi2 ();
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
20274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275 { (case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_try") 2>&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_lib_gcc___cmpdi2=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_cv_lib_gcc___cmpdi2=no
20302 rm -f core conftest.err conftest.$ac_objext \
20303 conftest$ac_exeext conftest.$ac_ext
20304 LIBS=$ac_check_lib_save_LIBS
20306 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20307 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20308 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE___CMPDI2 1
20318 if test "$llvm_cv_os_type" = "MingW" ; then
20319 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20320 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20321 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 #include <windows.h>
20330 #include <imagehlp.h>
20331 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20332 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20336 rm -f conftest.$ac_objext
20337 if { (ac_try="$ac_compile"
20338 case "(($ac_try" in
20339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340 *) ac_try_echo=$ac_try;;
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343 (eval "$ac_compile") 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20351 { (case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_try") 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_try") 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20371 { echo "$as_me:$LINENO: result: yes" >&5
20372 echo "${ECHO_T}yes" >&6; }
20373 llvm_cv_win32_elmcb_pcstr="PCSTR"
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20380 { echo "$as_me:$LINENO: result: no" >&5
20381 echo "${ECHO_T}no" >&6; }
20382 llvm_cv_win32_elmcb_pcstr="PSTR"
20386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388 cat >>confdefs.h <<_ACEOF
20389 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20396 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20397 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20398 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 ac_cpp='$CXXCPP $CPPFLAGS'
20404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_compile") 2>conftest.er1
20432 grep -v '^ *+' conftest.er1 >conftest.err
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } &&
20437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20438 { (case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_try") 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
20448 { (case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_try") 2>&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_cv_func_isnan_in_math_h=yes
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 ac_cv_func_isnan_in_math_h=no
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467 ac_cpp='$CPP $CPPFLAGS'
20468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20475 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20478 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20480 cat >>confdefs.h <<\_ACEOF
20481 #define HAVE_ISNAN_IN_MATH_H 1
20487 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20488 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20489 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20494 ac_cpp='$CXXCPP $CPPFLAGS'
20495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20499 cat >conftest.$ac_ext <<_ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20514 rm -f conftest.$ac_objext
20515 if { (ac_try="$ac_compile"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_compile") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
20528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; } &&
20538 { ac_try='test -s conftest.$ac_objext'
20539 { (case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_try") 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_cv_func_isnan_in_cmath=yes
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_func_isnan_in_cmath=no
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20565 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20566 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20568 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20570 cat >>confdefs.h <<\_ACEOF
20571 #define HAVE_ISNAN_IN_CMATH 1
20577 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20578 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20579 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 ac_cpp='$CXXCPP $CPPFLAGS'
20585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20599 float f; std::isnan(f);
20604 rm -f conftest.$ac_objext
20605 if { (ac_try="$ac_compile"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_compile") 2>conftest.er1
20613 grep -v '^ *+' conftest.er1 >conftest.err
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20619 { (case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_try") 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; } &&
20628 { ac_try='test -s conftest.$ac_objext'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_func_std_isnan_in_cmath=yes
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20643 ac_cv_func_std_isnan_in_cmath=no
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20648 ac_cpp='$CPP $CPPFLAGS'
20649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20655 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20656 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20658 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_STD_ISNAN_IN_CMATH 1
20669 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20670 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20671 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 ac_cpp='$CXXCPP $CPPFLAGS'
20677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_compile") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1 >conftest.err
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
20710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20711 { (case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_try") 2>&5
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } &&
20720 { ac_try='test -s conftest.$ac_objext'
20721 { (case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_try") 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_cv_func_isinf_in_math_h=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_cv_func_isinf_in_math_h=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20740 ac_cpp='$CPP $CPPFLAGS'
20741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20747 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20748 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20750 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20752 cat >>confdefs.h <<\_ACEOF
20753 #define HAVE_ISINF_IN_MATH_H 1
20759 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20760 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20761 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 ac_cpp='$CXXCPP $CPPFLAGS'
20767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20786 rm -f conftest.$ac_objext
20787 if { (ac_try="$ac_compile"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_compile") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest.$ac_objext'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_cv_func_isinf_in_cmath=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_cv_func_isinf_in_cmath=no
20828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 ac_cpp='$CPP $CPPFLAGS'
20831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20838 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20840 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20842 cat >>confdefs.h <<\_ACEOF
20843 #define HAVE_ISINF_IN_CMATH 1
20849 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20850 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20851 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20852 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 ac_cpp='$CXXCPP $CPPFLAGS'
20857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20871 float f; std::isinf(f);
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } &&
20890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_try") 2>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; }; then
20910 ac_cv_func_std_isinf_in_cmath=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_func_std_isinf_in_cmath=no
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 ac_cpp='$CPP $CPPFLAGS'
20921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20927 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20928 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20930 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_STD_ISINF_IN_CMATH 1
20939 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20940 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20941 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 ac_cpp='$CXXCPP $CPPFLAGS'
20947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 #include <ieeefp.h>
20961 float f; finite(f);
20966 rm -f conftest.$ac_objext
20967 if { (ac_try="$ac_compile"
20968 case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_compile") 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20981 { (case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_try") 2>&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); }; } &&
20990 { ac_try='test -s conftest.$ac_objext'
20991 { (case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_try") 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_func_finite_in_ieeefp_h=yes
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_cv_func_finite_in_ieeefp_h=no
21008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 ac_cpp='$CPP $CPPFLAGS'
21011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21017 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21018 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21020 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define HAVE_FINITE_IN_IEEEFP_H 1
21030 if test "$llvm_cv_platform_type" = "Unix" ; then
21033 for ac_header in stdlib.h unistd.h
21035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 ac_res=`eval echo '${'$as_ac_Header'}'`
21043 { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21046 # Is the header compilable?
21047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 #include <$ac_header>
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073 { (case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_try") 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 ac_header_compiler=yes
21094 echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_header_compiler=no
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21102 echo "${ECHO_T}$ac_header_compiler" >&6; }
21104 # Is the header present?
21105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21107 cat >conftest.$ac_ext <<_ACEOF
21110 cat confdefs.h >>conftest.$ac_ext
21111 cat >>conftest.$ac_ext <<_ACEOF
21112 /* end confdefs.h. */
21113 #include <$ac_header>
21115 if { (ac_try="$ac_cpp conftest.$ac_ext"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } >/dev/null; then
21128 if test -s conftest.err; then
21129 ac_cpp_err=$ac_c_preproc_warn_flag
21130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21137 if test -z "$ac_cpp_err"; then
21138 ac_header_preproc=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21143 ac_header_preproc=no
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21150 # So? What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21157 ac_header_preproc=yes
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21173 ## ------------------------------------ ##
21174 ## Report this to http://llvm.org/bugs/ ##
21175 ## ------------------------------------ ##
21177 ) | sed "s/^/$as_me: WARNING: /" >&2
21180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 eval "$as_ac_Header=\$ac_header_preproc"
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188 { echo "$as_me:$LINENO: result: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21202 for ac_func in getpagesize
21204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 cat >conftest.$ac_ext <<_ACEOF
21213 cat confdefs.h >>conftest.$ac_ext
21214 cat >>conftest.$ac_ext <<_ACEOF
21215 /* end confdefs.h. */
21216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21218 #define $ac_func innocuous_$ac_func
21220 /* System header to define __stub macros and hopefully few prototypes,
21221 which can conflict with char $ac_func (); below.
21222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21223 <limits.h> exists even on freestanding compilers. */
21226 # include <limits.h>
21228 # include <assert.h>
21233 /* Override any GCC internal prototype to avoid an error.
21234 Use char because int might match the return type of a GCC
21235 builtin and then its argument prototype would still apply. */
21240 /* The GNU C library defines this for functions which it implements
21241 to always fail with ENOSYS. Some functions are actually named
21242 something starting with __ and the normal name is an alias. */
21243 #if defined __stub_$ac_func || defined __stub___$ac_func
21250 return $ac_func ();
21255 rm -f conftest.$ac_objext conftest$ac_exeext
21256 if { (ac_try="$ac_link"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_link") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21270 { (case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_try") 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; } &&
21279 { ac_try='test -s conftest$ac_exeext'
21280 { (case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_try") 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 eval "$as_ac_var=yes"
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 eval "$as_ac_var=no"
21297 rm -f core conftest.err conftest.$ac_objext \
21298 conftest$ac_exeext conftest.$ac_ext
21300 ac_res=`eval echo '${'$as_ac_var'}'`
21301 { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21303 if test `eval echo '${'$as_ac_var'}'` = yes; then
21304 cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21311 { echo "$as_me:$LINENO: checking for working mmap" >&5
21312 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21313 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21316 if test "$cross_compiling" = yes; then
21317 ac_cv_func_mmap_fixed_mapped=no
21319 cat >conftest.$ac_ext <<_ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h. */
21325 $ac_includes_default
21326 /* malloc might have been renamed as rpl_malloc. */
21329 /* Thanks to Mike Haertel and Jim Avera for this test.
21330 Here is a matrix of mmap possibilities:
21331 mmap private not fixed
21332 mmap private fixed at somewhere currently unmapped
21333 mmap private fixed at somewhere already mapped
21334 mmap shared not fixed
21335 mmap shared fixed at somewhere currently unmapped
21336 mmap shared fixed at somewhere already mapped
21337 For private mappings, we should verify that changes cannot be read()
21338 back from the file, nor mmap's back from the file at a different
21339 address. (There have been systems where private was not correctly
21340 implemented like the infamous i386 svr4.0, and systems where the
21341 VM page cache was not coherent with the file system buffer cache
21342 like early versions of FreeBSD and possibly contemporary NetBSD.)
21343 For shared mappings, we should conversely verify that changes get
21344 propagated back to all the places they're supposed to be.
21346 Grep wants private fixed already mapped.
21347 The main things grep needs to know about mmap are:
21348 * does it exist and is it safe to write into the mmap'd area
21349 * how to use it (BSD variants) */
21352 #include <sys/mman.h>
21354 #if !STDC_HEADERS && !HAVE_STDLIB_H
21358 /* This mess was copied from the GNU getpagesize.h. */
21359 #if !HAVE_GETPAGESIZE
21360 /* Assume that all systems that can run configure have sys/param.h. */
21361 # if !HAVE_SYS_PARAM_H
21362 # define HAVE_SYS_PARAM_H 1
21365 # ifdef _SC_PAGESIZE
21366 # define getpagesize() sysconf(_SC_PAGESIZE)
21367 # else /* no _SC_PAGESIZE */
21368 # if HAVE_SYS_PARAM_H
21369 # include <sys/param.h>
21370 # ifdef EXEC_PAGESIZE
21371 # define getpagesize() EXEC_PAGESIZE
21372 # else /* no EXEC_PAGESIZE */
21374 # define getpagesize() NBPG * CLSIZE
21377 # endif /* no CLSIZE */
21378 # else /* no NBPG */
21380 # define getpagesize() NBPC
21381 # else /* no NBPC */
21383 # define getpagesize() PAGESIZE
21384 # endif /* PAGESIZE */
21385 # endif /* no NBPC */
21386 # endif /* no NBPG */
21387 # endif /* no EXEC_PAGESIZE */
21388 # else /* no HAVE_SYS_PARAM_H */
21389 # define getpagesize() 8192 /* punt totally */
21390 # endif /* no HAVE_SYS_PARAM_H */
21391 # endif /* no _SC_PAGESIZE */
21393 #endif /* no HAVE_GETPAGESIZE */
21398 char *data, *data2, *data3;
21402 pagesize = getpagesize ();
21404 /* First, make a file with some known garbage in it. */
21405 data = (char *) malloc (pagesize);
21408 for (i = 0; i < pagesize; ++i)
21409 *(data + i) = rand ();
21411 fd = creat ("conftest.mmap", 0600);
21414 if (write (fd, data, pagesize) != pagesize)
21418 /* Next, try to mmap the file at a fixed address which already has
21419 something else allocated at it. If we can, also make sure that
21420 we see the same garbage. */
21421 fd = open ("conftest.mmap", O_RDWR);
21424 data2 = (char *) malloc (2 * pagesize);
21427 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21431 for (i = 0; i < pagesize; ++i)
21432 if (*(data + i) != *(data2 + i))
21435 /* Finally, make sure that changes to the mapped area do not
21436 percolate back to the file as seen by read(). (This is a bug on
21437 some variants of i386 svr4.0.) */
21438 for (i = 0; i < pagesize; ++i)
21439 *(data2 + i) = *(data2 + i) + 1;
21440 data3 = (char *) malloc (pagesize);
21443 if (read (fd, data3, pagesize) != pagesize)
21445 for (i = 0; i < pagesize; ++i)
21446 if (*(data + i) != *(data3 + i))
21452 rm -f conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_link") 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21463 { (case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_try") 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; }; then
21472 ac_cv_func_mmap_fixed_mapped=yes
21474 echo "$as_me: program exited with status $ac_status" >&5
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21478 ( exit $ac_status )
21479 ac_cv_func_mmap_fixed_mapped=no
21481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21487 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21488 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21490 cat >>confdefs.h <<\_ACEOF
21491 #define HAVE_MMAP 1
21495 rm -f conftest.mmap
21497 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21498 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21499 if test "${ac_cv_func_mmap_file+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21508 if test "$cross_compiling" = yes; then
21509 ac_cv_func_mmap_file=no
21511 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21519 #include <sys/types.h>
21520 #include <sys/mman.h>
21528 fd = creat ("foo",0777);
21529 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21531 return (fd != (int) MAP_FAILED);
21536 rm -f conftest$ac_exeext
21537 if { (ac_try="$ac_link"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_link") 2>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21547 { (case "(($ac_try" in
21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549 *) ac_try_echo=$ac_try;;
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552 (eval "$ac_try") 2>&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; }; then
21556 ac_cv_func_mmap_file=yes
21558 echo "$as_me: program exited with status $ac_status" >&5
21559 echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 ( exit $ac_status )
21563 ac_cv_func_mmap_file=no
21565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21570 ac_cpp='$CPP $CPPFLAGS'
21571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21577 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21578 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21579 if test "$ac_cv_func_mmap_file" = yes; then
21581 cat >>confdefs.h <<\_ACEOF
21582 #define HAVE_MMAP_FILE
21589 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21590 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21591 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21594 if test "$llvm_cv_os_type" = "Interix" ; then
21595 ac_cv_need_dev_zero_for_mmap=yes
21597 ac_cv_need_dev_zero_for_mmap=no
21601 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21602 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21603 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21605 cat >>confdefs.h <<\_ACEOF
21606 #define NEED_DEV_ZERO_FOR_MMAP 1
21611 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21613 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21614 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21616 if test "$ac_cv_func_mmap_file" = "no"
21618 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21619 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21623 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21624 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21626 ac_cpp='$CXXCPP $CPPFLAGS'
21627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21631 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21640 volatile unsigned long val = 1;
21641 __sync_synchronize();
21642 __sync_val_compare_and_swap(&val, 1, 0);
21643 __sync_add_and_fetch(&val, 1);
21644 __sync_sub_and_fetch(&val, 1);
21650 rm -f conftest.$ac_objext conftest$ac_exeext
21651 if { (ac_try="$ac_link"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_link") 2>conftest.er1
21659 grep -v '^ *+' conftest.er1 >conftest.err
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21665 { (case "(($ac_try" in
21666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21667 *) ac_try_echo=$ac_try;;
21669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21670 (eval "$ac_try") 2>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); }; } &&
21674 { ac_try='test -s conftest$ac_exeext'
21675 { (case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_try") 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; }; then
21685 { echo "$as_me:$LINENO: result: yes" >&5
21686 echo "${ECHO_T}yes" >&6; }
21688 cat >>confdefs.h <<\_ACEOF
21689 #define LLVM_HAS_ATOMICS 1
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21698 { echo "$as_me:$LINENO: result: no" >&5
21699 echo "${ECHO_T}no" >&6; }
21701 cat >>confdefs.h <<\_ACEOF
21702 #define LLVM_HAS_ATOMICS 0
21705 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21706 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21710 rm -f core conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
21713 ac_cpp='$CPP $CPPFLAGS'
21714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21720 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21721 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21722 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21723 if test "${llvm_cv_linux_mixed+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21727 ac_cpp='$CPP $CPPFLAGS'
21728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21739 error: Not x86-64 even if uname says so!
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^ *+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } &&
21764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21765 { (case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_try") 2>&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; } &&
21774 { ac_try='test -s conftest.$ac_objext'
21775 { (case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_try") 2>&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; }; then
21784 llvm_cv_linux_mixed=no
21786 echo "$as_me: failed program was:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 llvm_cv_linux_mixed=yes
21792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794 ac_cpp='$CPP $CPPFLAGS'
21795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21801 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21802 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21804 if test "$llvm_cv_linux_mixed" = "yes"; then
21805 llvm_cv_target_arch="x86"
21811 for ac_func in __dso_handle
21813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 cat >conftest.$ac_ext <<_ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21827 #define $ac_func innocuous_$ac_func
21829 /* System header to define __stub macros and hopefully few prototypes,
21830 which can conflict with char $ac_func (); below.
21831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21832 <limits.h> exists even on freestanding compilers. */
21835 # include <limits.h>
21837 # include <assert.h>
21842 /* Override any GCC internal prototype to avoid an error.
21843 Use char because int might match the return type of a GCC
21844 builtin and then its argument prototype would still apply. */
21849 /* The GNU C library defines this for functions which it implements
21850 to always fail with ENOSYS. Some functions are actually named
21851 something starting with __ and the normal name is an alias. */
21852 #if defined __stub_$ac_func || defined __stub___$ac_func
21859 return $ac_func ();
21864 rm -f conftest.$ac_objext conftest$ac_exeext
21865 if { (ac_try="$ac_link"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_link") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1 >conftest.err
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } &&
21878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21879 { (case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_try") 2>&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest$ac_exeext'
21889 { (case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_try") 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 eval "$as_ac_var=yes"
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 eval "$as_ac_var=no"
21906 rm -f core conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21909 ac_res=`eval echo '${'$as_ac_var'}'`
21910 { echo "$as_me:$LINENO: result: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21912 if test `eval echo '${'$as_ac_var'}'` = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21921 SHLIBEXT=$libltdl_cv_shlibext
21924 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21927 if test "${prefix}" = "NONE" ; then
21928 prefix="/usr/local"
21930 eval LLVM_PREFIX="${prefix}";
21931 eval LLVM_BINDIR="${prefix}/bin";
21932 eval LLVM_DATADIR="${prefix}/share/llvm";
21933 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21934 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21935 eval LLVM_INCLUDEDIR="${prefix}/include";
21936 eval LLVM_INFODIR="${prefix}/info";
21937 eval LLVM_MANDIR="${prefix}/man";
21938 LLVM_CONFIGTIME=`date`
21949 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21950 LLVM_CONFIGTIME="(timestamp not enabled)"
21954 cat >>confdefs.h <<_ACEOF
21955 #define LLVM_PREFIX "$LLVM_PREFIX"
21959 cat >>confdefs.h <<_ACEOF
21960 #define LLVM_BINDIR "$LLVM_BINDIR"
21964 cat >>confdefs.h <<_ACEOF
21965 #define LLVM_DATADIR "$LLVM_DATADIR"
21969 cat >>confdefs.h <<_ACEOF
21970 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21974 cat >>confdefs.h <<_ACEOF
21975 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21979 cat >>confdefs.h <<_ACEOF
21980 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21984 cat >>confdefs.h <<_ACEOF
21985 #define LLVM_INFODIR "$LLVM_INFODIR"
21989 cat >>confdefs.h <<_ACEOF
21990 #define LLVM_MANDIR "$LLVM_MANDIR"
21994 cat >>confdefs.h <<_ACEOF
21995 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21999 cat >>confdefs.h <<_ACEOF
22000 #define LLVM_HOST_TRIPLE "$host"
22004 cat >>confdefs.h <<_ACEOF
22005 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22009 if test "$BINDINGS_TO_BUILD" = auto ; then
22010 BINDINGS_TO_BUILD=""
22011 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22012 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22015 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22021 binding_prereqs_failed=0
22022 for a_binding in $BINDINGS_TO_BUILD ; do
22023 case "$a_binding" in
22025 if test "x$OCAMLC" = x ; then
22026 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22027 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22028 binding_prereqs_failed=1
22030 if test "x$OCAMLDEP" = x ; then
22031 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22032 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22033 binding_prereqs_failed=1
22035 if test "x$OCAMLOPT" = x ; then
22036 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22037 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22039 if test "x$with_ocaml_libdir" != xauto ; then
22040 OCAML_LIBDIR=$with_ocaml_libdir
22043 ocaml_stdlib="`"$OCAMLC" -where`"
22044 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22046 # ocaml stdlib is beneath our prefix; use stdlib
22047 OCAML_LIBDIR=$ocaml_stdlib
22050 # ocaml stdlib is outside our prefix; use libdir/ocaml
22051 OCAML_LIBDIR=${prefix}/lib/ocaml
22058 if test "$binding_prereqs_failed" = 1 ; then
22059 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22060 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22061 { (exit 1); exit 1; }; }
22064 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22065 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22066 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 ac_cpp='$CXXCPP $CPPFLAGS'
22071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22075 oldcxxflags="$CXXFLAGS"
22076 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22092 rm -f conftest.$ac_objext
22093 if { (ac_try="$ac_compile"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_compile") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } &&
22106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22107 { (case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_try") 2>&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
22117 { (case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122 (eval "$ac_try") 2>&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 llvm_cv_cxx_visibility_inlines_hidden=yes
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 llvm_cv_cxx_visibility_inlines_hidden=no
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 CXXFLAGS="$oldcxxflags"
22137 ac_cpp='$CPP $CPPFLAGS'
22138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22144 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22145 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22146 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22147 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22150 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22155 if test "$llvm_cv_link_use_r" = "yes" ; then
22162 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22163 RDYNAMIC="-rdynamic"
22170 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22177 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22179 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22181 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22183 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22185 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22188 ac_config_files="$ac_config_files Makefile.config"
22191 ac_config_files="$ac_config_files llvm.spec"
22194 ac_config_files="$ac_config_files docs/doxygen.cfg"
22197 if test "${clang_src_root}" = ""; then
22198 clang_src_root="$srcdir/tools/clang"
22200 if test -f ${clang_src_root}/README.txt; then
22201 configh="include/clang/Config/config.h"
22202 doxy="docs/doxygen.cfg"
22203 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22205 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22209 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22212 test "x$program_prefix" = "xNONE" && program_prefix=""
22216 ac_config_commands="$ac_config_commands setup"
22218 ac_config_commands="$ac_config_commands Makefile"
22221 ac_config_commands="$ac_config_commands Makefile.common"
22224 ac_config_commands="$ac_config_commands examples/Makefile"
22227 ac_config_commands="$ac_config_commands lib/Makefile"
22230 ac_config_commands="$ac_config_commands runtime/Makefile"
22233 ac_config_commands="$ac_config_commands test/Makefile"
22236 ac_config_commands="$ac_config_commands test/Makefile.tests"
22239 ac_config_commands="$ac_config_commands unittests/Makefile"
22242 ac_config_commands="$ac_config_commands tools/Makefile"
22245 ac_config_commands="$ac_config_commands utils/Makefile"
22248 ac_config_commands="$ac_config_commands projects/Makefile"
22251 ac_config_commands="$ac_config_commands bindings/Makefile"
22254 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22258 cat >confcache <<\_ACEOF
22259 # This file is a shell script that caches the results of configure
22260 # tests run on this system so they can be shared between configure
22261 # scripts and configure runs, see configure's option --config-cache.
22262 # It is not useful on other systems. If it contains results you don't
22263 # want to keep, you may remove or edit it.
22265 # config.status only pays attention to the cache file if you give it
22266 # the --recheck option to rerun configure.
22268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22270 # following values.
22274 # The following way of writing the cache mishandles newlines in values,
22275 # but we know of no workaround that is simple, portable, and efficient.
22276 # So, we kill variables containing newlines.
22277 # Ultrix sh set writes to stderr and can't be redirected directly,
22278 # and sets the high bit in the cache file unless we assign to the vars.
22280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22281 eval ac_val=\$$ac_var
22285 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22286 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22289 _ | IFS | as_nl) ;; #(
22290 *) $as_unset $ac_var ;;
22296 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22297 *${as_nl}ac_space=\ *)
22298 # `set' does not quote correctly, so add quotes (double-quote
22299 # substitution turns \\\\ into \\, and sed turns \\ into \).
22302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22305 # `set' quotes correctly as required by POSIX, so do not add quotes.
22306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22317 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22319 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22320 if test -w "$cache_file"; then
22321 test "x$cache_file" != "x/dev/null" &&
22322 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22323 echo "$as_me: updating cache $cache_file" >&6;}
22324 cat confcache >$cache_file
22326 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22327 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22333 # Let make expand exec_prefix.
22334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22336 DEFS=-DHAVE_CONFIG_H
22340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22341 # 1. Remove the extension, and $U if already installed.
22342 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22343 ac_i=`echo "$ac_i" | sed "$ac_script"`
22344 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22345 # will be set to the directory where LIBOBJS objects are built.
22346 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22347 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22349 LIBOBJS=$ac_libobjs
22351 LTLIBOBJS=$ac_ltlibobjs
22354 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22355 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22356 Usually this means the macro was only invoked conditionally." >&5
22357 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22358 Usually this means the macro was only invoked conditionally." >&2;}
22359 { (exit 1); exit 1; }; }
22361 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22362 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22363 Usually this means the macro was only invoked conditionally." >&5
22364 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22365 Usually this means the macro was only invoked conditionally." >&2;}
22366 { (exit 1); exit 1; }; }
22369 : ${CONFIG_STATUS=./config.status}
22370 ac_clean_files_save=$ac_clean_files
22371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22372 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22373 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22374 cat >$CONFIG_STATUS <<_ACEOF
22376 # Generated by $as_me.
22377 # Run this file to recreate the current configuration.
22378 # Compiler output produced by configure, useful for debugging
22379 # configure, is in config.log if it exists.
22382 ac_cs_recheck=false
22384 SHELL=\${CONFIG_SHELL-$SHELL}
22387 cat >>$CONFIG_STATUS <<\_ACEOF
22388 ## --------------------- ##
22389 ## M4sh Initialization. ##
22390 ## --------------------- ##
22392 # Be Bourne compatible
22393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22396 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22397 # is contrary to our usage. Disable this feature.
22398 alias -g '${1+"$@"}'='"$@"'
22399 setopt NO_GLOB_SUBST
22401 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22403 BIN_SH=xpg4; export BIN_SH # for Tru64
22404 DUALCASE=1; export DUALCASE # for MKS sh
22408 # Avoid depending upon Character Ranges.
22409 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22410 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22411 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22412 as_cr_digits='0123456789'
22413 as_cr_alnum=$as_cr_Letters$as_cr_digits
22415 # The user is always right.
22416 if test "${PATH_SEPARATOR+set}" != set; then
22417 echo "#! /bin/sh" >conf$$.sh
22418 echo "exit 0" >>conf$$.sh
22420 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22428 # Support unset when possible.
22429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22437 # We need space, tab and new line, in precisely that order. Quoting is
22438 # there to prevent editors from complaining about space-tab.
22439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22440 # splitting by setting IFS to empty value.)
22445 # Find who we are. Look in the path if we contain no directory separator.
22447 *[\\/]* ) as_myself=$0 ;;
22448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in $PATH
22452 test -z "$as_dir" && as_dir=.
22453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22459 # We did not find ourselves, most probably we were run as `sh COMMAND'
22460 # in which case we are not to be found in the path.
22461 if test "x$as_myself" = x; then
22464 if test ! -f "$as_myself"; then
22465 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22466 { (exit 1); exit 1; }
22469 # Work around bugs in pre-3.0 UWIN ksh.
22470 for as_var in ENV MAIL MAILPATH
22471 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22479 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22480 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22481 LC_TELEPHONE LC_TIME
22483 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22484 eval $as_var=C; export $as_var
22486 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22490 # Required to use basename.
22491 if expr a : '\(a\)' >/dev/null 2>&1 &&
22492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22498 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22499 as_basename=basename
22505 # Name of the executable.
22506 as_me=`$as_basename -- "$0" ||
22507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22508 X"$0" : 'X\(//\)$' \| \
22509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22511 sed '/^.*\/\([^/][^/]*\)\/*$/{
22530 as_lineno_1=$LINENO
22531 as_lineno_2=$LINENO
22532 test "x$as_lineno_1" != "x$as_lineno_2" &&
22533 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22535 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22536 # uniformly replaced by the line number. The first 'sed' inserts a
22537 # line-number line after each line using $LINENO; the second 'sed'
22538 # does the real work. The second script uses 'N' to pair each
22539 # line-number line with the line containing $LINENO, and appends
22540 # trailing '-' during substitution so that $LINENO is not a special
22541 # case at line end.
22542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22543 # scripts with optimization help from Paolo Bonzini. Blame Lee
22544 # E. McMahon (1931-1989) for sed's syntax. :-)
22556 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22559 ' >$as_me.lineno &&
22560 chmod +x "$as_me.lineno" ||
22561 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22562 { (exit 1); exit 1; }; }
22564 # Don't try to exec as it changes $[0], causing all sort of problems
22565 # (the dirname of $[0] is not the place where we might find the
22566 # original and so on. Autoconf is especially sensitive to this).
22567 . "./$as_me.lineno"
22568 # Exit status is that of the last command.
22573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22579 ECHO_C= ECHO_N= ECHO_T=
22580 case `echo -n x` in
22582 case `echo 'x\c'` in
22583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22590 if expr a : '\(a\)' >/dev/null 2>&1 &&
22591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22597 rm -f conf$$ conf$$.exe conf$$.file
22598 if test -d conf$$.dir; then
22599 rm -f conf$$.dir/conf$$.file
22605 if ln -s conf$$.file conf$$ 2>/dev/null; then
22607 # ... but there are two gotchas:
22608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22610 # In both cases, we have to default to `cp -p'.
22611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22613 elif ln conf$$.file conf$$ 2>/dev/null; then
22618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22619 rmdir conf$$.dir 2>/dev/null
22621 if mkdir -p . 2>/dev/null; then
22624 test -d ./-p && rmdir ./-p
22628 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22629 # systems may use methods other than mode bits to determine executability.
22630 cat >conf$$.file <<_ASEOF
22634 chmod +x conf$$.file
22635 if test -x conf$$.file >/dev/null 2>&1; then
22636 as_executable_p="test -x"
22642 # Sed expression to map a string onto a valid CPP name.
22643 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22645 # Sed expression to map a string onto a valid variable name.
22646 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22651 # Save the log message, to keep $[0] and so on meaningful, and to
22652 # report actual input values of CONFIG_FILES etc. instead of their
22653 # values after options handling.
22655 This file was extended by LLVM $as_me 3.4svn, which was
22656 generated by GNU Autoconf 2.60. Invocation command line was
22658 CONFIG_FILES = $CONFIG_FILES
22659 CONFIG_HEADERS = $CONFIG_HEADERS
22660 CONFIG_LINKS = $CONFIG_LINKS
22661 CONFIG_COMMANDS = $CONFIG_COMMANDS
22664 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22669 cat >>$CONFIG_STATUS <<_ACEOF
22670 # Files that config.status was made for.
22671 config_files="$ac_config_files"
22672 config_headers="$ac_config_headers"
22673 config_commands="$ac_config_commands"
22677 cat >>$CONFIG_STATUS <<\_ACEOF
22679 \`$as_me' instantiates files from templates according to the
22680 current configuration.
22682 Usage: $0 [OPTIONS] [FILE]...
22684 -h, --help print this help, then exit
22685 -V, --version print version number, then exit
22686 -q, --quiet do not print progress messages
22687 -d, --debug don't remove temporary files
22688 --recheck update $as_me by reconfiguring in the same conditions
22689 --file=FILE[:TEMPLATE]
22690 instantiate the configuration file FILE
22691 --header=FILE[:TEMPLATE]
22692 instantiate the configuration header FILE
22694 Configuration files:
22697 Configuration headers:
22700 Configuration commands:
22703 Report bugs to <bug-autoconf@gnu.org>."
22706 cat >>$CONFIG_STATUS <<_ACEOF
22708 LLVM config.status 3.4svn
22709 configured by $0, generated by GNU Autoconf 2.60,
22710 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22712 Copyright (C) 2006 Free Software Foundation, Inc.
22713 This config.status script is free software; the Free Software Foundation
22714 gives unlimited permission to copy, distribute and modify it."
22721 cat >>$CONFIG_STATUS <<\_ACEOF
22722 # If no file are specified by the user, then we need to provide default
22723 # value. By we need to know if files were specified by the user.
22729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22741 # Handling of the options.
22742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22744 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22745 echo "$ac_cs_version"; exit ;;
22746 --debug | --debu | --deb | --de | --d | -d )
22748 --file | --fil | --fi | --f )
22750 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22751 ac_need_defaults=false;;
22752 --header | --heade | --head | --hea )
22754 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22755 ac_need_defaults=false;;
22757 # Conflict between --help and --header
22758 { echo "$as_me: error: ambiguous option: $1
22759 Try \`$0 --help' for more information." >&2
22760 { (exit 1); exit 1; }; };;
22761 --help | --hel | -h )
22762 echo "$ac_cs_usage"; exit ;;
22763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22767 # This is an error.
22768 -*) { echo "$as_me: error: unrecognized option: $1
22769 Try \`$0 --help' for more information." >&2
22770 { (exit 1); exit 1; }; } ;;
22772 *) ac_config_targets="$ac_config_targets $1"
22773 ac_need_defaults=false ;;
22779 ac_configure_extra_args=
22781 if $ac_cs_silent; then
22783 ac_configure_extra_args="$ac_configure_extra_args --silent"
22787 cat >>$CONFIG_STATUS <<_ACEOF
22788 if \$ac_cs_recheck; then
22789 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22790 CONFIG_SHELL=$SHELL
22791 export CONFIG_SHELL
22792 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22796 cat >>$CONFIG_STATUS <<\_ACEOF
22800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22801 ## Running $as_me. ##
22807 cat >>$CONFIG_STATUS <<_ACEOF
22811 llvm_src="${srcdir}"
22815 cat >>$CONFIG_STATUS <<\_ACEOF
22817 # Handling of arguments.
22818 for ac_config_target in $ac_config_targets
22820 case $ac_config_target in
22821 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22822 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22823 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22824 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22825 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22826 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22827 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22828 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22829 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22830 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22831 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22832 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22833 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22834 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22835 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22836 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22837 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22838 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22839 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22840 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22841 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22842 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22843 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22844 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22845 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22846 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22847 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22849 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22850 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22851 { (exit 1); exit 1; }; };;
22856 # If the user did not use the arguments to specify the items to instantiate,
22857 # then the envvar interface is used. Set only those that are not.
22858 # We use the long form for the default assignment because of an extremely
22859 # bizarre bug on SunOS 4.1.3.
22860 if $ac_need_defaults; then
22861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22866 # Have a temporary directory for convenience. Make it in the build tree
22867 # simply because there is no reason against having it here, and in addition,
22868 # creating and moving files from /tmp can sometimes cause problems.
22869 # Hook for its removal unless debugging.
22870 # Note that there is a small window in which the directory will not be cleaned:
22871 # after its creation but before its name has been assigned to `$tmp'.
22875 trap 'exit_status=$?
22876 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22878 trap '{ (exit 1); exit 1; }' 1 2 13 15
22880 # Create a (secure) tmp directory for tmp files.
22883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22884 test -n "$tmp" && test -d "$tmp"
22887 tmp=./conf$$-$RANDOM
22888 (umask 077 && mkdir "$tmp")
22891 echo "$me: cannot create a temporary directory in ." >&2
22892 { (exit 1); exit 1; }
22896 # Set up the sed scripts for CONFIG_FILES section.
22899 # No need to generate the scripts if there are no CONFIG_FILES.
22900 # This happens for instance when ./config.status config.h
22901 if test -n "$CONFIG_FILES"; then
22908 for ac_last_try in false false false false false :; do
22909 cat >conf$$subs.sed <<_ACEOF
22910 SHELL!$SHELL$ac_delim
22911 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22912 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22913 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22914 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22915 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22916 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22917 exec_prefix!$exec_prefix$ac_delim
22918 prefix!$prefix$ac_delim
22919 program_transform_name!$program_transform_name$ac_delim
22920 bindir!$bindir$ac_delim
22921 sbindir!$sbindir$ac_delim
22922 libexecdir!$libexecdir$ac_delim
22923 datarootdir!$datarootdir$ac_delim
22924 datadir!$datadir$ac_delim
22925 sysconfdir!$sysconfdir$ac_delim
22926 sharedstatedir!$sharedstatedir$ac_delim
22927 localstatedir!$localstatedir$ac_delim
22928 includedir!$includedir$ac_delim
22929 oldincludedir!$oldincludedir$ac_delim
22930 docdir!$docdir$ac_delim
22931 infodir!$infodir$ac_delim
22932 htmldir!$htmldir$ac_delim
22933 dvidir!$dvidir$ac_delim
22934 pdfdir!$pdfdir$ac_delim
22935 psdir!$psdir$ac_delim
22936 libdir!$libdir$ac_delim
22937 localedir!$localedir$ac_delim
22938 mandir!$mandir$ac_delim
22939 DEFS!$DEFS$ac_delim
22940 ECHO_C!$ECHO_C$ac_delim
22941 ECHO_N!$ECHO_N$ac_delim
22942 ECHO_T!$ECHO_T$ac_delim
22943 LIBS!$LIBS$ac_delim
22944 build_alias!$build_alias$ac_delim
22945 host_alias!$host_alias$ac_delim
22946 target_alias!$target_alias$ac_delim
22947 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22949 CFLAGS!$CFLAGS$ac_delim
22950 LDFLAGS!$LDFLAGS$ac_delim
22951 CPPFLAGS!$CPPFLAGS$ac_delim
22952 ac_ct_CC!$ac_ct_CC$ac_delim
22953 EXEEXT!$EXEEXT$ac_delim
22954 OBJEXT!$OBJEXT$ac_delim
22956 CXXFLAGS!$CXXFLAGS$ac_delim
22957 ac_ct_CXX!$ac_ct_CXX$ac_delim
22959 subdirs!$subdirs$ac_delim
22960 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22961 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22962 build!$build$ac_delim
22963 build_cpu!$build_cpu$ac_delim
22964 build_vendor!$build_vendor$ac_delim
22965 build_os!$build_os$ac_delim
22966 host!$host$ac_delim
22967 host_cpu!$host_cpu$ac_delim
22968 host_vendor!$host_vendor$ac_delim
22969 host_os!$host_os$ac_delim
22970 target!$target$ac_delim
22971 target_cpu!$target_cpu$ac_delim
22972 target_vendor!$target_vendor$ac_delim
22973 target_os!$target_os$ac_delim
22975 HOST_OS!$HOST_OS$ac_delim
22976 TARGET_OS!$TARGET_OS$ac_delim
22977 LINKALL!$LINKALL$ac_delim
22978 NOLINKALL!$NOLINKALL$ac_delim
22979 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22980 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22981 ARCH!$ARCH$ac_delim
22982 HOST_ARCH!$HOST_ARCH$ac_delim
22983 ENDIAN!$ENDIAN$ac_delim
22984 GREP!$GREP$ac_delim
22985 EGREP!$EGREP$ac_delim
22986 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22987 BUILD_CC!$BUILD_CC$ac_delim
22988 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22989 BUILD_CXX!$BUILD_CXX$ac_delim
22990 CVSBUILD!$CVSBUILD$ac_delim
22991 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22992 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22993 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22994 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22995 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22996 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22997 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22998 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22999 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23000 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23001 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23002 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23003 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23004 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23005 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23009 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23011 elif $ac_last_try; then
23012 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23014 { (exit 1); exit 1; }; }
23016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23021 if test -n "$ac_eof"; then
23022 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23023 ac_eof=`expr $ac_eof + 1`
23026 cat >>$CONFIG_STATUS <<_ACEOF
23027 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23032 s/^/s,@/; s/!/@,|#_!!_#|/
23035 s/'"$ac_delim"'$/,g/; t
23037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23038 ' >>$CONFIG_STATUS <conf$$subs.sed
23039 rm -f conf$$subs.sed
23040 cat >>$CONFIG_STATUS <<_ACEOF
23046 for ac_last_try in false false false false false :; do
23047 cat >conf$$subs.sed <<_ACEOF
23048 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23049 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23050 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23051 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23052 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23053 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23054 ENABLE_PIC!$ENABLE_PIC$ac_delim
23055 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23056 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23057 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23058 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23059 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23060 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23061 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23062 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23063 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23064 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23065 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23066 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23067 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23068 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23069 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23071 ifGNUmake!$ifGNUmake$ac_delim
23072 LN_S!$LN_S$ac_delim
23075 DATE!$DATE$ac_delim
23076 FIND!$FIND$ac_delim
23077 MKDIR!$MKDIR$ac_delim
23079 RANLIB!$RANLIB$ac_delim
23084 BINPWD!$BINPWD$ac_delim
23085 GRAPHVIZ!$GRAPHVIZ$ac_delim
23088 NEATO!$NEATO$ac_delim
23089 TWOPI!$TWOPI$ac_delim
23090 CIRCO!$CIRCO$ac_delim
23092 DOTTY!$DOTTY$ac_delim
23093 XDOT!$XDOT$ac_delim
23094 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23095 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23096 INSTALL_DATA!$INSTALL_DATA$ac_delim
23097 BZIP2!$BZIP2$ac_delim
23099 DOXYGEN!$DOXYGEN$ac_delim
23100 GROFF!$GROFF$ac_delim
23101 GZIPBIN!$GZIPBIN$ac_delim
23102 PDFROFF!$PDFROFF$ac_delim
23104 OCAMLC!$OCAMLC$ac_delim
23105 OCAMLOPT!$OCAMLOPT$ac_delim
23106 OCAMLDEP!$OCAMLDEP$ac_delim
23107 OCAMLDOC!$OCAMLDOC$ac_delim
23109 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23110 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23111 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23112 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23113 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23114 LIBADD_DL!$LIBADD_DL$ac_delim
23115 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23116 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23117 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23118 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23119 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23120 PYTHON!$PYTHON$ac_delim
23121 USE_UDIS86!$USE_UDIS86$ac_delim
23122 USE_OPROFILE!$USE_OPROFILE$ac_delim
23123 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23124 XML2CONFIG!$XML2CONFIG$ac_delim
23125 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23126 LIBXML2_INC!$LIBXML2_INC$ac_delim
23127 CXXCPP!$CXXCPP$ac_delim
23128 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23129 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23130 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23131 MMAP_FILE!$MMAP_FILE$ac_delim
23132 SHLIBEXT!$SHLIBEXT$ac_delim
23133 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23134 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23135 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23136 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23137 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23138 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23139 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23140 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23141 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23142 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23143 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23144 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23147 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23149 elif $ac_last_try; then
23150 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23151 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23152 { (exit 1); exit 1; }; }
23154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23158 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23159 if test -n "$ac_eof"; then
23160 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23161 ac_eof=`expr $ac_eof + 1`
23164 cat >>$CONFIG_STATUS <<_ACEOF
23165 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23169 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23170 s/^/s,@/; s/!/@,|#_!!_#|/
23173 s/'"$ac_delim"'$/,g/; t
23175 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23176 ' >>$CONFIG_STATUS <conf$$subs.sed
23177 rm -f conf$$subs.sed
23178 cat >>$CONFIG_STATUS <<_ACEOF
23184 for ac_last_try in false false false false false :; do
23185 cat >conf$$subs.sed <<_ACEOF
23186 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23187 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23188 RPATH!$RPATH$ac_delim
23189 RDYNAMIC!$RDYNAMIC$ac_delim
23190 program_prefix!$program_prefix$ac_delim
23191 LIBOBJS!$LIBOBJS$ac_delim
23192 LTLIBOBJS!$LTLIBOBJS$ac_delim
23195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23197 elif $ac_last_try; then
23198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23200 { (exit 1); exit 1; }; }
23202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23207 if test -n "$ac_eof"; then
23208 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23209 ac_eof=`expr $ac_eof + 1`
23212 cat >>$CONFIG_STATUS <<_ACEOF
23213 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23218 s/^/s,@/; s/!/@,|#_!!_#|/
23221 s/'"$ac_delim"'$/,g/; t
23223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23224 ' >>$CONFIG_STATUS <conf$$subs.sed
23225 rm -f conf$$subs.sed
23226 cat >>$CONFIG_STATUS <<_ACEOF
23233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23235 # trailing colons and then remove the whole line if VPATH becomes empty
23236 # (actually we leave an empty line to preserve line numbers).
23237 if test "x$srcdir" = x.; then
23238 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23239 s/:*\$(srcdir):*/:/
23240 s/:*\${srcdir}:*/:/
23242 s/^\([^=]*=[ ]*\):*/\1/
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 fi # test -n "$CONFIG_FILES"
23252 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23255 :[FHLC]) ac_mode=$ac_tag; continue;;
23257 case $ac_mode$ac_tag in
23259 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23260 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23261 { (exit 1); exit 1; }; };;
23262 :[FH]-) ac_tag=-:-;;
23263 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23280 -) ac_f="$tmp/stdin";;
23281 *) # Look for the file first in the build tree, then in the source tree
23282 # (if the path is not absolute). The absolute path cannot be DOS-style,
23283 # because $ac_f cannot contain `:'.
23287 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23289 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23290 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23291 { (exit 1); exit 1; }; };;
23293 ac_file_inputs="$ac_file_inputs $ac_f"
23296 # Let's still pretend it is `configure' which instantiates (i.e., don't
23297 # use $as_me), people would be surprised to read:
23298 # /* config.h. Generated by config.status. */
23299 configure_input="Generated from "`IFS=:
23300 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23301 if test x"$ac_file" != x-; then
23302 configure_input="$ac_file. $configure_input"
23303 { echo "$as_me:$LINENO: creating $ac_file" >&5
23304 echo "$as_me: creating $ac_file" >&6;}
23308 *:-:* | *:-) cat >"$tmp/stdin";;
23313 ac_dir=`$as_dirname -- "$ac_file" ||
23314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23315 X"$ac_file" : 'X\(//\)[^/]' \| \
23316 X"$ac_file" : 'X\(//\)$' \| \
23317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23323 /^X\(\/\/\)[^/].*/{
23338 -*) as_dir=./$as_dir;;
23340 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23344 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23345 *) as_qdir=$as_dir;;
23347 as_dirs="'$as_qdir' $as_dirs"
23348 as_dir=`$as_dirname -- "$as_dir" ||
23349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23350 X"$as_dir" : 'X\(//\)[^/]' \| \
23351 X"$as_dir" : 'X\(//\)$' \| \
23352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23358 /^X\(\/\/\)[^/].*/{
23371 test -d "$as_dir" && break
23373 test -z "$as_dirs" || eval "mkdir $as_dirs"
23374 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23375 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23376 { (exit 1); exit 1; }; }; }
23380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23383 # A ".." for each directory in $ac_dir_suffix.
23384 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23385 case $ac_top_builddir_sub in
23386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23390 ac_abs_top_builddir=$ac_pwd
23391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23392 # for backward compatibility:
23393 ac_top_builddir=$ac_top_build_prefix
23396 .) # We are building in place.
23398 ac_top_srcdir=$ac_top_builddir_sub
23399 ac_abs_top_srcdir=$ac_pwd ;;
23400 [\\/]* | ?:[\\/]* ) # Absolute name.
23401 ac_srcdir=$srcdir$ac_dir_suffix;
23402 ac_top_srcdir=$srcdir
23403 ac_abs_top_srcdir=$srcdir ;;
23404 *) # Relative name.
23405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23406 ac_top_srcdir=$ac_top_build_prefix$srcdir
23407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23424 cat >>$CONFIG_STATUS <<\_ACEOF
23425 # If the template does not know about datarootdir, expand it.
23426 # FIXME: This hack should be removed a few years after 2.60.
23427 ac_datarootdir_hack=; ac_datarootdir_seen=
23429 case `sed -n '/datarootdir/ {
23438 ' $ac_file_inputs` in
23439 *datarootdir*) ac_datarootdir_seen=yes;;
23440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23441 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23442 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23444 cat >>$CONFIG_STATUS <<_ACEOF
23445 ac_datarootdir_hack='
23446 s&@datadir@&$datadir&g
23447 s&@docdir@&$docdir&g
23448 s&@infodir@&$infodir&g
23449 s&@localedir@&$localedir&g
23450 s&@mandir@&$mandir&g
23451 s&\\\${datarootdir}&$datarootdir&g' ;;
23455 # Neutralize VPATH when `$srcdir' = `.'.
23456 # Shell code in configure.ac might set extrasub.
23457 # FIXME: do we really want to maintain this feature?
23458 cat >>$CONFIG_STATUS <<_ACEOF
23462 cat >>$CONFIG_STATUS <<\_ACEOF
23464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23465 s&@configure_input@&$configure_input&;t t
23466 s&@top_builddir@&$ac_top_builddir_sub&;t t
23467 s&@srcdir@&$ac_srcdir&;t t
23468 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23469 s&@top_srcdir@&$ac_top_srcdir&;t t
23470 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23471 s&@builddir@&$ac_builddir&;t t
23472 s&@abs_builddir@&$ac_abs_builddir&;t t
23473 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23474 s&@INSTALL@&$ac_INSTALL&;t t
23475 $ac_datarootdir_hack
23476 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23479 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23481 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23482 which seems to be undefined. Please make sure it is defined." >&5
23483 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23484 which seems to be undefined. Please make sure it is defined." >&2;}
23488 -) cat "$tmp/out"; rm -f "$tmp/out";;
23489 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23498 # Transform confdefs.h into a sed script `conftest.defines', that
23499 # substitutes the proper values into config.h.in to produce config.h.
23500 rm -f conftest.defines conftest.tail
23501 # First, append a space to every undef/define line, to ease matching.
23502 echo 's/$/ /' >conftest.defines
23503 # Then, protect against being on the right side of a sed subst, or in
23504 # an unquoted here document, in config.status. If some macros were
23505 # called several times there might be several #defines for the same
23506 # symbol, which is useless. But do not sort them, since the last
23507 # AC_DEFINE must be honored.
23508 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23509 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23510 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23511 # PARAMS is the parameter list in the macro definition--in most cases, it's
23512 # just an empty string.
23513 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23514 ac_dB='\\)[ (].*,\\1define\\2'
23522 s/^[ ]*#[ ]*define[ ][ ]*//
23527 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23528 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23529 ' >>conftest.defines
23531 # Remove the space that was appended to ease matching.
23532 # Then replace #undef with comments. This is necessary, for
23533 # example, in the case of _POSIX_SOURCE, which is predefined and required
23534 # on some systems where configure will not decide to define it.
23535 # (The regexp can be short, since the line contains either #define or #undef.)
23537 s,^[ #]*u.*,/* & */,' >>conftest.defines
23539 # Break up conftest.defines:
23540 ac_max_sed_lines=50
23542 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23543 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23544 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23546 ac_in='$ac_file_inputs'
23547 ac_out='"$tmp/out1"'
23548 ac_nxt='"$tmp/out2"'
23552 # Write a here document:
23553 cat >>$CONFIG_STATUS <<_ACEOF
23554 # First, check the format of the line:
23555 cat >"\$tmp/defines.sed" <<\\CEOF
23556 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23557 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23561 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23563 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23564 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23565 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23566 grep . conftest.tail >/dev/null || break
23567 rm -f conftest.defines
23568 mv conftest.tail conftest.defines
23570 rm -f conftest.defines conftest.tail
23572 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 if test x"$ac_file" != x-; then
23575 echo "/* $configure_input */" >"$tmp/config.h"
23576 cat "$ac_result" >>"$tmp/config.h"
23577 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23578 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23579 echo "$as_me: $ac_file is unchanged" >&6;}
23582 mv "$tmp/config.h" $ac_file
23585 echo "/* $configure_input */"
23591 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23592 echo "$as_me: executing $ac_file commands" >&6;}
23597 case $ac_file$ac_mode in
23598 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23599 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23600 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23601 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23602 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23603 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23604 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23605 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23606 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23607 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23608 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23609 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23610 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23611 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23612 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23613 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23614 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23615 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23616 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23617 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23618 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23619 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23620 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23622 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23629 { (exit 0); exit 0; }
23631 chmod +x $CONFIG_STATUS
23632 ac_clean_files=$ac_clean_files_save
23635 # configure is writing to config.log, and then calls config.status.
23636 # config.status does its own redirection, appending to config.log.
23637 # Unfortunately, on DOS this fails, as config.log is still kept open
23638 # by configure, so config.status won't be able to write to it; its
23639 # output is simply discarded. So we exec the FD to /dev/null,
23640 # effectively closing config.log, so it can be properly (re)opened and
23641 # appended to by config.status. When coming back to configure, we
23642 # need to make the FD available again.
23643 if test "$no_create" != yes; then
23645 ac_config_status_args=
23646 test "$silent" = yes &&
23647 ac_config_status_args="$ac_config_status_args --quiet"
23649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23652 # would make configure fail if this is the last instruction.
23653 $ac_cs_success || { (exit 1); exit 1; }
23657 # CONFIG_SUBDIRS section.
23659 if test "$no_recursion" != yes; then
23661 # Remove --cache-file and --srcdir arguments so they do not pile up.
23662 ac_sub_configure_args=
23664 eval "set x $ac_configure_args"
23668 if test -n "$ac_prev"; then
23673 -cache-file | --cache-file | --cache-fil | --cache-fi \
23674 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23675 ac_prev=cache_file ;;
23676 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23677 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23680 --config-cache | -C)
23682 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23684 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23686 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23688 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23692 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23694 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23698 # Always prepend --prefix to ensure using the same prefix
23699 # in subdir configurations.
23700 ac_arg="--prefix=$prefix"
23702 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23704 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23707 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23709 # Do not complain, so a configure script can configure whichever
23710 # parts of a large source tree are present.
23711 test -d "$srcdir/$ac_dir" || continue
23713 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23714 echo "$as_me:$LINENO: $ac_msg" >&5
23718 -*) as_dir=./$as_dir;;
23720 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23724 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23725 *) as_qdir=$as_dir;;
23727 as_dirs="'$as_qdir' $as_dirs"
23728 as_dir=`$as_dirname -- "$as_dir" ||
23729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730 X"$as_dir" : 'X\(//\)[^/]' \| \
23731 X"$as_dir" : 'X\(//\)$' \| \
23732 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23738 /^X\(\/\/\)[^/].*/{
23751 test -d "$as_dir" && break
23753 test -z "$as_dirs" || eval "mkdir $as_dirs"
23754 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23755 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23756 { (exit 1); exit 1; }; }; }
23760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23762 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23763 # A ".." for each directory in $ac_dir_suffix.
23764 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23765 case $ac_top_builddir_sub in
23766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23770 ac_abs_top_builddir=$ac_pwd
23771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23772 # for backward compatibility:
23773 ac_top_builddir=$ac_top_build_prefix
23776 .) # We are building in place.
23778 ac_top_srcdir=$ac_top_builddir_sub
23779 ac_abs_top_srcdir=$ac_pwd ;;
23780 [\\/]* | ?:[\\/]* ) # Absolute name.
23781 ac_srcdir=$srcdir$ac_dir_suffix;
23782 ac_top_srcdir=$srcdir
23783 ac_abs_top_srcdir=$srcdir ;;
23784 *) # Relative name.
23785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23786 ac_top_srcdir=$ac_top_build_prefix$srcdir
23787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23794 # Check for guested configure; otherwise get Cygnus style configure.
23795 if test -f "$ac_srcdir/configure.gnu"; then
23796 ac_sub_configure=$ac_srcdir/configure.gnu
23797 elif test -f "$ac_srcdir/configure"; then
23798 ac_sub_configure=$ac_srcdir/configure
23799 elif test -f "$ac_srcdir/configure.in"; then
23800 # This should be Cygnus configure.
23801 ac_sub_configure=$ac_aux_dir/configure
23803 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23804 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23808 # The recursion is here.
23809 if test -n "$ac_sub_configure"; then
23810 # Make the cache file name correct relative to the subdirectory.
23811 case $cache_file in
23812 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23813 *) # Relative name.
23814 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23817 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23818 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23819 # The eval makes quoting arguments work.
23820 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23821 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23822 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23823 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23824 { (exit 1); exit 1; }; }