2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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-2012 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/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
692 ENABLE_EXPENSIVE_CHECKS
710 LLVM_ENUM_ASM_PRINTERS
711 LLVM_ENUM_ASM_PARSERS
712 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
791 ENABLE_VISIBILITY_INLINES_HIDDEN
798 ac_precious_vars='build_alias
809 ac_subdirs_all='projects/llvm-gcc
813 projects/llvm-poolalloc
816 projects/llvm-stacker
824 # Initialize some variables set by options.
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
836 program_transform_name=s,x,x,
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931 eval enable_$ac_feature=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package| sed 's/-/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/-/_/g'`
1156 eval with_$ac_package=no ;;
1159 # Obsolete; use --with-x.
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
1207 # Be sure to have absolute directory names.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1324 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 --target=TARGET configure for building compilers for TARGET [HOST]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-polly Use polly if available (default is YES)
1398 --enable-libcpp Use libc++ if available (default is NO)
1399 --enable-cxx11 Use c++11 if available (default is NO)
1400 --enable-optimized Compile with optimizations enabled (default is NO)
1401 --enable-profiling Compile with profiling enabled (default is NO)
1402 --enable-assertions Compile with assertion checks enabled (default is
1404 --enable-werror Compile with -Werror enabled (default is NO)
1405 --enable-expensive-checks
1406 Compile with expensive debug checks enabled (default
1408 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1411 optimization is on and YES if it's off)
1412 --enable-keep-symbols Do not strip installed executables)
1413 --enable-jit Enable Just In Time Compiling (default is YES)
1414 --enable-docs Build documents (default is YES)
1415 --enable-doxygen Build doxygen documentation (default is NO)
1416 --enable-threads Use threads if available (default is YES)
1417 --enable-pthreads Use pthreads if available (default is YES)
1418 --enable-pic Build LLVM with Position Independent Code (default
1420 --enable-shared Build a shared library and link tools against it
1422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1423 Win32 DLL (default is NO)
1424 --enable-timestamps Enable embedding timestamp information in build
1426 --enable-backtraces Enable embedding backtraces on crash (default is
1428 --enable-targets Build specific host targets: all or
1429 target1,target2,... Valid targets are: host, x86,
1430 x86_64, sparc, powerpc, arm, mips, hexagon, xcore,
1431 msp430, nvptx, and cpp (default=all)
1432 --enable-experimental-targets
1433 Build experimental host targets: disable or
1434 target1,target2,... (default=disable)
1435 --enable-bindings Build specific language bindings:
1436 all,auto,none,{binding-name} (default=auto)
1437 --enable-libffi Check for the presence of libffi (default is NO)
1438 --enable-ltdl-install install libltdl
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-optimize-option Select the compiler options to use for optimized
1445 --with-extra-options Specify additional options to compile LLVM with
1446 --with-extra-ld-options Specify additional options to link LLVM with
1447 --with-ocaml-libdir Specify install location for ocaml bindings (default
1449 --with-clang-srcdir Directory to the out-of-tree Clang source
1450 --with-clang-resource-dir
1451 Relative directory from the Clang binary for
1453 --with-c-include-dirs Colon separated list of directories clang will
1455 --with-gcc-toolchain Directory where gcc is installed.
1456 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1457 --with-binutils-include Specify path to binutils/include/ containing
1458 plugin-api.h file for gold plugin.
1459 --with-bug-report-url Specify the URL where bug reports should be
1460 submitted (default=http://llvm.org/bugs/)
1461 --with-internal-prefix Installation directory for internal files
1462 --with-udis86=<path> Use udis86 external x86 disassembler library
1463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
1465 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CXX C++ compiler command
1476 CXXFLAGS C++ compiler flags
1479 Use these variables to override the choices made by `configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 Report bugs to <http://llvm.org/bugs/>.
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" || continue
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 LLVM configure 3.3svn
1544 generated by GNU Autoconf 2.60
1546 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1547 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1551 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1555 cat >config.log <<_ACEOF
1556 This file contains any messages produced by compilers while
1557 running configure, to aid debugging if configure makes a mistake.
1559 It was created by LLVM $as_me 3.3svn, which was
1560 generated by GNU Autoconf 2.60. Invocation command line was
1572 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1573 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1574 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1575 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1576 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1578 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1579 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1581 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1582 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1583 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1584 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1585 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1586 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1587 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 test -z "$as_dir" && as_dir=.
1596 echo "PATH: $as_dir"
1612 # Keep a trace of the command line.
1613 # Strip out --no-create and --no-recursion so they do not pile up.
1614 # Strip out --silent because we don't want to record it for future runs.
1615 # Also quote any args containing shell meta-characters.
1616 # Make two passes to allow for proper duplicate-argument suppression.
1620 ac_must_keep_next=false
1626 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1628 | -silent | --silent | --silen | --sile | --sil)
1631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1634 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1636 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1637 if test $ac_must_keep_next = true; then
1638 ac_must_keep_next=false # Got value, back to normal.
1641 *=* | --config-cache | -C | -disable-* | --disable-* \
1642 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1643 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1644 | -with-* | --with-* | -without-* | --without-* | --x)
1645 case "$ac_configure_args0 " in
1646 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1649 -* ) ac_must_keep_next=true ;;
1652 ac_configure_args="$ac_configure_args '$ac_arg'"
1657 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1658 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1660 # When interrupted or exit'd, cleanup temporary files, and complete
1661 # config.log. We remove comments because anyway the quotes in there
1662 # would cause problems or look ugly.
1663 # WARNING: Use '\'' to represent an apostrophe within the trap.
1664 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1665 trap 'exit_status=$?
1666 # Save into config.log some information that might help in debugging.
1671 ## ---------------- ##
1672 ## Cache variables. ##
1673 ## ---------------- ##
1676 # The following way of writing the cache mishandles newlines in values,
1678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1679 eval ac_val=\$$ac_var
1683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1687 _ | IFS | as_nl) ;; #(
1688 *) $as_unset $ac_var ;;
1693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1694 *${as_nl}ac_space=\ *)
1696 "s/'\''/'\''\\\\'\'''\''/g;
1697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1708 ## ----------------- ##
1709 ## Output variables. ##
1710 ## ----------------- ##
1713 for ac_var in $ac_subst_vars
1715 eval ac_val=\$$ac_var
1717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719 echo "$ac_var='\''$ac_val'\''"
1723 if test -n "$ac_subst_files"; then
1725 ## ------------------- ##
1726 ## File substitutions. ##
1727 ## ------------------- ##
1730 for ac_var in $ac_subst_files
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1741 if test -s confdefs.h; then
1751 test "$ac_signal" != 0 &&
1752 echo "$as_me: caught signal $ac_signal"
1753 echo "$as_me: exit $exit_status"
1755 rm -f core *.core core.conftest.* &&
1756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1759 for ac_signal in 1 2 13 15; do
1760 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1764 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1765 rm -f -r conftest* confdefs.h
1767 # Predefined preprocessor variables.
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_STRING "$PACKAGE_STRING"
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1794 # Let the site file select an alternate cache file if it wants to.
1795 # Prefer explicitly selected file to automatically selected ones.
1796 if test -n "$CONFIG_SITE"; then
1797 set x "$CONFIG_SITE"
1798 elif test "x$prefix" != xNONE; then
1799 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1801 set x "$ac_default_prefix/share/config.site" \
1802 "$ac_default_prefix/etc/config.site"
1807 if test -r "$ac_site_file"; then
1808 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1809 echo "$as_me: loading site script $ac_site_file" >&6;}
1810 sed 's/^/| /' "$ac_site_file" >&5
1815 if test -r "$cache_file"; then
1816 # Some versions of bash will fail to source /dev/null (special
1817 # files actually), so we avoid doing that.
1818 if test -f "$cache_file"; then
1819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1820 echo "$as_me: loading cache $cache_file" >&6;}
1822 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1823 *) . "./$cache_file";;
1827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1828 echo "$as_me: creating cache $cache_file" >&6;}
1832 # Check that the precious variables saved in the cache have kept the same
1834 ac_cache_corrupted=false
1835 for ac_var in $ac_precious_vars; do
1836 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1837 eval ac_new_set=\$ac_env_${ac_var}_set
1838 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1839 eval ac_new_val=\$ac_env_${ac_var}_value
1840 case $ac_old_set,$ac_new_set in
1842 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1843 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1844 ac_cache_corrupted=: ;;
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1851 if test "x$ac_old_val" != "x$ac_new_val"; then
1852 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1853 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1854 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1855 echo "$as_me: former value: $ac_old_val" >&2;}
1856 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1857 echo "$as_me: current value: $ac_new_val" >&2;}
1858 ac_cache_corrupted=:
1861 # Pass precious variables to config.status.
1862 if test "$ac_new_set" = set; then
1864 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 *) ac_arg=$ac_var=$ac_new_val ;;
1867 case " $ac_configure_args " in
1868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1869 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1873 if $ac_cache_corrupted; then
1874 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1875 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1876 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1877 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1878 { (exit 1); exit 1; }; }
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 cat >>confdefs.h <<\_ACEOF
1914 #define LLVM_VERSION_MAJOR 3
1918 cat >>confdefs.h <<\_ACEOF
1919 #define LLVM_VERSION_MINOR 3
1923 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1932 for ac_dir in autoconf "$srcdir"/autoconf; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963 if test ${srcdir} != "." ; then
1964 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1965 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1966 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1967 { (exit 1); exit 1; }; }
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976 if test -n "$ac_tool_prefix"; then
1977 for ac_prog in clang llvm-gcc gcc
1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test -n "$CC"; then
2008 { echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6; }
2011 { echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6; }
2016 test -n "$CC" && break
2019 if test -z "$CC"; then
2021 for ac_prog in clang llvm-gcc gcc
2023 # Extract the first word of "$ac_prog", so it can be a program name with args.
2024 set dummy $ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040 ac_cv_prog_ac_ct_CC="$ac_prog"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6; }
2055 { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2060 test -n "$ac_ct_CC" && break
2063 if test "x$ac_ct_CC" = x; then
2066 case $cross_compiling:$ac_tool_warned in
2068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2069 whose name does not start with the host triplet. If you think this
2070 configuration is useful to you, please write to autoconf@gnu.org." >&5
2071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet. If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2074 ac_tool_warned=yes ;;
2081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO: checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (ac_try="$ac_compiler --version >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler --version >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (ac_try="$ac_compiler -v >&5"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -v >&5") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (ac_try="$ac_compiler -V >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -V >&5") 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2121 cat >conftest.$ac_ext <<_ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2141 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 # List of possible output files, starting from the most likely.
2146 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147 # only as a last resort. b.out is created by i960 compilers.
2148 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2150 # The IRIX 6 linker writes into existing files which may not be
2151 # executable, retaining their permissions. Remove them first so a
2152 # subsequent execution test works.
2154 for ac_file in $ac_files
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2163 if { (ac_try="$ac_link_default"
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169 (eval "$ac_link_default") 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2176 # so that the user can short-circuit this test for compilers unknown to
2178 for ac_file in $ac_files
2180 test -f "$ac_file" || continue
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185 # We found the default executable, but exeext='' is most
2189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # We set ac_cv_exeext here because the later test for it is not
2194 # safe: cross compilers may not add the suffix if given an `-o'
2195 # argument, so we may need to know it at that point already.
2196 # Even if this section looks crufty: it has the advantage of
2203 test "$ac_cv_exeext" = no && ac_cv_exeext=
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2216 ac_exeext=$ac_cv_exeext
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2220 # Check that the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233 (eval "$ac_try") 2>&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 { echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6; }
2255 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256 ac_clean_files=$ac_clean_files_save
2257 # Check that the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2261 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6; }
2264 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2266 if { (ac_try="$ac_link"
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_link") 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; then
2276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 for ac_file in conftest.exe conftest conftest.*; do
2281 test -f "$ac_file" || continue
2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&2;}
2294 { (exit 1); exit 1; }; }
2297 rm -f conftest$ac_cv_exeext
2298 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2301 rm -f conftest.$ac_ext
2302 EXEEXT=$ac_cv_exeext
2304 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2306 if test "${ac_cv_objext+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 cat >conftest.$ac_ext <<_ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2324 rm -f conftest.o conftest.obj
2325 if { (ac_try="$ac_compile"
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_compile") 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; then
2335 for ac_file in conftest.o conftest.obj conftest.*; do
2336 test -f "$ac_file" || continue;
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357 echo "${ECHO_T}$ac_cv_objext" >&6; }
2358 OBJEXT=$ac_cv_objext
2360 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (ac_try="$ac_compile"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>conftest.er1
2392 grep -v '^ *+' conftest.er1 >conftest.err
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2431 GCC=`test $ac_compiler_gnu = yes && echo yes`
2432 ac_test_CFLAGS=${CFLAGS+set}
2433 ac_save_CFLAGS=$CFLAGS
2434 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_cc_g+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 ac_save_c_werror_flag=$ac_c_werror_flag
2440 ac_c_werror_flag=yes
2443 cat >conftest.$ac_ext <<_ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2458 rm -f conftest.$ac_objext
2459 if { (ac_try="$ac_compile"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465 (eval "$ac_compile") 2>conftest.er1
2467 grep -v '^ *+' conftest.er1 >conftest.err
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2498 cat >conftest.$ac_ext <<_ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2513 rm -f conftest.$ac_objext
2514 if { (ac_try="$ac_compile"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>conftest.er1
2522 grep -v '^ *+' conftest.er1 >conftest.err
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_try") 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2552 ac_c_werror_flag=$ac_save_c_werror_flag
2554 cat >conftest.$ac_ext <<_ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2569 rm -f conftest.$ac_objext
2570 if { (ac_try="$ac_compile"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; } &&
2593 { ac_try='test -s conftest.$ac_objext'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 ac_c_werror_flag=$ac_save_c_werror_flag
2620 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2621 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2622 if test "$ac_test_CFLAGS" = set; then
2623 CFLAGS=$ac_save_CFLAGS
2624 elif test $ac_cv_prog_cc_g = yes; then
2625 if test "$GCC" = yes; then
2631 if test "$GCC" = yes; then
2637 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2638 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_cc_c89+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 ac_cv_prog_cc_c89=no
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2652 #include <sys/types.h>
2653 #include <sys/stat.h>
2654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655 struct buf { int x; };
2656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657 static char *e (p, i)
2663 static char *f (char * (*g) (char **, int), char **p, ...)
2668 s = g (p, va_arg (v,int));
2673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2674 function prototypes and stuff, but not '\xHH' hex character constants.
2675 These don't provoke an error unfortunately, instead are silently treated
2676 as 'x'. The following induces an error, until -std is added to get
2677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2678 array size at least. It's necessary to write '\x00'==0 to get something
2679 that's true only with -std. */
2680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2683 inside strings and character constants. */
2685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2687 int test (int i, double x);
2688 struct s1 {int (*f) (int a);};
2689 struct s2 {int (*f) (double a);};
2690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2704 CC="$ac_save_CC $ac_arg"
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2714 grep -v '^ *+' conftest.er1 >conftest.err
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
2730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; }; then
2739 ac_cv_prog_cc_c89=$ac_arg
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f core conftest.err conftest.$ac_objext
2748 test "x$ac_cv_prog_cc_c89" != "xno" && break
2750 rm -f conftest.$ac_ext
2755 case "x$ac_cv_prog_cc_c89" in
2757 { echo "$as_me:$LINENO: result: none needed" >&5
2758 echo "${ECHO_T}none needed" >&6; } ;;
2760 { echo "$as_me:$LINENO: result: unsupported" >&5
2761 echo "${ECHO_T}unsupported" >&6; } ;;
2763 CC="$CC $ac_cv_prog_cc_c89"
2764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2765 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2770 ac_cpp='$CPP $CPPFLAGS'
2771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 ac_cpp='$CXXCPP $CPPFLAGS'
2777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2780 if test -z "$CXX"; then
2781 if test -n "$CCC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 for ac_prog in clang++ llvm-g++ g++
2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_CXX+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 if test -n "$CXX"; then
2795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 if test -n "$CXX"; then
2816 { echo "$as_me:$LINENO: result: $CXX" >&5
2817 echo "${ECHO_T}$CXX" >&6; }
2819 { echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6; }
2824 test -n "$CXX" && break
2827 if test -z "$CXX"; then
2829 for ac_prog in clang++ llvm-g++ g++
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$ac_ct_CXX"; then
2839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_CXX="$ac_prog"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2859 if test -n "$ac_ct_CXX"; then
2860 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2861 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2863 { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2868 test -n "$ac_ct_CXX" && break
2871 if test "x$ac_ct_CXX" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2877 whose name does not start with the host triplet. If you think this
2878 configuration is useful to you, please write to autoconf@gnu.org." >&5
2879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet. If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2882 ac_tool_warned=yes ;;
2890 # Provide some information about the compiler.
2891 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2892 ac_compiler=`set X $ac_compile; echo $2`
2893 { (ac_try="$ac_compiler --version >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler --version >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -v >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -v >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913 { (ac_try="$ac_compiler -V >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler -V >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_try") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2990 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2994 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2995 GXX=`test $ac_compiler_gnu = yes && echo yes`
2996 ac_test_CXXFLAGS=${CXXFLAGS+set}
2997 ac_save_CXXFLAGS=$CXXFLAGS
2998 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2999 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3000 if test "${ac_cv_prog_cxx_g+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3004 ac_cxx_werror_flag=yes
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } &&
3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_try") 2>&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3056 ac_cv_prog_cxx_g=yes
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3062 cat >conftest.$ac_ext <<_ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h. */
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; } &&
3101 { ac_try='test -s conftest.$ac_objext'
3102 { (case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_try") 2>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_compile") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; } &&
3157 { ac_try='test -s conftest.$ac_objext'
3158 { (case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_try") 2>&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_prog_cxx_g=yes
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3184 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3185 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3186 if test "$ac_test_CXXFLAGS" = set; then
3187 CXXFLAGS=$ac_save_CXXFLAGS
3188 elif test $ac_cv_prog_cxx_g = yes; then
3189 if test "$GXX" = yes; then
3195 if test "$GXX" = yes; then
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3212 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3214 # On Suns, sometimes $CPP names a directory.
3215 if test -n "$CPP" && test -d "$CPP"; then
3218 if test -z "$CPP"; then
3219 if test "${ac_cv_prog_CPP+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 # Double quotes because CPP needs to be expanded
3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226 for ac_c_preproc_warn_flag in '' yes
3228 # Use a header file that comes with gcc, so configuring glibc
3229 # with a fresh cross-compiler works.
3230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3231 # <limits.h> exists even on freestanding compilers.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp. "Syntax error" is here to catch this case.
3234 cat >conftest.$ac_ext <<_ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3241 # include <limits.h>
3243 # include <assert.h>
3247 if { (ac_try="$ac_cpp conftest.$ac_ext"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_c_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3269 if test -z "$ac_cpp_err"; then
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null; then
3304 if test -s conftest.err; then
3305 ac_cpp_err=$ac_c_preproc_warn_flag
3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313 if test -z "$ac_cpp_err"; then
3314 # Broken: success on invalid input.
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Passes both tests.
3325 rm -f conftest.err conftest.$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3342 { echo "$as_me:$LINENO: result: $CPP" >&5
3343 echo "${ECHO_T}$CPP" >&6; }
3345 for ac_c_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3360 # include <limits.h>
3362 # include <assert.h>
3366 if { (ac_try="$ac_cpp conftest.$ac_ext"
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 grep -v '^ *+' conftest.er1 >conftest.err
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_c_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388 if test -z "$ac_cpp_err"; then
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 # Broken: fails on valid input.
3398 rm -f conftest.err conftest.$ac_ext
3400 # OK, works on sane cases. Now check whether nonexistent headers
3401 # can be detected and how.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3444 rm -f conftest.err conftest.$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.$ac_ext
3449 if $ac_preproc_ok; then
3452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&5
3454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3455 See \`config.log' for more details." >&2;}
3456 { (exit 1); exit 1; }; }
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 if test -d ${srcdir}/projects/llvm-gcc ; then
3469 subdirs="$subdirs projects/llvm-gcc"
3473 if test -d ${srcdir}/projects/test-suite ; then
3474 subdirs="$subdirs projects/test-suite"
3478 if test -d ${srcdir}/projects/llvm-test ; then
3479 subdirs="$subdirs projects/llvm-test"
3483 if test -d ${srcdir}/projects/poolalloc ; then
3484 subdirs="$subdirs projects/poolalloc"
3488 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3489 subdirs="$subdirs projects/llvm-poolalloc"
3493 for i in `ls ${srcdir}/projects`
3495 if test -d ${srcdir}/projects/${i} ; then
3497 sample) subdirs="$subdirs projects/sample"
3499 privbracket) subdirs="$subdirs projects/privbracket"
3501 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3503 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3505 llvm-java) subdirs="$subdirs projects/llvm-java"
3507 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3509 safecode) subdirs="$subdirs projects/safecode"
3511 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3520 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3521 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3527 # Check whether --enable-polly was given.
3528 if test "${enable_polly+set}" = set; then
3529 enableval=$enable_polly;
3534 case "$enableval" in
3539 default) ENABLE_POLLY=1
3541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3542 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3543 { (exit 1); exit 1; }; } ;;
3547 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3550 subdirs="$subdirs tools/polly"
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3558 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3559 { (exit 1); exit 1; }; }
3561 { echo "$as_me:$LINENO: checking build system type" >&5
3562 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3563 if test "${ac_cv_build+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 ac_build_alias=$build_alias
3567 test "x$ac_build_alias" = x &&
3568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3569 test "x$ac_build_alias" = x &&
3570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3572 { (exit 1); exit 1; }; }
3573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3576 { (exit 1); exit 1; }; }
3579 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3580 echo "${ECHO_T}$ac_cv_build" >&6; }
3581 case $ac_cv_build in
3583 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3584 echo "$as_me: error: invalid value of canonical build" >&2;}
3585 { (exit 1); exit 1; }; };;
3588 ac_save_IFS=$IFS; IFS='-'
3594 # Remember, the first character of IFS is used to create $*,
3595 # except with old shells:
3598 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3601 { echo "$as_me:$LINENO: checking host system type" >&5
3602 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3603 if test "${ac_cv_host+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 if test "x$host_alias" = x; then
3607 ac_cv_host=$ac_cv_build
3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3611 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3612 { (exit 1); exit 1; }; }
3616 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3617 echo "${ECHO_T}$ac_cv_host" >&6; }
3620 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3621 echo "$as_me: error: invalid value of canonical host" >&2;}
3622 { (exit 1); exit 1; }; };;
3625 ac_save_IFS=$IFS; IFS='-'
3631 # Remember, the first character of IFS is used to create $*,
3632 # except with old shells:
3635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3638 { echo "$as_me:$LINENO: checking target system type" >&5
3639 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3640 if test "${ac_cv_target+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 if test "x$target_alias" = x; then
3644 ac_cv_target=$ac_cv_host
3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3648 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3649 { (exit 1); exit 1; }; }
3653 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3654 echo "${ECHO_T}$ac_cv_target" >&6; }
3655 case $ac_cv_target in
3657 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3658 echo "$as_me: error: invalid value of canonical target" >&2;}
3659 { (exit 1); exit 1; }; };;
3661 target=$ac_cv_target
3662 ac_save_IFS=$IFS; IFS='-'
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3672 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3675 # The aliases save the names the user supplied, while $host etc.
3676 # will get canonicalized.
3677 test -n "$target_alias" &&
3678 test "$program_prefix$program_suffix$program_transform_name" = \
3680 program_prefix=${target_alias}-
3682 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3683 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3684 if test "${llvm_cv_os_type+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="AIX"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="IRIX"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,--whole-archive"
3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3701 llvm_cv_os_type="Cygwin"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Darwin"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,-all_load"
3710 llvm_cv_no_link_all_option="-Wl,-noall_load"
3711 llvm_cv_os_type="Minix"
3712 llvm_cv_platform_type="Unix" ;;
3713 *-*-freebsd* | *-*-kfreebsd-gnu)
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="FreeBSD"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="OpenBSD"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="NetBSD"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="DragonFly"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="HP-UX"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Interix"
3742 llvm_cv_platform_type="Unix" ;;
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="Linux"
3747 llvm_cv_platform_type="Unix" ;;
3749 llvm_cv_link_all_option="-Wl,--whole-archive"
3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3751 llvm_cv_os_type="GNU"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="SunOS"
3757 llvm_cv_platform_type="Unix" ;;
3759 llvm_cv_link_all_option="-Wl,-z,allextract"
3760 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3761 llvm_cv_os_type="AuroraUX"
3762 llvm_cv_platform_type="Unix" ;;
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Win32"
3767 llvm_cv_platform_type="Win32" ;;
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="MingW"
3772 llvm_cv_platform_type="Win32" ;;
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Haiku"
3777 llvm_cv_platform_type="Unix" ;;
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3784 llvm_cv_link_all_option="-Wl,--whole-archive"
3785 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3786 llvm_cv_os_type="Freestanding"
3787 llvm_cv_platform_type="Unix" ;;
3789 llvm_cv_link_all_option=""
3790 llvm_cv_no_link_all_option=""
3791 llvm_cv_os_type="Unknown"
3792 llvm_cv_platform_type="Unknown" ;;
3795 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3796 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3799 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3800 if test "${llvm_cv_target_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 llvm_cv_target_os_type="AIX" ;;
3807 llvm_cv_target_os_type="IRIX" ;;
3809 llvm_cv_target_os_type="Cygwin" ;;
3811 llvm_cv_target_os_type="Darwin" ;;
3813 llvm_cv_target_os_type="Minix" ;;
3814 *-*-freebsd* | *-*-kfreebsd-gnu)
3815 llvm_cv_target_os_type="FreeBSD" ;;
3817 llvm_cv_target_os_type="OpenBSD" ;;
3819 llvm_cv_target_os_type="NetBSD" ;;
3821 llvm_cv_target_os_type="DragonFly" ;;
3823 llvm_cv_target_os_type="HP-UX" ;;
3825 llvm_cv_target_os_type="Interix" ;;
3827 llvm_cv_target_os_type="Linux" ;;
3829 llvm_cv_target_os_type="GNU" ;;
3831 llvm_cv_target_os_type="SunOS" ;;
3833 llvm_cv_target_os_type="AuroraUX" ;;
3835 llvm_cv_target_os_type="Win32" ;;
3837 llvm_cv_target_os_type="MingW" ;;
3839 llvm_cv_target_os_type="Haiku" ;;
3841 llvm_cv_target_os_type="RTEMS" ;;
3843 llvm_cv_target_os_type="NativeClient" ;;
3845 llvm_cv_target_os_type="Freestanding" ;;
3847 llvm_cv_target_os_type="Unknown" ;;
3850 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3851 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3853 if test "$llvm_cv_os_type" = "Unknown" ; then
3854 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3855 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3856 { (exit 1); exit 1; }; }
3861 HOST_OS=$llvm_cv_os_type
3863 TARGET_OS=$llvm_cv_target_os_type
3866 LINKALL=$llvm_cv_link_all_option
3868 NOLINKALL=$llvm_cv_no_link_all_option
3871 case $llvm_cv_platform_type in
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_UNIX 1
3885 cat >>confdefs.h <<\_ACEOF
3886 #define LLVM_ON_WIN32 1
3896 { echo "$as_me:$LINENO: checking target architecture" >&5
3897 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3898 if test "${llvm_cv_target_arch+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 i?86-*) llvm_cv_target_arch="x86" ;;
3903 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3904 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3905 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3906 arm*-*) llvm_cv_target_arch="ARM" ;;
3907 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
3908 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
3909 xcore-*) llvm_cv_target_arch="XCore" ;;
3910 msp430-*) llvm_cv_target_arch="MSP430" ;;
3911 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3912 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3913 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3914 *) llvm_cv_target_arch="Unknown" ;;
3917 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3918 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3920 if test "$llvm_cv_target_arch" = "Unknown" ; then
3921 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3922 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3925 case "$llvm_cv_target_arch" in
3926 x86) LLVM_NATIVE_ARCH="X86" ;;
3927 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3928 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3931 ARCH=$llvm_cv_target_arch
3935 i?86-*) host_arch="x86" ;;
3936 amd64-* | x86_64-*) host_arch="x86_64" ;;
3937 sparc*-*) host_arch="Sparc" ;;
3938 powerpc*-*) host_arch="PowerPC" ;;
3939 arm*-*) host_arch="ARM" ;;
3940 mips-* | mips64-*) host_arch="Mips" ;;
3941 mipsel-* | mips64el-*) host_arch="Mips" ;;
3942 xcore-*) host_arch="XCore" ;;
3943 msp430-*) host_arch="MSP430" ;;
3944 hexagon-*) host_arch="Hexagon" ;;
3945 mblaze-*) host_arch="MBlaze" ;;
3946 *) host_arch="Unknown" ;;
3949 if test "$host_arch" = "Unknown" ; then
3950 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3951 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3954 HOST_ARCH=$host_arch
3959 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961 if test "${ac_cv_path_GREP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 # Extract the first word of "grep ggrep" to use in msg output
3965 if test -z "$GREP"; then
3966 set dummy grep ggrep; ac_prog_name=$2
3967 if test "${ac_cv_path_GREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_GREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in grep ggrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3981 # Check for GNU ac_path_GREP and select it if it is found.
3982 # Check for GNU $ac_path_GREP
3983 case `"$ac_path_GREP" --version 2>&1` in
3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'GREP' >> "conftest.nl"
3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_GREP="$ac_path_GREP"
4001 ac_path_GREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_GREP_found && break 3
4020 GREP="$ac_cv_path_GREP"
4021 if test -z "$GREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_GREP=$GREP
4033 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4038 { echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4046 # Extract the first word of "egrep" to use in msg output
4047 if test -z "$EGREP"; then
4048 set dummy egrep; ac_prog_name=$2
4049 if test "${ac_cv_path_EGREP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 ac_path_EGREP_found=false
4053 # Loop through the user's path and test for each of PROGNAME-LIST
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 test -z "$as_dir" && as_dir=.
4059 for ac_prog in egrep; do
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4063 # Check for GNU ac_path_EGREP and select it if it is found.
4064 # Check for GNU $ac_path_EGREP
4065 case `"$ac_path_EGREP" --version 2>&1` in
4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073 cat "conftest.in" "conftest.in" >"conftest.tmp"
4074 mv "conftest.tmp" "conftest.in"
4075 cp "conftest.in" "conftest.nl"
4076 echo 'EGREP' >> "conftest.nl"
4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079 ac_count=`expr $ac_count + 1`
4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081 # Best one so far, save it but keep looking for a better one
4082 ac_cv_path_EGREP="$ac_path_EGREP"
4083 ac_path_EGREP_max=$ac_count
4085 # 10*(2^10) chars as input seems more than enough
4086 test $ac_count -gt 10 && break
4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092 $ac_path_EGREP_found && break 3
4102 EGREP="$ac_cv_path_EGREP"
4103 if test -z "$EGREP"; then
4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106 { (exit 1); exit 1; }; }
4110 ac_cv_path_EGREP=$EGREP
4116 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4145 rm -f conftest.$ac_objext
4146 if { (ac_try="$ac_compile"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_compile") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } &&
4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_header_stdc=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_header_stdc=no
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191 cat >conftest.$ac_ext <<_ACEOF
4194 cat confdefs.h >>conftest.$ac_ext
4195 cat >>conftest.$ac_ext <<_ACEOF
4196 /* end confdefs.h. */
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201 $EGREP "memchr" >/dev/null 2>&1; then
4204 ac_cv_header_stdc=no
4210 if test $ac_cv_header_stdc = yes; then
4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then
4225 ac_cv_header_stdc=no
4231 if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4267 rm -f conftest$ac_exeext
4268 if { (ac_try="$ac_link"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_link") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_try") 2>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4289 echo "$as_me: program exited with status $ac_status" >&5
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_header_stdc=no
4296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4302 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4303 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4304 if test $ac_cv_header_stdc = yes; then
4306 cat >>confdefs.h <<\_ACEOF
4307 #define STDC_HEADERS 1
4312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4323 inttypes.h stdint.h unistd.h
4325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 $ac_includes_default
4339 #include <$ac_header>
4341 rm -f conftest.$ac_objext
4342 if { (ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_compile") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$as_ac_Header=yes"
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4380 eval "$as_ac_Header=no"
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387 echo "${ECHO_T}$ac_res" >&6; }
4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4399 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4400 if test "${ac_cv_c_bigendian+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 # See if sys/param.h defines the BYTE_ORDER macro.
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <sys/types.h>
4411 #include <sys/param.h>
4416 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4424 rm -f conftest.$ac_objext
4425 if { (ac_try="$ac_compile"
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_try") 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest.$ac_objext'
4449 { (case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_try") 2>&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 # It does; now see whether it defined to BIG_ENDIAN or not.
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <sys/types.h>
4466 #include <sys/param.h>
4471 #if BYTE_ORDER != BIG_ENDIAN
4479 rm -f conftest.$ac_objext
4480 if { (ac_try="$ac_compile"
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_compile") 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4499 (eval "$ac_try") 2>&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest.$ac_objext'
4504 { (case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_try") 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 ac_cv_c_bigendian=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_cv_c_bigendian=no
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # It does not; compile a test program.
4527 if test "$cross_compiling" = yes; then
4528 # try to guess the endianness by grepping values into an object file
4529 ac_cv_c_bigendian=unknown
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4537 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4538 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4539 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4540 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4541 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4545 _ascii (); _ebcdic ();
4550 rm -f conftest.$ac_objext
4551 if { (ac_try="$ac_compile"
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4559 grep -v '^ *+' conftest.er1 >conftest.err
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_try") 2>&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_try") 2>&5
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4585 ac_cv_c_bigendian=yes
4587 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4588 if test "$ac_cv_c_bigendian" = unknown; then
4589 ac_cv_c_bigendian=no
4591 # finding both strings is unlikely to happen, but who knows?
4592 ac_cv_c_bigendian=unknown
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 cat >conftest.$ac_ext <<_ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4615 /* Are we little or big endian? From Harbison&Steele. */
4619 char c[sizeof (long int)];
4622 return u.c[sizeof (long int) - 1] == 1;
4628 rm -f conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_try") 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_cv_c_bigendian=no
4650 echo "$as_me: program exited with status $ac_status" >&5
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_cv_c_bigendian=yes
4657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4666 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4667 case $ac_cv_c_bigendian in
4675 { { echo "$as_me:$LINENO: error: unknown endianness
4676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4677 echo "$as_me: error: unknown endianness
4678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4679 { (exit 1); exit 1; }; } ;;
4683 if test "$cross_compiling" = yes; then
4684 LLVM_CROSS_COMPILING=1
4687 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4688 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4689 if test "${ac_cv_build_exeext+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4693 ac_cv_build_exeext=.exe
4695 ac_build_prefix=${build_alias}-
4697 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4698 set dummy ${ac_build_prefix}gcc; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$BUILD_CC"; then
4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 BUILD_CC=$ac_cv_prog_BUILD_CC
4725 if test -n "$BUILD_CC"; then
4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4727 echo "${ECHO_T}$BUILD_CC" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 if test -z "$BUILD_CC"; then
4735 # Extract the first word of "gcc", so it can be a program name with args.
4736 set dummy gcc; ac_word=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 if test -n "$BUILD_CC"; then
4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_BUILD_CC="gcc"
4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 BUILD_CC=$ac_cv_prog_BUILD_CC
4763 if test -n "$BUILD_CC"; then
4764 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4765 echo "${ECHO_T}$BUILD_CC" >&6; }
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 if test -z "$BUILD_CC"; then
4773 # Extract the first word of "cc", so it can be a program name with args.
4774 set dummy cc; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 if test -n "$BUILD_CC"; then
4781 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4792 ac_prog_rejected=yes
4795 ac_cv_prog_BUILD_CC="cc"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 if test $ac_prog_rejected = yes; then
4804 # We found a bogon in the path, so make sure we never use it.
4805 set dummy $ac_cv_prog_BUILD_CC
4807 if test $# != 0; then
4808 # We chose a different compiler from the bogus one.
4809 # However, it has the same basename, so the bogon will be chosen
4810 # first if we set BUILD_CC to just the basename; use the full file name.
4812 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4817 BUILD_CC=$ac_cv_prog_BUILD_CC
4818 if test -n "$BUILD_CC"; then
4819 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4820 echo "${ECHO_T}$BUILD_CC" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4829 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4830 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4831 { (exit 1); exit 1; }; }
4832 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4834 echo 'int main () { return 0; }' > conftest.$ac_ext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4837 (eval $ac_build_link) 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; then
4841 for file in conftest.*; do
4843 *.c | *.o | *.obj | *.dSYM) ;;
4844 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4848 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4849 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4850 { (exit 1); exit 1; }; }
4853 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4858 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4859 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4860 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4861 ac_build_exeext=$BUILD_EXEEXT
4863 ac_build_prefix=${build_alias}-
4864 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4865 set dummy ${ac_build_prefix}g++; ac_word=$2
4866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4868 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 if test -n "$BUILD_CXX"; then
4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4892 if test -n "$BUILD_CXX"; then
4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4894 echo "${ECHO_T}$BUILD_CXX" >&6; }
4896 { echo "$as_me:$LINENO: result: no" >&5
4897 echo "${ECHO_T}no" >&6; }
4901 if test -z "$BUILD_CXX"; then
4902 # Extract the first word of "g++", so it can be a program name with args.
4903 set dummy g++; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$BUILD_CXX"; then
4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_BUILD_CXX="g++"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4930 if test -n "$BUILD_CXX"; then
4931 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4932 echo "${ECHO_T}$BUILD_CXX" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 if test -z "$BUILD_CXX"; then
4940 # Extract the first word of "c++", so it can be a program name with args.
4941 set dummy c++; ac_word=$2
4942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4944 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 if test -n "$BUILD_CXX"; then
4948 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4959 ac_prog_rejected=yes
4962 ac_cv_prog_BUILD_CXX="c++"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 if test $ac_prog_rejected = yes; then
4971 # We found a bogon in the path, so make sure we never use it.
4972 set dummy $ac_cv_prog_BUILD_CXX
4974 if test $# != 0; then
4975 # We chose a different compiler from the bogus one.
4976 # However, it has the same basename, so the bogon will be chosen
4977 # first if we set BUILD_CXX to just the basename; use the full file name.
4979 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4984 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4985 if test -n "$BUILD_CXX"; then
4986 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4987 echo "${ECHO_T}$BUILD_CXX" >&6; }
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4997 LLVM_CROSS_COMPILING=0
5001 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5012 # Check whether --enable-libcpp was given.
5013 if test "${enable_libcpp+set}" = set; then
5014 enableval=$enable_libcpp;
5019 case "$enableval" in
5020 yes) ENABLE_LIBCPP=1
5024 default) ENABLE_LIBCPP=0
5026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5027 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5028 { (exit 1); exit 1; }; } ;;
5031 # Check whether --enable-cxx11 was given.
5032 if test "${enable_cxx11+set}" = set; then
5033 enableval=$enable_cxx11;
5038 case "$enableval" in
5043 default) ENABLE_CXX11=0
5045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5046 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5050 # Check whether --enable-optimized was given.
5051 if test "${enable_optimized+set}" = set; then
5052 enableval=$enable_optimized;
5057 if test ${enableval} = "no" ; then
5061 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5065 # Check whether --enable-profiling was given.
5066 if test "${enable_profiling+set}" = set; then
5067 enableval=$enable_profiling;
5072 if test ${enableval} = "no" ; then
5076 ENABLE_PROFILING=ENABLE_PROFILING=1
5080 # Check whether --enable-assertions was given.
5081 if test "${enable_assertions+set}" = set; then
5082 enableval=$enable_assertions;
5087 if test ${enableval} = "yes" ; then
5091 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5095 # Check whether --enable-werror was given.
5096 if test "${enable_werror+set}" = set; then
5097 enableval=$enable_werror;
5102 case "$enableval" in
5103 yes) ENABLE_WERROR=1
5107 default) ENABLE_WERROR=0
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5114 # Check whether --enable-expensive-checks was given.
5115 if test "${enable_expensive_checks+set}" = set; then
5116 enableval=$enable_expensive_checks;
5121 if test ${enableval} = "yes" ; then
5122 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5124 EXPENSIVE_CHECKS=yes
5127 ENABLE_EXPENSIVE_CHECKS=
5133 # Check whether --enable-debug-runtime was given.
5134 if test "${enable_debug_runtime+set}" = set; then
5135 enableval=$enable_debug_runtime;
5140 if test ${enableval} = "no" ; then
5144 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5148 # Check whether --enable-debug-symbols was given.
5149 if test "${enable_debug_symbols+set}" = set; then
5150 enableval=$enable_debug_symbols;
5155 if test ${enableval} = "no" ; then
5159 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5163 # Check whether --enable-keep-symbols was given.
5164 if test "${enable_keep_symbols+set}" = set; then
5165 enableval=$enable_keep_symbols;
5170 if test ${enableval} = "no" ; then
5174 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5178 # Check whether --enable-jit was given.
5179 if test "${enable_jit+set}" = set; then
5180 enableval=$enable_jit;
5185 if test ${enableval} = "no"
5190 case "$llvm_cv_target_arch" in
5191 x86) TARGET_HAS_JIT=1
5193 Sparc) TARGET_HAS_JIT=0
5195 PowerPC) TARGET_HAS_JIT=1
5197 x86_64) TARGET_HAS_JIT=1
5199 ARM) TARGET_HAS_JIT=1
5201 Mips) TARGET_HAS_JIT=1
5203 XCore) TARGET_HAS_JIT=0
5205 MSP430) TARGET_HAS_JIT=0
5207 Hexagon) TARGET_HAS_JIT=0
5209 MBlaze) TARGET_HAS_JIT=0
5211 NVPTX) TARGET_HAS_JIT=0
5218 # Check whether --enable-docs was given.
5219 if test "${enable_docs+set}" = set; then
5220 enableval=$enable_docs;
5225 case "$enableval" in
5230 default) ENABLE_DOCS=1
5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5233 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5234 { (exit 1); exit 1; }; } ;;
5237 # Check whether --enable-doxygen was given.
5238 if test "${enable_doxygen+set}" = set; then
5239 enableval=$enable_doxygen;
5244 case "$enableval" in
5245 yes) ENABLE_DOXYGEN=1
5247 no) ENABLE_DOXYGEN=0
5249 default) ENABLE_DOXYGEN=0
5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5253 { (exit 1); exit 1; }; } ;;
5256 # Check whether --enable-threads was given.
5257 if test "${enable_threads+set}" = set; then
5258 enableval=$enable_threads;
5263 case "$enableval" in
5264 yes) LLVM_ENABLE_THREADS=1
5266 no) LLVM_ENABLE_THREADS=0
5268 default) LLVM_ENABLE_THREADS=1
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 cat >>confdefs.h <<_ACEOF
5276 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5280 # Check whether --enable-pthreads was given.
5281 if test "${enable_pthreads+set}" = set; then
5282 enableval=$enable_pthreads;
5287 case "$enableval" in
5288 yes) ENABLE_PTHREADS=1
5290 no) ENABLE_PTHREADS=0
5292 default) ENABLE_PTHREADS=1
5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5295 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5299 # Check whether --enable-pic was given.
5300 if test "${enable_pic+set}" = set; then
5301 enableval=$enable_pic;
5306 case "$enableval" in
5311 default) ENABLE_PIC=1
5313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5314 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5315 { (exit 1); exit 1; }; } ;;
5318 cat >>confdefs.h <<_ACEOF
5319 #define ENABLE_PIC $ENABLE_PIC
5323 # Check whether --enable-shared was given.
5324 if test "${enable_shared+set}" = set; then
5325 enableval=$enable_shared;
5330 case "$enableval" in
5331 yes) ENABLE_SHARED=1
5335 default) ENABLE_SHARED=0
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5338 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5342 # Check whether --enable-embed-stdcxx was given.
5343 if test "${enable_embed_stdcxx+set}" = set; then
5344 enableval=$enable_embed_stdcxx;
5349 case "$enableval" in
5350 yes) ENABLE_EMBED_STDCXX=1
5352 no) ENABLE_EMBED_STDCXX=0
5354 default) ENABLE_EMBED_STDCXX=0
5356 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5357 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5361 # Check whether --enable-timestamps was given.
5362 if test "${enable_timestamps+set}" = set; then
5363 enableval=$enable_timestamps;
5368 case "$enableval" in
5369 yes) ENABLE_TIMESTAMPS=1
5371 no) ENABLE_TIMESTAMPS=0
5373 default) ENABLE_TIMESTAMPS=1
5375 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5376 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5377 { (exit 1); exit 1; }; } ;;
5380 cat >>confdefs.h <<_ACEOF
5381 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5386 # Check whether --enable-backtraces was given.
5387 if test "${enable_backtraces+set}" = set; then
5388 enableval=$enable_backtraces;
5393 case "$enableval" in
5394 yes) ENABLE_BACKTRACES=1
5396 no) ENABLE_BACKTRACES=0
5398 default) ENABLE_BACKTRACES=1
5400 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5401 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5402 { (exit 1); exit 1; }; } ;;
5405 cat >>confdefs.h <<_ACEOF
5406 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5411 # Check whether --enable-targets was given.
5412 if test "${enable_targets+set}" = set; then
5413 enableval=$enable_targets;
5418 if test "$enableval" = host-only ; then
5421 case "$enableval" in
5422 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5423 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5425 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5426 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5427 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5428 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5429 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5430 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5431 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5432 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5433 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5434 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5435 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5436 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5437 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5438 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5439 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5440 host) case "$llvm_cv_target_arch" in
5441 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5442 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5443 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5444 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5445 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5446 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5447 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5448 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5449 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5450 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5451 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5452 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5453 echo "$as_me: error: Can not set target to build" >&2;}
5454 { (exit 1); exit 1; }; } ;;
5456 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5457 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5458 { (exit 1); exit 1; }; } ;;
5464 # Check whether --enable-experimental-targets was given.
5465 if test "${enable_experimental_targets+set}" = set; then
5466 enableval=$enable_experimental_targets;
5472 if test ${enableval} != "disable"
5474 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5477 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5480 for a_target in $TARGETS_TO_BUILD; do
5481 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5483 cat >>confdefs.h <<_ACEOF
5484 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5487 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5488 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5489 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5490 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5491 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5492 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5494 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5495 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5503 cat >>confdefs.h <<_ACEOF
5504 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5508 cat >>confdefs.h <<_ACEOF
5509 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5513 cat >>confdefs.h <<_ACEOF
5514 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5517 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5524 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5526 cat >>confdefs.h <<_ACEOF
5527 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5534 LLVM_ENUM_TARGETS=""
5535 LLVM_ENUM_ASM_PRINTERS=""
5536 LLVM_ENUM_ASM_PARSERS=""
5537 LLVM_ENUM_DISASSEMBLERS=""
5538 for target_to_build in $TARGETS_TO_BUILD; do
5539 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5540 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5541 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5543 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5544 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5546 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5547 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5556 # Check whether --with-optimize-option was given.
5557 if test "${with_optimize_option+set}" = set; then
5558 withval=$with_optimize_option;
5563 { echo "$as_me:$LINENO: checking optimization flags" >&5
5564 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5567 case "$llvm_cv_os_type" in
5568 FreeBSD) optimize_option=-O2 ;;
5569 MingW) optimize_option=-O2 ;;
5570 *) optimize_option=-O3 ;;
5572 *) optimize_option="$withval" ;;
5574 OPTIMIZE_OPTION=$optimize_option
5576 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5577 echo "${ECHO_T}$optimize_option" >&6; }
5580 # Check whether --with-extra-options was given.
5581 if test "${with_extra_options+set}" = set; then
5582 withval=$with_extra_options;
5588 default) EXTRA_OPTIONS= ;;
5589 *) EXTRA_OPTIONS=$withval ;;
5591 EXTRA_OPTIONS=$EXTRA_OPTIONS
5595 # Check whether --with-extra-ld-options was given.
5596 if test "${with_extra_ld_options+set}" = set; then
5597 withval=$with_extra_ld_options;
5603 default) EXTRA_LD_OPTIONS= ;;
5604 *) EXTRA_LD_OPTIONS=$withval ;;
5606 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5609 # Check whether --enable-bindings was given.
5610 if test "${enable_bindings+set}" = set; then
5611 enableval=$enable_bindings;
5616 BINDINGS_TO_BUILD=""
5617 case "$enableval" in
5618 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5619 all ) BINDINGS_TO_BUILD="ocaml" ;;
5620 none | no) BINDINGS_TO_BUILD="" ;;
5621 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5622 case "$a_binding" in
5623 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5624 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5625 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5626 { (exit 1); exit 1; }; } ;;
5633 # Check whether --with-ocaml-libdir was given.
5634 if test "${with_ocaml_libdir+set}" = set; then
5635 withval=$with_ocaml_libdir;
5641 auto) with_ocaml_libdir="$withval" ;;
5642 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5644 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5645 { (exit 1); exit 1; }; } ;;
5649 # Check whether --with-clang-srcdir was given.
5650 if test "${with_clang_srcdir+set}" = set; then
5651 withval=$with_clang_srcdir;
5657 -) clang_src_root="" ;;
5658 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5659 *) clang_src_root="$ac_pwd/$withval" ;;
5661 CLANG_SRC_ROOT=$clang_src_root
5665 # Check whether --with-clang-resource-dir was given.
5666 if test "${with_clang_resource_dir+set}" = set; then
5667 withval=$with_clang_resource_dir;
5673 cat >>confdefs.h <<_ACEOF
5674 #define CLANG_RESOURCE_DIR "$withval"
5679 # Check whether --with-c-include-dirs was given.
5680 if test "${with_c_include_dirs+set}" = set; then
5681 withval=$with_c_include_dirs;
5687 cat >>confdefs.h <<_ACEOF
5688 #define C_INCLUDE_DIRS "$withval"
5692 # Clang normally uses the system c++ headers and libraries. With this option,
5693 # clang will use the ones provided by a gcc installation instead. This option should
5694 # be passed the same value that was used with --prefix when configuring gcc.
5696 # Check whether --with-gcc-toolchain was given.
5697 if test "${with_gcc_toolchain+set}" = set; then
5698 withval=$with_gcc_toolchain;
5704 cat >>confdefs.h <<_ACEOF
5705 #define GCC_INSTALL_PREFIX "$withval"
5710 # Check whether --with-default-sysroot was given.
5711 if test "${with_default_sysroot+set}" = set; then
5712 withval=$with_default_sysroot;
5718 cat >>confdefs.h <<_ACEOF
5719 #define DEFAULT_SYSROOT "$withval"
5724 # Check whether --with-binutils-include was given.
5725 if test "${with_binutils_include+set}" = set; then
5726 withval=$with_binutils_include;
5732 default) WITH_BINUTILS_INCDIR=default ;;
5733 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5734 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5735 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5736 { (exit 1); exit 1; }; } ;;
5738 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5739 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5741 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5742 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5743 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5744 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5745 { (exit 1); exit 1; }; };
5750 # Check whether --with-bug-report-url was given.
5751 if test "${with_bug_report_url+set}" = set; then
5752 withval=$with_bug_report_url;
5754 withval="http://llvm.org/bugs/"
5758 cat >>confdefs.h <<_ACEOF
5759 #define BUG_REPORT_URL "$withval"
5763 # Check whether --enable-libffi was given.
5764 if test "${enable_libffi+set}" = set; then
5765 enableval=$enable_libffi; case "$enableval" in
5766 yes) llvm_cv_enable_libffi="yes" ;;
5767 no) llvm_cv_enable_libffi="no" ;;
5768 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5769 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5770 { (exit 1); exit 1; }; } ;;
5773 llvm_cv_enable_libffi=no
5778 # Check whether --with-internal-prefix was given.
5779 if test "${with_internal_prefix+set}" = set; then
5780 withval=$with_internal_prefix;
5785 INTERNAL_PREFIX=$withval
5789 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5790 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5791 if test "${lt_cv_path_NM+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 if test -n "$NM"; then
5795 # Let the user override the test.
5798 lt_nm_to_check="${ac_tool_prefix}nm"
5799 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5800 lt_nm_to_check="$lt_nm_to_check nm"
5802 for lt_tmp_nm in $lt_nm_to_check; do
5803 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5804 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5806 test -z "$ac_dir" && ac_dir=.
5807 tmp_nm="$ac_dir/$lt_tmp_nm"
5808 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5809 # Check to see if the nm accepts a BSD-compat flag.
5810 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5811 # nm: unknown option "B" ignored
5812 # Tru64's nm complains that /dev/null is an invalid object file
5813 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5814 */dev/null* | *'Invalid file or object type'*)
5815 lt_cv_path_NM="$tmp_nm -B"
5819 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5821 lt_cv_path_NM="$tmp_nm -p"
5825 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5826 continue # so that we can try to find one that supports BSD flags
5835 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5838 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5839 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5844 { echo "$as_me:$LINENO: checking for GNU make" >&5
5845 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5846 if test "${llvm_cv_gnu_make_command+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 llvm_cv_gnu_make_command=''
5850 for a in "$MAKE" make gmake gnumake ; do
5851 if test -z "$a" ; then continue ; fi ;
5852 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5854 llvm_cv_gnu_make_command=$a ;
5859 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5860 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5861 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5865 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5866 echo "${ECHO_T}\"Not found\"" >&6; };
5870 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5871 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5873 if test "$LN_S" = "ln -s"; then
5874 { echo "$as_me:$LINENO: result: yes" >&5
5875 echo "${ECHO_T}yes" >&6; }
5877 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5878 echo "${ECHO_T}no, using $LN_S" >&6; }
5881 # Extract the first word of "cmp", so it can be a program name with args.
5882 set dummy cmp; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_CMP+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5913 if test -n "$CMP"; then
5914 { echo "$as_me:$LINENO: result: $CMP" >&5
5915 echo "${ECHO_T}$CMP" >&6; }
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5922 # Extract the first word of "cp", so it can be a program name with args.
5923 set dummy cp; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_CP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5954 if test -n "$CP"; then
5955 { echo "$as_me:$LINENO: result: $CP" >&5
5956 echo "${ECHO_T}$CP" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5963 # Extract the first word of "date", so it can be a program name with args.
5964 set dummy date; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_DATE+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5994 DATE=$ac_cv_path_DATE
5995 if test -n "$DATE"; then
5996 { echo "$as_me:$LINENO: result: $DATE" >&5
5997 echo "${ECHO_T}$DATE" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 # Extract the first word of "find", so it can be a program name with args.
6005 set dummy find; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_FIND+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6035 FIND=$ac_cv_path_FIND
6036 if test -n "$FIND"; then
6037 { echo "$as_me:$LINENO: result: $FIND" >&5
6038 echo "${ECHO_T}$FIND" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 # Extract the first word of "grep", so it can be a program name with args.
6046 set dummy grep; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_GREP+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6076 GREP=$ac_cv_path_GREP
6077 if test -n "$GREP"; then
6078 { echo "$as_me:$LINENO: result: $GREP" >&5
6079 echo "${ECHO_T}$GREP" >&6; }
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6086 # Extract the first word of "mkdir", so it can be a program name with args.
6087 set dummy mkdir; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_path_MKDIR+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6117 MKDIR=$ac_cv_path_MKDIR
6118 if test -n "$MKDIR"; then
6119 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6120 echo "${ECHO_T}$MKDIR" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6127 # Extract the first word of "mv", so it can be a program name with args.
6128 set dummy mv; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_path_MV+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6159 if test -n "$MV"; then
6160 { echo "$as_me:$LINENO: result: $MV" >&5
6161 echo "${ECHO_T}$MV" >&6; }
6163 { echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6; }
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_RANLIB+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 RANLIB=$ac_cv_prog_RANLIB
6197 if test -n "$RANLIB"; then
6198 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6199 echo "${ECHO_T}$RANLIB" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6207 if test -z "$ac_cv_prog_RANLIB"; then
6208 ac_ct_RANLIB=$RANLIB
6209 # Extract the first word of "ranlib", so it can be a program name with args.
6210 set dummy ranlib; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$ac_ct_RANLIB"; then
6217 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_RANLIB="ranlib"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6237 if test -n "$ac_ct_RANLIB"; then
6238 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6239 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6245 if test "x$ac_ct_RANLIB" = x; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6251 whose name does not start with the host triplet. If you think this
6252 configuration is useful to you, please write to autoconf@gnu.org." >&5
6253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6254 whose name does not start with the host triplet. If you think this
6255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6256 ac_tool_warned=yes ;;
6258 RANLIB=$ac_ct_RANLIB
6261 RANLIB="$ac_cv_prog_RANLIB"
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}ar; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_prog_AR+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 if test -n "$AR"; then
6273 ac_cv_prog_AR="$AR" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_AR="${ac_tool_prefix}ar"
6283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 if test -n "$AR"; then
6294 { echo "$as_me:$LINENO: result: $AR" >&5
6295 echo "${ECHO_T}$AR" >&6; }
6297 { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6303 if test -z "$ac_cv_prog_AR"; then
6305 # Extract the first word of "ar", so it can be a program name with args.
6306 set dummy ar; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 if test -n "$ac_ct_AR"; then
6313 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_ac_ct_AR="ar"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6333 if test -n "$ac_ct_AR"; then
6334 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6335 echo "${ECHO_T}$ac_ct_AR" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6341 if test "x$ac_ct_AR" = x; then
6344 case $cross_compiling:$ac_tool_warned in
6346 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6347 whose name does not start with the host triplet. If you think this
6348 configuration is useful to you, please write to autoconf@gnu.org." >&5
6349 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6350 whose name does not start with the host triplet. If you think this
6351 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6352 ac_tool_warned=yes ;;
6360 # Extract the first word of "rm", so it can be a program name with args.
6361 set dummy rm; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_RM+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6392 if test -n "$RM"; then
6393 { echo "$as_me:$LINENO: result: $RM" >&5
6394 echo "${ECHO_T}$RM" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6401 # Extract the first word of "sed", so it can be a program name with args.
6402 set dummy sed; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_SED+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6433 if test -n "$SED"; then
6434 { echo "$as_me:$LINENO: result: $SED" >&5
6435 echo "${ECHO_T}$SED" >&6; }
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6442 # Extract the first word of "tar", so it can be a program name with args.
6443 set dummy tar; ac_word=$2
6444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6446 if test "${ac_cv_path_TAR+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6474 if test -n "$TAR"; then
6475 { echo "$as_me:$LINENO: result: $TAR" >&5
6476 echo "${ECHO_T}$TAR" >&6; }
6478 { echo "$as_me:$LINENO: result: no" >&5
6479 echo "${ECHO_T}no" >&6; }
6483 # Extract the first word of "pwd", so it can be a program name with args.
6484 set dummy pwd; ac_word=$2
6485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6487 if test "${ac_cv_path_BINPWD+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6514 BINPWD=$ac_cv_path_BINPWD
6515 if test -n "$BINPWD"; then
6516 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6517 echo "${ECHO_T}$BINPWD" >&6; }
6519 { echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6; }
6525 # Extract the first word of "Graphviz", so it can be a program name with args.
6526 set dummy Graphviz; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6556 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6557 if test -n "$GRAPHVIZ"; then
6558 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6559 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6561 { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6566 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6568 cat >>confdefs.h <<\_ACEOF
6569 #define HAVE_GRAPHVIZ 1
6572 if test "$llvm_cv_os_type" = "MingW" ; then
6573 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6576 cat >>confdefs.h <<_ACEOF
6577 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6581 # Extract the first word of "dot", so it can be a program name with args.
6582 set dummy dot; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_DOT+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6613 if test -n "$DOT"; then
6614 { echo "$as_me:$LINENO: result: $DOT" >&5
6615 echo "${ECHO_T}$DOT" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 if test "$DOT" != "echo dot" ; then
6624 cat >>confdefs.h <<\_ACEOF
6628 if test "$llvm_cv_os_type" = "MingW" ; then
6629 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6632 cat >>confdefs.h <<_ACEOF
6633 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6637 # Extract the first word of "fdp", so it can be a program name with args.
6638 set dummy fdp; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_path_FDP+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6669 if test -n "$FDP"; then
6670 { echo "$as_me:$LINENO: result: $FDP" >&5
6671 echo "${ECHO_T}$FDP" >&6; }
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6678 if test "$FDP" != "echo fdp" ; then
6680 cat >>confdefs.h <<\_ACEOF
6684 if test "$llvm_cv_os_type" = "MingW" ; then
6685 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688 cat >>confdefs.h <<_ACEOF
6689 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6693 # Extract the first word of "neato", so it can be a program name with args.
6694 set dummy neato; ac_word=$2
6695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697 if test "${ac_cv_path_NEATO+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6724 NEATO=$ac_cv_path_NEATO
6725 if test -n "$NEATO"; then
6726 { echo "$as_me:$LINENO: result: $NEATO" >&5
6727 echo "${ECHO_T}$NEATO" >&6; }
6729 { echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6; }
6734 if test "$NEATO" != "echo neato" ; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_NEATO 1
6740 if test "$llvm_cv_os_type" = "MingW" ; then
6741 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 cat >>confdefs.h <<_ACEOF
6745 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6749 # Extract the first word of "twopi", so it can be a program name with args.
6750 set dummy twopi; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_TWOPI+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6780 TWOPI=$ac_cv_path_TWOPI
6781 if test -n "$TWOPI"; then
6782 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6783 echo "${ECHO_T}$TWOPI" >&6; }
6785 { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6790 if test "$TWOPI" != "echo twopi" ; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_TWOPI 1
6796 if test "$llvm_cv_os_type" = "MingW" ; then
6797 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 cat >>confdefs.h <<_ACEOF
6801 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6805 # Extract the first word of "circo", so it can be a program name with args.
6806 set dummy circo; ac_word=$2
6807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809 if test "${ac_cv_path_CIRCO+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6836 CIRCO=$ac_cv_path_CIRCO
6837 if test -n "$CIRCO"; then
6838 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6839 echo "${ECHO_T}$CIRCO" >&6; }
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6846 if test "$CIRCO" != "echo circo" ; then
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_CIRCO 1
6852 if test "$llvm_cv_os_type" = "MingW" ; then
6853 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 cat >>confdefs.h <<_ACEOF
6857 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6861 for ac_prog in gv gsview32
6863 # Extract the first word of "$ac_prog", so it can be a program name with args.
6864 set dummy $ac_prog; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_GV+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 if test -n "$GV"; then
6895 { echo "$as_me:$LINENO: result: $GV" >&5
6896 echo "${ECHO_T}$GV" >&6; }
6898 { echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6; }
6903 test -n "$GV" && break
6905 test -n "$GV" || GV="echo gv"
6907 if test "$GV" != "echo gv" ; then
6909 cat >>confdefs.h <<\_ACEOF
6913 if test "$llvm_cv_os_type" = "MingW" ; then
6914 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_GV "$GV${EXEEXT}"
6922 # Extract the first word of "dotty", so it can be a program name with args.
6923 set dummy dotty; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_DOTTY+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6953 DOTTY=$ac_cv_path_DOTTY
6954 if test -n "$DOTTY"; then
6955 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6956 echo "${ECHO_T}$DOTTY" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 if test "$DOTTY" != "echo dotty" ; then
6965 cat >>confdefs.h <<\_ACEOF
6966 #define HAVE_DOTTY 1
6969 if test "$llvm_cv_os_type" = "MingW" ; then
6970 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6978 # Extract the first word of "xdot.py", so it can be a program name with args.
6979 set dummy xdot.py; ac_word=$2
6980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6997 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7009 XDOT_PY=$ac_cv_path_XDOT_PY
7010 if test -n "$XDOT_PY"; then
7011 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7012 echo "${ECHO_T}$XDOT_PY" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test "$XDOT_PY" != "echo xdot.py" ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_XDOT_PY 1
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7035 # Find a good install program. We prefer a C program (faster),
7036 # so one script is as good as another. But avoid the broken or
7037 # incompatible versions:
7038 # SysV /etc/install, /usr/sbin/install
7039 # SunOS /usr/etc/install
7040 # IRIX /sbin/install
7042 # AmigaOS /C/install, which installs bootblocks on floppy discs
7043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7046 # OS/2's system install, which has a completely different semantic
7047 # ./install, which can be erroneously created by make from ./install.sh.
7048 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7049 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7050 if test -z "$INSTALL"; then
7051 if test "${ac_cv_path_install+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 # Account for people who put trailing slashes in PATH elements.
7061 ./ | .// | /cC/* | \
7062 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7063 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7066 # OSF1 and SCO ODT 3.0 have their own names for install.
7067 # Don't use installbsd from OSF since it installs stuff as root
7069 for ac_prog in ginstall scoinst install; do
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7072 if test $ac_prog = install &&
7073 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7074 # AIX install. It has an incompatible calling convention.
7076 elif test $ac_prog = install &&
7077 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7078 # program-specific install script used by HP pwplus--don't use.
7081 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7094 if test "${ac_cv_path_install+set}" = set; then
7095 INSTALL=$ac_cv_path_install
7097 # As a last resort, use the slow shell script. Don't cache a
7098 # value for INSTALL within a source directory, because that will
7099 # break other packages using the cache if that directory is
7100 # removed, or if the value is a relative name.
7101 INSTALL=$ac_install_sh
7104 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7105 echo "${ECHO_T}$INSTALL" >&6; }
7107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7108 # It thinks the first close brace ends the variable substitution.
7109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7113 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7116 [\\/$]* | ?:[\\/]* ) ;;
7117 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7120 # Extract the first word of "bzip2", so it can be a program name with args.
7121 set dummy bzip2; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_BZIP2+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 BZIP2=$ac_cv_path_BZIP2
7151 if test -n "$BZIP2"; then
7152 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7153 echo "${ECHO_T}$BZIP2" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "cat", so it can be a program name with args.
7161 set dummy cat; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_CAT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 if test -n "$CAT"; then
7192 { echo "$as_me:$LINENO: result: $CAT" >&5
7193 echo "${ECHO_T}$CAT" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "doxygen", so it can be a program name with args.
7201 set dummy doxygen; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 DOXYGEN=$ac_cv_path_DOXYGEN
7231 if test -n "$DOXYGEN"; then
7232 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7233 echo "${ECHO_T}$DOXYGEN" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7240 # Extract the first word of "groff", so it can be a program name with args.
7241 set dummy groff; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_GROFF+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 GROFF=$ac_cv_path_GROFF
7271 if test -n "$GROFF"; then
7272 { echo "$as_me:$LINENO: result: $GROFF" >&5
7273 echo "${ECHO_T}$GROFF" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 # Extract the first word of "gzip", so it can be a program name with args.
7281 set dummy gzip; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 GZIPBIN=$ac_cv_path_GZIPBIN
7311 if test -n "$GZIPBIN"; then
7312 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7313 echo "${ECHO_T}$GZIPBIN" >&6; }
7315 { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7320 # Extract the first word of "pdfroff", so it can be a program name with args.
7321 set dummy pdfroff; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_PDFROFF+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 PDFROFF=$ac_cv_path_PDFROFF
7351 if test -n "$PDFROFF"; then
7352 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7353 echo "${ECHO_T}$PDFROFF" >&6; }
7355 { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7360 # Extract the first word of "zip", so it can be a program name with args.
7361 set dummy zip; ac_word=$2
7362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364 if test "${ac_cv_path_ZIP+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 if test -n "$ZIP"; then
7392 { echo "$as_me:$LINENO: result: $ZIP" >&5
7393 echo "${ECHO_T}$ZIP" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7400 for ac_prog in ocamlc
7402 # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_OCAMLC+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 OCAMLC=$ac_cv_path_OCAMLC
7433 if test -n "$OCAMLC"; then
7434 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7435 echo "${ECHO_T}$OCAMLC" >&6; }
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7442 test -n "$OCAMLC" && break
7445 for ac_prog in ocamlopt
7447 # Extract the first word of "$ac_prog", so it can be a program name with args.
7448 set dummy $ac_prog; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 OCAMLOPT=$ac_cv_path_OCAMLOPT
7478 if test -n "$OCAMLOPT"; then
7479 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7480 echo "${ECHO_T}$OCAMLOPT" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 test -n "$OCAMLOPT" && break
7490 for ac_prog in ocamldep
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 OCAMLDEP=$ac_cv_path_OCAMLDEP
7523 if test -n "$OCAMLDEP"; then
7524 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7525 echo "${ECHO_T}$OCAMLDEP" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 test -n "$OCAMLDEP" && break
7535 for ac_prog in ocamldoc
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 OCAMLDOC=$ac_cv_path_OCAMLDOC
7568 if test -n "$OCAMLDOC"; then
7569 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7570 echo "${ECHO_T}$OCAMLDOC" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 test -n "$OCAMLDOC" && break
7580 for ac_prog in gas as
7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_GAS+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 if test -n "$GAS"; then
7614 { echo "$as_me:$LINENO: result: $GAS" >&5
7615 echo "${ECHO_T}$GAS" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 test -n "$GAS" && break
7626 { echo "$as_me:$LINENO: checking for linker version" >&5
7627 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7628 if test "${llvm_cv_link_version+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 version_string="$(ld -v 2>&1 | head -1)"
7635 if (echo "$version_string" | grep -q "ld64"); then
7636 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7638 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7642 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7643 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7645 cat >>confdefs.h <<_ACEOF
7646 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7651 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7652 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7653 if test "${llvm_cv_link_use_r+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cpp='$CPP $CPPFLAGS'
7658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663 CFLAGS="$CFLAGS -Wl,-R."
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (ac_try="$ac_link"
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_link") 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7694 { (case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_try") 2>&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_try") 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 llvm_cv_link_use_r=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 llvm_cv_link_use_r=no
7721 rm -f core conftest.err conftest.$ac_objext \
7722 conftest$ac_exeext conftest.$ac_ext
7725 ac_cpp='$CPP $CPPFLAGS'
7726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7733 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7734 if test "$llvm_cv_link_use_r" = yes ; then
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_LINK_R 1
7743 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7744 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7745 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 ac_cpp='$CPP $CPPFLAGS'
7750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7771 rm -f conftest.$ac_objext conftest$ac_exeext
7772 if { (ac_try="$ac_link"
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_link") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7786 { (case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_try") 2>&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 llvm_cv_link_use_export_dynamic=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 llvm_cv_link_use_export_dynamic=no
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7817 ac_cpp='$CPP $CPPFLAGS'
7818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7825 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7826 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_LINK_EXPORT_DYNAMIC 1
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_version_script+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848 # The following code is from the autoconf manual,
7849 # "11.13: Limitations of Usual Tools".
7850 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7851 # Use mktemp if possible; otherwise fall back on mkdir,
7852 # with $RANDOM to make collisions less likely.
7856 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7858 test -n "$tmp" && test -d "$tmp"
7860 tmp=$TMPDIR/foo$$-$RANDOM
7861 (umask 077 && mkdir "$tmp")
7864 echo "{" > "$tmp/export.map"
7865 echo " global: main;" >> "$tmp/export.map"
7866 echo " local: *;" >> "$tmp/export.map"
7867 echo "};" >> "$tmp/export.map"
7869 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7885 rm -f conftest.$ac_objext conftest$ac_exeext
7886 if { (ac_try="$ac_link"
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_link") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7900 { (case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_try") 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); }; } &&
7909 { ac_try='test -s conftest$ac_exeext'
7910 { (case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_try") 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 llvm_cv_link_use_version_script=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 llvm_cv_link_use_version_script=no
7927 rm -f core conftest.err conftest.$ac_objext \
7928 conftest$ac_exeext conftest.$ac_ext
7929 rm "$tmp/export.map"
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7941 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7942 if test "$llvm_cv_link_use_version_script" = yes ; then
7943 HAVE_LINK_VERSION_SCRIPT=1
7950 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7951 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7952 if test "${ac_cv_c_const+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7965 /* FIXME: Include the comments suggested by Paul. */
7967 /* Ultrix mips cc rejects this. */
7968 typedef int charset[2];
7970 /* SunOS 4.1.1 cc rejects this. */
7971 char const *const *ccp;
7973 /* NEC SVR4.0.2 mips cc rejects this. */
7974 struct point {int x, y;};
7975 static struct point const zero = {0,0};
7976 /* AIX XL C 1.02.0.0 rejects this.
7977 It does not let you subtract one const X* pointer from another in
7978 an arm of an if-expression whose if-part is not a constant
7980 const char *g = "string";
7981 ccp = &g + (g ? g-g : 0);
7982 /* HPUX 7.0 cc rejects these. */
7985 ccp = (char const *const *) p;
7986 { /* SCO 3.2v4 cc rejects this. */
7988 char const *s = 0 ? (char *) 0 : (char const *) 0;
7993 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7995 const int *foo = &x[0];
7998 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7999 typedef const int *iptr;
8003 { /* AIX XL C 1.02.0.0 rejects this saying
8004 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8005 struct s { int j; const int *ap[3]; };
8006 struct s *b; b->j = 5;
8008 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8012 return !x[0] && !zero.x;
8019 rm -f conftest.$ac_objext
8020 if { (ac_try="$ac_compile"
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_try") 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_try") 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8064 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8065 if test $ac_cv_c_const = no; then
8067 cat >>confdefs.h <<\_ACEOF
8079 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8080 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8081 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8082 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 #include <sys/types.h>
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8119 { (case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_try") 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 eval "$as_ac_Header=yes"
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8143 eval "$as_ac_Header=no"
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 ac_res=`eval echo '${'$as_ac_Header'}'`
8149 { echo "$as_me:$LINENO: result: $ac_res" >&5
8150 echo "${ECHO_T}$ac_res" >&6; }
8151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8152 cat >>confdefs.h <<_ACEOF
8153 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8156 ac_header_dirent=$ac_hdr; break
8160 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8161 if test $ac_header_dirent = dirent.h; then
8162 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8163 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8164 if test "${ac_cv_search_opendir+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 ac_func_search_save_LIBS=$LIBS
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8175 /* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
8190 for ac_lib in '' dir; do
8191 if test -z "$ac_lib"; then
8192 ac_res="none required"
8195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (ac_try="$ac_link"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_link") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212 { (case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_try") 2>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; } &&
8221 { ac_try='test -s conftest$ac_exeext'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_search_opendir=$ac_res
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8239 rm -f core conftest.err conftest.$ac_objext \
8241 if test "${ac_cv_search_opendir+set}" = set; then
8245 if test "${ac_cv_search_opendir+set}" = set; then
8248 ac_cv_search_opendir=no
8251 LIBS=$ac_func_search_save_LIBS
8253 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8254 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8255 ac_res=$ac_cv_search_opendir
8256 if test "$ac_res" != no; then
8257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8262 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8263 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8264 if test "${ac_cv_search_opendir+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 ac_func_search_save_LIBS=$LIBS
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8275 /* Override any GCC internal prototype to avoid an error.
8276 Use char because int might match the return type of a GCC
8277 builtin and then its argument prototype would still apply. */
8290 for ac_lib in '' x; do
8291 if test -z "$ac_lib"; then
8292 ac_res="none required"
8295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 rm -f conftest.$ac_objext conftest$ac_exeext
8298 if { (ac_try="$ac_link"
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_link") 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; } &&
8321 { ac_try='test -s conftest$ac_exeext'
8322 { (case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_try") 2>&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_search_opendir=$ac_res
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8339 rm -f core conftest.err conftest.$ac_objext \
8341 if test "${ac_cv_search_opendir+set}" = set; then
8345 if test "${ac_cv_search_opendir+set}" = set; then
8348 ac_cv_search_opendir=no
8351 LIBS=$ac_func_search_save_LIBS
8353 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8354 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8355 ac_res=$ac_cv_search_opendir
8356 if test "$ac_res" != no; then
8357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8364 for ac_header in dlfcn.h
8366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_res=`eval echo '${'$as_ac_Header'}'`
8374 { echo "$as_me:$LINENO: result: $ac_res" >&5
8375 echo "${ECHO_T}$ac_res" >&6; }
8377 # Is the header compilable?
8378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #include <$ac_header>
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8404 { (case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_try") 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 ac_header_compiler=yes
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 ac_header_compiler=no
8431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8433 echo "${ECHO_T}$ac_header_compiler" >&6; }
8435 # Is the header present?
8436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 #include <$ac_header>
8446 if { (ac_try="$ac_cpp conftest.$ac_ext"
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8454 grep -v '^ *+' conftest.er1 >conftest.err
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } >/dev/null; then
8459 if test -s conftest.err; then
8460 ac_cpp_err=$ac_c_preproc_warn_flag
8461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8468 if test -z "$ac_cpp_err"; then
8469 ac_header_preproc=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_header_preproc=no
8477 rm -f conftest.err conftest.$ac_ext
8478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8479 echo "${ECHO_T}$ac_header_preproc" >&6; }
8481 # So? What about this header?
8482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8488 ac_header_preproc=yes
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8504 ## ------------------------------------ ##
8505 ## Report this to http://llvm.org/bugs/ ##
8506 ## ------------------------------------ ##
8508 ) | sed "s/^/$as_me: WARNING: /" >&2
8511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 eval "$as_ac_Header=\$ac_header_preproc"
8518 ac_res=`eval echo '${'$as_ac_Header'}'`
8519 { echo "$as_me:$LINENO: result: $ac_res" >&5
8520 echo "${ECHO_T}$ac_res" >&6; }
8523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8524 cat >>confdefs.h <<_ACEOF
8525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 # Check whether --enable-ltdl-install was given.
8533 if test "${enable_ltdl_install+set}" = set; then
8534 enableval=$enable_ltdl_install;
8540 if test x"${enable_ltdl_install-no}" != xno; then
8542 INSTALL_LTDL_FALSE='#'
8544 INSTALL_LTDL_TRUE='#'
8550 if test x"${enable_ltdl_convenience-no}" != xno; then
8551 CONVENIENCE_LTDL_TRUE=
8552 CONVENIENCE_LTDL_FALSE='#'
8554 CONVENIENCE_LTDL_TRUE='#'
8555 CONVENIENCE_LTDL_FALSE=
8559 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8560 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8562 libname_spec='lib$name'
8570 shlibpath_overrides_runpath=unknown
8572 dynamic_linker="$host_os ld.so"
8573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8574 if test "$GCC" = yes; then
8575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8577 # if the path contains ";" then we assume it to be the separator
8578 # otherwise default to the standard path separator (i.e. ":") - it is
8579 # assumed that no part of a normal pathname contains ";" but that should
8580 # okay in the real world where ";" in dirpaths is itself problematic.
8581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8588 need_lib_prefix=unknown
8589 hardcode_into_libs=no
8591 # when you set need_version to no, make sure it does not cause -set_version
8592 # flags to be left without arguments
8593 need_version=unknown
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8599 shlibpath_var=LIBPATH
8601 # AIX 3 has no versioning support, so we append a major version to the name.
8602 soname_spec='${libname}${release}${shared_ext}$major'
8609 hardcode_into_libs=yes
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 supports IA64
8612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8613 shlibpath_var=LD_LIBRARY_PATH
8615 # With GCC up to 2.95.x, collect2 would create an import file
8616 # for dependence libraries. The import file would start with
8617 # the line `#! .'. This would cause the generated library to
8618 # depend on `.', always an invalid library. This was fixed in
8619 # development snapshots of GCC prior to 3.0.
8621 aix4 | aix4.[01] | aix4.[01].*)
8622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8624 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8632 # soname into executable. Probably we can add versioning support to
8633 # collect2, so additional links can be useful in future.
8634 if test "$aix_use_runtimelinking" = yes; then
8635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8636 # instead of lib<name>.a to let people know that these are not
8637 # typical AIX shared libraries.
8638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8640 # We preserve .a as extension for shared libraries through AIX4.2
8641 # and later when we are not doing run time linking.
8642 library_names_spec='${libname}${release}.a $libname.a'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8645 shlibpath_var=LIBPATH
8650 library_names_spec='$libname.ixlibrary $libname.a'
8651 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8652 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'
8656 library_names_spec='${libname}${shared_ext}'
8657 dynamic_linker="$host_os ld.so"
8658 shlibpath_var=LIBRARY_PATH
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8667 shlibpath_var=LD_LIBRARY_PATH
8668 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8669 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8670 # the default ld.so.conf also contains /usr/contrib/lib and
8671 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8672 # libtool to hard-code these into programs
8675 cygwin* | mingw* | pw32*)
8676 version_type=windows
8681 case $GCC,$host_os in
8682 yes,cygwin* | yes,mingw* | yes,pw32*)
8683 library_names_spec='$libname.dll.a'
8684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8685 postinstall_cmds='base_file=`basename \${file}`~
8686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8687 dldir=$destdir/`dirname \$dlpath`~
8688 test -d \$dldir || mkdir -p \$dldir~
8689 $install_prog $dir/$dlname \$dldir/$dlname~
8690 chmod a+x \$dldir/$dlname'
8691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8692 dlpath=$dir/\$dldll~
8694 shlibpath_overrides_runpath=yes
8698 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8699 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8700 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8703 # MinGW DLLs use traditional 'lib' prefix
8704 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8705 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8707 # It is most probably a Windows format PATH printed by
8708 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8709 # path with ; separators, and with drive letters. We can handle the
8710 # drive letters (cygwin fileutils understands them), so leave them,
8711 # especially as we might pass files found there to a mingw objdump,
8712 # which wouldn't understand a cygwinified path. Ahh.
8713 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8715 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8719 # pw32 DLLs use 'pw' prefix rather than 'lib'
8720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8729 dynamic_linker='Win32 ld.exe'
8730 # FIXME: first we should search . and the directory the executable is in
8734 darwin* | rhapsody*)
8735 dynamic_linker="$host_os dyld"
8739 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8740 soname_spec='${libname}${release}${major}$shared_ext'
8741 shlibpath_overrides_runpath=yes
8742 shlibpath_var=DYLD_LIBRARY_PATH
8743 shrext_cmds='.dylib'
8744 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8745 if test "$GCC" = yes; then
8746 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"`
8748 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8750 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8758 soname_spec='${libname}${release}${shared_ext}$major'
8759 shlibpath_var=LD_LIBRARY_PATH
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=no
8774 hardcode_into_libs=yes
8775 dynamic_linker='GNU ld.so'
8778 freebsd* | dragonfly*)
8779 # DragonFly does not have aout. When/if they implement a new
8780 # versioning mechanism, adjust this.
8781 if test -x /usr/bin/objformat; then
8782 objformat=`/usr/bin/objformat`
8785 freebsd[123].*) objformat=aout ;;
8789 version_type=freebsd-$objformat
8790 case $version_type in
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8801 shlibpath_var=LD_LIBRARY_PATH
8804 shlibpath_overrides_runpath=yes
8806 freebsd3.[01]* | freebsdelf3.[01]*)
8807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8812 shlibpath_overrides_runpath=no
8813 hardcode_into_libs=yes
8815 freebsd*) # from 4.6 on
8816 shlibpath_overrides_runpath=yes
8817 hardcode_into_libs=yes
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 hardcode_into_libs=yes
8832 hpux9* | hpux10* | hpux11*)
8833 # Give a soname corresponding to the major version so that dld.sl refuses to
8834 # link against other versions.
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.so"
8843 shlibpath_var=LD_LIBRARY_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 if test "X$HPUX_IA64_MODE" = X32; then
8848 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8856 hardcode_into_libs=yes
8857 dynamic_linker="$host_os dld.sl"
8858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=SHLIB_PATH
8869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8874 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8875 postinstall_cmds='chmod 555 $lib'
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
8887 hardcode_into_libs=yes
8890 irix5* | irix6* | nonstopux*)
8892 nonstopux*) version_type=nonstopux ;;
8894 if test "$lt_cv_prog_gnu_ld" = yes; then
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8905 irix5* | nonstopux*)
8909 case $LD in # libtool.m4 will add one of these switches to LD
8910 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8911 libsuff= shlibsuff= libmagic=32-bit;;
8912 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8913 libsuff=32 shlibsuff=N32 libmagic=N32;;
8914 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8915 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8916 *) libsuff= shlibsuff= libmagic=never-match;;
8920 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8921 shlibpath_overrides_runpath=no
8922 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8923 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8924 hardcode_into_libs=yes
8927 # No shared lib support for Linux oldld, aout, or coff.
8928 linux*oldld* | linux*aout* | linux*coff*)
8932 # This must be Linux ELF.
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 # This implies no fast_install, which is unacceptable.
8943 # Some rework will be needed to allow for fast_install
8944 # before this can be enabled.
8945 hardcode_into_libs=yes
8947 # Append ld.so.conf contents to the search path
8948 if test -f /etc/ld.so.conf; then
8949 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' ' '`
8950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8953 # We used to test for /lib/ld.so.1 and disable shared libraries on
8954 # powerpc, because MkLinux only supported shared libraries with the
8955 # GNU dynamic linker. Since this was broken with cross compilers,
8956 # most powerpc-linux boxes support dynamic linking these days and
8957 # people can always --disable-shared, the test was removed, and we
8958 # assume the GNU/Linux dynamic linker is in use.
8959 dynamic_linker='GNU/Linux ld.so'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 shlibpath_overrides_runpath=no
8970 hardcode_into_libs=yes
8971 dynamic_linker='GNU ld.so'
8978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8981 dynamic_linker='NetBSD (a.out) ld.so'
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 dynamic_linker='NetBSD ld.elf_so'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes
9011 sys_lib_dlsearch_path_spec="/usr/lib"
9013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9016 *) need_version=no ;;
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9023 openbsd2.[89] | openbsd2.[89].*)
9024 shlibpath_overrides_runpath=no
9027 shlibpath_overrides_runpath=yes
9031 shlibpath_overrides_runpath=yes
9036 libname_spec='$name'
9039 library_names_spec='$libname${shared_ext} $libname.a'
9040 dynamic_linker='OS/2 ld.exe'
9041 shlibpath_var=LIBPATH
9044 osf3* | osf4* | osf5*)
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9064 # ldd complains unless libraries are executable
9065 postinstall_cmds='chmod +x $lib'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 if test "$with_gnu_ld" = yes; then
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 case $host_vendor in
9087 shlibpath_overrides_runpath=no
9089 export_dynamic_flag_spec='${wl}-Blargedynsym'
9090 runpath_var=LD_RUN_PATH
9098 shlibpath_overrides_runpath=no
9099 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9105 if test -d /usr/nec ;then
9107 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9108 soname_spec='$libname${shared_ext}.$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9114 version_type=freebsd-elf
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 hardcode_into_libs=yes
9121 if test "$with_gnu_ld" = yes; then
9122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9123 shlibpath_overrides_runpath=no
9125 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9126 shlibpath_overrides_runpath=yes
9129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9133 sys_lib_dlsearch_path_spec='/usr/lib'
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 shlibpath_var=LD_LIBRARY_PATH
9147 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9148 echo "${ECHO_T}$dynamic_linker" >&6; }
9149 test "$dynamic_linker" = no && can_build_shared=no
9151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9152 if test "$GCC" = yes; then
9153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9157 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9158 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9159 if test "${libltdl_cv_shlibext+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 eval libltdl_cv_shlibext=$shrext_cmds
9167 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9168 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9169 if test -n "$libltdl_cv_shlibext"; then
9171 cat >>confdefs.h <<_ACEOF
9172 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9178 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9179 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9180 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 libltdl_cv_shlibpath_var="$shlibpath_var"
9185 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9186 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9187 if test -n "$libltdl_cv_shlibpath_var"; then
9189 cat >>confdefs.h <<_ACEOF
9190 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9196 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9197 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9198 if test "${libltdl_cv_sys_search_path+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9203 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9204 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9205 if test -n "$libltdl_cv_sys_search_path"; then
9207 for dir in $libltdl_cv_sys_search_path; do
9208 if test -z "$sys_search_path"; then
9209 sys_search_path="$dir"
9211 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9221 { echo "$as_me:$LINENO: checking for objdir" >&5
9222 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9223 if test "${libltdl_cv_objdir+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 libltdl_cv_objdir="$objdir"
9227 if test -n "$objdir"; then
9230 rm -f .libs 2>/dev/null
9231 mkdir .libs 2>/dev/null
9232 if test -d .libs; then
9233 libltdl_cv_objdir=.libs
9235 # MS-DOS does not allow filenames that begin with a dot.
9236 libltdl_cv_objdir=_libs
9238 rmdir .libs 2>/dev/null
9242 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9243 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9245 cat >>confdefs.h <<_ACEOF
9246 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9254 # Check for command to grab the raw symbol name followed by C symbol from nm.
9255 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9256 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9257 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9261 # These are sane defaults that work on at least a few old systems.
9262 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9264 # Character class describing NM global symbol codes.
9265 symcode='[BCDEGRST]'
9267 # Regexp to match symbols that can be accessed directly from C.
9268 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9270 # Transform an extracted symbol line into a proper C declaration
9271 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9273 # Transform an extracted symbol line into symbol name and symbol address
9274 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'"
9276 # Define system-specific variables.
9281 cygwin* | mingw* | pw32*)
9282 symcode='[ABCDGISTW]'
9284 hpux*) # Its linker distinguishes data from code symbols
9285 if test "$host_cpu" = ia64; then
9286 symcode='[ABCDEGRST]'
9288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289 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'"
9292 if test "$host_cpu" = ia64; then
9293 symcode='[ABCDGIRSTW]'
9294 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9295 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'"
9299 symcode='[BCDEGRST]'
9302 symcode='[BCDEGQRST]'
9313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9321 # Handle CRLF in mingw tool chain
9325 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9329 # If we're using GNU nm, then use its standard symbol codes.
9330 case `$NM -V 2>&1` in
9331 *GNU* | *'with BFD'*)
9332 symcode='[ABCDGIRSTW]' ;;
9335 # Try without a prefix undercore, then with it.
9336 for ac_symprfx in "" "_"; do
9338 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9339 symxfrm="\\1 $ac_symprfx\\2 \\2"
9341 # Write the raw and C identifiers.
9342 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9344 # Check to see that the pipe works correctly.
9348 cat > conftest.$ac_ext <<EOF
9353 void nm_test_func(){}
9357 int main(){nm_test_var='a';nm_test_func();return(0);}
9360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; then
9365 # Now try to grab the symbols.
9367 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9368 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } && test -s "$nlist"; then
9372 # Try sorting and uniquifying the output.
9373 if sort "$nlist" | uniq > "$nlist"T; then
9374 mv -f "$nlist"T "$nlist"
9379 # Make sure that we snagged all the symbols we need.
9380 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9381 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9382 cat <<EOF > conftest.$ac_ext
9388 # Now generate the symbol file.
9389 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9391 cat <<EOF >> conftest.$ac_ext
9392 #if defined (__STDC__) && __STDC__
9393 # define lt_ptr_t void *
9395 # define lt_ptr_t char *
9399 /* The mapping between symbol names and symbols. */
9404 lt_preloaded_symbols[] =
9407 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9408 cat <<\EOF >> conftest.$ac_ext
9416 # Now try linking the two files.
9417 mv conftest.$ac_objext conftstm.$ac_objext
9418 lt_save_LIBS="$LIBS"
9419 lt_save_CFLAGS="$CFLAGS"
9420 LIBS="conftstm.$ac_objext"
9421 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423 (eval $ac_link) 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9429 LIBS="$lt_save_LIBS"
9430 CFLAGS="$lt_save_CFLAGS"
9432 echo "cannot find nm_test_func in $nlist" >&5
9435 echo "cannot find nm_test_var in $nlist" >&5
9438 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9441 echo "$progname: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9444 rm -f conftest* conftst*
9446 # Do not use the global_symbol_pipe unless it works.
9447 if test "$pipe_works" = yes; then
9450 lt_cv_sys_global_symbol_pipe=
9456 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9457 lt_cv_sys_global_symbol_to_cdecl=
9459 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9460 { echo "$as_me:$LINENO: result: failed" >&5
9461 echo "${ECHO_T}failed" >&6; }
9463 { echo "$as_me:$LINENO: result: ok" >&5
9464 echo "${ECHO_T}ok" >&6; }
9468 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9469 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9474 libltdl_cv_preloaded_symbols=yes
9476 libltdl_cv_preloaded_symbols=no
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9481 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9482 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9484 cat >>confdefs.h <<\_ACEOF
9485 #define HAVE_PRELOADED_SYMBOLS 1
9493 ac_cpp='$CPP $CPPFLAGS'
9494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499 { echo "$as_me:$LINENO: checking for shl_load" >&5
9500 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9501 if test "${ac_cv_func_shl_load+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9512 #define shl_load innocuous_shl_load
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char shl_load (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9520 # include <limits.h>
9522 # include <assert.h>
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined __stub_shl_load || defined __stub___shl_load
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9564 { (case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_try") 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest$ac_exeext'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_func_shl_load=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_func_shl_load=no
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9596 if test $ac_cv_func_shl_load = yes; then
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_SHL_LOAD 1
9603 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9604 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9605 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 ac_check_lib_save_LIBS=$LIBS
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9617 /* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } &&
9646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9647 { (case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_try") 2>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9666 ac_cv_lib_dld_shl_load=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 ac_cv_lib_dld_shl_load=no
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9679 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9680 if test $ac_cv_lib_dld_shl_load = yes; then
9682 cat >>confdefs.h <<\_ACEOF
9683 #define HAVE_SHL_LOAD 1
9686 LIBADD_DL="$LIBADD_DL -ldld"
9688 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9689 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 ac_check_lib_save_LIBS=$LIBS
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_link") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; }; then
9751 ac_cv_lib_dl_dlopen=yes
9753 echo "$as_me: failed program was:" >&5
9754 sed 's/^/| /' conftest.$ac_ext >&5
9756 ac_cv_lib_dl_dlopen=no
9759 rm -f core conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9765 if test $ac_cv_lib_dl_dlopen = yes; then
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_LIBDL 1
9771 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1 >conftest.err
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9806 { (case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_try") 2>&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; } &&
9815 { ac_try='test -s conftest$ac_exeext'
9816 { (case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_try") 2>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9826 cat >>confdefs.h <<\_ACEOF
9827 #define HAVE_LIBDL 1
9829 libltdl_cv_func_dlopen="yes"
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9835 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9836 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 ac_check_lib_save_LIBS=$LIBS
9841 cat >conftest.$ac_ext <<_ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
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_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_svld_dlopen=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_svld_dlopen=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9910 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9911 if test $ac_cv_lib_svld_dlopen = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_LIBDL 1
9917 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9919 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9920 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9921 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 ac_check_lib_save_LIBS=$LIBS
9926 cat >conftest.$ac_ext <<_ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (ac_try="$ac_link"
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
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_try") 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dld_dld_link=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dld_dld_link=no
9990 rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
9992 LIBS=$ac_check_lib_save_LIBS
9994 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9995 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9996 if test $ac_cv_lib_dld_dld_link = yes; then
9998 cat >>confdefs.h <<\_ACEOF
10002 LIBADD_DL="$LIBADD_DL -ldld"
10004 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10005 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10006 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10017 #define _dyld_func_lookup innocuous__dyld_func_lookup
10019 /* System header to define __stub macros and hopefully few prototypes,
10020 which can conflict with char _dyld_func_lookup (); below.
10021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10022 <limits.h> exists even on freestanding compilers. */
10025 # include <limits.h>
10027 # include <assert.h>
10030 #undef _dyld_func_lookup
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10038 char _dyld_func_lookup ();
10039 /* The GNU C library defines this for functions which it implements
10040 to always fail with ENOSYS. Some functions are actually named
10041 something starting with __ and the normal name is an alias. */
10042 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10049 return _dyld_func_lookup ();
10054 rm -f conftest.$ac_objext conftest$ac_exeext
10055 if { (ac_try="$ac_link"
10056 case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10063 grep -v '^ *+' conftest.er1 >conftest.err
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func__dyld_func_lookup=yes
10090 echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10093 ac_cv_func__dyld_func_lookup=no
10096 rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10099 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10100 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10101 if test $ac_cv_func__dyld_func_lookup = yes; then
10103 cat >>confdefs.h <<\_ACEOF
10104 #define HAVE_DYLD 1
10118 rm -f core conftest.err conftest.$ac_objext \
10119 conftest$ac_exeext conftest.$ac_ext
10130 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10132 lt_save_LIBS="$LIBS"
10133 LIBS="$LIBS $LIBADD_DL"
10135 for ac_func in dlerror
10137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10151 #define $ac_func innocuous_$ac_func
10153 /* System header to define __stub macros and hopefully few prototypes,
10154 which can conflict with char $ac_func (); below.
10155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156 <limits.h> exists even on freestanding compilers. */
10159 # include <limits.h>
10161 # include <assert.h>
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10173 /* The GNU C library defines this for functions which it implements
10174 to always fail with ENOSYS. Some functions are actually named
10175 something starting with __ and the normal name is an alias. */
10176 #if defined __stub_$ac_func || defined __stub___$ac_func
10183 return $ac_func ();
10188 rm -f conftest.$ac_objext conftest$ac_exeext
10189 if { (ac_try="$ac_link"
10190 case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_link") 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; } &&
10212 { ac_try='test -s conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 eval "$as_ac_var=yes"
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 eval "$as_ac_var=no"
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10233 ac_res=`eval echo '${'$as_ac_var'}'`
10234 { echo "$as_me:$LINENO: result: $ac_res" >&5
10235 echo "${ECHO_T}$ac_res" >&6; }
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237 cat >>confdefs.h <<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10244 LIBS="$lt_save_LIBS"
10247 ac_cpp='$CPP $CPPFLAGS'
10248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10254 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10255 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10256 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 ac_cv_sys_symbol_underscore=no
10260 cat > conftest.$ac_ext <<EOF
10261 void nm_test_func(){}
10262 int main(){nm_test_func;return 0;}
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; then
10269 # Now try to grab the symbols.
10270 ac_nlist=conftest.nm
10271 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10272 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s "$ac_nlist"; then
10276 # See whether the symbols have a leading underscore.
10277 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10278 ac_cv_sys_symbol_underscore=yes
10280 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10283 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10287 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10290 echo "configure: failed program was:" >&5
10296 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10297 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10300 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10301 if test x"$libltdl_cv_func_dlopen" = xyes ||
10302 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10303 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10304 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10305 if test "${libltdl_cv_need_uscore+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 libltdl_cv_need_uscore=unknown
10310 LIBS="$LIBS $LIBADD_DL"
10311 if test "$cross_compiling" = yes; then :
10312 libltdl_cv_need_uscore=cross
10314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10315 lt_status=$lt_dlunknown
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10317 "configure"
10318 #include "confdefs.h"
10327 # define LT_DLGLOBAL RTLD_GLOBAL
10330 # define LT_DLGLOBAL DL_GLOBAL
10332 # define LT_DLGLOBAL 0
10336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10337 find out it does not work in some platform. */
10338 #ifndef LT_DLLAZY_OR_NOW
10340 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10343 # define LT_DLLAZY_OR_NOW DL_LAZY
10346 # define LT_DLLAZY_OR_NOW RTLD_NOW
10349 # define LT_DLLAZY_OR_NOW DL_NOW
10351 # define LT_DLLAZY_OR_NOW 0
10359 extern "C" void exit (int);
10362 void fnord() { int i=42;}
10365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10366 int status = $lt_dlunknown;
10370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10372 /* dlclose (self); */
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10385 (./conftest; exit; ) >&5 2>/dev/null
10387 case x$lt_status in
10388 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10389 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10390 x$lt_dlunknown|x*) ;;
10393 # compilation failed
10402 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10403 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10407 if test x"$libltdl_cv_need_uscore" = xyes; then
10409 cat >>confdefs.h <<\_ACEOF
10410 #define NEED_USCORE 1
10416 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10417 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10418 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 # PORTME does your system automatically load deplibs for dlopen?
10422 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10423 # For now, we just catch OSes we know something about -- in the
10424 # future, we'll try test this programmatically.
10425 libltdl_cv_sys_dlopen_deplibs=unknown
10427 aix3*|aix4.1.*|aix4.2.*)
10428 # Unknown whether this is true for these versions of AIX, but
10429 # we want this `case' here to explicitly catch those versions.
10430 libltdl_cv_sys_dlopen_deplibs=unknown
10433 libltdl_cv_sys_dlopen_deplibs=yes
10436 # Assuming the user has installed a libdl from somewhere, this is true
10437 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10438 libltdl_cv_sys_dlopen_deplibs=yes
10440 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10441 # GNU and its variants, using gnu ld.so (Glibc)
10442 libltdl_cv_sys_dlopen_deplibs=yes
10445 libltdl_cv_sys_dlopen_deplibs=yes
10448 libltdl_cv_sys_dlopen_deplibs=yes
10450 irix[12345]*|irix6.[01]*)
10451 # Catch all versions of IRIX before 6.2, and indicate that we don't
10452 # know how it worked for any of those versions.
10453 libltdl_cv_sys_dlopen_deplibs=unknown
10456 # The case above catches anything before 6.2, and it's known that
10457 # at 6.2 and later dlopen does load deplibs.
10458 libltdl_cv_sys_dlopen_deplibs=yes
10461 libltdl_cv_sys_dlopen_deplibs=yes
10464 libltdl_cv_sys_dlopen_deplibs=yes
10467 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10468 # it did *not* use an RPATH in a shared library to find objects the
10469 # library depends on, so we explicitly say `no'.
10470 libltdl_cv_sys_dlopen_deplibs=no
10472 osf5.0|osf5.0a|osf5.1)
10473 # dlopen *does* load deplibs and with the right loader patch applied
10474 # it even uses RPATH in a shared library to search for shared objects
10475 # that the library depends on, but there's no easy way to know if that
10476 # patch is installed. Since this is the case, all we can really
10477 # say is unknown -- it depends on the patch being installed. If
10478 # it is, this changes to `yes'. Without it, it would be `no'.
10479 libltdl_cv_sys_dlopen_deplibs=unknown
10482 # the two cases above should catch all versions of osf <= 5.1. Read
10483 # the comments above for what we know about them.
10484 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10485 # is used to find them so we can finally say `yes'.
10486 libltdl_cv_sys_dlopen_deplibs=yes
10489 libltdl_cv_sys_dlopen_deplibs=yes
10491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 libltdl_cv_sys_dlopen_deplibs=yes
10497 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10498 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10499 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define LTDL_DLOPEN_DEPLIBS 1
10508 for ac_header in argz.h
10510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 ac_res=`eval echo '${'$as_ac_Header'}'`
10518 { echo "$as_me:$LINENO: result: $ac_res" >&5
10519 echo "${ECHO_T}$ac_res" >&6; }
10521 # Is the header compilable?
10522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10524 cat >conftest.$ac_ext <<_ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 $ac_includes_default
10531 #include <$ac_header>
10533 rm -f conftest.$ac_objext
10534 if { (ac_try="$ac_compile"
10535 case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_header_compiler=yes
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_compiler=no
10575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10577 echo "${ECHO_T}$ac_header_compiler" >&6; }
10579 # Is the header present?
10580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <$ac_header>
10590 if { (ac_try="$ac_cpp conftest.$ac_ext"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null; then
10603 if test -s conftest.err; then
10604 ac_cpp_err=$ac_c_preproc_warn_flag
10605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10612 if test -z "$ac_cpp_err"; then
10613 ac_header_preproc=yes
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 ac_header_preproc=no
10621 rm -f conftest.err conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6; }
10625 # So? What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632 ac_header_preproc=yes
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10648 ## ------------------------------------ ##
10649 ## Report this to http://llvm.org/bugs/ ##
10650 ## ------------------------------------ ##
10652 ) | sed "s/^/$as_me: WARNING: /" >&2
10655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 eval "$as_ac_Header=\$ac_header_preproc"
10662 ac_res=`eval echo '${'$as_ac_Header'}'`
10663 { echo "$as_me:$LINENO: result: $ac_res" >&5
10664 echo "${ECHO_T}$ac_res" >&6; }
10667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677 { echo "$as_me:$LINENO: checking for error_t" >&5
10678 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10679 if test "${ac_cv_type_error_t+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10692 typedef error_t ac__type_new_;
10696 if ((ac__type_new_ *) 0)
10698 if (sizeof (ac__type_new_))
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10719 { (case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_try") 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_type_error_t=yes
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ac_cv_type_error_t=no
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10749 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10750 if test $ac_cv_type_error_t = yes; then
10752 cat >>confdefs.h <<_ACEOF
10753 #define HAVE_ERROR_T 1
10759 cat >>confdefs.h <<\_ACEOF
10760 #define error_t int
10771 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define $ac_func innocuous_$ac_func
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10795 # include <limits.h>
10797 # include <assert.h>
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10819 return $ac_func ();
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828 *) ac_try_echo=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_try") 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; } &&
10848 { ac_try='test -s conftest$ac_exeext'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 eval "$as_ac_var=yes"
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 eval "$as_ac_var=no"
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10869 ac_res=`eval echo '${'$as_ac_var'}'`
10870 { echo "$as_me:$LINENO: result: $ac_res" >&5
10871 echo "${ECHO_T}$ac_res" >&6; }
10872 if test `eval echo '${'$as_ac_var'}'` = yes; then
10873 cat >>confdefs.h <<_ACEOF
10874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10907 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 ac_res=`eval echo '${'$as_ac_Header'}'`
10918 { echo "$as_me:$LINENO: result: $ac_res" >&5
10919 echo "${ECHO_T}$ac_res" >&6; }
10921 # Is the header compilable?
10922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10924 cat >conftest.$ac_ext <<_ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 $ac_includes_default
10931 #include <$ac_header>
10933 rm -f conftest.$ac_objext
10934 if { (ac_try="$ac_compile"
10935 case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_compile") 2>conftest.er1
10942 grep -v '^ *+' conftest.er1 >conftest.err
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 ac_header_compiler=yes
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 ac_header_compiler=no
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10977 echo "${ECHO_T}$ac_header_compiler" >&6; }
10979 # Is the header present?
10980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10982 cat >conftest.$ac_ext <<_ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 #include <$ac_header>
10990 if { (ac_try="$ac_cpp conftest.$ac_ext"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } >/dev/null; then
11003 if test -s conftest.err; then
11004 ac_cpp_err=$ac_c_preproc_warn_flag
11005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11012 if test -z "$ac_cpp_err"; then
11013 ac_header_preproc=yes
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ac_header_preproc=no
11021 rm -f conftest.err conftest.$ac_ext
11022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11023 echo "${ECHO_T}$ac_header_preproc" >&6; }
11025 # So? What about this header?
11026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11032 ac_header_preproc=yes
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048 ## ------------------------------------ ##
11049 ## Report this to http://llvm.org/bugs/ ##
11050 ## ------------------------------------ ##
11052 ) | sed "s/^/$as_me: WARNING: /" >&2
11055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11058 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 eval "$as_ac_Header=\$ac_header_preproc"
11062 ac_res=`eval echo '${'$as_ac_Header'}'`
11063 { echo "$as_me:$LINENO: result: $ac_res" >&5
11064 echo "${ECHO_T}$ac_res" >&6; }
11067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11068 cat >>confdefs.h <<_ACEOF
11069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 ac_res=`eval echo '${'$as_ac_Header'}'`
11090 { echo "$as_me:$LINENO: result: $ac_res" >&5
11091 echo "${ECHO_T}$ac_res" >&6; }
11093 # Is the header compilable?
11094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 $ac_includes_default
11103 #include <$ac_header>
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_compile") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_try") 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_header_compiler=yes
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_header_compiler=no
11147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11149 echo "${ECHO_T}$ac_header_compiler" >&6; }
11151 # Is the header present?
11152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 #include <$ac_header>
11162 if { (ac_try="$ac_cpp conftest.$ac_ext"
11163 case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null; then
11175 if test -s conftest.err; then
11176 ac_cpp_err=$ac_c_preproc_warn_flag
11177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11184 if test -z "$ac_cpp_err"; then
11185 ac_header_preproc=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_header_preproc=no
11193 rm -f conftest.err conftest.$ac_ext
11194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11195 echo "${ECHO_T}$ac_header_preproc" >&6; }
11197 # So? What about this header?
11198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11204 ac_header_preproc=yes
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11220 ## ------------------------------------ ##
11221 ## Report this to http://llvm.org/bugs/ ##
11222 ## ------------------------------------ ##
11224 ) | sed "s/^/$as_me: WARNING: /" >&2
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 eval "$as_ac_Header=\$ac_header_preproc"
11234 ac_res=`eval echo '${'$as_ac_Header'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11250 for ac_header in string.h strings.h
11252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 ac_res=`eval echo '${'$as_ac_Header'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11263 # Is the header compilable?
11264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11266 cat >conftest.$ac_ext <<_ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11273 #include <$ac_header>
11275 rm -f conftest.$ac_objext
11276 if { (ac_try="$ac_compile"
11277 case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_compile") 2>conftest.er1
11284 grep -v '^ *+' conftest.er1 >conftest.err
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11290 { (case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_try") 2>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }; then
11309 ac_header_compiler=yes
11311 echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_compiler=no
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11319 echo "${ECHO_T}$ac_header_compiler" >&6; }
11321 # Is the header present?
11322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <$ac_header>
11332 if { (ac_try="$ac_cpp conftest.$ac_ext"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11340 grep -v '^ *+' conftest.er1 >conftest.err
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } >/dev/null; then
11345 if test -s conftest.err; then
11346 ac_cpp_err=$ac_c_preproc_warn_flag
11347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11354 if test -z "$ac_cpp_err"; then
11355 ac_header_preproc=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_preproc=no
11363 rm -f conftest.err conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11365 echo "${ECHO_T}$ac_header_preproc" >&6; }
11367 # So? What about this header?
11368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11374 ac_header_preproc=yes
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11390 ## ------------------------------------ ##
11391 ## Report this to http://llvm.org/bugs/ ##
11392 ## ------------------------------------ ##
11394 ) | sed "s/^/$as_me: WARNING: /" >&2
11397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 eval "$as_ac_Header=\$ac_header_preproc"
11404 ac_res=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11410 cat >>confdefs.h <<_ACEOF
11411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11421 for ac_func in strchr index
11423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11429 cat >conftest.$ac_ext <<_ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11437 #define $ac_func innocuous_$ac_func
11439 /* System header to define __stub macros and hopefully few prototypes,
11440 which can conflict with char $ac_func (); below.
11441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11442 <limits.h> exists even on freestanding compilers. */
11445 # include <limits.h>
11447 # include <assert.h>
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11459 /* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462 #if defined __stub_$ac_func || defined __stub___$ac_func
11469 return $ac_func ();
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (ac_try="$ac_link"
11476 case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_link") 2>conftest.er1
11483 grep -v '^ *+' conftest.er1 >conftest.err
11485 cat conftest.err >&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11489 { (case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_try") 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest$ac_exeext'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 eval "$as_ac_var=yes"
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 eval "$as_ac_var=no"
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11532 for ac_func in strrchr rindex
11534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11548 #define $ac_func innocuous_$ac_func
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char $ac_func (); below.
11552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553 <limits.h> exists even on freestanding compilers. */
11556 # include <limits.h>
11558 # include <assert.h>
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11570 /* The GNU C library defines this for functions which it implements
11571 to always fail with ENOSYS. Some functions are actually named
11572 something starting with __ and the normal name is an alias. */
11573 #if defined __stub_$ac_func || defined __stub___$ac_func
11580 return $ac_func ();
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (ac_try="$ac_link"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_link") 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11600 { (case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_try") 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 eval "$as_ac_var=yes"
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 eval "$as_ac_var=no"
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11630 ac_res=`eval echo '${'$as_ac_var'}'`
11631 { echo "$as_me:$LINENO: result: $ac_res" >&5
11632 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_var'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11643 for ac_func in memcpy bcopy
11645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11659 #define $ac_func innocuous_$ac_func
11661 /* System header to define __stub macros and hopefully few prototypes,
11662 which can conflict with char $ac_func (); below.
11663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664 <limits.h> exists even on freestanding compilers. */
11667 # include <limits.h>
11669 # include <assert.h>
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11681 /* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684 #if defined __stub_$ac_func || defined __stub___$ac_func
11691 return $ac_func ();
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_link") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } &&
11710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 eval "$as_ac_var=no"
11738 rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11741 ac_res=`eval echo '${'$as_ac_var'}'`
11742 { echo "$as_me:$LINENO: result: $ac_res" >&5
11743 echo "${ECHO_T}$ac_res" >&6; }
11744 if test `eval echo '${'$as_ac_var'}'` = yes; then
11745 cat >>confdefs.h <<_ACEOF
11746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754 for ac_func in memmove strcmp
11756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11770 #define $ac_func innocuous_$ac_func
11772 /* System header to define __stub macros and hopefully few prototypes,
11773 which can conflict with char $ac_func (); below.
11774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 <limits.h> exists even on freestanding compilers. */
11778 # include <limits.h>
11780 # include <assert.h>
11785 /* Override any GCC internal prototype to avoid an error.
11786 Use char because int might match the return type of a GCC
11787 builtin and then its argument prototype would still apply. */
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined __stub_$ac_func || defined __stub___$ac_func
11802 return $ac_func ();
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (ac_try="$ac_link"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_link") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1 >conftest.err
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; } &&
11831 { ac_try='test -s conftest$ac_exeext'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 eval "$as_ac_var=yes"
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 eval "$as_ac_var=no"
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11852 ac_res=`eval echo '${'$as_ac_var'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11855 if test `eval echo '${'$as_ac_var'}'` = yes; then
11856 cat >>confdefs.h <<_ACEOF
11857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866 for ac_func in closedir opendir readdir
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11882 #define $ac_func innocuous_$ac_func
11884 /* System header to define __stub macros and hopefully few prototypes,
11885 which can conflict with char $ac_func (); below.
11886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11887 <limits.h> exists even on freestanding compilers. */
11890 # include <limits.h>
11892 # include <assert.h>
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11904 /* The GNU C library defines this for functions which it implements
11905 to always fail with ENOSYS. Some functions are actually named
11906 something starting with __ and the normal name is an alias. */
11907 #if defined __stub_$ac_func || defined __stub___$ac_func
11914 return $ac_func ();
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934 { (case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_try") 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest$ac_exeext'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 eval "$as_ac_var=yes"
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 eval "$as_ac_var=no"
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11964 ac_res=`eval echo '${'$as_ac_var'}'`
11965 { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11978 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11991 if test "$GCC" != "yes" && test "$ICC" != "yes"
11993 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11994 echo "$as_me: error: gcc|icc required but not found" >&2;}
11995 { (exit 1); exit 1; }; }
11998 if test "$GXX" != "yes" && test "$IXX" != "yes"
12000 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12001 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12002 { (exit 1); exit 1; }; }
12005 if test "$GCC" = "yes"
12007 cat >conftest.$ac_ext <<_ACEOF
12008 #if !defined(__GNUC__) || __GNUC__ < 3
12009 #error Unsupported GCC version
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12022 grep -v '^ *+' conftest.er1 >conftest.err
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12053 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12054 { (exit 1); exit 1; }; }
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 if test -z "$llvm_cv_gnu_make_command"
12062 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12063 echo "$as_me: error: GNU Make required but not found" >&2;}
12064 { (exit 1); exit 1; }; }
12067 { echo "$as_me:$LINENO: result: ok" >&5
12068 echo "${ECHO_T}ok" >&6; }
12070 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12071 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12072 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12074 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12076 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12078 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12079 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12083 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12084 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_m_sin+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_check_lib_save_LIBS=$LIBS
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest$ac_exeext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_lib_m_sin=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12158 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12159 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12160 if test $ac_cv_lib_m_sin = yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_LIBM 1
12169 if test "$llvm_cv_os_type" = "MingW" ; then
12171 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12172 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-limagehlp $LIBS"
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12194 rm -f conftest.$ac_objext conftest$ac_exeext
12195 if { (ac_try="$ac_link"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_link") 2>conftest.er1
12203 grep -v '^ *+' conftest.er1 >conftest.err
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_lib_imagehlp_main=yes
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12233 ac_cv_lib_imagehlp_main=no
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12240 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12241 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12242 if test $ac_cv_lib_imagehlp_main = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_LIBIMAGEHLP 1
12247 LIBS="-limagehlp $LIBS"
12252 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12253 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_psapi_main+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lpsapi $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1 >conftest.err
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_lib_psapi_main=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_psapi_main=no
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12322 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12323 if test $ac_cv_lib_psapi_main = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBPSAPI 1
12328 LIBS="-lpsapi $LIBS"
12334 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12335 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12336 if test "${ac_cv_search_dlopen+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 ac_func_search_save_LIBS=$LIBS
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12362 for ac_lib in '' dl; do
12363 if test -z "$ac_lib"; then
12364 ac_res="none required"
12367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (ac_try="$ac_link"
12371 case "(($ac_try" in
12372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12373 *) ac_try_echo=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_link") 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12384 { (case "(($ac_try" in
12385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12386 *) ac_try_echo=$ac_try;;
12388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12389 (eval "$ac_try") 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_search_dlopen=$ac_res
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12411 rm -f core conftest.err conftest.$ac_objext \
12413 if test "${ac_cv_search_dlopen+set}" = set; then
12417 if test "${ac_cv_search_dlopen+set}" = set; then
12420 ac_cv_search_dlopen=no
12422 rm conftest.$ac_ext
12423 LIBS=$ac_func_search_save_LIBS
12425 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12426 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12427 ac_res=$ac_cv_search_dlopen
12428 if test "$ac_res" != no; then
12429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_DLOPEN 1
12436 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12437 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12441 if test "$llvm_cv_enable_libffi" = "yes" ; then
12442 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12443 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12444 if test "${ac_cv_search_ffi_call+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 ac_func_search_save_LIBS=$LIBS
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12455 /* Override any GCC internal prototype to avoid an error.
12456 Use char because int might match the return type of a GCC
12457 builtin and then its argument prototype would still apply. */
12465 return ffi_call ();
12470 for ac_lib in '' ffi; do
12471 if test -z "$ac_lib"; then
12472 ac_res="none required"
12475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12477 rm -f conftest.$ac_objext conftest$ac_exeext
12478 if { (ac_try="$ac_link"
12479 case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_link") 2>conftest.er1
12486 grep -v '^ *+' conftest.er1 >conftest.err
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12492 { (case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_try") 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 ac_cv_search_ffi_call=$ac_res
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12519 rm -f core conftest.err conftest.$ac_objext \
12521 if test "${ac_cv_search_ffi_call+set}" = set; then
12525 if test "${ac_cv_search_ffi_call+set}" = set; then
12528 ac_cv_search_ffi_call=no
12530 rm conftest.$ac_ext
12531 LIBS=$ac_func_search_save_LIBS
12533 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12534 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12535 ac_res=$ac_cv_search_ffi_call
12536 if test "$ac_res" != no; then
12537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12539 cat >>confdefs.h <<\_ACEOF
12540 #define HAVE_FFI_CALL 1
12544 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12545 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12546 { (exit 1); exit 1; }; }
12551 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12552 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12553 if test "${ac_cv_search_mallinfo+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 ac_func_search_save_LIBS=$LIBS
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12564 /* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
12574 return mallinfo ();
12579 for ac_lib in '' malloc; do
12580 if test -z "$ac_lib"; then
12581 ac_res="none required"
12584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (ac_try="$ac_link"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_link") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest$ac_exeext'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_search_mallinfo=$ac_res
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12628 rm -f core conftest.err conftest.$ac_objext \
12630 if test "${ac_cv_search_mallinfo+set}" = set; then
12634 if test "${ac_cv_search_mallinfo+set}" = set; then
12637 ac_cv_search_mallinfo=no
12639 rm conftest.$ac_ext
12640 LIBS=$ac_func_search_save_LIBS
12642 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12643 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12644 ac_res=$ac_cv_search_mallinfo
12645 if test "$ac_res" != no; then
12646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_MALLINFO 1
12655 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12657 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12658 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12659 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 ac_check_lib_save_LIBS=$LIBS
12663 LIBS="-lpthread $LIBS"
12664 cat >conftest.$ac_ext <<_ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12671 /* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
12677 char pthread_mutex_init ();
12681 return pthread_mutex_init ();
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (ac_try="$ac_link"
12688 case "(($ac_try" in
12689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690 *) ac_try_echo=$ac_try;;
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693 (eval "$ac_link") 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12701 { (case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_try") 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 ac_cv_lib_pthread_pthread_mutex_init=yes
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 ac_cv_lib_pthread_pthread_mutex_init=no
12728 rm -f core conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12733 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12734 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_LIBPTHREAD 1
12739 LIBS="-lpthread $LIBS"
12743 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12744 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char pthread_mutex_lock ();
12766 return pthread_mutex_lock ();
12771 for ac_lib in '' pthread; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_pthread_mutex_lock=$ac_res
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12826 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12829 ac_cv_search_pthread_mutex_lock=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12836 ac_res=$ac_cv_search_pthread_mutex_lock
12837 if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_MUTEX_LOCK 1
12846 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12847 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
12851 ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12865 char pthread_rwlock_init ();
12869 return pthread_rwlock_init ();
12874 for ac_lib in '' pthread; do
12875 if test -z "$ac_lib"; then
12876 ac_res="none required"
12879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_link") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1 >conftest.err
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest$ac_exeext'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_search_pthread_rwlock_init=$ac_res
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12923 rm -f core conftest.err conftest.$ac_objext \
12925 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12929 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12932 ac_cv_search_pthread_rwlock_init=no
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12939 ac_res=$ac_cv_search_pthread_rwlock_init
12940 if test "$ac_res" != no; then
12941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_RWLOCK_INIT 1
12949 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12950 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12951 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 ac_func_search_save_LIBS=$LIBS
12955 cat >conftest.$ac_ext <<_ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12968 char pthread_getspecific ();
12972 return pthread_getspecific ();
12977 for ac_lib in '' pthread; do
12978 if test -z "$ac_lib"; then
12979 ac_res="none required"
12982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_link") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest$ac_exeext'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_search_pthread_getspecific=$ac_res
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13026 rm -f core conftest.err conftest.$ac_objext \
13028 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13032 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13035 ac_cv_search_pthread_getspecific=no
13037 rm conftest.$ac_ext
13038 LIBS=$ac_func_search_save_LIBS
13040 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13041 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13042 ac_res=$ac_cv_search_pthread_getspecific
13043 if test "$ac_res" != no; then
13044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046 cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_PTHREAD_GETSPECIFIC 1
13055 # Check whether --with-udis86 was given.
13056 if test "${with_udis86+set}" = set; then
13057 withval=$with_udis86;
13062 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13065 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13066 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13067 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-ludis86 $LIBS"
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_link") 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13109 { (case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_try") 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest$ac_exeext'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_cv_lib_udis86_ud_init=yes
13130 echo "$as_me: failed program was:" >&5
13131 sed 's/^/| /' conftest.$ac_ext >&5
13133 ac_cv_lib_udis86_ud_init=no
13136 rm -f core conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13138 LIBS=$ac_check_lib_save_LIBS
13140 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13141 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13142 if test $ac_cv_lib_udis86_ud_init = yes; then
13143 cat >>confdefs.h <<_ACEOF
13144 #define HAVE_LIBUDIS86 1
13147 LIBS="-ludis86 $LIBS"
13151 echo "Error! You need to have libudis86 around."
13163 cat >>confdefs.h <<_ACEOF
13164 #define USE_UDIS86 $USE_UDIS86
13169 # Check whether --with-oprofile was given.
13170 if test "${with_oprofile+set}" = set; then
13171 withval=$with_oprofile;
13175 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13176 no) llvm_cv_oppath=
13179 *) llvm_cv_oppath="${withval}/lib/oprofile"
13180 CPPFLAGS="-I${withval}/include";;
13182 case $llvm_cv_os_type in
13184 if test -n "$llvm_cv_oppath" ; then
13185 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13186 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13187 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13188 if test "${ac_cv_search_bfd_init+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 ac_func_search_save_LIBS=$LIBS
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13209 return bfd_init ();
13214 for ac_lib in '' bfd; do
13215 if test -z "$ac_lib"; then
13216 ac_res="none required"
13219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } &&
13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13236 { (case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_try") 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest$ac_exeext'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255 ac_cv_search_bfd_init=$ac_res
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13263 rm -f core conftest.err conftest.$ac_objext \
13265 if test "${ac_cv_search_bfd_init+set}" = set; then
13269 if test "${ac_cv_search_bfd_init+set}" = set; then
13272 ac_cv_search_bfd_init=no
13274 rm conftest.$ac_ext
13275 LIBS=$ac_func_search_save_LIBS
13277 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13278 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13279 ac_res=$ac_cv_search_bfd_init
13280 if test "$ac_res" != no; then
13281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13286 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13287 if test "${ac_cv_search_op_open_agent+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 ac_func_search_save_LIBS=$LIBS
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13298 /* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13304 char op_open_agent ();
13308 return op_open_agent ();
13313 for ac_lib in '' opagent; do
13314 if test -z "$ac_lib"; then
13315 ac_res="none required"
13318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_link") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } &&
13334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; } &&
13344 { ac_try='test -s conftest$ac_exeext'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; }; then
13354 ac_cv_search_op_open_agent=$ac_res
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13362 rm -f core conftest.err conftest.$ac_objext \
13364 if test "${ac_cv_search_op_open_agent+set}" = set; then
13368 if test "${ac_cv_search_op_open_agent+set}" = set; then
13371 ac_cv_search_op_open_agent=no
13373 rm conftest.$ac_ext
13374 LIBS=$ac_func_search_save_LIBS
13376 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13377 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13378 ac_res=$ac_cv_search_op_open_agent
13379 if test "$ac_res" != no; then
13380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13384 echo "Error! You need to have libopagent around."
13389 if test "${ac_cv_header_opagent_h+set}" = set; then
13390 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13391 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13392 if test "${ac_cv_header_opagent_h+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13396 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13398 # Is the header compilable?
13399 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13400 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 $ac_includes_default
13408 #include <opagent.h>
13410 rm -f conftest.$ac_objext
13411 if { (ac_try="$ac_compile"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_compile") 2>conftest.er1
13419 grep -v '^ *+' conftest.er1 >conftest.err
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; } &&
13434 { ac_try='test -s conftest.$ac_objext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_header_compiler=yes
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 ac_header_compiler=no
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13454 echo "${ECHO_T}$ac_header_compiler" >&6; }
13456 # Is the header present?
13457 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13458 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13459 cat >conftest.$ac_ext <<_ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 #include <opagent.h>
13467 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } >/dev/null; then
13480 if test -s conftest.err; then
13481 ac_cpp_err=$ac_c_preproc_warn_flag
13482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13489 if test -z "$ac_cpp_err"; then
13490 ac_header_preproc=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_header_preproc=no
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13512 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13525 ## ------------------------------------ ##
13526 ## Report this to http://llvm.org/bugs/ ##
13527 ## ------------------------------------ ##
13529 ) | sed "s/^/$as_me: WARNING: /" >&2
13532 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13533 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13534 if test "${ac_cv_header_opagent_h+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 ac_cv_header_opagent_h=$ac_header_preproc
13539 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13540 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13543 if test $ac_cv_header_opagent_h = yes; then
13547 echo "Error! You need to have opagent.h around."
13555 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13556 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13557 { (exit 1); exit 1; }; } ;;
13568 cat >>confdefs.h <<_ACEOF
13569 #define LLVM_USE_OPROFILE $USE_OPROFILE
13574 # Check whether --with-intel-jitevents was given.
13575 if test "${with_intel_jitevents+set}" = set; then
13576 withval=$with_intel_jitevents;
13578 yes) USE_INTEL_JITEVENTS=1
13580 no) USE_INTEL_JITEVENTS=0
13582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13583 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13584 { (exit 1); exit 1; }; };;
13587 case $llvm_cv_os_type in
13588 Linux|Win32|Cygwin|MingW) ;;
13589 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13590 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13591 { (exit 1); exit 1; }; };;
13594 case "$llvm_cv_target_arch" in
13596 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13597 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13598 { (exit 1); exit 1; }; };;
13603 USE_INTEL_JITEVENTS=0
13609 cat >>confdefs.h <<_ACEOF
13610 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13614 for ac_prog in xml2-config
13616 # Extract the first word of "$ac_prog", so it can be a program name with args.
13617 set dummy $ac_prog; ac_word=$2
13618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13620 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 if test -n "$XML2CONFIG"; then
13624 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_prog_XML2CONFIG="$ac_prog"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13644 if test -n "$XML2CONFIG"; then
13645 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13646 echo "${ECHO_T}$XML2CONFIG" >&6; }
13648 { echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6; }
13653 test -n "$XML2CONFIG" && break
13657 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13658 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13659 if test "x$XML2CONFIG" = "x"; then
13660 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13661 echo "${ECHO_T}xml2-config not found" >&6; }
13663 LIBXML2_INC=`$XML2CONFIG --cflags`
13664 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13665 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13666 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13667 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-lxml2 $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13686 char xmlReadFile ();
13690 return xmlReadFile ();
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_cv_lib_xml2_xmlReadFile=yes
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_cv_lib_xml2_xmlReadFile=no
13737 rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13739 LIBS=$ac_check_lib_save_LIBS
13741 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13742 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13743 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define CLANG_HAVE_LIBXML 1
13749 LIBXML2_LIBS="-lxml2"
13762 ac_header_dirent=no
13763 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13764 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13765 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13766 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13776 #include <sys/types.h>
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_compile") 2>conftest.er1
13797 grep -v '^ *+' conftest.er1 >conftest.err
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest.$ac_objext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 eval "$as_ac_Header=yes"
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 eval "$as_ac_Header=no"
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 ac_res=`eval echo '${'$as_ac_Header'}'`
13833 { echo "$as_me:$LINENO: result: $ac_res" >&5
13834 echo "${ECHO_T}$ac_res" >&6; }
13835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13836 cat >>confdefs.h <<_ACEOF
13837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13840 ac_header_dirent=$ac_hdr; break
13844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13845 if test $ac_header_dirent = dirent.h; then
13846 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13848 if test "${ac_cv_search_opendir+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 ac_func_search_save_LIBS=$LIBS
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13874 for ac_lib in '' dir; do
13875 if test -z "$ac_lib"; then
13876 ac_res="none required"
13879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>conftest.er1
13890 grep -v '^ *+' conftest.er1 >conftest.err
13892 cat conftest.err >&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } &&
13895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13896 { (case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_try") 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; } &&
13905 { ac_try='test -s conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_search_opendir=$ac_res
13917 echo "$as_me: failed program was:" >&5
13918 sed 's/^/| /' conftest.$ac_ext >&5
13923 rm -f core conftest.err conftest.$ac_objext \
13925 if test "${ac_cv_search_opendir+set}" = set; then
13929 if test "${ac_cv_search_opendir+set}" = set; then
13932 ac_cv_search_opendir=no
13934 rm conftest.$ac_ext
13935 LIBS=$ac_func_search_save_LIBS
13937 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13938 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13939 ac_res=$ac_cv_search_opendir
13940 if test "$ac_res" != no; then
13941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13946 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13947 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13948 if test "${ac_cv_search_opendir+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 ac_func_search_save_LIBS=$LIBS
13952 cat >conftest.$ac_ext <<_ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13959 /* Override any GCC internal prototype to avoid an error.
13960 Use char because int might match the return type of a GCC
13961 builtin and then its argument prototype would still apply. */
13974 for ac_lib in '' x; do
13975 if test -z "$ac_lib"; then
13976 ac_res="none required"
13979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (ac_try="$ac_link"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
13995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; } &&
14005 { ac_try='test -s conftest$ac_exeext'
14006 { (case "(($ac_try" in
14007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14015 ac_cv_search_opendir=$ac_res
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14023 rm -f core conftest.err conftest.$ac_objext \
14025 if test "${ac_cv_search_opendir+set}" = set; then
14029 if test "${ac_cv_search_opendir+set}" = set; then
14032 ac_cv_search_opendir=no
14034 rm conftest.$ac_ext
14035 LIBS=$ac_func_search_save_LIBS
14037 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14038 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14039 ac_res=$ac_cv_search_opendir
14040 if test "$ac_res" != no; then
14041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14047 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14048 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14049 if test "${ac_cv_header_mmap_anon+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 ac_cpp='$CPP $CPPFLAGS'
14054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <sys/mman.h>
14065 #include <unistd.h>
14070 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082 (eval "$ac_compile") 2>conftest.er1
14084 grep -v '^ *+' conftest.er1 >conftest.err
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14090 { (case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_try") 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_try") 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_cv_header_mmap_anon=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_header_mmap_anon=no
14117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14126 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14127 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14128 if test "$ac_cv_header_mmap_anon" = yes; then
14130 cat >>confdefs.h <<\_ACEOF
14131 #define HAVE_MMAP_ANONYMOUS 1
14136 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14137 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_stat_broken+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14148 #include <sys/stat.h>
14150 #if defined S_ISBLK && defined S_IFDIR
14151 # if S_ISBLK (S_IFDIR)
14156 #if defined S_ISBLK && defined S_IFCHR
14157 # if S_ISBLK (S_IFCHR)
14162 #if defined S_ISLNK && defined S_IFREG
14163 # if S_ISLNK (S_IFREG)
14168 #if defined S_ISSOCK && defined S_IFREG
14169 # if S_ISSOCK (S_IFREG)
14175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14176 $EGREP "You lose" >/dev/null 2>&1; then
14177 ac_cv_header_stat_broken=yes
14179 ac_cv_header_stat_broken=no
14184 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14185 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14186 if test $ac_cv_header_stat_broken = yes; then
14188 cat >>confdefs.h <<\_ACEOF
14189 #define STAT_MACROS_BROKEN 1
14194 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14195 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14196 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 #include <sys/types.h>
14206 #include <sys/wait.h>
14207 #ifndef WEXITSTATUS
14208 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14219 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1 >conftest.err
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239 { (case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_try") 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_header_sys_wait_h=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_header_sys_wait_h=no
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14269 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14270 if test $ac_cv_header_sys_wait_h = yes; then
14272 cat >>confdefs.h <<\_ACEOF
14273 #define HAVE_SYS_WAIT_H 1
14278 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14279 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14280 if test "${ac_cv_header_time+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <sys/types.h>
14290 #include <sys/time.h>
14296 if ((struct tm *) 0)
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_cv_header_time=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_header_time=no
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14347 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14348 if test $ac_cv_header_time = yes; then
14350 cat >>confdefs.h <<\_ACEOF
14351 #define TIME_WITH_SYS_TIME 1
14363 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 ac_res=`eval echo '${'$as_ac_Header'}'`
14373 { echo "$as_me:$LINENO: result: $ac_res" >&5
14374 echo "${ECHO_T}$ac_res" >&6; }
14376 # Is the header compilable?
14377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14379 cat >conftest.$ac_ext <<_ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 #include <$ac_header>
14388 rm -f conftest.$ac_objext
14389 if { (ac_try="$ac_compile"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_compile") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14418 (eval "$ac_try") 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_header_compiler=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_compiler=no
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14432 echo "${ECHO_T}$ac_header_compiler" >&6; }
14434 # Is the header present?
14435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 #include <$ac_header>
14445 if { (ac_try="$ac_cpp conftest.$ac_ext"
14446 case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1 >conftest.err
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } >/dev/null; then
14458 if test -s conftest.err; then
14459 ac_cpp_err=$ac_c_preproc_warn_flag
14460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14467 if test -z "$ac_cpp_err"; then
14468 ac_header_preproc=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_header_preproc=no
14476 rm -f conftest.err conftest.$ac_ext
14477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14478 echo "${ECHO_T}$ac_header_preproc" >&6; }
14480 # So? What about this header?
14481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14487 ac_header_preproc=yes
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14503 ## ------------------------------------ ##
14504 ## Report this to http://llvm.org/bugs/ ##
14505 ## ------------------------------------ ##
14507 ) | sed "s/^/$as_me: WARNING: /" >&2
14510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 eval "$as_ac_Header=\$ac_header_preproc"
14517 ac_res=`eval echo '${'$as_ac_Header'}'`
14518 { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14537 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14550 # Is the header compilable?
14551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14560 #include <$ac_header>
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_compile") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14577 { (case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_try") 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; } &&
14586 { ac_try='test -s conftest.$ac_objext'
14587 { (case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_try") 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 ac_header_compiler=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_header_compiler=no
14604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14606 echo "${ECHO_T}$ac_header_compiler" >&6; }
14608 # Is the header present?
14609 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #include <$ac_header>
14619 if { (ac_try="$ac_cpp conftest.$ac_ext"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } >/dev/null; then
14632 if test -s conftest.err; then
14633 ac_cpp_err=$ac_c_preproc_warn_flag
14634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14641 if test -z "$ac_cpp_err"; then
14642 ac_header_preproc=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_header_preproc=no
14650 rm -f conftest.err conftest.$ac_ext
14651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14652 echo "${ECHO_T}$ac_header_preproc" >&6; }
14654 # So? What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14661 ac_header_preproc=yes
14664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14677 ## ------------------------------------ ##
14678 ## Report this to http://llvm.org/bugs/ ##
14679 ## ------------------------------------ ##
14681 ) | sed "s/^/$as_me: WARNING: /" >&2
14684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14689 eval "$as_ac_Header=\$ac_header_preproc"
14691 ac_res=`eval echo '${'$as_ac_Header'}'`
14692 { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14697 cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14707 for ac_header in utime.h windows.h
14709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 ac_res=`eval echo '${'$as_ac_Header'}'`
14717 { echo "$as_me:$LINENO: result: $ac_res" >&5
14718 echo "${ECHO_T}$ac_res" >&6; }
14720 # Is the header compilable?
14721 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14723 cat >conftest.$ac_ext <<_ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 #include <$ac_header>
14732 rm -f conftest.$ac_objext
14733 if { (ac_try="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (case "(($ac_try" in
14748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14749 *) ac_try_echo=$ac_try;;
14751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14752 (eval "$ac_try") 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest.$ac_objext'
14757 { (case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_try") 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_header_compiler=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_compiler=no
14774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14776 echo "${ECHO_T}$ac_header_compiler" >&6; }
14778 # Is the header present?
14779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 #include <$ac_header>
14789 if { (ac_try="$ac_cpp conftest.$ac_ext"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797 grep -v '^ *+' conftest.er1 >conftest.err
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } >/dev/null; then
14802 if test -s conftest.err; then
14803 ac_cpp_err=$ac_c_preproc_warn_flag
14804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14811 if test -z "$ac_cpp_err"; then
14812 ac_header_preproc=yes
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ac_header_preproc=no
14820 rm -f conftest.err conftest.$ac_ext
14821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14822 echo "${ECHO_T}$ac_header_preproc" >&6; }
14824 # So? What about this header?
14825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14831 ac_header_preproc=yes
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14841 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14847 ## ------------------------------------ ##
14848 ## Report this to http://llvm.org/bugs/ ##
14849 ## ------------------------------------ ##
14851 ) | sed "s/^/$as_me: WARNING: /" >&2
14854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 eval "$as_ac_Header=\$ac_header_preproc"
14861 ac_res=`eval echo '${'$as_ac_Header'}'`
14862 { echo "$as_me:$LINENO: result: $ac_res" >&5
14863 echo "${ECHO_T}$ac_res" >&6; }
14866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14867 cat >>confdefs.h <<_ACEOF
14868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14880 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 ac_res=`eval echo '${'$as_ac_Header'}'`
14890 { echo "$as_me:$LINENO: result: $ac_res" >&5
14891 echo "${ECHO_T}$ac_res" >&6; }
14893 # Is the header compilable?
14894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <$ac_header>
14905 rm -f conftest.$ac_objext
14906 if { (ac_try="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14920 { (case "(($ac_try" in
14921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_try") 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; } &&
14929 { ac_try='test -s conftest.$ac_objext'
14930 { (case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_try") 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_header_compiler=yes
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_header_compiler=no
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14949 echo "${ECHO_T}$ac_header_compiler" >&6; }
14951 # Is the header present?
14952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <$ac_header>
14962 if { (ac_try="$ac_cpp conftest.$ac_ext"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } >/dev/null; then
14975 if test -s conftest.err; then
14976 ac_cpp_err=$ac_c_preproc_warn_flag
14977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14984 if test -z "$ac_cpp_err"; then
14985 ac_header_preproc=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_preproc=no
14993 rm -f conftest.err conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14995 echo "${ECHO_T}$ac_header_preproc" >&6; }
14997 # So? What about this header?
14998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15004 ac_header_preproc=yes
15007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15020 ## ------------------------------------ ##
15021 ## Report this to http://llvm.org/bugs/ ##
15022 ## ------------------------------------ ##
15024 ) | sed "s/^/$as_me: WARNING: /" >&2
15027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15032 eval "$as_ac_Header=\$ac_header_preproc"
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15052 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15061 ac_res=`eval echo '${'$as_ac_Header'}'`
15062 { echo "$as_me:$LINENO: result: $ac_res" >&5
15063 echo "${ECHO_T}$ac_res" >&6; }
15065 # Is the header compilable?
15066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 $ac_includes_default
15075 #include <$ac_header>
15077 rm -f conftest.$ac_objext
15078 if { (ac_try="$ac_compile"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_compile") 2>conftest.er1
15086 grep -v '^ *+' conftest.er1 >conftest.err
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 ac_header_compiler=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_header_compiler=no
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15121 echo "${ECHO_T}$ac_header_compiler" >&6; }
15123 # Is the header present?
15124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 #include <$ac_header>
15134 if { (ac_try="$ac_cpp conftest.$ac_ext"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15142 grep -v '^ *+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } >/dev/null; then
15147 if test -s conftest.err; then
15148 ac_cpp_err=$ac_c_preproc_warn_flag
15149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15156 if test -z "$ac_cpp_err"; then
15157 ac_header_preproc=yes
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ac_header_preproc=no
15165 rm -f conftest.err conftest.$ac_ext
15166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15167 echo "${ECHO_T}$ac_header_preproc" >&6; }
15169 # So? What about this header?
15170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15176 ac_header_preproc=yes
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15192 ## ------------------------------------ ##
15193 ## Report this to http://llvm.org/bugs/ ##
15194 ## ------------------------------------ ##
15196 ) | sed "s/^/$as_me: WARNING: /" >&2
15199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 eval "$as_ac_Header=\$ac_header_preproc"
15206 ac_res=`eval echo '${'$as_ac_Header'}'`
15207 { echo "$as_me:$LINENO: result: $ac_res" >&5
15208 echo "${ECHO_T}$ac_res" >&6; }
15211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15212 cat >>confdefs.h <<_ACEOF
15213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15221 for ac_header in valgrind/valgrind.h
15223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 ac_res=`eval echo '${'$as_ac_Header'}'`
15231 { echo "$as_me:$LINENO: result: $ac_res" >&5
15232 echo "${ECHO_T}$ac_res" >&6; }
15234 # Is the header compilable?
15235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15237 cat >conftest.$ac_ext <<_ACEOF
15240 cat confdefs.h >>conftest.$ac_ext
15241 cat >>conftest.$ac_ext <<_ACEOF
15242 /* end confdefs.h. */
15243 $ac_includes_default
15244 #include <$ac_header>
15246 rm -f conftest.$ac_objext
15247 if { (ac_try="$ac_compile"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 ac_header_compiler=yes
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 ac_header_compiler=no
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290 echo "${ECHO_T}$ac_header_compiler" >&6; }
15292 # Is the header present?
15293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 #include <$ac_header>
15303 if { (ac_try="$ac_cpp conftest.$ac_ext"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null; then
15316 if test -s conftest.err; then
15317 ac_cpp_err=$ac_c_preproc_warn_flag
15318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15325 if test -z "$ac_cpp_err"; then
15326 ac_header_preproc=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_header_preproc=no
15334 rm -f conftest.err conftest.$ac_ext
15335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15336 echo "${ECHO_T}$ac_header_preproc" >&6; }
15338 # So? What about this header?
15339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15345 ac_header_preproc=yes
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15361 ## ------------------------------------ ##
15362 ## Report this to http://llvm.org/bugs/ ##
15363 ## ------------------------------------ ##
15365 ) | sed "s/^/$as_me: WARNING: /" >&2
15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 eval "$as_ac_Header=\$ac_header_preproc"
15375 ac_res=`eval echo '${'$as_ac_Header'}'`
15376 { echo "$as_me:$LINENO: result: $ac_res" >&5
15377 echo "${ECHO_T}$ac_res" >&6; }
15380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15381 cat >>confdefs.h <<_ACEOF
15382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15390 for ac_header in fenv.h
15392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 ac_res=`eval echo '${'$as_ac_Header'}'`
15400 { echo "$as_me:$LINENO: result: $ac_res" >&5
15401 echo "${ECHO_T}$ac_res" >&6; }
15403 # Is the header compilable?
15404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #include <$ac_header>
15415 rm -f conftest.$ac_objext
15416 if { (ac_try="$ac_compile"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; } &&
15439 { ac_try='test -s conftest.$ac_objext'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15449 ac_header_compiler=yes
15451 echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_header_compiler=no
15457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6; }
15461 # Is the header present?
15462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <$ac_header>
15472 if { (ac_try="$ac_cpp conftest.$ac_ext"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } >/dev/null; then
15485 if test -s conftest.err; then
15486 ac_cpp_err=$ac_c_preproc_warn_flag
15487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15494 if test -z "$ac_cpp_err"; then
15495 ac_header_preproc=yes
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_header_preproc=no
15503 rm -f conftest.err conftest.$ac_ext
15504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15505 echo "${ECHO_T}$ac_header_preproc" >&6; }
15507 # So? What about this header?
15508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15514 ac_header_preproc=yes
15517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15530 ## ------------------------------------ ##
15531 ## Report this to http://llvm.org/bugs/ ##
15532 ## ------------------------------------ ##
15534 ) | sed "s/^/$as_me: WARNING: /" >&2
15537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 eval "$as_ac_Header=\$ac_header_preproc"
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15550 cat >>confdefs.h <<_ACEOF
15551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15558 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15560 for ac_header in pthread.h
15562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 ac_res=`eval echo '${'$as_ac_Header'}'`
15570 { echo "$as_me:$LINENO: result: $ac_res" >&5
15571 echo "${ECHO_T}$ac_res" >&6; }
15573 # Is the header compilable?
15574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 $ac_includes_default
15583 #include <$ac_header>
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_compile") 2>conftest.er1
15594 grep -v '^ *+' conftest.er1 >conftest.err
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_header_compiler=yes
15621 echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15624 ac_header_compiler=no
15627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15629 echo "${ECHO_T}$ac_header_compiler" >&6; }
15631 # Is the header present?
15632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #include <$ac_header>
15642 if { (ac_try="$ac_cpp conftest.$ac_ext"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } >/dev/null; then
15655 if test -s conftest.err; then
15656 ac_cpp_err=$ac_c_preproc_warn_flag
15657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 if test -z "$ac_cpp_err"; then
15665 ac_header_preproc=yes
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_preproc=no
15673 rm -f conftest.err conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677 # So? What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684 ac_header_preproc=yes
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 ## ------------------------------------ ##
15701 ## Report this to http://llvm.org/bugs/ ##
15702 ## ------------------------------------ ##
15704 ) | sed "s/^/$as_me: WARNING: /" >&2
15707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 eval "$as_ac_Header=\$ac_header_preproc"
15714 ac_res=`eval echo '${'$as_ac_Header'}'`
15715 { echo "$as_me:$LINENO: result: $ac_res" >&5
15716 echo "${ECHO_T}$ac_res" >&6; }
15719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15720 cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15737 if test "$llvm_cv_enable_libffi" = "yes" ; then
15740 for ac_header in ffi.h ffi/ffi.h
15742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15753 # Is the header compilable?
15754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 #include <$ac_header>
15765 rm -f conftest.$ac_objext
15766 if { (ac_try="$ac_compile"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_header_compiler=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_header_compiler=no
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809 echo "${ECHO_T}$ac_header_compiler" >&6; }
15811 # Is the header present?
15812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 #include <$ac_header>
15822 if { (ac_try="$ac_cpp conftest.$ac_ext"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } >/dev/null; then
15835 if test -s conftest.err; then
15836 ac_cpp_err=$ac_c_preproc_warn_flag
15837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844 if test -z "$ac_cpp_err"; then
15845 ac_header_preproc=yes
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_header_preproc=no
15853 rm -f conftest.err conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6; }
15857 # So? What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15880 ## ------------------------------------ ##
15881 ## Report this to http://llvm.org/bugs/ ##
15882 ## ------------------------------------ ##
15884 ) | sed "s/^/$as_me: WARNING: /" >&2
15887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 eval "$as_ac_Header=\$ac_header_preproc"
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900 cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15911 for ac_header in CrashReporterClient.h
15913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921 { echo "$as_me:$LINENO: result: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15924 # Is the header compilable?
15925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 $ac_includes_default
15934 #include <$ac_header>
15936 rm -f conftest.$ac_objext
15937 if { (ac_try="$ac_compile"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_compile") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; }; then
15970 ac_header_compiler=yes
15972 echo "$as_me: failed program was:" >&5
15973 sed 's/^/| /' conftest.$ac_ext >&5
15975 ac_header_compiler=no
15978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15980 echo "${ECHO_T}$ac_header_compiler" >&6; }
15982 # Is the header present?
15983 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15984 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15985 cat >conftest.$ac_ext <<_ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <$ac_header>
15993 if { (ac_try="$ac_cpp conftest.$ac_ext"
15994 case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16001 grep -v '^ *+' conftest.er1 >conftest.err
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_c_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16015 if test -z "$ac_cpp_err"; then
16016 ac_header_preproc=yes
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_header_preproc=no
16024 rm -f conftest.err conftest.$ac_ext
16025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16026 echo "${ECHO_T}$ac_header_preproc" >&6; }
16028 # So? What about this header?
16029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16035 ac_header_preproc=yes
16038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16051 ## ------------------------------------ ##
16052 ## Report this to http://llvm.org/bugs/ ##
16053 ## ------------------------------------ ##
16055 ) | sed "s/^/$as_me: WARNING: /" >&2
16058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 eval "$as_ac_Header=\$ac_header_preproc"
16065 ac_res=`eval echo '${'$as_ac_Header'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16080 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16081 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 extern const char *__crashreporter_info__;
16090 __crashreporter_info__ = "test";
16095 rm -f conftest.$ac_objext conftest$ac_exeext
16096 if { (ac_try="$ac_link"
16097 case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_link") 2>conftest.er1
16104 grep -v '^ *+' conftest.er1 >conftest.err
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16110 { (case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_try") 2>&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; } &&
16119 { ac_try='test -s conftest$ac_exeext'
16120 { (case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_try") 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 { echo "$as_me:$LINENO: result: yes" >&5
16130 echo "${ECHO_T}yes" >&6; }
16132 cat >>confdefs.h <<\_ACEOF
16133 #define HAVE_CRASHREPORTER_INFO 1
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 { echo "$as_me:$LINENO: result: no" >&5
16141 echo "${ECHO_T}no" >&6; }
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_CRASHREPORTER_INFO 0
16149 rm -f core conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16155 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16156 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16157 if test "${ac_cv_huge_val_sanity+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 ac_cpp='$CXXCPP $CPPFLAGS'
16163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16167 ac_save_CXXFLAGS=$CXXFLAGS
16168 CXXFLAGS="$CXXFLAGS -pedantic"
16169 if test "$cross_compiling" = yes; then
16170 ac_cv_huge_val_sanity=yes
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16182 double x = HUGE_VAL; return x != x;
16187 rm -f conftest$ac_exeext
16188 if { (ac_try="$ac_link"
16189 case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_link") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16198 { (case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_try") 2>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_cv_huge_val_sanity=yes
16209 echo "$as_me: program exited with status $ac_status" >&5
16210 echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16213 ( exit $ac_status )
16214 ac_cv_huge_val_sanity=no
16216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16220 CXXFLAGS=$ac_save_CXXFLAGS
16222 ac_cpp='$CPP $CPPFLAGS'
16223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16229 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16230 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16231 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16234 { echo "$as_me:$LINENO: checking for pid_t" >&5
16235 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16236 if test "${ac_cv_type_pid_t+set}" = set; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16239 cat >conftest.$ac_ext <<_ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 typedef pid_t ac__type_new_;
16250 if ((ac__type_new_ *) 0)
16252 if (sizeof (ac__type_new_))
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_compile") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16273 { (case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_try") 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (case "(($ac_try" in
16284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285 *) ac_try_echo=$ac_try;;
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288 (eval "$ac_try") 2>&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; }; then
16292 ac_cv_type_pid_t=yes
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16297 ac_cv_type_pid_t=no
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16303 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16304 if test $ac_cv_type_pid_t = yes; then
16308 cat >>confdefs.h <<_ACEOF
16314 { echo "$as_me:$LINENO: checking for size_t" >&5
16315 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16316 if test "${ac_cv_type_size_t+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 $ac_includes_default
16326 typedef size_t ac__type_new_;
16330 if ((ac__type_new_ *) 0)
16332 if (sizeof (ac__type_new_))
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_type_size_t=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_type_size_t=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16383 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16384 if test $ac_cv_type_size_t = yes; then
16388 cat >>confdefs.h <<_ACEOF
16389 #define size_t unsigned int
16395 cat >>confdefs.h <<_ACEOF
16396 #define RETSIGTYPE void
16399 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16400 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16401 if test "${ac_cv_struct_tm+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <sys/types.h>
16416 struct tm *tp; tp->tm_sec;
16421 rm -f conftest.$ac_objext
16422 if { (ac_try="$ac_compile"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_compile") 2>conftest.er1
16430 grep -v '^ *+' conftest.er1 >conftest.err
16432 cat conftest.err >&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16436 { (case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_try") 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; } &&
16445 { ac_try='test -s conftest.$ac_objext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_struct_tm=time.h
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_cv_struct_tm=sys/time.h
16463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16466 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16467 if test $ac_cv_struct_tm = sys/time.h; then
16469 cat >>confdefs.h <<\_ACEOF
16470 #define TM_IN_SYS_TIME 1
16475 { echo "$as_me:$LINENO: checking for int64_t" >&5
16476 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16477 if test "${ac_cv_type_int64_t+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 $ac_includes_default
16487 typedef int64_t ac__type_new_;
16491 if ((ac__type_new_ *) 0)
16493 if (sizeof (ac__type_new_))
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
16513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_try") 2>&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest.$ac_objext'
16524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_type_int64_t=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_type_int64_t=no
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16544 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16545 if test $ac_cv_type_int64_t = yes; then
16547 cat >>confdefs.h <<_ACEOF
16548 #define HAVE_INT64_T 1
16553 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16554 echo "$as_me: error: Type int64_t required but not found" >&2;}
16555 { (exit 1); exit 1; }; }
16558 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16559 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16560 if test "${ac_cv_type_uint64_t+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 $ac_includes_default
16570 typedef uint64_t ac__type_new_;
16574 if ((ac__type_new_ *) 0)
16576 if (sizeof (ac__type_new_))
16582 rm -f conftest.$ac_objext
16583 if { (ac_try="$ac_compile"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597 { (case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_try") 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_type_uint64_t=yes
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ac_cv_type_uint64_t=no
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16627 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16628 if test $ac_cv_type_uint64_t = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_UINT64_T 1
16636 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16637 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16638 if test "${ac_cv_type_u_int64_t+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 $ac_includes_default
16648 typedef u_int64_t ac__type_new_;
16652 if ((ac__type_new_ *) 0)
16654 if (sizeof (ac__type_new_))
16660 rm -f conftest.$ac_objext
16661 if { (ac_try="$ac_compile"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_compile") 2>conftest.er1
16669 grep -v '^ *+' conftest.er1 >conftest.err
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } &&
16674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; } &&
16684 { ac_try='test -s conftest.$ac_objext'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_cv_type_u_int64_t=yes
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_type_u_int64_t=no
16702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16705 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16706 if test $ac_cv_type_u_int64_t = yes; then
16708 cat >>confdefs.h <<_ACEOF
16709 #define HAVE_U_INT64_T 1
16714 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16715 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16716 { (exit 1); exit 1; }; }
16730 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16746 #define $ac_func innocuous_$ac_func
16748 /* System header to define __stub macros and hopefully few prototypes,
16749 which can conflict with char $ac_func (); below.
16750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751 <limits.h> exists even on freestanding compilers. */
16754 # include <limits.h>
16756 # include <assert.h>
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16768 /* The GNU C library defines this for functions which it implements
16769 to always fail with ENOSYS. Some functions are actually named
16770 something starting with __ and the normal name is an alias. */
16771 #if defined __stub_$ac_func || defined __stub___$ac_func
16778 return $ac_func ();
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (ac_try="$ac_link"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_link") 2>conftest.er1
16792 grep -v '^ *+' conftest.er1 >conftest.err
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest$ac_exeext'
16808 { (case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_try") 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 eval "$as_ac_var=yes"
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 eval "$as_ac_var=no"
16825 rm -f core conftest.err conftest.$ac_objext \
16826 conftest$ac_exeext conftest.$ac_ext
16828 ac_res=`eval echo '${'$as_ac_var'}'`
16829 { echo "$as_me:$LINENO: result: $ac_res" >&5
16830 echo "${ECHO_T}$ac_res" >&6; }
16831 if test `eval echo '${'$as_ac_var'}'` = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16843 for ac_func in powf fmodf strtof round
16845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 cat >conftest.$ac_ext <<_ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16859 #define $ac_func innocuous_$ac_func
16861 /* System header to define __stub macros and hopefully few prototypes,
16862 which can conflict with char $ac_func (); below.
16863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864 <limits.h> exists even on freestanding compilers. */
16867 # include <limits.h>
16869 # include <assert.h>
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16881 /* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
16884 #if defined __stub_$ac_func || defined __stub___$ac_func
16891 return $ac_func ();
16896 rm -f conftest.$ac_objext conftest$ac_exeext
16897 if { (ac_try="$ac_link"
16898 case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1 >conftest.err
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 eval "$as_ac_var=yes"
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 eval "$as_ac_var=no"
16938 rm -f core conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16941 ac_res=`eval echo '${'$as_ac_var'}'`
16942 { echo "$as_me:$LINENO: result: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16957 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16973 #define $ac_func innocuous_$ac_func
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func (); below.
16977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978 <limits.h> exists even on freestanding compilers. */
16981 # include <limits.h>
16983 # include <assert.h>
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16995 /* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998 #if defined __stub_$ac_func || defined __stub___$ac_func
17005 return $ac_func ();
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17025 { (case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_try") 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_try") 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 eval "$as_ac_var=yes"
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 eval "$as_ac_var=no"
17052 rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17055 ac_res=`eval echo '${'$as_ac_var'}'`
17056 { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17058 if test `eval echo '${'$as_ac_var'}'` = yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17069 for ac_func in isatty mkdtemp mkstemp
17071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17093 # include <limits.h>
17095 # include <assert.h>
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17117 return $ac_func ();
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17137 { (case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest$ac_exeext'
17147 { (case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_try") 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 eval "$as_ac_var=yes"
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 eval "$as_ac_var=no"
17164 rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17167 ac_res=`eval echo '${'$as_ac_var'}'`
17168 { echo "$as_me:$LINENO: result: $ac_res" >&5
17169 echo "${ECHO_T}$ac_res" >&6; }
17170 if test `eval echo '${'$as_ac_var'}'` = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17185 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17191 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17201 #define $ac_func innocuous_$ac_func
17203 /* System header to define __stub macros and hopefully few prototypes,
17204 which can conflict with char $ac_func (); below.
17205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17206 <limits.h> exists even on freestanding compilers. */
17209 # include <limits.h>
17211 # include <assert.h>
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17223 /* The GNU C library defines this for functions which it implements
17224 to always fail with ENOSYS. Some functions are actually named
17225 something starting with __ and the normal name is an alias. */
17226 #if defined __stub_$ac_func || defined __stub___$ac_func
17233 return $ac_func ();
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (ac_try="$ac_link"
17240 case "(($ac_try" in
17241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_link") 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
17252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_try") 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest$ac_exeext'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; }; then
17272 eval "$as_ac_var=yes"
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 eval "$as_ac_var=no"
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext conftest.$ac_ext
17283 ac_res=`eval echo '${'$as_ac_var'}'`
17284 { echo "$as_me:$LINENO: result: $ac_res" >&5
17285 echo "${ECHO_T}$ac_res" >&6; }
17286 if test `eval echo '${'$as_ac_var'}'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17298 for ac_func in strerror strerror_r setenv arc4random
17300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314 #define $ac_func innocuous_$ac_func
17316 /* System header to define __stub macros and hopefully few prototypes,
17317 which can conflict with char $ac_func (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
17322 # include <limits.h>
17324 # include <assert.h>
17329 /* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17336 /* The GNU C library defines this for functions which it implements
17337 to always fail with ENOSYS. Some functions are actually named
17338 something starting with __ and the normal name is an alias. */
17339 #if defined __stub_$ac_func || defined __stub___$ac_func
17346 return $ac_func ();
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest$ac_exeext'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 eval "$as_ac_var=yes"
17387 echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17390 eval "$as_ac_var=no"
17393 rm -f core conftest.err conftest.$ac_objext \
17394 conftest$ac_exeext conftest.$ac_ext
17396 ac_res=`eval echo '${'$as_ac_var'}'`
17397 { echo "$as_me:$LINENO: result: $ac_res" >&5
17398 echo "${ECHO_T}$ac_res" >&6; }
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400 cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17411 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17427 #define $ac_func innocuous_$ac_func
17429 /* System header to define __stub macros and hopefully few prototypes,
17430 which can conflict with char $ac_func (); below.
17431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432 <limits.h> exists even on freestanding compilers. */
17435 # include <limits.h>
17437 # include <assert.h>
17442 /* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17449 /* The GNU C library defines this for functions which it implements
17450 to always fail with ENOSYS. Some functions are actually named
17451 something starting with __ and the normal name is an alias. */
17452 #if defined __stub_$ac_func || defined __stub___$ac_func
17459 return $ac_func ();
17464 rm -f conftest.$ac_objext conftest$ac_exeext
17465 if { (ac_try="$ac_link"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_link") 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
17478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; } &&
17488 { ac_try='test -s conftest$ac_exeext'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 eval "$as_ac_var=yes"
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 eval "$as_ac_var=no"
17506 rm -f core conftest.err conftest.$ac_objext \
17507 conftest$ac_exeext conftest.$ac_ext
17509 ac_res=`eval echo '${'$as_ac_var'}'`
17510 { echo "$as_me:$LINENO: result: $ac_res" >&5
17511 echo "${ECHO_T}$ac_res" >&6; }
17512 if test `eval echo '${'$as_ac_var'}'` = yes; then
17513 cat >>confdefs.h <<_ACEOF
17514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17525 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17541 #define $ac_func innocuous_$ac_func
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char $ac_func (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17549 # include <limits.h>
17551 # include <assert.h>
17556 /* Override any GCC internal prototype to avoid an error.
17557 Use char because int might match the return type of a GCC
17558 builtin and then its argument prototype would still apply. */
17563 /* The GNU C library defines this for functions which it implements
17564 to always fail with ENOSYS. Some functions are actually named
17565 something starting with __ and the normal name is an alias. */
17566 #if defined __stub_$ac_func || defined __stub___$ac_func
17573 return $ac_func ();
17578 rm -f conftest.$ac_objext conftest$ac_exeext
17579 if { (ac_try="$ac_link"
17580 case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_link") 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 eval "$as_ac_var=yes"
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 eval "$as_ac_var=no"
17620 rm -f core conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17623 ac_res=`eval echo '${'$as_ac_var'}'`
17624 { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17626 if test `eval echo '${'$as_ac_var'}'` = yes; then
17627 cat >>confdefs.h <<_ACEOF
17628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17634 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17635 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17636 if test "${llvm_cv_c_printf_a+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 ac_cpp='$CPP $CPPFLAGS'
17641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17645 if test "$cross_compiling" = yes; then
17646 llvmac_cv_c_printf_a=no
17648 cat >conftest.$ac_ext <<_ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17657 #include <stdlib.h>
17663 volatile double A, B;
17667 sprintf(Buffer, "%a", A);
17671 if (A != 0x1.999999999999ap-4)
17678 rm -f conftest$ac_exeext
17679 if { (ac_try="$ac_link"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_link") 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 llvm_cv_c_printf_a=yes
17700 echo "$as_me: program exited with status $ac_status" >&5
17701 echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17704 ( exit $ac_status )
17705 llvmac_cv_c_printf_a=no
17707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17718 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17719 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17720 if test "$llvm_cv_c_printf_a" = "yes"; then
17722 cat >>confdefs.h <<\_ACEOF
17723 #define HAVE_PRINTF_A 1
17729 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17730 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17731 if test "${ac_cv_func_rand48+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 ac_cpp='$CXXCPP $CPPFLAGS'
17736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17740 cat >conftest.$ac_ext <<_ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h. */
17746 #include <stdlib.h>
17750 srand48(0);lrand48();drand48();
17755 rm -f conftest.$ac_objext
17756 if { (ac_try="$ac_compile"
17757 case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_compile") 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try='test -s conftest.$ac_objext'
17780 { (case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_func_rand48=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 ac_cv_func_rand48=no
17797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17799 ac_cpp='$CPP $CPPFLAGS'
17800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17805 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17806 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17808 if test "$ac_cv_func_rand48" = "yes" ; then
17810 cat >>confdefs.h <<\_ACEOF
17811 #define HAVE_RAND48 1
17817 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17818 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17819 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 $ac_includes_default
17833 char *p = (char *) strerror_s;
17841 rm -f conftest.$ac_objext
17842 if { (ac_try="$ac_compile"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_compile") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest.$ac_objext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_have_decl_strerror_s=yes
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_cv_have_decl_strerror_s=no
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17886 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17887 if test $ac_cv_have_decl_strerror_s = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define HAVE_DECL_STRERROR_S 1
17895 cat >>confdefs.h <<_ACEOF
17896 #define HAVE_DECL_STRERROR_S 0
17904 if test "$llvm_cv_os_type" = "MingW" ; then
17905 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17906 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17907 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 ac_check_lib_save_LIBS=$LIBS
17912 cat >conftest.$ac_ext <<_ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17919 /* Override any GCC internal prototype to avoid an error.
17920 Use char because int might match the return type of a GCC
17921 builtin and then its argument prototype would still apply. */
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17949 { (case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954 (eval "$ac_try") 2>&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; } &&
17958 { ac_try='test -s conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_try") 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_lib_gcc__alloca=yes
17970 echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_lib_gcc__alloca=no
17976 rm -f core conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
17978 LIBS=$ac_check_lib_save_LIBS
17980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17981 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17982 if test $ac_cv_lib_gcc__alloca = yes; then
17984 cat >>confdefs.h <<\_ACEOF
17985 #define HAVE__ALLOCA 1
17990 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17991 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 ac_check_lib_save_LIBS=$LIBS
17997 cat >conftest.$ac_ext <<_ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18014 return __alloca ();
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } &&
18033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18034 { (case "(($ac_try" in
18035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036 *) ac_try_echo=$ac_try;;
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039 (eval "$ac_try") 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
18044 { (case "(($ac_try" in
18045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046 *) ac_try_echo=$ac_try;;
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049 (eval "$ac_try") 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_cv_lib_gcc___alloca=yes
18055 echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_cv_lib_gcc___alloca=no
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 LIBS=$ac_check_lib_save_LIBS
18065 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18066 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18067 if test $ac_cv_lib_gcc___alloca = yes; then
18069 cat >>confdefs.h <<\_ACEOF
18070 #define HAVE___ALLOCA 1
18075 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18076 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18077 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 ac_check_lib_save_LIBS=$LIBS
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any GCC internal prototype to avoid an error.
18090 Use char because int might match the return type of a GCC
18091 builtin and then its argument prototype would still apply. */
18099 return __chkstk ();
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_lib_gcc___chkstk=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_cv_lib_gcc___chkstk=no
18146 rm -f core conftest.err conftest.$ac_objext \
18147 conftest$ac_exeext conftest.$ac_ext
18148 LIBS=$ac_check_lib_save_LIBS
18150 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18151 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18152 if test $ac_cv_lib_gcc___chkstk = yes; then
18154 cat >>confdefs.h <<\_ACEOF
18155 #define HAVE___CHKSTK 1
18160 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18161 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18162 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 ac_check_lib_save_LIBS=$LIBS
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18174 /* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18184 return ___chkstk ();
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18204 { (case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_try") 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try='test -s conftest$ac_exeext'
18214 { (case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_try") 2>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 ac_cv_lib_gcc____chkstk=yes
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_cv_lib_gcc____chkstk=no
18231 rm -f core conftest.err conftest.$ac_objext \
18232 conftest$ac_exeext conftest.$ac_ext
18233 LIBS=$ac_check_lib_save_LIBS
18235 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18236 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18237 if test $ac_cv_lib_gcc____chkstk = yes; then
18239 cat >>confdefs.h <<\_ACEOF
18240 #define HAVE____CHKSTK 1
18246 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18247 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18248 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 ac_check_lib_save_LIBS=$LIBS
18253 cat >conftest.$ac_ext <<_ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18270 return __ashldi3 ();
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
18284 grep -v '^ *+' conftest.er1 >conftest.err
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
18289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
18300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
18309 ac_cv_lib_gcc___ashldi3=yes
18311 echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_lib_gcc___ashldi3=no
18317 rm -f core conftest.err conftest.$ac_objext \
18318 conftest$ac_exeext conftest.$ac_ext
18319 LIBS=$ac_check_lib_save_LIBS
18321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18322 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18323 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE___ASHLDI3 1
18331 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18332 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18333 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18345 /* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18355 return __ashrdi3 ();
18360 rm -f conftest.$ac_objext conftest$ac_exeext
18361 if { (ac_try="$ac_link"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_link") 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest$ac_exeext'
18385 { (case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_try") 2>&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
18394 ac_cv_lib_gcc___ashrdi3=yes
18396 echo "$as_me: failed program was:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ac_cv_lib_gcc___ashrdi3=no
18402 rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18404 LIBS=$ac_check_lib_save_LIBS
18406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18407 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18408 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE___ASHRDI3 1
18416 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18417 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18418 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 ac_check_lib_save_LIBS=$LIBS
18423 cat >conftest.$ac_ext <<_ACEOF
18426 cat confdefs.h >>conftest.$ac_ext
18427 cat >>conftest.$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18430 /* Override any GCC internal prototype to avoid an error.
18431 Use char because int might match the return type of a GCC
18432 builtin and then its argument prototype would still apply. */
18440 return __divdi3 ();
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 ac_cv_lib_gcc___divdi3=yes
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_cv_lib_gcc___divdi3=no
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LIBS=$ac_check_lib_save_LIBS
18491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18492 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18493 if test $ac_cv_lib_gcc___divdi3 = yes; then
18495 cat >>confdefs.h <<\_ACEOF
18496 #define HAVE___DIVDI3 1
18501 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18502 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18503 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 ac_check_lib_save_LIBS=$LIBS
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18525 return __fixdfdi ();
18530 rm -f conftest.$ac_objext conftest$ac_exeext
18531 if { (ac_try="$ac_link"
18532 case "(($ac_try" in
18533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_link") 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } &&
18544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18545 { (case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_try") 2>&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; } &&
18554 { ac_try='test -s conftest$ac_exeext'
18555 { (case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_try") 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_lib_gcc___fixdfdi=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_lib_gcc___fixdfdi=no
18572 rm -f core conftest.err conftest.$ac_objext \
18573 conftest$ac_exeext conftest.$ac_ext
18574 LIBS=$ac_check_lib_save_LIBS
18576 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18577 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18578 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE___FIXDFDI 1
18586 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18587 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18588 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 ac_check_lib_save_LIBS=$LIBS
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18610 return __fixsfdi ();
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_link") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18630 { (case "(($ac_try" in
18631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632 *) ac_try_echo=$ac_try;;
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635 (eval "$ac_try") 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest$ac_exeext'
18640 { (case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_try") 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; }; then
18649 ac_cv_lib_gcc___fixsfdi=yes
18651 echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 ac_cv_lib_gcc___fixsfdi=no
18657 rm -f core conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18661 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18662 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18663 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE___FIXSFDI 1
18671 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18672 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18673 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 ac_check_lib_save_LIBS=$LIBS
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18691 char __floatdidf ();
18695 return __floatdidf ();
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (ac_try="$ac_link"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_link") 2>conftest.er1
18709 grep -v '^ *+' conftest.er1 >conftest.err
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest$ac_exeext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_cv_lib_gcc___floatdidf=yes
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18739 ac_cv_lib_gcc___floatdidf=no
18742 rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18744 LIBS=$ac_check_lib_save_LIBS
18746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18747 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18748 if test $ac_cv_lib_gcc___floatdidf = yes; then
18750 cat >>confdefs.h <<\_ACEOF
18751 #define HAVE___FLOATDIDF 1
18756 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18757 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18758 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 ac_check_lib_save_LIBS=$LIBS
18763 cat >conftest.$ac_ext <<_ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18770 /* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18780 return __lshrdi3 ();
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_link") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } &&
18799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest$ac_exeext'
18810 { (case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18819 ac_cv_lib_gcc___lshrdi3=yes
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_cv_lib_gcc___lshrdi3=no
18827 rm -f core conftest.err conftest.$ac_objext \
18828 conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18832 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18833 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18835 cat >>confdefs.h <<\_ACEOF
18836 #define HAVE___LSHRDI3 1
18841 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18842 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18843 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 ac_check_lib_save_LIBS=$LIBS
18848 cat >conftest.$ac_ext <<_ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18855 /* Override any GCC internal prototype to avoid an error.
18856 Use char because int might match the return type of a GCC
18857 builtin and then its argument prototype would still apply. */
18865 return __moddi3 ();
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18879 grep -v '^ *+' conftest.er1 >conftest.err
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18885 { (case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_try") 2>&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest$ac_exeext'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 ac_cv_lib_gcc___moddi3=yes
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18909 ac_cv_lib_gcc___moddi3=no
18912 rm -f core conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18917 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18918 if test $ac_cv_lib_gcc___moddi3 = yes; then
18920 cat >>confdefs.h <<\_ACEOF
18921 #define HAVE___MODDI3 1
18926 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18927 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18928 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18931 ac_check_lib_save_LIBS=$LIBS
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18940 /* Override any GCC internal prototype to avoid an error.
18941 Use char because int might match the return type of a GCC
18942 builtin and then its argument prototype would still apply. */
18950 return __udivdi3 ();
18955 rm -f conftest.$ac_objext conftest$ac_exeext
18956 if { (ac_try="$ac_link"
18957 case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_link") 2>conftest.er1
18964 grep -v '^ *+' conftest.er1 >conftest.err
18966 cat conftest.err >&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } &&
18969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18970 { (case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_try") 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest$ac_exeext'
18980 { (case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_try") 2>&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); }; }; then
18989 ac_cv_lib_gcc___udivdi3=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_lib_gcc___udivdi3=no
18997 rm -f core conftest.err conftest.$ac_objext \
18998 conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19001 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19002 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19003 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19005 cat >>confdefs.h <<\_ACEOF
19006 #define HAVE___UDIVDI3 1
19011 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19012 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19013 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_check_lib_save_LIBS=$LIBS
19018 cat >conftest.$ac_ext <<_ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19035 return __umoddi3 ();
19040 rm -f conftest.$ac_objext conftest$ac_exeext
19041 if { (ac_try="$ac_link"
19042 case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_link") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
19054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19055 { (case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_try") 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; } &&
19064 { ac_try='test -s conftest$ac_exeext'
19065 { (case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 ac_cv_lib_gcc___umoddi3=yes
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_lib_gcc___umoddi3=no
19082 rm -f core conftest.err conftest.$ac_objext \
19083 conftest$ac_exeext conftest.$ac_ext
19084 LIBS=$ac_check_lib_save_LIBS
19086 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19087 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19088 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE___UMODDI3 1
19097 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19098 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19099 if test "${ac_cv_lib_gcc___main+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 ac_check_lib_save_LIBS=$LIBS
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 /* Override any GCC internal prototype to avoid an error.
19112 Use char because int might match the return type of a GCC
19113 builtin and then its argument prototype would still apply. */
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (ac_try="$ac_link"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_link") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest$ac_exeext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_lib_gcc___main=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_lib_gcc___main=no
19168 rm -f core conftest.err conftest.$ac_objext \
19169 conftest$ac_exeext conftest.$ac_ext
19170 LIBS=$ac_check_lib_save_LIBS
19172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19173 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19174 if test $ac_cv_lib_gcc___main = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE___MAIN 1
19182 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19183 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19184 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 ac_check_lib_save_LIBS=$LIBS
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 /* Override any GCC internal prototype to avoid an error.
19197 Use char because int might match the return type of a GCC
19198 builtin and then its argument prototype would still apply. */
19206 return __cmpdi2 ();
19211 rm -f conftest.$ac_objext conftest$ac_exeext
19212 if { (ac_try="$ac_link"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_link") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19226 { (case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_try") 2>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; } &&
19235 { ac_try='test -s conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_lib_gcc___cmpdi2=yes
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 ac_cv_lib_gcc___cmpdi2=no
19253 rm -f core conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19258 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19259 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE___CMPDI2 1
19269 if test "$llvm_cv_os_type" = "MingW" ; then
19270 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19271 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19272 cat >conftest.$ac_ext <<_ACEOF
19273 #include <windows.h>
19274 #include <imagehlp.h>
19275 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19276 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19278 rm -f conftest.$ac_objext
19279 if { (ac_try="$ac_compile"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_compile") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19313 { echo "$as_me:$LINENO: result: yes" >&5
19314 echo "${ECHO_T}yes" >&6; }
19315 llvm_cv_win32_elmcb_pcstr="PCSTR"
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19322 { echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6; }
19324 llvm_cv_win32_elmcb_pcstr="PSTR"
19328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19330 cat >>confdefs.h <<_ACEOF
19331 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19337 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19338 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19339 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_cpp='$CXXCPP $CPPFLAGS'
19344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19348 cat >conftest.$ac_ext <<_ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19363 rm -f conftest.$ac_objext
19364 if { (ac_try="$ac_compile"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_compile") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_func_isnan_in_math_h=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_func_isnan_in_math_h=no
19405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19414 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19417 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_ISNAN_IN_MATH_H 1
19425 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19426 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19427 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 ac_cpp='$CXXCPP $CPPFLAGS'
19432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_compile") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_try") 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_cv_func_isnan_in_cmath=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_func_isnan_in_cmath=no
19493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 ac_cpp='$CPP $CPPFLAGS'
19496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19501 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19502 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19504 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19506 cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_ISNAN_IN_CMATH 1
19512 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19513 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19514 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 ac_cpp='$CXXCPP $CPPFLAGS'
19519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19533 float f; std::isnan(f);
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_cv_func_std_isnan_in_cmath=yes
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_cv_func_std_isnan_in_cmath=no
19580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582 ac_cpp='$CPP $CPPFLAGS'
19583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19588 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19589 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19591 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_STD_ISNAN_IN_CMATH 1
19600 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19601 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19602 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 ac_cpp='$CXXCPP $CPPFLAGS'
19607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
19651 { (case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 ac_cv_func_isinf_in_math_h=yes
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 ac_cv_func_isinf_in_math_h=no
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19670 ac_cpp='$CPP $CPPFLAGS'
19671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19677 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19679 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19681 cat >>confdefs.h <<\_ACEOF
19682 #define HAVE_ISINF_IN_MATH_H 1
19687 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19688 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19689 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 ac_cpp='$CXXCPP $CPPFLAGS'
19694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19713 rm -f conftest.$ac_objext
19714 if { (ac_try="$ac_compile"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } &&
19727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19728 { (case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_try") 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest.$ac_objext'
19738 { (case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_try") 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_cv_func_isinf_in_cmath=yes
19749 echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19752 ac_cv_func_isinf_in_cmath=no
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19763 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19764 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19766 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19768 cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_ISINF_IN_CMATH 1
19774 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19775 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19776 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 ac_cpp='$CXXCPP $CPPFLAGS'
19781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19785 cat >conftest.$ac_ext <<_ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19795 float f; std::isinf(f);
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; } &&
19824 { ac_try='test -s conftest.$ac_objext'
19825 { (case "(($ac_try" in
19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19827 *) ac_try_echo=$ac_try;;
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_try") 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 ac_cv_func_std_isinf_in_cmath=yes
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_func_std_isinf_in_cmath=no
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19844 ac_cpp='$CPP $CPPFLAGS'
19845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19850 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19851 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19853 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19855 cat >>confdefs.h <<\_ACEOF
19856 #define HAVE_STD_ISINF_IN_CMATH 1
19861 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19862 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19863 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19864 echo $ECHO_N "(cached) $ECHO_C" >&6
19867 ac_cpp='$CXXCPP $CPPFLAGS'
19868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <ieeefp.h>
19882 float f; finite(f);
19887 rm -f conftest.$ac_objext
19888 if { (ac_try="$ac_compile"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_compile") 2>conftest.er1
19896 grep -v '^ *+' conftest.er1 >conftest.err
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } &&
19901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19902 { (case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_try") 2>&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; } &&
19911 { ac_try='test -s conftest.$ac_objext'
19912 { (case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_try") 2>&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_func_finite_in_ieeefp_h=yes
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19926 ac_cv_func_finite_in_ieeefp_h=no
19929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 ac_cpp='$CPP $CPPFLAGS'
19932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19938 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19940 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19942 cat >>confdefs.h <<\_ACEOF
19943 #define HAVE_FINITE_IN_IEEEFP_H 1
19950 if test "$llvm_cv_platform_type" = "Unix" ; then
19953 for ac_header in stdlib.h unistd.h
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963 { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19966 # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <$ac_header>
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } &&
19992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19993 { (case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_try") 2>&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; } &&
20002 { ac_try='test -s conftest.$ac_objext'
20003 { (case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_try") 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_compiler=no
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20022 echo "${ECHO_T}$ac_header_compiler" >&6; }
20024 # Is the header present?
20025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 #include <$ac_header>
20035 if { (ac_try="$ac_cpp conftest.$ac_ext"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } >/dev/null; then
20048 if test -s conftest.err; then
20049 ac_cpp_err=$ac_c_preproc_warn_flag
20050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20057 if test -z "$ac_cpp_err"; then
20058 ac_header_preproc=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_header_preproc=no
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070 # So? What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20077 ac_header_preproc=yes
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20093 ## ------------------------------------ ##
20094 ## Report this to http://llvm.org/bugs/ ##
20095 ## ------------------------------------ ##
20097 ) | sed "s/^/$as_me: WARNING: /" >&2
20100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 eval "$as_ac_Header=\$ac_header_preproc"
20107 ac_res=`eval echo '${'$as_ac_Header'}'`
20108 { echo "$as_me:$LINENO: result: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20122 for ac_func in getpagesize
20124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20138 #define $ac_func innocuous_$ac_func
20140 /* System header to define __stub macros and hopefully few prototypes,
20141 which can conflict with char $ac_func (); below.
20142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20143 <limits.h> exists even on freestanding compilers. */
20146 # include <limits.h>
20148 # include <assert.h>
20153 /* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20160 /* The GNU C library defines this for functions which it implements
20161 to always fail with ENOSYS. Some functions are actually named
20162 something starting with __ and the normal name is an alias. */
20163 #if defined __stub_$ac_func || defined __stub___$ac_func
20170 return $ac_func ();
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 eval "$as_ac_var=yes"
20211 echo "$as_me: failed program was:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 eval "$as_ac_var=no"
20217 rm -f core conftest.err conftest.$ac_objext \
20218 conftest$ac_exeext conftest.$ac_ext
20220 ac_res=`eval echo '${'$as_ac_var'}'`
20221 { echo "$as_me:$LINENO: result: $ac_res" >&5
20222 echo "${ECHO_T}$ac_res" >&6; }
20223 if test `eval echo '${'$as_ac_var'}'` = yes; then
20224 cat >>confdefs.h <<_ACEOF
20225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20231 { echo "$as_me:$LINENO: checking for working mmap" >&5
20232 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20233 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 if test "$cross_compiling" = yes; then
20237 ac_cv_func_mmap_fixed_mapped=no
20239 cat >conftest.$ac_ext <<_ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20245 $ac_includes_default
20246 /* malloc might have been renamed as rpl_malloc. */
20249 /* Thanks to Mike Haertel and Jim Avera for this test.
20250 Here is a matrix of mmap possibilities:
20251 mmap private not fixed
20252 mmap private fixed at somewhere currently unmapped
20253 mmap private fixed at somewhere already mapped
20254 mmap shared not fixed
20255 mmap shared fixed at somewhere currently unmapped
20256 mmap shared fixed at somewhere already mapped
20257 For private mappings, we should verify that changes cannot be read()
20258 back from the file, nor mmap's back from the file at a different
20259 address. (There have been systems where private was not correctly
20260 implemented like the infamous i386 svr4.0, and systems where the
20261 VM page cache was not coherent with the file system buffer cache
20262 like early versions of FreeBSD and possibly contemporary NetBSD.)
20263 For shared mappings, we should conversely verify that changes get
20264 propagated back to all the places they're supposed to be.
20266 Grep wants private fixed already mapped.
20267 The main things grep needs to know about mmap are:
20268 * does it exist and is it safe to write into the mmap'd area
20269 * how to use it (BSD variants) */
20272 #include <sys/mman.h>
20274 #if !STDC_HEADERS && !HAVE_STDLIB_H
20278 /* This mess was copied from the GNU getpagesize.h. */
20279 #if !HAVE_GETPAGESIZE
20280 /* Assume that all systems that can run configure have sys/param.h. */
20281 # if !HAVE_SYS_PARAM_H
20282 # define HAVE_SYS_PARAM_H 1
20285 # ifdef _SC_PAGESIZE
20286 # define getpagesize() sysconf(_SC_PAGESIZE)
20287 # else /* no _SC_PAGESIZE */
20288 # if HAVE_SYS_PARAM_H
20289 # include <sys/param.h>
20290 # ifdef EXEC_PAGESIZE
20291 # define getpagesize() EXEC_PAGESIZE
20292 # else /* no EXEC_PAGESIZE */
20294 # define getpagesize() NBPG * CLSIZE
20297 # endif /* no CLSIZE */
20298 # else /* no NBPG */
20300 # define getpagesize() NBPC
20301 # else /* no NBPC */
20303 # define getpagesize() PAGESIZE
20304 # endif /* PAGESIZE */
20305 # endif /* no NBPC */
20306 # endif /* no NBPG */
20307 # endif /* no EXEC_PAGESIZE */
20308 # else /* no HAVE_SYS_PARAM_H */
20309 # define getpagesize() 8192 /* punt totally */
20310 # endif /* no HAVE_SYS_PARAM_H */
20311 # endif /* no _SC_PAGESIZE */
20313 #endif /* no HAVE_GETPAGESIZE */
20318 char *data, *data2, *data3;
20322 pagesize = getpagesize ();
20324 /* First, make a file with some known garbage in it. */
20325 data = (char *) malloc (pagesize);
20328 for (i = 0; i < pagesize; ++i)
20329 *(data + i) = rand ();
20331 fd = creat ("conftest.mmap", 0600);
20334 if (write (fd, data, pagesize) != pagesize)
20338 /* Next, try to mmap the file at a fixed address which already has
20339 something else allocated at it. If we can, also make sure that
20340 we see the same garbage. */
20341 fd = open ("conftest.mmap", O_RDWR);
20344 data2 = (char *) malloc (2 * pagesize);
20347 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20348 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20349 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20351 for (i = 0; i < pagesize; ++i)
20352 if (*(data + i) != *(data2 + i))
20355 /* Finally, make sure that changes to the mapped area do not
20356 percolate back to the file as seen by read(). (This is a bug on
20357 some variants of i386 svr4.0.) */
20358 for (i = 0; i < pagesize; ++i)
20359 *(data2 + i) = *(data2 + i) + 1;
20360 data3 = (char *) malloc (pagesize);
20363 if (read (fd, data3, pagesize) != pagesize)
20365 for (i = 0; i < pagesize; ++i)
20366 if (*(data + i) != *(data3 + i))
20372 rm -f conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383 { (case "(($ac_try" in
20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_try") 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_cv_func_mmap_fixed_mapped=yes
20394 echo "$as_me: program exited with status $ac_status" >&5
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ( exit $ac_status )
20399 ac_cv_func_mmap_fixed_mapped=no
20401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20407 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20408 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20410 cat >>confdefs.h <<\_ACEOF
20411 #define HAVE_MMAP 1
20415 rm -f conftest.mmap
20417 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20418 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20419 if test "${ac_cv_func_mmap_file+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 ac_cpp='$CPP $CPPFLAGS'
20424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20428 if test "$cross_compiling" = yes; then
20429 ac_cv_func_mmap_file=no
20431 cat >conftest.$ac_ext <<_ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20439 #include <sys/types.h>
20440 #include <sys/mman.h>
20448 fd = creat ("foo",0777);
20449 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20451 return (fd != (int) MAP_FAILED);
20456 rm -f conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20467 { (case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_try") 2>&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_cv_func_mmap_file=yes
20478 echo "$as_me: program exited with status $ac_status" >&5
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ( exit $ac_status )
20483 ac_cv_func_mmap_file=no
20485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20490 ac_cpp='$CPP $CPPFLAGS'
20491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20498 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20499 if test "$ac_cv_func_mmap_file" = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_MMAP_FILE
20509 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20510 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20511 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 if test "$llvm_cv_os_type" = "Interix" ; then
20515 ac_cv_need_dev_zero_for_mmap=yes
20517 ac_cv_need_dev_zero_for_mmap=no
20521 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20522 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20523 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20525 cat >>confdefs.h <<\_ACEOF
20526 #define NEED_DEV_ZERO_FOR_MMAP 1
20531 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20533 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20534 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20536 if test "$ac_cv_func_mmap_file" = "no"
20538 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20539 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20543 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20544 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20546 ac_cpp='$CXXCPP $CPPFLAGS'
20547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 volatile unsigned long val = 1;
20559 __sync_synchronize();
20560 __sync_val_compare_and_swap(&val, 1, 0);
20561 __sync_add_and_fetch(&val, 1);
20562 __sync_sub_and_fetch(&val, 1);
20567 rm -f conftest.$ac_objext conftest$ac_exeext
20568 if { (ac_try="$ac_link"
20569 case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_link") 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20582 { (case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_try") 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest$ac_exeext'
20592 { (case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_try") 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20602 ac_cpp='$CPP $CPPFLAGS'
20603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20607 { echo "$as_me:$LINENO: result: yes" >&5
20608 echo "${ECHO_T}yes" >&6; }
20610 cat >>confdefs.h <<\_ACEOF
20611 #define LLVM_HAS_ATOMICS 1
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 { echo "$as_me:$LINENO: result: no" >&5
20619 echo "${ECHO_T}no" >&6; }
20621 cat >>confdefs.h <<\_ACEOF
20622 #define LLVM_HAS_ATOMICS 0
20625 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20626 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20629 rm -f core conftest.err conftest.$ac_objext \
20630 conftest$ac_exeext conftest.$ac_ext
20633 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20634 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20635 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20636 if test "${llvm_cv_linux_mixed+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 ac_cpp='$CPP $CPPFLAGS'
20641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20645 cat >conftest.$ac_ext <<_ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h. */
20652 error: Not x86-64 even if uname says so!
20663 rm -f conftest.$ac_objext
20664 if { (ac_try="$ac_compile"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_compile") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20678 { (case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_try") 2>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; } &&
20687 { ac_try='test -s conftest.$ac_objext'
20688 { (case "(($ac_try" in
20689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690 *) ac_try_echo=$ac_try;;
20692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20693 (eval "$ac_try") 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 llvm_cv_linux_mixed=no
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 llvm_cv_linux_mixed=yes
20705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707 ac_cpp='$CPP $CPPFLAGS'
20708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20715 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20717 if test "$llvm_cv_linux_mixed" = "yes"; then
20718 llvm_cv_target_arch="x86"
20724 for ac_func in __dso_handle
20726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 cat >conftest.$ac_ext <<_ACEOF
20735 cat confdefs.h >>conftest.$ac_ext
20736 cat >>conftest.$ac_ext <<_ACEOF
20737 /* end confdefs.h. */
20738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20740 #define $ac_func innocuous_$ac_func
20742 /* System header to define __stub macros and hopefully few prototypes,
20743 which can conflict with char $ac_func (); below.
20744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20745 <limits.h> exists even on freestanding compilers. */
20748 # include <limits.h>
20750 # include <assert.h>
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20762 /* The GNU C library defines this for functions which it implements
20763 to always fail with ENOSYS. Some functions are actually named
20764 something starting with __ and the normal name is an alias. */
20765 #if defined __stub_$ac_func || defined __stub___$ac_func
20772 return $ac_func ();
20777 rm -f conftest.$ac_objext conftest$ac_exeext
20778 if { (ac_try="$ac_link"
20779 case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_link") 2>conftest.er1
20786 grep -v '^ *+' conftest.er1 >conftest.err
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 eval "$as_ac_var=yes"
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 eval "$as_ac_var=no"
20819 rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20822 ac_res=`eval echo '${'$as_ac_var'}'`
20823 { echo "$as_me:$LINENO: result: $ac_res" >&5
20824 echo "${ECHO_T}$ac_res" >&6; }
20825 if test `eval echo '${'$as_ac_var'}'` = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20834 SHLIBEXT=$libltdl_cv_shlibext
20837 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20840 if test "${prefix}" = "NONE" ; then
20841 prefix="/usr/local"
20843 eval LLVM_PREFIX="${prefix}";
20844 eval LLVM_BINDIR="${prefix}/bin";
20845 eval LLVM_LIBDIR="${prefix}/lib";
20846 eval LLVM_DATADIR="${prefix}/share/llvm";
20847 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20848 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20849 eval LLVM_INCLUDEDIR="${prefix}/include";
20850 eval LLVM_INFODIR="${prefix}/info";
20851 eval LLVM_MANDIR="${prefix}/man";
20852 LLVM_CONFIGTIME=`date`
20864 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20865 LLVM_CONFIGTIME="(timestamp not enabled)"
20869 cat >>confdefs.h <<_ACEOF
20870 #define LLVM_PREFIX "$LLVM_PREFIX"
20874 cat >>confdefs.h <<_ACEOF
20875 #define LLVM_BINDIR "$LLVM_BINDIR"
20879 cat >>confdefs.h <<_ACEOF
20880 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20884 cat >>confdefs.h <<_ACEOF
20885 #define LLVM_DATADIR "$LLVM_DATADIR"
20889 cat >>confdefs.h <<_ACEOF
20890 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20894 cat >>confdefs.h <<_ACEOF
20895 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20899 cat >>confdefs.h <<_ACEOF
20900 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20904 cat >>confdefs.h <<_ACEOF
20905 #define LLVM_INFODIR "$LLVM_INFODIR"
20909 cat >>confdefs.h <<_ACEOF
20910 #define LLVM_MANDIR "$LLVM_MANDIR"
20914 cat >>confdefs.h <<_ACEOF
20915 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_HOSTTRIPLE "$host"
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20929 if test "$BINDINGS_TO_BUILD" = auto ; then
20930 BINDINGS_TO_BUILD=""
20931 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20932 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20935 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20941 binding_prereqs_failed=0
20942 for a_binding in $BINDINGS_TO_BUILD ; do
20943 case "$a_binding" in
20945 if test "x$OCAMLC" = x ; then
20946 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20947 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20948 binding_prereqs_failed=1
20950 if test "x$OCAMLDEP" = x ; then
20951 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20952 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20953 binding_prereqs_failed=1
20955 if test "x$OCAMLOPT" = x ; then
20956 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20957 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20959 if test "x$with_ocaml_libdir" != xauto ; then
20960 OCAML_LIBDIR=$with_ocaml_libdir
20963 ocaml_stdlib="`"$OCAMLC" -where`"
20964 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20966 # ocaml stdlib is beneath our prefix; use stdlib
20967 OCAML_LIBDIR=$ocaml_stdlib
20970 # ocaml stdlib is outside our prefix; use libdir/ocaml
20971 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20978 if test "$binding_prereqs_failed" = 1 ; then
20979 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20980 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20981 { (exit 1); exit 1; }; }
20984 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20985 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20986 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20990 ac_cpp='$CXXCPP $CPPFLAGS'
20991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20995 oldcxxflags="$CXXFLAGS"
20996 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21027 { (case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_try") 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
21037 { (case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_try") 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21046 llvm_cv_cxx_visibility_inlines_hidden=yes
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 llvm_cv_cxx_visibility_inlines_hidden=no
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21055 CXXFLAGS="$oldcxxflags"
21057 ac_cpp='$CPP $CPPFLAGS'
21058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21064 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21065 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21066 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21067 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21070 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21075 if test "$llvm_cv_link_use_r" = "yes" ; then
21082 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21083 RDYNAMIC="-Wl,-export-dynamic"
21090 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21097 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21099 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21101 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21103 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21105 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21108 ac_config_files="$ac_config_files Makefile.config"
21111 ac_config_files="$ac_config_files llvm.spec"
21114 ac_config_files="$ac_config_files docs/doxygen.cfg"
21117 if test "${clang_src_root}" = ""; then
21118 clang_src_root="$srcdir/tools/clang"
21120 if test -f ${clang_src_root}/README.txt; then
21121 configh="include/clang/Config/config.h"
21122 doxy="docs/doxygen.cfg"
21123 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21125 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21129 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21132 test "x$program_prefix" = "xNONE" && program_prefix=""
21136 ac_config_commands="$ac_config_commands setup"
21138 ac_config_commands="$ac_config_commands Makefile"
21141 ac_config_commands="$ac_config_commands Makefile.common"
21144 ac_config_commands="$ac_config_commands examples/Makefile"
21147 ac_config_commands="$ac_config_commands lib/Makefile"
21150 ac_config_commands="$ac_config_commands runtime/Makefile"
21153 ac_config_commands="$ac_config_commands test/Makefile"
21156 ac_config_commands="$ac_config_commands test/Makefile.tests"
21159 ac_config_commands="$ac_config_commands unittests/Makefile"
21162 ac_config_commands="$ac_config_commands tools/Makefile"
21165 ac_config_commands="$ac_config_commands utils/Makefile"
21168 ac_config_commands="$ac_config_commands projects/Makefile"
21171 ac_config_commands="$ac_config_commands bindings/Makefile"
21174 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21178 cat >confcache <<\_ACEOF
21179 # This file is a shell script that caches the results of configure
21180 # tests run on this system so they can be shared between configure
21181 # scripts and configure runs, see configure's option --config-cache.
21182 # It is not useful on other systems. If it contains results you don't
21183 # want to keep, you may remove or edit it.
21185 # config.status only pays attention to the cache file if you give it
21186 # the --recheck option to rerun configure.
21188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21190 # following values.
21194 # The following way of writing the cache mishandles newlines in values,
21195 # but we know of no workaround that is simple, portable, and efficient.
21196 # So, we kill variables containing newlines.
21197 # Ultrix sh set writes to stderr and can't be redirected directly,
21198 # and sets the high bit in the cache file unless we assign to the vars.
21200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21201 eval ac_val=\$$ac_var
21205 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21206 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21209 _ | IFS | as_nl) ;; #(
21210 *) $as_unset $ac_var ;;
21216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21217 *${as_nl}ac_space=\ *)
21218 # `set' does not quote correctly, so add quotes (double-quote
21219 # substitution turns \\\\ into \\, and sed turns \\ into \).
21222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21225 # `set' quotes correctly as required by POSIX, so do not add quotes.
21226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21240 if test -w "$cache_file"; then
21241 test "x$cache_file" != "x/dev/null" &&
21242 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21243 echo "$as_me: updating cache $cache_file" >&6;}
21244 cat confcache >$cache_file
21246 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21247 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21253 # Let make expand exec_prefix.
21254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21256 DEFS=-DHAVE_CONFIG_H
21260 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21261 # 1. Remove the extension, and $U if already installed.
21262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21263 ac_i=`echo "$ac_i" | sed "$ac_script"`
21264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21265 # will be set to the directory where LIBOBJS objects are built.
21266 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21267 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21269 LIBOBJS=$ac_libobjs
21271 LTLIBOBJS=$ac_ltlibobjs
21274 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21275 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21276 Usually this means the macro was only invoked conditionally." >&5
21277 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21278 Usually this means the macro was only invoked conditionally." >&2;}
21279 { (exit 1); exit 1; }; }
21281 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21282 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21283 Usually this means the macro was only invoked conditionally." >&5
21284 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21285 Usually this means the macro was only invoked conditionally." >&2;}
21286 { (exit 1); exit 1; }; }
21289 : ${CONFIG_STATUS=./config.status}
21290 ac_clean_files_save=$ac_clean_files
21291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21292 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21293 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21294 cat >$CONFIG_STATUS <<_ACEOF
21296 # Generated by $as_me.
21297 # Run this file to recreate the current configuration.
21298 # Compiler output produced by configure, useful for debugging
21299 # configure, is in config.log if it exists.
21302 ac_cs_recheck=false
21304 SHELL=\${CONFIG_SHELL-$SHELL}
21307 cat >>$CONFIG_STATUS <<\_ACEOF
21308 ## --------------------- ##
21309 ## M4sh Initialization. ##
21310 ## --------------------- ##
21312 # Be Bourne compatible
21313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21316 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21317 # is contrary to our usage. Disable this feature.
21318 alias -g '${1+"$@"}'='"$@"'
21319 setopt NO_GLOB_SUBST
21321 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21323 BIN_SH=xpg4; export BIN_SH # for Tru64
21324 DUALCASE=1; export DUALCASE # for MKS sh
21328 # Avoid depending upon Character Ranges.
21329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21332 as_cr_digits='0123456789'
21333 as_cr_alnum=$as_cr_Letters$as_cr_digits
21335 # The user is always right.
21336 if test "${PATH_SEPARATOR+set}" != set; then
21337 echo "#! /bin/sh" >conf$$.sh
21338 echo "exit 0" >>conf$$.sh
21340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21348 # Support unset when possible.
21349 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21357 # We need space, tab and new line, in precisely that order. Quoting is
21358 # there to prevent editors from complaining about space-tab.
21359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21360 # splitting by setting IFS to empty value.)
21365 # Find who we are. Look in the path if we contain no directory separator.
21367 *[\\/]* ) as_myself=$0 ;;
21368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21369 for as_dir in $PATH
21372 test -z "$as_dir" && as_dir=.
21373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21379 # We did not find ourselves, most probably we were run as `sh COMMAND'
21380 # in which case we are not to be found in the path.
21381 if test "x$as_myself" = x; then
21384 if test ! -f "$as_myself"; then
21385 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21386 { (exit 1); exit 1; }
21389 # Work around bugs in pre-3.0 UWIN ksh.
21390 for as_var in ENV MAIL MAILPATH
21391 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21399 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21400 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21401 LC_TELEPHONE LC_TIME
21403 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21404 eval $as_var=C; export $as_var
21406 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21410 # Required to use basename.
21411 if expr a : '\(a\)' >/dev/null 2>&1 &&
21412 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21418 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21419 as_basename=basename
21425 # Name of the executable.
21426 as_me=`$as_basename -- "$0" ||
21427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21428 X"$0" : 'X\(//\)$' \| \
21429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21431 sed '/^.*\/\([^/][^/]*\)\/*$/{
21450 as_lineno_1=$LINENO
21451 as_lineno_2=$LINENO
21452 test "x$as_lineno_1" != "x$as_lineno_2" &&
21453 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21455 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21456 # uniformly replaced by the line number. The first 'sed' inserts a
21457 # line-number line after each line using $LINENO; the second 'sed'
21458 # does the real work. The second script uses 'N' to pair each
21459 # line-number line with the line containing $LINENO, and appends
21460 # trailing '-' during substitution so that $LINENO is not a special
21461 # case at line end.
21462 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21463 # scripts with optimization help from Paolo Bonzini. Blame Lee
21464 # E. McMahon (1931-1989) for sed's syntax. :-)
21476 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21479 ' >$as_me.lineno &&
21480 chmod +x "$as_me.lineno" ||
21481 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21482 { (exit 1); exit 1; }; }
21484 # Don't try to exec as it changes $[0], causing all sort of problems
21485 # (the dirname of $[0] is not the place where we might find the
21486 # original and so on. Autoconf is especially sensitive to this).
21487 . "./$as_me.lineno"
21488 # Exit status is that of the last command.
21493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21499 ECHO_C= ECHO_N= ECHO_T=
21500 case `echo -n x` in
21502 case `echo 'x\c'` in
21503 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21510 if expr a : '\(a\)' >/dev/null 2>&1 &&
21511 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21517 rm -f conf$$ conf$$.exe conf$$.file
21518 if test -d conf$$.dir; then
21519 rm -f conf$$.dir/conf$$.file
21525 if ln -s conf$$.file conf$$ 2>/dev/null; then
21527 # ... but there are two gotchas:
21528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21530 # In both cases, we have to default to `cp -p'.
21531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21533 elif ln conf$$.file conf$$ 2>/dev/null; then
21538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21539 rmdir conf$$.dir 2>/dev/null
21541 if mkdir -p . 2>/dev/null; then
21544 test -d ./-p && rmdir ./-p
21548 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21549 # systems may use methods other than mode bits to determine executability.
21550 cat >conf$$.file <<_ASEOF
21554 chmod +x conf$$.file
21555 if test -x conf$$.file >/dev/null 2>&1; then
21556 as_executable_p="test -x"
21562 # Sed expression to map a string onto a valid CPP name.
21563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21565 # Sed expression to map a string onto a valid variable name.
21566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21571 # Save the log message, to keep $[0] and so on meaningful, and to
21572 # report actual input values of CONFIG_FILES etc. instead of their
21573 # values after options handling.
21575 This file was extended by LLVM $as_me 3.3svn, which was
21576 generated by GNU Autoconf 2.60. Invocation command line was
21578 CONFIG_FILES = $CONFIG_FILES
21579 CONFIG_HEADERS = $CONFIG_HEADERS
21580 CONFIG_LINKS = $CONFIG_LINKS
21581 CONFIG_COMMANDS = $CONFIG_COMMANDS
21584 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21589 cat >>$CONFIG_STATUS <<_ACEOF
21590 # Files that config.status was made for.
21591 config_files="$ac_config_files"
21592 config_headers="$ac_config_headers"
21593 config_commands="$ac_config_commands"
21597 cat >>$CONFIG_STATUS <<\_ACEOF
21599 \`$as_me' instantiates files from templates according to the
21600 current configuration.
21602 Usage: $0 [OPTIONS] [FILE]...
21604 -h, --help print this help, then exit
21605 -V, --version print version number, then exit
21606 -q, --quiet do not print progress messages
21607 -d, --debug don't remove temporary files
21608 --recheck update $as_me by reconfiguring in the same conditions
21609 --file=FILE[:TEMPLATE]
21610 instantiate the configuration file FILE
21611 --header=FILE[:TEMPLATE]
21612 instantiate the configuration header FILE
21614 Configuration files:
21617 Configuration headers:
21620 Configuration commands:
21623 Report bugs to <bug-autoconf@gnu.org>."
21626 cat >>$CONFIG_STATUS <<_ACEOF
21628 LLVM config.status 3.3svn
21629 configured by $0, generated by GNU Autoconf 2.60,
21630 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21632 Copyright (C) 2006 Free Software Foundation, Inc.
21633 This config.status script is free software; the Free Software Foundation
21634 gives unlimited permission to copy, distribute and modify it."
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 # If no file are specified by the user, then we need to provide default
21643 # value. By we need to know if files were specified by the user.
21649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21661 # Handling of the options.
21662 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21664 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21665 echo "$ac_cs_version"; exit ;;
21666 --debug | --debu | --deb | --de | --d | -d )
21668 --file | --fil | --fi | --f )
21670 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21671 ac_need_defaults=false;;
21672 --header | --heade | --head | --hea )
21674 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21675 ac_need_defaults=false;;
21677 # Conflict between --help and --header
21678 { echo "$as_me: error: ambiguous option: $1
21679 Try \`$0 --help' for more information." >&2
21680 { (exit 1); exit 1; }; };;
21681 --help | --hel | -h )
21682 echo "$ac_cs_usage"; exit ;;
21683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21687 # This is an error.
21688 -*) { echo "$as_me: error: unrecognized option: $1
21689 Try \`$0 --help' for more information." >&2
21690 { (exit 1); exit 1; }; } ;;
21692 *) ac_config_targets="$ac_config_targets $1"
21693 ac_need_defaults=false ;;
21699 ac_configure_extra_args=
21701 if $ac_cs_silent; then
21703 ac_configure_extra_args="$ac_configure_extra_args --silent"
21707 cat >>$CONFIG_STATUS <<_ACEOF
21708 if \$ac_cs_recheck; then
21709 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21710 CONFIG_SHELL=$SHELL
21711 export CONFIG_SHELL
21712 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21716 cat >>$CONFIG_STATUS <<\_ACEOF
21720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21721 ## Running $as_me. ##
21727 cat >>$CONFIG_STATUS <<_ACEOF
21731 llvm_src="${srcdir}"
21735 cat >>$CONFIG_STATUS <<\_ACEOF
21737 # Handling of arguments.
21738 for ac_config_target in $ac_config_targets
21740 case $ac_config_target in
21741 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21742 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21743 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21744 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21745 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21746 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21747 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21748 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21749 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21750 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21751 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21752 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21753 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21754 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21755 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21756 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21757 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21758 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21759 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21760 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21761 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21762 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21763 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21764 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21765 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21766 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21767 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21771 { (exit 1); exit 1; }; };;
21776 # If the user did not use the arguments to specify the items to instantiate,
21777 # then the envvar interface is used. Set only those that are not.
21778 # We use the long form for the default assignment because of an extremely
21779 # bizarre bug on SunOS 4.1.3.
21780 if $ac_need_defaults; then
21781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21786 # Have a temporary directory for convenience. Make it in the build tree
21787 # simply because there is no reason against having it here, and in addition,
21788 # creating and moving files from /tmp can sometimes cause problems.
21789 # Hook for its removal unless debugging.
21790 # Note that there is a small window in which the directory will not be cleaned:
21791 # after its creation but before its name has been assigned to `$tmp'.
21795 trap 'exit_status=$?
21796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21798 trap '{ (exit 1); exit 1; }' 1 2 13 15
21800 # Create a (secure) tmp directory for tmp files.
21803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21804 test -n "$tmp" && test -d "$tmp"
21807 tmp=./conf$$-$RANDOM
21808 (umask 077 && mkdir "$tmp")
21811 echo "$me: cannot create a temporary directory in ." >&2
21812 { (exit 1); exit 1; }
21816 # Set up the sed scripts for CONFIG_FILES section.
21819 # No need to generate the scripts if there are no CONFIG_FILES.
21820 # This happens for instance when ./config.status config.h
21821 if test -n "$CONFIG_FILES"; then
21828 for ac_last_try in false false false false false :; do
21829 cat >conf$$subs.sed <<_ACEOF
21830 SHELL!$SHELL$ac_delim
21831 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21832 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21833 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21834 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21835 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21836 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21837 exec_prefix!$exec_prefix$ac_delim
21838 prefix!$prefix$ac_delim
21839 program_transform_name!$program_transform_name$ac_delim
21840 bindir!$bindir$ac_delim
21841 sbindir!$sbindir$ac_delim
21842 libexecdir!$libexecdir$ac_delim
21843 datarootdir!$datarootdir$ac_delim
21844 datadir!$datadir$ac_delim
21845 sysconfdir!$sysconfdir$ac_delim
21846 sharedstatedir!$sharedstatedir$ac_delim
21847 localstatedir!$localstatedir$ac_delim
21848 includedir!$includedir$ac_delim
21849 oldincludedir!$oldincludedir$ac_delim
21850 docdir!$docdir$ac_delim
21851 infodir!$infodir$ac_delim
21852 htmldir!$htmldir$ac_delim
21853 dvidir!$dvidir$ac_delim
21854 pdfdir!$pdfdir$ac_delim
21855 psdir!$psdir$ac_delim
21856 libdir!$libdir$ac_delim
21857 localedir!$localedir$ac_delim
21858 mandir!$mandir$ac_delim
21859 DEFS!$DEFS$ac_delim
21860 ECHO_C!$ECHO_C$ac_delim
21861 ECHO_N!$ECHO_N$ac_delim
21862 ECHO_T!$ECHO_T$ac_delim
21863 LIBS!$LIBS$ac_delim
21864 build_alias!$build_alias$ac_delim
21865 host_alias!$host_alias$ac_delim
21866 target_alias!$target_alias$ac_delim
21867 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21869 CFLAGS!$CFLAGS$ac_delim
21870 LDFLAGS!$LDFLAGS$ac_delim
21871 CPPFLAGS!$CPPFLAGS$ac_delim
21872 ac_ct_CC!$ac_ct_CC$ac_delim
21873 EXEEXT!$EXEEXT$ac_delim
21874 OBJEXT!$OBJEXT$ac_delim
21876 CXXFLAGS!$CXXFLAGS$ac_delim
21877 ac_ct_CXX!$ac_ct_CXX$ac_delim
21879 subdirs!$subdirs$ac_delim
21880 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21881 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21882 build!$build$ac_delim
21883 build_cpu!$build_cpu$ac_delim
21884 build_vendor!$build_vendor$ac_delim
21885 build_os!$build_os$ac_delim
21886 host!$host$ac_delim
21887 host_cpu!$host_cpu$ac_delim
21888 host_vendor!$host_vendor$ac_delim
21889 host_os!$host_os$ac_delim
21890 target!$target$ac_delim
21891 target_cpu!$target_cpu$ac_delim
21892 target_vendor!$target_vendor$ac_delim
21893 target_os!$target_os$ac_delim
21895 HOST_OS!$HOST_OS$ac_delim
21896 TARGET_OS!$TARGET_OS$ac_delim
21897 LINKALL!$LINKALL$ac_delim
21898 NOLINKALL!$NOLINKALL$ac_delim
21899 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21900 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21901 ARCH!$ARCH$ac_delim
21902 HOST_ARCH!$HOST_ARCH$ac_delim
21903 ENDIAN!$ENDIAN$ac_delim
21904 GREP!$GREP$ac_delim
21905 EGREP!$EGREP$ac_delim
21906 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21907 BUILD_CC!$BUILD_CC$ac_delim
21908 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21909 BUILD_CXX!$BUILD_CXX$ac_delim
21910 CVSBUILD!$CVSBUILD$ac_delim
21911 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21912 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21913 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21914 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21915 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21916 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21917 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21918 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21919 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21920 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21921 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
21923 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21924 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21925 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21926 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21929 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21931 elif $ac_last_try; then
21932 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21933 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21934 { (exit 1); exit 1; }; }
21936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21940 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21941 if test -n "$ac_eof"; then
21942 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21943 ac_eof=`expr $ac_eof + 1`
21946 cat >>$CONFIG_STATUS <<_ACEOF
21947 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21951 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21952 s/^/s,@/; s/!/@,|#_!!_#|/
21955 s/'"$ac_delim"'$/,g/; t
21957 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21958 ' >>$CONFIG_STATUS <conf$$subs.sed
21959 rm -f conf$$subs.sed
21960 cat >>$CONFIG_STATUS <<_ACEOF
21966 for ac_last_try in false false false false false :; do
21967 cat >conf$$subs.sed <<_ACEOF
21968 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21969 ENABLE_PIC!$ENABLE_PIC$ac_delim
21970 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21971 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21972 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21973 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
21974 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21975 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21976 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21977 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21978 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21979 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21980 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21981 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21982 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21983 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21984 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21986 ifGNUmake!$ifGNUmake$ac_delim
21987 LN_S!$LN_S$ac_delim
21990 DATE!$DATE$ac_delim
21991 FIND!$FIND$ac_delim
21992 MKDIR!$MKDIR$ac_delim
21994 RANLIB!$RANLIB$ac_delim
21999 BINPWD!$BINPWD$ac_delim
22000 GRAPHVIZ!$GRAPHVIZ$ac_delim
22003 NEATO!$NEATO$ac_delim
22004 TWOPI!$TWOPI$ac_delim
22005 CIRCO!$CIRCO$ac_delim
22007 DOTTY!$DOTTY$ac_delim
22008 XDOT_PY!$XDOT_PY$ac_delim
22009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011 INSTALL_DATA!$INSTALL_DATA$ac_delim
22012 BZIP2!$BZIP2$ac_delim
22014 DOXYGEN!$DOXYGEN$ac_delim
22015 GROFF!$GROFF$ac_delim
22016 GZIPBIN!$GZIPBIN$ac_delim
22017 PDFROFF!$PDFROFF$ac_delim
22019 OCAMLC!$OCAMLC$ac_delim
22020 OCAMLOPT!$OCAMLOPT$ac_delim
22021 OCAMLDEP!$OCAMLDEP$ac_delim
22022 OCAMLDOC!$OCAMLDOC$ac_delim
22024 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22025 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22026 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22027 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22028 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22029 LIBADD_DL!$LIBADD_DL$ac_delim
22030 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22031 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22032 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22033 USE_UDIS86!$USE_UDIS86$ac_delim
22034 USE_OPROFILE!$USE_OPROFILE$ac_delim
22035 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22036 XML2CONFIG!$XML2CONFIG$ac_delim
22037 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22038 LIBXML2_INC!$LIBXML2_INC$ac_delim
22039 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22040 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22041 MMAP_FILE!$MMAP_FILE$ac_delim
22042 SHLIBEXT!$SHLIBEXT$ac_delim
22043 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22044 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22045 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22046 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22047 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22048 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22049 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22050 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22051 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22052 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22053 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22054 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22055 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22056 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22057 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22058 RPATH!$RPATH$ac_delim
22059 RDYNAMIC!$RDYNAMIC$ac_delim
22060 program_prefix!$program_prefix$ac_delim
22061 LIBOBJS!$LIBOBJS$ac_delim
22062 LTLIBOBJS!$LTLIBOBJS$ac_delim
22065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
22067 elif $ac_last_try; then
22068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22070 { (exit 1); exit 1; }; }
22072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22077 if test -n "$ac_eof"; then
22078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22079 ac_eof=`expr $ac_eof + 1`
22082 cat >>$CONFIG_STATUS <<_ACEOF
22083 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22088 s/^/s,@/; s/!/@,|#_!!_#|/
22091 s/'"$ac_delim"'$/,g/; t
22093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22094 ' >>$CONFIG_STATUS <conf$$subs.sed
22095 rm -f conf$$subs.sed
22096 cat >>$CONFIG_STATUS <<_ACEOF
22103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22105 # trailing colons and then remove the whole line if VPATH becomes empty
22106 # (actually we leave an empty line to preserve line numbers).
22107 if test "x$srcdir" = x.; then
22108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22109 s/:*\$(srcdir):*/:/
22110 s/:*\${srcdir}:*/:/
22112 s/^\([^=]*=[ ]*\):*/\1/
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 fi # test -n "$CONFIG_FILES"
22122 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22125 :[FHLC]) ac_mode=$ac_tag; continue;;
22127 case $ac_mode$ac_tag in
22129 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22130 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22131 { (exit 1); exit 1; }; };;
22132 :[FH]-) ac_tag=-:-;;
22133 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22150 -) ac_f="$tmp/stdin";;
22151 *) # Look for the file first in the build tree, then in the source tree
22152 # (if the path is not absolute). The absolute path cannot be DOS-style,
22153 # because $ac_f cannot contain `:'.
22157 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22159 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22160 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22161 { (exit 1); exit 1; }; };;
22163 ac_file_inputs="$ac_file_inputs $ac_f"
22166 # Let's still pretend it is `configure' which instantiates (i.e., don't
22167 # use $as_me), people would be surprised to read:
22168 # /* config.h. Generated by config.status. */
22169 configure_input="Generated from "`IFS=:
22170 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22171 if test x"$ac_file" != x-; then
22172 configure_input="$ac_file. $configure_input"
22173 { echo "$as_me:$LINENO: creating $ac_file" >&5
22174 echo "$as_me: creating $ac_file" >&6;}
22178 *:-:* | *:-) cat >"$tmp/stdin";;
22183 ac_dir=`$as_dirname -- "$ac_file" ||
22184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185 X"$ac_file" : 'X\(//\)[^/]' \| \
22186 X"$ac_file" : 'X\(//\)$' \| \
22187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22193 /^X\(\/\/\)[^/].*/{
22208 -*) as_dir=./$as_dir;;
22210 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22214 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22215 *) as_qdir=$as_dir;;
22217 as_dirs="'$as_qdir' $as_dirs"
22218 as_dir=`$as_dirname -- "$as_dir" ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22228 /^X\(\/\/\)[^/].*/{
22241 test -d "$as_dir" && break
22243 test -z "$as_dirs" || eval "mkdir $as_dirs"
22244 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22245 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22246 { (exit 1); exit 1; }; }; }
22250 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22253 # A ".." for each directory in $ac_dir_suffix.
22254 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22255 case $ac_top_builddir_sub in
22256 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22257 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22260 ac_abs_top_builddir=$ac_pwd
22261 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22262 # for backward compatibility:
22263 ac_top_builddir=$ac_top_build_prefix
22266 .) # We are building in place.
22268 ac_top_srcdir=$ac_top_builddir_sub
22269 ac_abs_top_srcdir=$ac_pwd ;;
22270 [\\/]* | ?:[\\/]* ) # Absolute name.
22271 ac_srcdir=$srcdir$ac_dir_suffix;
22272 ac_top_srcdir=$srcdir
22273 ac_abs_top_srcdir=$srcdir ;;
22274 *) # Relative name.
22275 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22276 ac_top_srcdir=$ac_top_build_prefix$srcdir
22277 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22279 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22289 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22290 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22294 cat >>$CONFIG_STATUS <<\_ACEOF
22295 # If the template does not know about datarootdir, expand it.
22296 # FIXME: This hack should be removed a few years after 2.60.
22297 ac_datarootdir_hack=; ac_datarootdir_seen=
22299 case `sed -n '/datarootdir/ {
22308 ' $ac_file_inputs` in
22309 *datarootdir*) ac_datarootdir_seen=yes;;
22310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22311 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22312 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22314 cat >>$CONFIG_STATUS <<_ACEOF
22315 ac_datarootdir_hack='
22316 s&@datadir@&$datadir&g
22317 s&@docdir@&$docdir&g
22318 s&@infodir@&$infodir&g
22319 s&@localedir@&$localedir&g
22320 s&@mandir@&$mandir&g
22321 s&\\\${datarootdir}&$datarootdir&g' ;;
22325 # Neutralize VPATH when `$srcdir' = `.'.
22326 # Shell code in configure.ac might set extrasub.
22327 # FIXME: do we really want to maintain this feature?
22328 cat >>$CONFIG_STATUS <<_ACEOF
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22335 s&@configure_input@&$configure_input&;t t
22336 s&@top_builddir@&$ac_top_builddir_sub&;t t
22337 s&@srcdir@&$ac_srcdir&;t t
22338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22339 s&@top_srcdir@&$ac_top_srcdir&;t t
22340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22341 s&@builddir@&$ac_builddir&;t t
22342 s&@abs_builddir@&$ac_abs_builddir&;t t
22343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22344 s&@INSTALL@&$ac_INSTALL&;t t
22345 $ac_datarootdir_hack
22346 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22349 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22351 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined. Please make sure it is defined." >&5
22353 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined. Please make sure it is defined." >&2;}
22358 -) cat "$tmp/out"; rm -f "$tmp/out";;
22359 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22368 # Transform confdefs.h into a sed script `conftest.defines', that
22369 # substitutes the proper values into config.h.in to produce config.h.
22370 rm -f conftest.defines conftest.tail
22371 # First, append a space to every undef/define line, to ease matching.
22372 echo 's/$/ /' >conftest.defines
22373 # Then, protect against being on the right side of a sed subst, or in
22374 # an unquoted here document, in config.status. If some macros were
22375 # called several times there might be several #defines for the same
22376 # symbol, which is useless. But do not sort them, since the last
22377 # AC_DEFINE must be honored.
22378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22379 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22380 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22381 # PARAMS is the parameter list in the macro definition--in most cases, it's
22382 # just an empty string.
22383 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22384 ac_dB='\\)[ (].*,\\1define\\2'
22392 s/^[ ]*#[ ]*define[ ][ ]*//
22397 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22398 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22399 ' >>conftest.defines
22401 # Remove the space that was appended to ease matching.
22402 # Then replace #undef with comments. This is necessary, for
22403 # example, in the case of _POSIX_SOURCE, which is predefined and required
22404 # on some systems where configure will not decide to define it.
22405 # (The regexp can be short, since the line contains either #define or #undef.)
22407 s,^[ #]*u.*,/* & */,' >>conftest.defines
22409 # Break up conftest.defines:
22410 ac_max_sed_lines=50
22412 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22413 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22414 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22416 ac_in='$ac_file_inputs'
22417 ac_out='"$tmp/out1"'
22418 ac_nxt='"$tmp/out2"'
22422 # Write a here document:
22423 cat >>$CONFIG_STATUS <<_ACEOF
22424 # First, check the format of the line:
22425 cat >"\$tmp/defines.sed" <<\\CEOF
22426 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22427 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22431 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22433 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22434 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22435 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22436 grep . conftest.tail >/dev/null || break
22437 rm -f conftest.defines
22438 mv conftest.tail conftest.defines
22440 rm -f conftest.defines conftest.tail
22442 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22443 cat >>$CONFIG_STATUS <<\_ACEOF
22444 if test x"$ac_file" != x-; then
22445 echo "/* $configure_input */" >"$tmp/config.h"
22446 cat "$ac_result" >>"$tmp/config.h"
22447 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22448 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22449 echo "$as_me: $ac_file is unchanged" >&6;}
22452 mv "$tmp/config.h" $ac_file
22455 echo "/* $configure_input */"
22461 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22462 echo "$as_me: executing $ac_file commands" >&6;}
22467 case $ac_file$ac_mode in
22468 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22469 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22470 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22471 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22472 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22473 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22474 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22475 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22476 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22477 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22478 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22479 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22480 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22481 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22482 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22483 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22484 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22485 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22486 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22487 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22488 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22489 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22490 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22491 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22492 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22493 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22499 { (exit 0); exit 0; }
22501 chmod +x $CONFIG_STATUS
22502 ac_clean_files=$ac_clean_files_save
22505 # configure is writing to config.log, and then calls config.status.
22506 # config.status does its own redirection, appending to config.log.
22507 # Unfortunately, on DOS this fails, as config.log is still kept open
22508 # by configure, so config.status won't be able to write to it; its
22509 # output is simply discarded. So we exec the FD to /dev/null,
22510 # effectively closing config.log, so it can be properly (re)opened and
22511 # appended to by config.status. When coming back to configure, we
22512 # need to make the FD available again.
22513 if test "$no_create" != yes; then
22515 ac_config_status_args=
22516 test "$silent" = yes &&
22517 ac_config_status_args="$ac_config_status_args --quiet"
22519 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22521 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22522 # would make configure fail if this is the last instruction.
22523 $ac_cs_success || { (exit 1); exit 1; }
22527 # CONFIG_SUBDIRS section.
22529 if test "$no_recursion" != yes; then
22531 # Remove --cache-file and --srcdir arguments so they do not pile up.
22532 ac_sub_configure_args=
22534 eval "set x $ac_configure_args"
22538 if test -n "$ac_prev"; then
22543 -cache-file | --cache-file | --cache-fil | --cache-fi \
22544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22545 ac_prev=cache_file ;;
22546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22550 --config-cache | -C)
22552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22562 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22564 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22568 # Always prepend --prefix to ensure using the same prefix
22569 # in subdir configurations.
22570 ac_arg="--prefix=$prefix"
22572 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22574 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
22581 test -d "$srcdir/$ac_dir" || continue
22583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584 echo "$as_me:$LINENO: $ac_msg" >&5
22588 -*) as_dir=./$as_dir;;
22590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22594 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22595 *) as_qdir=$as_dir;;
22597 as_dirs="'$as_qdir' $as_dirs"
22598 as_dir=`$as_dirname -- "$as_dir" ||
22599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$as_dir" : 'X\(//\)[^/]' \| \
22601 X"$as_dir" : 'X\(//\)$' \| \
22602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22608 /^X\(\/\/\)[^/].*/{
22621 test -d "$as_dir" && break
22623 test -z "$as_dirs" || eval "mkdir $as_dirs"
22624 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22625 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22626 { (exit 1); exit 1; }; }; }
22630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22633 # A ".." for each directory in $ac_dir_suffix.
22634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22635 case $ac_top_builddir_sub in
22636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22640 ac_abs_top_builddir=$ac_pwd
22641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22642 # for backward compatibility:
22643 ac_top_builddir=$ac_top_build_prefix
22646 .) # We are building in place.
22648 ac_top_srcdir=$ac_top_builddir_sub
22649 ac_abs_top_srcdir=$ac_pwd ;;
22650 [\\/]* | ?:[\\/]* ) # Absolute name.
22651 ac_srcdir=$srcdir$ac_dir_suffix;
22652 ac_top_srcdir=$srcdir
22653 ac_abs_top_srcdir=$srcdir ;;
22654 *) # Relative name.
22655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22656 ac_top_srcdir=$ac_top_build_prefix$srcdir
22657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22664 # Check for guested configure; otherwise get Cygnus style configure.
22665 if test -f "$ac_srcdir/configure.gnu"; then
22666 ac_sub_configure=$ac_srcdir/configure.gnu
22667 elif test -f "$ac_srcdir/configure"; then
22668 ac_sub_configure=$ac_srcdir/configure
22669 elif test -f "$ac_srcdir/configure.in"; then
22670 # This should be Cygnus configure.
22671 ac_sub_configure=$ac_aux_dir/configure
22673 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22674 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22678 # The recursion is here.
22679 if test -n "$ac_sub_configure"; then
22680 # Make the cache file name correct relative to the subdirectory.
22681 case $cache_file in
22682 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22683 *) # Relative name.
22684 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22687 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22688 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22689 # The eval makes quoting arguments work.
22690 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22691 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22692 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22693 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22694 { (exit 1); exit 1; }; }