2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
714 LLVM_ENUM_ASM_PRINTERS
715 LLVM_ENUM_ASM_PARSERS
716 LLVM_ENUM_DISASSEMBLERS
762 HAVE_LINK_VERSION_SCRIPT
765 CONVENIENCE_LTDL_TRUE
766 CONVENIENCE_LTDL_FALSE
769 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
799 ENABLE_VISIBILITY_INLINES_HIDDEN
806 ac_precious_vars='build_alias
818 ac_subdirs_all='projects/llvm-gcc
822 projects/llvm-poolalloc
825 projects/llvm-stacker
833 # Initialize some variables set by options.
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/-/_/g'`
1165 eval with_$ac_package=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-libcpp Use libc++ if available (default is NO)
1408 --enable-cxx11 Use c++11 if available (default is NO)
1409 --enable-split-dwarf Use split-dwarf if available (default is NO)
1410 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1411 --enable-clang-static-analyzer
1412 Enable building of clang Static Analyzer (default is
1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1415 --enable-optimized Compile with optimizations enabled (default is NO)
1416 --enable-profiling Compile with profiling enabled (default is NO)
1417 --enable-assertions Compile with assertion checks enabled (default is
1419 --enable-werror Compile with -Werror enabled (default is NO)
1420 --enable-expensive-checks
1421 Compile with expensive debug checks enabled (default
1423 --enable-debug-runtime Build runtime libs with debug symbols (default is
1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1426 optimization is on and YES if it's off)
1427 --enable-keep-symbols Do not strip installed executables)
1428 --enable-jit Enable Just In Time Compiling (default is YES)
1429 --enable-docs Build documents (default is YES)
1430 --enable-doxygen Build doxygen documentation (default is NO)
1431 --enable-threads Use threads if available (default is YES)
1432 --enable-pthreads Use pthreads if available (default is YES)
1433 --enable-zlib Use zlib for compression/decompression if available
1435 --enable-pic Build LLVM with Position Independent Code (default
1437 --enable-shared Build a shared library and link tools against it
1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1440 Win32 DLL (default is NO)
1441 --enable-timestamps Enable embedding timestamp information in build
1443 --enable-backtraces Enable embedding backtraces on crash (default is
1445 --enable-crash-overrides
1446 Enable crash handling overrides (default is YES)
1447 --enable-targets Build specific host targets: all or
1448 target1,target2,... Valid targets are: host, x86,
1449 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1450 xcore, msp430, nvptx, systemz, r600, and cpp
1452 --enable-experimental-targets
1453 Build experimental host targets: disable or
1454 target1,target2,... (default=disable)
1455 --enable-bindings Build specific language bindings:
1456 all,auto,none,{binding-name} (default=auto)
1457 --enable-terminfo Query the terminfo database if available (default is
1459 --enable-libffi Check for the presence of libffi (default is NO)
1460 --enable-ltdl-install install libltdl
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-optimize-option Select the compiler options to use for optimized
1467 --with-extra-options Specify additional options to compile LLVM with
1468 --with-extra-ld-options Specify additional options to link LLVM with
1469 --with-ocaml-libdir Specify install location for ocaml bindings (default
1471 --with-clang-srcdir Directory to the out-of-tree Clang source
1472 --with-clang-resource-dir
1473 Relative directory from the Clang binary for
1475 --with-c-include-dirs Colon separated list of directories clang will
1477 --with-gcc-toolchain Directory where gcc is installed.
1478 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1479 --with-binutils-include Specify path to binutils/include/ containing
1480 plugin-api.h file for gold plugin.
1481 --with-bug-report-url Specify the URL where bug reports should be
1482 submitted (default=http://llvm.org/bugs/)
1483 --with-internal-prefix Installation directory for internal files
1484 --with-python path to python
1485 --with-udis86=<path> Use udis86 external x86 disassembler library
1486 --with-oprofile=<prefix>
1487 Tell OProfile >= 0.9.4 how to symbolize JIT output
1488 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1501 CXXCPP C++ preprocessor
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 Report bugs to <http://llvm.org/bugs/>.
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" || continue
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 LLVM configure 3.4svn
1568 generated by GNU Autoconf 2.60
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1575 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by LLVM $as_me 3.4svn, which was
1584 generated by GNU Autoconf 2.60. Invocation command line was
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_must_keep_next=false
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 -* ) ac_must_keep_next=true ;;
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1700 # The following way of writing the cache mishandles newlines in values,
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1737 for ac_var in $ac_subst_vars
1739 eval ac_val=\$$ac_var
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 echo "$ac_var='\''$ac_val'\''"
1747 if test -n "$ac_subst_files"; then
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1754 for ac_var in $ac_subst_files
1756 eval ac_val=\$$ac_var
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 echo "$ac_var='\''$ac_val'\''"
1765 if test -s confdefs.h; then
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1791 # Predefined preprocessor variables.
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1856 # Check that the precious variables saved in the cache have kept the same
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MAJOR 3
1942 cat >>confdefs.h <<\_ACEOF
1943 #define LLVM_VERSION_MINOR 4
1947 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1956 for ac_dir in autoconf "$srcdir"/autoconf; do
1957 if test -f "$ac_dir/install-sh"; then
1959 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 elif test -f "$ac_dir/install.sh"; then
1963 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 elif test -f "$ac_dir/shtool"; then
1967 ac_install_sh="$ac_aux_dir/shtool install -c"
1971 if test -z "$ac_aux_dir"; then
1972 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1974 { (exit 1); exit 1; }; }
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1987 if test ${srcdir} != "." ; then
1988 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1989 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1990 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1991 { (exit 1); exit 1; }; }
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004 for ac_prog in clang llvm-gcc gcc
2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CC"; then
2035 { echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6; }
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2043 test -n "$CC" && break
2046 if test -z "$CC"; then
2048 for ac_prog in clang llvm-gcc gcc
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_ac_ct_CC="$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6; }
2082 { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2087 test -n "$ac_ct_CC" && break
2090 if test "x$ac_ct_CC" = x; then
2093 case $cross_compiling:$ac_tool_warned in
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet. If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2108 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&2;}
2112 { (exit 1); exit 1; }; }
2114 # Provide some information about the compiler.
2115 echo "$as_me:$LINENO: checking for C compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (ac_try="$ac_compiler --version >&5"
2119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120 *) ac_try_echo=$ac_try;;
2122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2123 (eval "$ac_compiler --version >&5") 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }
2127 { (ac_try="$ac_compiler -v >&5"
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2133 (eval "$ac_compiler -v >&5") 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }
2137 { (ac_try="$ac_compiler -V >&5"
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2143 (eval "$ac_compiler -V >&5") 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }
2148 cat >conftest.$ac_ext <<_ACEOF
2151 cat confdefs.h >>conftest.$ac_ext
2152 cat >>conftest.$ac_ext <<_ACEOF
2153 /* end confdefs.h. */
2163 ac_clean_files_save=$ac_clean_files
2164 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2165 # Try to create an executable without -o first, disregard a.out.
2166 # It will help us diagnose broken compilers, and finding out an intuition
2168 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2169 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2170 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 # List of possible output files, starting from the most likely.
2173 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2174 # only as a last resort. b.out is created by i960 compilers.
2175 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2177 # The IRIX 6 linker writes into existing files which may not be
2178 # executable, retaining their permissions. Remove them first so a
2179 # subsequent execution test works.
2181 for ac_file in $ac_files
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2190 if { (ac_try="$ac_link_default"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_link_default") 2>&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }; then
2200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2203 # so that the user can short-circuit this test for compilers unknown to
2205 for ac_file in $ac_files
2207 test -f "$ac_file" || continue
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2212 # We found the default executable, but exeext='' is most
2216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220 # We set ac_cv_exeext here because the later test for it is not
2221 # safe: cross compilers may not add the suffix if given an `-o'
2222 # argument, so we may need to know it at that point already.
2223 # Even if this section looks crufty: it has the advantage of
2230 test "$ac_cv_exeext" = no && ac_cv_exeext=
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: C compiler cannot create executables
2239 See \`config.log' for more details." >&2;}
2240 { (exit 77); exit 77; }; }
2243 ac_exeext=$ac_cv_exeext
2244 { echo "$as_me:$LINENO: result: $ac_file" >&5
2245 echo "${ECHO_T}$ac_file" >&6; }
2247 # Check that the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2250 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2251 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2252 # If not cross compiling, check that we can run a simple program.
2253 if test "$cross_compiling" != yes; then
2254 if { ac_try='./$ac_file'
2255 { (case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_try") 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 if test "$cross_compiling" = maybe; then
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2279 { echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6; }
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check that the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2288 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6; }
2291 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2293 if { (ac_try="$ac_link"
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2299 (eval "$ac_link") 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2305 # work properly (i.e., refer to `conftest.exe'), while it won't with
2307 for ac_file in conftest.exe conftest conftest.*; do
2308 test -f "$ac_file" || continue
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2318 See \`config.log' for more details." >&5
2319 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2320 See \`config.log' for more details." >&2;}
2321 { (exit 1); exit 1; }; }
2324 rm -f conftest$ac_cv_exeext
2325 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2326 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2328 rm -f conftest.$ac_ext
2329 EXEEXT=$ac_cv_exeext
2331 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2332 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2333 if test "${ac_cv_objext+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.o conftest.obj
2352 if { (ac_try="$ac_compile"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compile") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; then
2362 for ac_file in conftest.o conftest.obj conftest.*; do
2363 test -f "$ac_file" || continue;
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2377 See \`config.log' for more details." >&2;}
2378 { (exit 1); exit 1; }; }
2381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2384 echo "${ECHO_T}$ac_cv_objext" >&6; }
2385 OBJEXT=$ac_cv_objext
2387 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>conftest.er1
2419 grep -v '^ *+' conftest.er1 >conftest.err
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2425 { (case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_try") 2>&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
2435 { (case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440 (eval "$ac_try") 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; }; then
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2457 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2458 GCC=`test $ac_compiler_gnu = yes && echo yes`
2459 ac_test_CFLAGS=${CFLAGS+set}
2460 ac_save_CFLAGS=$CFLAGS
2461 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_cc_g+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 ac_save_c_werror_flag=$ac_c_werror_flag
2467 ac_c_werror_flag=yes
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_compile") 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } &&
2499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2500 { (case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2505 (eval "$ac_try") 2>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_try") 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2555 { (case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_try") 2>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2579 ac_c_werror_flag=$ac_save_c_werror_flag
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compile") 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2611 { (case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_try") 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_try") 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 ac_c_werror_flag=$ac_save_c_werror_flag
2647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2649 if test "$ac_test_CFLAGS" = set; then
2650 CFLAGS=$ac_save_CFLAGS
2651 elif test $ac_cv_prog_cc_g = yes; then
2652 if test "$GCC" = yes; then
2658 if test "$GCC" = yes; then
2664 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2665 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2666 if test "${ac_cv_prog_cc_c89+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_cv_prog_cc_c89=no
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2679 #include <sys/types.h>
2680 #include <sys/stat.h>
2681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2682 struct buf { int x; };
2683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2684 static char *e (p, i)
2690 static char *f (char * (*g) (char **, int), char **p, ...)
2695 s = g (p, va_arg (v,int));
2700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2701 function prototypes and stuff, but not '\xHH' hex character constants.
2702 These don't provoke an error unfortunately, instead are silently treated
2703 as 'x'. The following induces an error, until -std is added to get
2704 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2705 array size at least. It's necessary to write '\x00'==0 to get something
2706 that's true only with -std. */
2707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2709 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2710 inside strings and character constants. */
2712 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2714 int test (int i, double x);
2715 struct s1 {int (*f) (int a);};
2716 struct s2 {int (*f) (double a);};
2717 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2723 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2728 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2729 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2747 { (case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_try") 2>&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_try") 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_cv_prog_cc_c89=$ac_arg
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f core conftest.err conftest.$ac_objext
2775 test "x$ac_cv_prog_cc_c89" != "xno" && break
2777 rm -f conftest.$ac_ext
2782 case "x$ac_cv_prog_cc_c89" in
2784 { echo "$as_me:$LINENO: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6; } ;;
2787 { echo "$as_me:$LINENO: result: unsupported" >&5
2788 echo "${ECHO_T}unsupported" >&6; } ;;
2790 CC="$CC $ac_cv_prog_cc_c89"
2791 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2792 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 ac_cpp='$CXXCPP $CPPFLAGS'
2804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2807 if test -z "$CXX"; then
2808 if test -n "$CCC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 for ac_prog in clang++ llvm-g++ g++
2814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_CXX+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test -n "$CXX"; then
2822 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 if test -n "$CXX"; then
2843 { echo "$as_me:$LINENO: result: $CXX" >&5
2844 echo "${ECHO_T}$CXX" >&6; }
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2851 test -n "$CXX" && break
2854 if test -z "$CXX"; then
2856 for ac_prog in clang++ llvm-g++ g++
2858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2862 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 if test -n "$ac_ct_CXX"; then
2866 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_ac_ct_CXX="$ac_prog"
2876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2886 if test -n "$ac_ct_CXX"; then
2887 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2888 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2890 { echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6; }
2895 test -n "$ac_ct_CXX" && break
2898 if test "x$ac_ct_CXX" = x; then
2901 case $cross_compiling:$ac_tool_warned in
2903 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2904 whose name does not start with the host triplet. If you think this
2905 configuration is useful to you, please write to autoconf@gnu.org." >&5
2906 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2907 whose name does not start with the host triplet. If you think this
2908 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2909 ac_tool_warned=yes ;;
2917 # Provide some information about the compiler.
2918 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2919 ac_compiler=`set X $ac_compile; echo $2`
2920 { (ac_try="$ac_compiler --version >&5"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler --version >&5") 2>&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -v >&5"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compiler -V >&5") 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }
2951 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2952 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2953 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_try") 2>&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3010 echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3020 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3022 GXX=`test $ac_compiler_gnu = yes && echo yes`
3023 ac_test_CXXFLAGS=${CXXFLAGS+set}
3024 ac_save_CXXFLAGS=$CXXFLAGS
3025 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3026 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3027 if test "${ac_cv_prog_cxx_g+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3031 ac_cxx_werror_flag=yes
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_try") 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 ac_cv_prog_cxx_g=yes
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3089 cat >conftest.$ac_ext <<_ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3104 rm -f conftest.$ac_objext
3105 if { (ac_try="$ac_compile"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_compile") 2>conftest.er1
3113 grep -v '^ *+' conftest.er1 >conftest.err
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3169 grep -v '^ *+' conftest.er1 >conftest.err
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try='test -s conftest.$ac_objext'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_prog_cxx_g=yes
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3213 if test "$ac_test_CXXFLAGS" = set; then
3214 CXXFLAGS=$ac_save_CXXFLAGS
3215 elif test $ac_cv_prog_cxx_g = yes; then
3216 if test "$GXX" = yes; then
3222 if test "$GXX" = yes; then
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3245 if test -z "$CPP"; then
3246 if test "${ac_cv_prog_CPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 # Double quotes because CPP needs to be expanded
3250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253 for ac_c_preproc_warn_flag in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296 if test -z "$ac_cpp_err"; then
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3302 # Broken: fails on valid input.
3306 rm -f conftest.err conftest.$ac_ext
3308 # OK, works on sane cases. Now check whether nonexistent headers
3309 # can be detected and how.
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316 #include <ac_nonexistent.h>
3318 if { (ac_try="$ac_cpp conftest.$ac_ext"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } >/dev/null; then
3331 if test -s conftest.err; then
3332 ac_cpp_err=$ac_c_preproc_warn_flag
3333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3340 if test -z "$ac_cpp_err"; then
3341 # Broken: success on invalid input.
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3347 # Passes both tests.
3352 rm -f conftest.err conftest.$ac_ext
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then
3369 { echo "$as_me:$LINENO: result: $CPP" >&5
3370 echo "${ECHO_T}$CPP" >&6; }
3372 for ac_c_preproc_warn_flag in '' yes
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3387 # include <limits.h>
3389 # include <assert.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Broken: fails on valid input.
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether nonexistent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <ac_nonexistent.h>
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3471 rm -f conftest.err conftest.$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3479 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3480 See \`config.log' for more details." >&5
3481 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details." >&2;}
3483 { (exit 1); exit 1; }; }
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test "$CXX" = "clang++" ; then
3494 { echo "$as_me:$LINENO: checking whether clang works" >&5
3495 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3497 ac_cpp='$CXXCPP $CPPFLAGS'
3498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3503 cat >conftest.$ac_ext <<_ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3510 #if __has_include (<cxxabi.h>)
3513 #if __has_include (<unwind.h>)
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3540 { (case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545 (eval "$ac_try") 2>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; } &&
3549 { ac_try='test -s conftest.$ac_objext'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_try") 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3560 { echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6; }
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3568 { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3570 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3571 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3572 { (exit 1); exit 1; }; }
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 if test -d ${srcdir}/projects/llvm-gcc ; then
3588 subdirs="$subdirs projects/llvm-gcc"
3592 if test -d ${srcdir}/projects/test-suite ; then
3593 subdirs="$subdirs projects/test-suite"
3597 if test -d ${srcdir}/projects/llvm-test ; then
3598 subdirs="$subdirs projects/llvm-test"
3602 if test -d ${srcdir}/projects/poolalloc ; then
3603 subdirs="$subdirs projects/poolalloc"
3607 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3608 subdirs="$subdirs projects/llvm-poolalloc"
3612 for i in `ls ${srcdir}/projects`
3614 if test -d ${srcdir}/projects/${i} ; then
3616 sample) subdirs="$subdirs projects/sample"
3618 privbracket) subdirs="$subdirs projects/privbracket"
3620 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3622 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3624 llvm-java) subdirs="$subdirs projects/llvm-java"
3626 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3628 safecode) subdirs="$subdirs projects/safecode"
3630 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3639 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3640 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3646 # Check whether --enable-polly was given.
3647 if test "${enable_polly+set}" = set; then
3648 enableval=$enable_polly;
3653 case "$enableval" in
3658 default) ENABLE_POLLY=1
3660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3661 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3662 { (exit 1); exit 1; }; } ;;
3666 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3669 subdirs="$subdirs tools/polly"
3674 # Make sure we can run config.sub.
3675 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3676 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3677 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3678 { (exit 1); exit 1; }; }
3680 { echo "$as_me:$LINENO: checking build system type" >&5
3681 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3682 if test "${ac_cv_build+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_build_alias=$build_alias
3686 test "x$ac_build_alias" = x &&
3687 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3688 test "x$ac_build_alias" = x &&
3689 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3690 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3691 { (exit 1); exit 1; }; }
3692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3693 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3694 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3695 { (exit 1); exit 1; }; }
3698 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3699 echo "${ECHO_T}$ac_cv_build" >&6; }
3700 case $ac_cv_build in
3702 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3703 echo "$as_me: error: invalid value of canonical build" >&2;}
3704 { (exit 1); exit 1; }; };;
3707 ac_save_IFS=$IFS; IFS='-'
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720 { echo "$as_me:$LINENO: checking host system type" >&5
3721 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3722 if test "${ac_cv_host+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test "x$host_alias" = x; then
3726 ac_cv_host=$ac_cv_build
3728 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3729 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3730 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3731 { (exit 1); exit 1; }; }
3735 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3736 echo "${ECHO_T}$ac_cv_host" >&6; }
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3740 echo "$as_me: error: invalid value of canonical host" >&2;}
3741 { (exit 1); exit 1; }; };;
3744 ac_save_IFS=$IFS; IFS='-'
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3757 { echo "$as_me:$LINENO: checking target system type" >&5
3758 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_target+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3762 if test "x$target_alias" = x; then
3763 ac_cv_target=$ac_cv_host
3765 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3766 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3768 { (exit 1); exit 1; }; }
3772 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3773 echo "${ECHO_T}$ac_cv_target" >&6; }
3774 case $ac_cv_target in
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3777 echo "$as_me: error: invalid value of canonical target" >&2;}
3778 { (exit 1); exit 1; }; };;
3780 target=$ac_cv_target
3781 ac_save_IFS=$IFS; IFS='-'
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3791 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3794 # The aliases save the names the user supplied, while $host etc.
3795 # will get canonicalized.
3796 test -n "$target_alias" &&
3797 test "$program_prefix$program_suffix$program_transform_name" = \
3799 program_prefix=${target_alias}-
3801 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3802 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3803 if test "${llvm_cv_os_type+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 llvm_cv_link_all_option="-Wl,--whole-archive"
3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3810 llvm_cv_os_type="AIX"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,--whole-archive"
3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3815 llvm_cv_os_type="IRIX"
3816 llvm_cv_platform_type="Unix" ;;
3818 llvm_cv_link_all_option="-Wl,--whole-archive"
3819 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820 llvm_cv_os_type="Cygwin"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,-all_load"
3824 llvm_cv_no_link_all_option="-Wl,-noall_load"
3825 llvm_cv_os_type="Darwin"
3826 llvm_cv_platform_type="Unix" ;;
3828 llvm_cv_link_all_option="-Wl,-all_load"
3829 llvm_cv_no_link_all_option="-Wl,-noall_load"
3830 llvm_cv_os_type="Minix"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="FreeBSD"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="GNU/kFreeBSD"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="OpenBSD"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="NetBSD"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="DragonFly"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,--whole-archive"
3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3860 llvm_cv_os_type="HP-UX"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,--whole-archive"
3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3865 llvm_cv_os_type="Interix"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,--whole-archive"
3869 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870 llvm_cv_os_type="Linux"
3871 llvm_cv_platform_type="Unix" ;;
3873 llvm_cv_link_all_option="-Wl,--whole-archive"
3874 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875 llvm_cv_os_type="GNU"
3876 llvm_cv_platform_type="Unix" ;;
3878 llvm_cv_link_all_option="-Wl,-z,allextract"
3879 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3880 llvm_cv_os_type="SunOS"
3881 llvm_cv_platform_type="Unix" ;;
3883 llvm_cv_link_all_option="-Wl,-z,allextract"
3884 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3885 llvm_cv_os_type="AuroraUX"
3886 llvm_cv_platform_type="Unix" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Win32"
3891 llvm_cv_platform_type="Win32" ;;
3893 llvm_cv_link_all_option="-Wl,--whole-archive"
3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3895 llvm_cv_os_type="MingW"
3896 llvm_cv_platform_type="Win32" ;;
3898 llvm_cv_link_all_option="-Wl,--whole-archive"
3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3900 llvm_cv_os_type="Haiku"
3901 llvm_cv_platform_type="Unix" ;;
3903 llvm_cv_link_all_option="-Wl,--whole-archive"
3904 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3905 llvm_cv_os_type="Freestanding"
3906 llvm_cv_platform_type="Unix" ;;
3908 llvm_cv_link_all_option="-Wl,--whole-archive"
3909 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3910 llvm_cv_os_type="Freestanding"
3911 llvm_cv_platform_type="Unix" ;;
3913 llvm_cv_link_all_option=""
3914 llvm_cv_no_link_all_option=""
3915 llvm_cv_os_type="Unknown"
3916 llvm_cv_platform_type="Unknown" ;;
3919 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3920 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3922 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3923 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3924 if test "${llvm_cv_target_os_type+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 llvm_cv_target_os_type="AIX" ;;
3931 llvm_cv_target_os_type="IRIX" ;;
3933 llvm_cv_target_os_type="Cygwin" ;;
3935 llvm_cv_target_os_type="Darwin" ;;
3937 llvm_cv_target_os_type="Minix" ;;
3939 llvm_cv_target_os_type="FreeBSD" ;;
3941 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3943 llvm_cv_target_os_type="OpenBSD" ;;
3945 llvm_cv_target_os_type="NetBSD" ;;
3947 llvm_cv_target_os_type="DragonFly" ;;
3949 llvm_cv_target_os_type="HP-UX" ;;
3951 llvm_cv_target_os_type="Interix" ;;
3953 llvm_cv_target_os_type="Linux" ;;
3955 llvm_cv_target_os_type="GNU" ;;
3957 llvm_cv_target_os_type="SunOS" ;;
3959 llvm_cv_target_os_type="AuroraUX" ;;
3961 llvm_cv_target_os_type="Win32" ;;
3963 llvm_cv_target_os_type="MingW" ;;
3965 llvm_cv_target_os_type="Haiku" ;;
3967 llvm_cv_target_os_type="RTEMS" ;;
3969 llvm_cv_target_os_type="NativeClient" ;;
3971 llvm_cv_target_os_type="Freestanding" ;;
3973 llvm_cv_target_os_type="Unknown" ;;
3976 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3977 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3979 if test "$llvm_cv_os_type" = "Unknown" ; then
3980 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3981 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3982 { (exit 1); exit 1; }; }
3987 HOST_OS=$llvm_cv_os_type
3989 TARGET_OS=$llvm_cv_target_os_type
3992 LINKALL=$llvm_cv_link_all_option
3994 NOLINKALL=$llvm_cv_no_link_all_option
3997 case $llvm_cv_platform_type in
4000 cat >>confdefs.h <<\_ACEOF
4001 #define LLVM_ON_UNIX 1
4011 cat >>confdefs.h <<\_ACEOF
4012 #define LLVM_ON_WIN32 1
4022 { echo "$as_me:$LINENO: checking target architecture" >&5
4023 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4024 if test "${llvm_cv_target_arch+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 i?86-*) llvm_cv_target_arch="x86" ;;
4029 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4030 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4031 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4032 arm*-*) llvm_cv_target_arch="ARM" ;;
4033 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4034 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4035 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4036 xcore-*) llvm_cv_target_arch="XCore" ;;
4037 msp430-*) llvm_cv_target_arch="MSP430" ;;
4038 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4039 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4040 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4041 *) llvm_cv_target_arch="Unknown" ;;
4044 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4045 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4047 if test "$llvm_cv_target_arch" = "Unknown" ; then
4048 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4049 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4052 case "$llvm_cv_target_arch" in
4053 x86) LLVM_NATIVE_ARCH="X86" ;;
4054 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4055 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4058 ARCH=$llvm_cv_target_arch
4062 i?86-*) host_arch="x86" ;;
4063 amd64-* | x86_64-*) host_arch="x86_64" ;;
4064 sparc*-*) host_arch="Sparc" ;;
4065 powerpc*-*) host_arch="PowerPC" ;;
4066 arm*-*) host_arch="ARM" ;;
4067 aarch64*-*) host_arch="AArch64" ;;
4068 mips-* | mips64-*) host_arch="Mips" ;;
4069 mipsel-* | mips64el-*) host_arch="Mips" ;;
4070 xcore-*) host_arch="XCore" ;;
4071 msp430-*) host_arch="MSP430" ;;
4072 hexagon-*) host_arch="Hexagon" ;;
4073 s390x-*) host_arch="SystemZ" ;;
4074 *) host_arch="Unknown" ;;
4077 if test "$host_arch" = "Unknown" ; then
4078 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4079 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4082 HOST_ARCH=$host_arch
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_GREP_found && break 3
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cv_path_GREP=$GREP
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4174 # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in egrep; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191 # Check for GNU ac_path_EGREP and select it if it is found.
4192 # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 echo 'EGREP' >> "conftest.nl"
4205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_EGREP="$ac_path_EGREP"
4211 ac_path_EGREP_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 $ac_path_EGREP_found && break 3
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234 { (exit 1); exit 1; }; }
4238 ac_cv_path_EGREP=$EGREP
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4249 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4250 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4251 if test "${ac_cv_header_stdc+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_compile") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4288 { (case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_try") 2>&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest.$ac_objext'
4298 { (case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_try") 2>&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_header_stdc=yes
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4312 ac_cv_header_stdc=no
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 if test $ac_cv_header_stdc = yes; then
4318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "memchr" >/dev/null 2>&1; then
4332 ac_cv_header_stdc=no
4338 if test $ac_cv_header_stdc = yes; then
4339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "free" >/dev/null 2>&1; then
4353 ac_cv_header_stdc=no
4359 if test $ac_cv_header_stdc = yes; then
4360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361 if test "$cross_compiling" = yes; then
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4372 #if ((' ' & 0x0FF) == 0x020)
4373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4376 # define ISLOWER(c) \
4377 (('a' <= (c) && (c) <= 'i') \
4378 || ('j' <= (c) && (c) <= 'r') \
4379 || ('s' <= (c) && (c) <= 'z'))
4380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4388 for (i = 0; i < 256; i++)
4389 if (XOR (islower (i), ISLOWER (i))
4390 || toupper (i) != TOUPPER (i))
4395 rm -f conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_link") 2>&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4406 { (case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_try") 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; }; then
4417 echo "$as_me: program exited with status $ac_status" >&5
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4422 ac_cv_header_stdc=no
4424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4432 if test $ac_cv_header_stdc = yes; then
4434 cat >>confdefs.h <<\_ACEOF
4435 #define STDC_HEADERS 1
4440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4451 inttypes.h stdint.h unistd.h
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4467 #include <$ac_header>
4469 rm -f conftest.$ac_objext
4470 if { (ac_try="$ac_compile"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_compile") 2>conftest.er1
4478 grep -v '^ *+' conftest.er1 >conftest.err
4480 cat conftest.err >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); } &&
4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4484 { (case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_try") 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4503 eval "$as_ac_Header=yes"
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 eval "$as_ac_Header=no"
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 ac_res=`eval echo '${'$as_ac_Header'}'`
4514 { echo "$as_me:$LINENO: result: $ac_res" >&5
4515 echo "${ECHO_T}$ac_res" >&6; }
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4526 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4527 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4528 if test "${ac_cv_c_bigendian+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 # See if sys/param.h defines the BYTE_ORDER macro.
4532 cat >conftest.$ac_ext <<_ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 #include <sys/param.h>
4544 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4552 rm -f conftest.$ac_objext
4553 if { (ac_try="$ac_compile"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_compile") 2>conftest.er1
4561 grep -v '^ *+' conftest.er1 >conftest.err
4563 cat conftest.err >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); } &&
4566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4586 # It does; now see whether it defined to BIG_ENDIAN or not.
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 #include <sys/types.h>
4594 #include <sys/param.h>
4599 #if BYTE_ORDER != BIG_ENDIAN
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4616 grep -v '^ *+' conftest.er1 >conftest.err
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } &&
4621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_c_bigendian=yes
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_c_bigendian=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 # It does not; compile a test program.
4655 if test "$cross_compiling" = yes; then
4656 # try to guess the endianness by grepping values into an object file
4657 ac_cv_c_bigendian=unknown
4658 cat >conftest.$ac_ext <<_ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4665 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4666 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4667 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4668 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4669 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4673 _ascii (); _ebcdic ();
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
4692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4693 { (case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4698 (eval "$ac_try") 2>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4708 (eval "$ac_try") 2>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4713 ac_cv_c_bigendian=yes
4715 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4716 if test "$ac_cv_c_bigendian" = unknown; then
4717 ac_cv_c_bigendian=no
4719 # finding both strings is unlikely to happen, but who knows?
4720 ac_cv_c_bigendian=unknown
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4743 /* Are we little or big endian? From Harbison&Steele. */
4747 char c[sizeof (long int)];
4750 return u.c[sizeof (long int) - 1] == 1;
4756 rm -f conftest$ac_exeext
4757 if { (ac_try="$ac_link"
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_link") 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4767 { (case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 ac_cv_c_bigendian=no
4778 echo "$as_me: program exited with status $ac_status" >&5
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4783 ac_cv_c_bigendian=yes
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4794 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4795 case $ac_cv_c_bigendian in
4803 { { echo "$as_me:$LINENO: error: unknown endianness
4804 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4805 echo "$as_me: error: unknown endianness
4806 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4807 { (exit 1); exit 1; }; } ;;
4811 if test "$cross_compiling" = yes; then
4812 LLVM_CROSS_COMPILING=1
4815 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4816 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4817 if test "${ac_cv_build_exeext+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4821 ac_cv_build_exeext=.exe
4823 ac_build_prefix=${build_alias}-
4825 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4826 set dummy ${ac_build_prefix}gcc; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 if test -n "$BUILD_CC"; then
4833 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 BUILD_CC=$ac_cv_prog_BUILD_CC
4853 if test -n "$BUILD_CC"; then
4854 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4855 echo "${ECHO_T}$BUILD_CC" >&6; }
4857 { echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6; }
4862 if test -z "$BUILD_CC"; then
4863 # Extract the first word of "gcc", so it can be a program name with args.
4864 set dummy gcc; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$BUILD_CC"; then
4871 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_BUILD_CC="gcc"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 BUILD_CC=$ac_cv_prog_BUILD_CC
4891 if test -n "$BUILD_CC"; then
4892 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4893 echo "${ECHO_T}$BUILD_CC" >&6; }
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4900 if test -z "$BUILD_CC"; then
4901 # Extract the first word of "cc", so it can be a program name with args.
4902 set dummy cc; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 if test -n "$BUILD_CC"; then
4909 ac_cv_prog_BUILD_CC="$BUILD_CC" # 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4920 ac_prog_rejected=yes
4923 ac_cv_prog_BUILD_CC="cc"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 if test $ac_prog_rejected = yes; then
4932 # We found a bogon in the path, so make sure we never use it.
4933 set dummy $ac_cv_prog_BUILD_CC
4935 if test $# != 0; then
4936 # We chose a different compiler from the bogus one.
4937 # However, it has the same basename, so the bogon will be chosen
4938 # first if we set BUILD_CC to just the basename; use the full file name.
4940 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4945 BUILD_CC=$ac_cv_prog_BUILD_CC
4946 if test -n "$BUILD_CC"; then
4947 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4948 echo "${ECHO_T}$BUILD_CC" >&6; }
4950 { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4957 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4958 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4959 { (exit 1); exit 1; }; }
4960 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4962 echo 'int main () { return 0; }' > conftest.$ac_ext
4964 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4965 (eval $ac_build_link) 2>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
4969 for file in conftest.*; do
4971 *.c | *.o | *.obj | *.dSYM) ;;
4972 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4976 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4977 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4978 { (exit 1); exit 1; }; }
4981 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4986 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4987 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4988 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4989 ac_build_exeext=$BUILD_EXEEXT
4991 ac_build_prefix=${build_alias}-
4992 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4993 set dummy ${ac_build_prefix}g++; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 if test -n "$BUILD_CXX"; then
5000 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5020 if test -n "$BUILD_CXX"; then
5021 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5022 echo "${ECHO_T}$BUILD_CXX" >&6; }
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5029 if test -z "$BUILD_CXX"; then
5030 # Extract the first word of "g++", so it can be a program name with args.
5031 set dummy g++; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test -n "$BUILD_CXX"; then
5038 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_BUILD_CXX="g++"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5058 if test -n "$BUILD_CXX"; then
5059 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5060 echo "${ECHO_T}$BUILD_CXX" >&6; }
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5067 if test -z "$BUILD_CXX"; then
5068 # Extract the first word of "c++", so it can be a program name with args.
5069 set dummy c++; ac_word=$2
5070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5072 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 if test -n "$BUILD_CXX"; then
5076 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5087 ac_prog_rejected=yes
5090 ac_cv_prog_BUILD_CXX="c++"
5091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 if test $ac_prog_rejected = yes; then
5099 # We found a bogon in the path, so make sure we never use it.
5100 set dummy $ac_cv_prog_BUILD_CXX
5102 if test $# != 0; then
5103 # We chose a different compiler from the bogus one.
5104 # However, it has the same basename, so the bogon will be chosen
5105 # first if we set BUILD_CXX to just the basename; use the full file name.
5107 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5112 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5113 if test -n "$BUILD_CXX"; then
5114 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5115 echo "${ECHO_T}$BUILD_CXX" >&6; }
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5125 LLVM_CROSS_COMPILING=0
5129 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5140 # Check whether --enable-libcpp was given.
5141 if test "${enable_libcpp+set}" = set; then
5142 enableval=$enable_libcpp;
5147 case "$enableval" in
5148 yes) ENABLE_LIBCPP=1
5152 default) ENABLE_LIBCPP=0
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 # Check whether --enable-cxx11 was given.
5160 if test "${enable_cxx11+set}" = set; then
5161 enableval=$enable_cxx11;
5166 case "$enableval" in
5171 default) ENABLE_CXX11=0
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 # Check whether --enable-split-dwarf was given.
5179 if test "${enable_split_dwarf+set}" = set; then
5180 enableval=$enable_split_dwarf;
5185 case "$enableval" in
5186 yes) ENABLE_SPLIT_DWARF=1
5188 no) ENABLE_SPLIT_DWARF=0
5190 default) ENABLE_SPLIT_DWARF=0
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5198 # Check whether --enable-clang-arcmt was given.
5199 if test "${enable_clang_arcmt+set}" = set; then
5200 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5205 case "$enableval" in
5206 yes) ENABLE_CLANG_ARCMT=1
5208 no) ENABLE_CLANG_ARCMT=0
5210 default) ENABLE_CLANG_ARCMT=1
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5217 clang_static_analyzer="yes"
5218 # Check whether --enable-clang-static-analyzer was given.
5219 if test "${enable_clang_static_analyzer+set}" = set; then
5220 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5225 case "$enableval" in
5226 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5229 if test ${clang_arcmt} != "no" ; then
5230 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
5231 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
5232 { (exit 1); exit 1; }; }
5234 ENABLE_CLANG_STATIC_ANALYZER=0
5237 default) ENABLE_CLANG_STATIC_ANALYZER=1
5239 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5240 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5241 { (exit 1); exit 1; }; } ;;
5244 # Check whether --enable-clang-rewriter was given.
5245 if test "${enable_clang_rewriter+set}" = set; then
5246 enableval=$enable_clang_rewriter;
5251 case "$enableval" in
5252 yes) ENABLE_CLANG_REWRITER=1
5255 if test ${clang_arcmt} != "no" ; then
5256 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5257 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5258 { (exit 1); exit 1; }; }
5260 if test ${clang_static_analyzer} != "no" ; then
5261 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5262 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5263 { (exit 1); exit 1; }; }
5265 ENABLE_CLANG_REWRITER=0
5268 default) ENABLE_CLANG_REWRITER=1
5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5272 { (exit 1); exit 1; }; } ;;
5275 # Check whether --enable-optimized was given.
5276 if test "${enable_optimized+set}" = set; then
5277 enableval=$enable_optimized;
5282 if test ${enableval} = "no" ; then
5286 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5290 # Check whether --enable-profiling was given.
5291 if test "${enable_profiling+set}" = set; then
5292 enableval=$enable_profiling;
5297 if test ${enableval} = "no" ; then
5301 ENABLE_PROFILING=ENABLE_PROFILING=1
5305 # Check whether --enable-assertions was given.
5306 if test "${enable_assertions+set}" = set; then
5307 enableval=$enable_assertions;
5312 if test ${enableval} = "yes" ; then
5316 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5320 # Check whether --enable-werror was given.
5321 if test "${enable_werror+set}" = set; then
5322 enableval=$enable_werror;
5327 case "$enableval" in
5328 yes) ENABLE_WERROR=1
5332 default) ENABLE_WERROR=0
5334 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5335 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5339 # Check whether --enable-expensive-checks was given.
5340 if test "${enable_expensive_checks+set}" = set; then
5341 enableval=$enable_expensive_checks;
5346 if test ${enableval} = "yes" ; then
5347 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5349 EXPENSIVE_CHECKS=yes
5352 ENABLE_EXPENSIVE_CHECKS=
5358 # Check whether --enable-debug-runtime was given.
5359 if test "${enable_debug_runtime+set}" = set; then
5360 enableval=$enable_debug_runtime;
5365 if test ${enableval} = "no" ; then
5369 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5373 # Check whether --enable-debug-symbols was given.
5374 if test "${enable_debug_symbols+set}" = set; then
5375 enableval=$enable_debug_symbols;
5380 if test ${enableval} = "no" ; then
5384 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5388 # Check whether --enable-keep-symbols was given.
5389 if test "${enable_keep_symbols+set}" = set; then
5390 enableval=$enable_keep_symbols;
5395 if test ${enableval} = "no" ; then
5399 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5403 # Check whether --enable-jit was given.
5404 if test "${enable_jit+set}" = set; then
5405 enableval=$enable_jit;
5410 if test ${enableval} = "no"
5415 case "$llvm_cv_target_arch" in
5416 x86) TARGET_HAS_JIT=1
5418 Sparc) TARGET_HAS_JIT=0
5420 PowerPC) TARGET_HAS_JIT=1
5422 x86_64) TARGET_HAS_JIT=1
5424 ARM) TARGET_HAS_JIT=1
5426 AArch64) TARGET_HAS_JIT=0
5428 Mips) TARGET_HAS_JIT=1
5430 XCore) TARGET_HAS_JIT=0
5432 MSP430) TARGET_HAS_JIT=0
5434 Hexagon) TARGET_HAS_JIT=0
5436 NVPTX) TARGET_HAS_JIT=0
5438 SystemZ) TARGET_HAS_JIT=1
5445 # Check whether --enable-docs was given.
5446 if test "${enable_docs+set}" = set; then
5447 enableval=$enable_docs;
5452 case "$enableval" in
5457 default) ENABLE_DOCS=1
5459 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5460 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5464 # Check whether --enable-doxygen was given.
5465 if test "${enable_doxygen+set}" = set; then
5466 enableval=$enable_doxygen;
5471 case "$enableval" in
5472 yes) ENABLE_DOXYGEN=1
5474 no) ENABLE_DOXYGEN=0
5476 default) ENABLE_DOXYGEN=0
5478 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5479 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5480 { (exit 1); exit 1; }; } ;;
5483 # Check whether --enable-threads was given.
5484 if test "${enable_threads+set}" = set; then
5485 enableval=$enable_threads;
5490 case "$enableval" in
5491 yes) LLVM_ENABLE_THREADS=1
5493 no) LLVM_ENABLE_THREADS=0
5495 default) LLVM_ENABLE_THREADS=1
5497 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5498 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5499 { (exit 1); exit 1; }; } ;;
5502 cat >>confdefs.h <<_ACEOF
5503 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5507 # Check whether --enable-pthreads was given.
5508 if test "${enable_pthreads+set}" = set; then
5509 enableval=$enable_pthreads;
5514 case "$enableval" in
5515 yes) ENABLE_PTHREADS=1
5517 no) ENABLE_PTHREADS=0
5519 default) ENABLE_PTHREADS=1
5521 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5522 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5523 { (exit 1); exit 1; }; } ;;
5526 # Check whether --enable-zlib was given.
5527 if test "${enable_zlib+set}" = set; then
5528 enableval=$enable_zlib;
5533 case "$enableval" in
5534 yes) LLVM_ENABLE_ZLIB=1
5536 no) LLVM_ENABLE_ZLIB=0
5538 default) LLVM_ENABLE_ZLIB=1
5540 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5541 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5542 { (exit 1); exit 1; }; } ;;
5545 cat >>confdefs.h <<_ACEOF
5546 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5550 # Check whether --enable-pic was given.
5551 if test "${enable_pic+set}" = set; then
5552 enableval=$enable_pic;
5557 case "$enableval" in
5562 default) ENABLE_PIC=1
5564 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5565 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5566 { (exit 1); exit 1; }; } ;;
5569 cat >>confdefs.h <<_ACEOF
5570 #define ENABLE_PIC $ENABLE_PIC
5574 # Check whether --enable-shared was given.
5575 if test "${enable_shared+set}" = set; then
5576 enableval=$enable_shared;
5581 case "$enableval" in
5582 yes) ENABLE_SHARED=1
5586 default) ENABLE_SHARED=0
5588 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5589 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5590 { (exit 1); exit 1; }; } ;;
5593 # Check whether --enable-embed-stdcxx was given.
5594 if test "${enable_embed_stdcxx+set}" = set; then
5595 enableval=$enable_embed_stdcxx;
5600 case "$enableval" in
5601 yes) ENABLE_EMBED_STDCXX=1
5603 no) ENABLE_EMBED_STDCXX=0
5605 default) ENABLE_EMBED_STDCXX=0
5607 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5608 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5609 { (exit 1); exit 1; }; } ;;
5612 # Check whether --enable-timestamps was given.
5613 if test "${enable_timestamps+set}" = set; then
5614 enableval=$enable_timestamps;
5619 case "$enableval" in
5620 yes) ENABLE_TIMESTAMPS=1
5622 no) ENABLE_TIMESTAMPS=0
5624 default) ENABLE_TIMESTAMPS=1
5626 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5627 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5628 { (exit 1); exit 1; }; } ;;
5631 cat >>confdefs.h <<_ACEOF
5632 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5636 # Check whether --enable-backtraces was given.
5637 if test "${enable_backtraces+set}" = set; then
5638 enableval=$enable_backtraces; case "$enableval" in
5639 yes) llvm_cv_enable_backtraces="yes" ;;
5640 no) llvm_cv_enable_backtraces="no" ;;
5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5642 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5643 { (exit 1); exit 1; }; } ;;
5646 llvm_cv_enable_backtraces="yes"
5649 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5651 cat >>confdefs.h <<\_ACEOF
5652 #define ENABLE_BACKTRACES 1
5657 # Check whether --enable-crash-overrides was given.
5658 if test "${enable_crash_overrides+set}" = set; then
5659 enableval=$enable_crash_overrides; case "$enableval" in
5660 yes) llvm_cv_enable_crash_overrides="yes" ;;
5661 no) llvm_cv_enable_crash_overrides="no" ;;
5662 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5663 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5664 { (exit 1); exit 1; }; } ;;
5667 llvm_cv_enable_crash_overrides="yes"
5670 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5672 cat >>confdefs.h <<\_ACEOF
5673 #define ENABLE_CRASH_OVERRIDES 1
5679 # Check whether --enable-targets was given.
5680 if test "${enable_targets+set}" = set; then
5681 enableval=$enable_targets;
5686 if test "$enableval" = host-only ; then
5689 case "$enableval" in
5690 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5691 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5693 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5694 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5695 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5696 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5697 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5698 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5699 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5700 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5701 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5702 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5703 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5704 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5705 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5706 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5707 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5708 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5709 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5710 host) case "$llvm_cv_target_arch" in
5711 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5712 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5713 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5714 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5715 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5716 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5717 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5718 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5719 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5720 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5721 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5722 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5723 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5724 echo "$as_me: error: Can not set target to build" >&2;}
5725 { (exit 1); exit 1; }; } ;;
5727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5729 { (exit 1); exit 1; }; } ;;
5735 # Check whether --enable-experimental-targets was given.
5736 if test "${enable_experimental_targets+set}" = set; then
5737 enableval=$enable_experimental_targets;
5743 if test ${enableval} != "disable"
5745 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5748 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5751 for a_target in $TARGETS_TO_BUILD; do
5752 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5754 cat >>confdefs.h <<_ACEOF
5755 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5758 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5759 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5760 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5761 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5762 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5763 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5765 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5766 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5774 cat >>confdefs.h <<_ACEOF
5775 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5779 cat >>confdefs.h <<_ACEOF
5780 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5784 cat >>confdefs.h <<_ACEOF
5785 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5788 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5795 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5797 cat >>confdefs.h <<_ACEOF
5798 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5805 LLVM_ENUM_TARGETS=""
5806 LLVM_ENUM_ASM_PRINTERS=""
5807 LLVM_ENUM_ASM_PARSERS=""
5808 LLVM_ENUM_DISASSEMBLERS=""
5809 for target_to_build in $TARGETS_TO_BUILD; do
5810 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5811 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5812 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5814 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5815 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5817 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5818 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5827 # Check whether --with-optimize-option was given.
5828 if test "${with_optimize_option+set}" = set; then
5829 withval=$with_optimize_option;
5834 { echo "$as_me:$LINENO: checking optimization flags" >&5
5835 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5838 case "$llvm_cv_os_type" in
5839 FreeBSD) optimize_option=-O2 ;;
5840 MingW) optimize_option=-O2 ;;
5841 *) optimize_option=-O3 ;;
5843 *) optimize_option="$withval" ;;
5845 OPTIMIZE_OPTION=$optimize_option
5847 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5848 echo "${ECHO_T}$optimize_option" >&6; }
5851 # Check whether --with-extra-options was given.
5852 if test "${with_extra_options+set}" = set; then
5853 withval=$with_extra_options;
5859 default) EXTRA_OPTIONS= ;;
5860 *) EXTRA_OPTIONS=$withval ;;
5862 EXTRA_OPTIONS=$EXTRA_OPTIONS
5866 # Check whether --with-extra-ld-options was given.
5867 if test "${with_extra_ld_options+set}" = set; then
5868 withval=$with_extra_ld_options;
5874 default) EXTRA_LD_OPTIONS= ;;
5875 *) EXTRA_LD_OPTIONS=$withval ;;
5877 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5880 # Check whether --enable-bindings was given.
5881 if test "${enable_bindings+set}" = set; then
5882 enableval=$enable_bindings;
5887 BINDINGS_TO_BUILD=""
5888 case "$enableval" in
5889 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5890 all ) BINDINGS_TO_BUILD="ocaml" ;;
5891 none | no) BINDINGS_TO_BUILD="" ;;
5892 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5893 case "$a_binding" in
5894 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5895 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5896 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5897 { (exit 1); exit 1; }; } ;;
5904 # Check whether --with-ocaml-libdir was given.
5905 if test "${with_ocaml_libdir+set}" = set; then
5906 withval=$with_ocaml_libdir;
5912 auto) with_ocaml_libdir="$withval" ;;
5913 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5914 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5915 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5916 { (exit 1); exit 1; }; } ;;
5920 # Check whether --with-clang-srcdir was given.
5921 if test "${with_clang_srcdir+set}" = set; then
5922 withval=$with_clang_srcdir;
5928 -) clang_src_root="" ;;
5929 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5930 *) clang_src_root="$ac_pwd/$withval" ;;
5932 CLANG_SRC_ROOT=$clang_src_root
5936 # Check whether --with-clang-resource-dir was given.
5937 if test "${with_clang_resource_dir+set}" = set; then
5938 withval=$with_clang_resource_dir;
5944 cat >>confdefs.h <<_ACEOF
5945 #define CLANG_RESOURCE_DIR "$withval"
5950 # Check whether --with-c-include-dirs was given.
5951 if test "${with_c_include_dirs+set}" = set; then
5952 withval=$with_c_include_dirs;
5958 cat >>confdefs.h <<_ACEOF
5959 #define C_INCLUDE_DIRS "$withval"
5963 # Clang normally uses the system c++ headers and libraries. With this option,
5964 # clang will use the ones provided by a gcc installation instead. This option should
5965 # be passed the same value that was used with --prefix when configuring gcc.
5967 # Check whether --with-gcc-toolchain was given.
5968 if test "${with_gcc_toolchain+set}" = set; then
5969 withval=$with_gcc_toolchain;
5975 cat >>confdefs.h <<_ACEOF
5976 #define GCC_INSTALL_PREFIX "$withval"
5981 # Check whether --with-default-sysroot was given.
5982 if test "${with_default_sysroot+set}" = set; then
5983 withval=$with_default_sysroot;
5989 cat >>confdefs.h <<_ACEOF
5990 #define DEFAULT_SYSROOT "$withval"
5995 # Check whether --with-binutils-include was given.
5996 if test "${with_binutils_include+set}" = set; then
5997 withval=$with_binutils_include;
6003 default) WITH_BINUTILS_INCDIR=default ;;
6004 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
6005 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
6006 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
6007 { (exit 1); exit 1; }; } ;;
6009 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
6010 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
6012 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
6013 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
6014 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
6015 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
6016 { (exit 1); exit 1; }; };
6021 # Check whether --with-bug-report-url was given.
6022 if test "${with_bug_report_url+set}" = set; then
6023 withval=$with_bug_report_url;
6025 withval="http://llvm.org/bugs/"
6029 cat >>confdefs.h <<_ACEOF
6030 #define BUG_REPORT_URL "$withval"
6034 # Check whether --enable-terminfo was given.
6035 if test "${enable_terminfo+set}" = set; then
6036 enableval=$enable_terminfo; case "$enableval" in
6037 yes) llvm_cv_enable_terminfo="yes" ;;
6038 no) llvm_cv_enable_terminfo="no" ;;
6039 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6040 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6041 { (exit 1); exit 1; }; } ;;
6044 llvm_cv_enable_terminfo="yes"
6048 # Check whether --enable-libffi was given.
6049 if test "${enable_libffi+set}" = set; then
6050 enableval=$enable_libffi; case "$enableval" in
6051 yes) llvm_cv_enable_libffi="yes" ;;
6052 no) llvm_cv_enable_libffi="no" ;;
6053 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6054 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6055 { (exit 1); exit 1; }; } ;;
6058 llvm_cv_enable_libffi=no
6063 # Check whether --with-internal-prefix was given.
6064 if test "${with_internal_prefix+set}" = set; then
6065 withval=$with_internal_prefix;
6070 INTERNAL_PREFIX=$withval
6074 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6075 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6076 if test "${lt_cv_path_NM+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 if test -n "$NM"; then
6080 # Let the user override the test.
6083 lt_nm_to_check="${ac_tool_prefix}nm"
6084 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6085 lt_nm_to_check="$lt_nm_to_check nm"
6087 for lt_tmp_nm in $lt_nm_to_check; do
6088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6089 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6091 test -z "$ac_dir" && ac_dir=.
6092 tmp_nm="$ac_dir/$lt_tmp_nm"
6093 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6094 # Check to see if the nm accepts a BSD-compat flag.
6095 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6096 # nm: unknown option "B" ignored
6097 # Tru64's nm complains that /dev/null is an invalid object file
6098 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6099 */dev/null* | *'Invalid file or object type'*)
6100 lt_cv_path_NM="$tmp_nm -B"
6104 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6106 lt_cv_path_NM="$tmp_nm -p"
6110 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6111 continue # so that we can try to find one that supports BSD flags
6120 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6123 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6124 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6129 { echo "$as_me:$LINENO: checking for GNU make" >&5
6130 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6131 if test "${llvm_cv_gnu_make_command+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 llvm_cv_gnu_make_command=''
6135 for a in "$MAKE" make gmake gnumake ; do
6136 if test -z "$a" ; then continue ; fi ;
6137 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6139 llvm_cv_gnu_make_command=$a ;
6144 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6145 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6146 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6150 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6151 echo "${ECHO_T}\"Not found\"" >&6; };
6155 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6158 if test "$LN_S" = "ln -s"; then
6159 { echo "$as_me:$LINENO: result: yes" >&5
6160 echo "${ECHO_T}yes" >&6; }
6162 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6163 echo "${ECHO_T}no, using $LN_S" >&6; }
6166 # Extract the first word of "cmp", so it can be a program name with args.
6167 set dummy cmp; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_path_CMP+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6198 if test -n "$CMP"; then
6199 { echo "$as_me:$LINENO: result: $CMP" >&5
6200 echo "${ECHO_T}$CMP" >&6; }
6202 { echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6; }
6207 # Extract the first word of "cp", so it can be a program name with args.
6208 set dummy cp; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_path_CP+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_cv_path_CP="$CP" # Let the user override the test with a path.
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_path_CP="$as_dir/$ac_word$ac_exec_ext"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6239 if test -n "$CP"; then
6240 { echo "$as_me:$LINENO: result: $CP" >&5
6241 echo "${ECHO_T}$CP" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6248 # Extract the first word of "date", so it can be a program name with args.
6249 set dummy date; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_DATE+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6279 DATE=$ac_cv_path_DATE
6280 if test -n "$DATE"; then
6281 { echo "$as_me:$LINENO: result: $DATE" >&5
6282 echo "${ECHO_T}$DATE" >&6; }
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6289 # Extract the first word of "find", so it can be a program name with args.
6290 set dummy find; ac_word=$2
6291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6293 if test "${ac_cv_path_FIND+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6320 FIND=$ac_cv_path_FIND
6321 if test -n "$FIND"; then
6322 { echo "$as_me:$LINENO: result: $FIND" >&5
6323 echo "${ECHO_T}$FIND" >&6; }
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6330 # Extract the first word of "grep", so it can be a program name with args.
6331 set dummy grep; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_path_GREP+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6361 GREP=$ac_cv_path_GREP
6362 if test -n "$GREP"; then
6363 { echo "$as_me:$LINENO: result: $GREP" >&5
6364 echo "${ECHO_T}$GREP" >&6; }
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6371 # Extract the first word of "mkdir", so it can be a program name with args.
6372 set dummy mkdir; ac_word=$2
6373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6375 if test "${ac_cv_path_MKDIR+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6402 MKDIR=$ac_cv_path_MKDIR
6403 if test -n "$MKDIR"; then
6404 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6405 echo "${ECHO_T}$MKDIR" >&6; }
6407 { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6412 # Extract the first word of "mv", so it can be a program name with args.
6413 set dummy mv; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_path_MV+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6444 if test -n "$MV"; then
6445 { echo "$as_me:$LINENO: result: $MV" >&5
6446 echo "${ECHO_T}$MV" >&6; }
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -n "$RANLIB"; then
6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6484 echo "${ECHO_T}$RANLIB" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493 ac_ct_RANLIB=$RANLIB
6494 # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 if test -n "$ac_ct_RANLIB"; then
6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_RANLIB="ranlib"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6524 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6530 if test "x$ac_ct_RANLIB" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6536 whose name does not start with the host triplet. If you think this
6537 configuration is useful to you, please write to autoconf@gnu.org." >&5
6538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6539 whose name does not start with the host triplet. If you think this
6540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6541 ac_tool_warned=yes ;;
6543 RANLIB=$ac_ct_RANLIB
6546 RANLIB="$ac_cv_prog_RANLIB"
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554 if test "${ac_cv_prog_AR+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 if test -n "$AR"; then
6579 { echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6; }
6582 { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6588 if test -z "$ac_cv_prog_AR"; then
6590 # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_ac_ct_AR="ar"
6608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6620 echo "${ECHO_T}$ac_ct_AR" >&6; }
6622 { echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6; }
6626 if test "x$ac_ct_AR" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6632 whose name does not start with the host triplet. If you think this
6633 configuration is useful to you, please write to autoconf@gnu.org." >&5
6634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet. If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6637 ac_tool_warned=yes ;;
6645 # Extract the first word of "rm", so it can be a program name with args.
6646 set dummy rm; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_RM+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6677 if test -n "$RM"; then
6678 { echo "$as_me:$LINENO: result: $RM" >&5
6679 echo "${ECHO_T}$RM" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "sed", so it can be a program name with args.
6687 set dummy sed; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_SED+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6718 if test -n "$SED"; then
6719 { echo "$as_me:$LINENO: result: $SED" >&5
6720 echo "${ECHO_T}$SED" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "tar", so it can be a program name with args.
6728 set dummy tar; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TAR+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6759 if test -n "$TAR"; then
6760 { echo "$as_me:$LINENO: result: $TAR" >&5
6761 echo "${ECHO_T}$TAR" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 # Extract the first word of "pwd", so it can be a program name with args.
6769 set dummy pwd; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_BINPWD+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6799 BINPWD=$ac_cv_path_BINPWD
6800 if test -n "$BINPWD"; then
6801 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6802 echo "${ECHO_T}$BINPWD" >&6; }
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6810 # Extract the first word of "Graphviz", so it can be a program name with args.
6811 set dummy Graphviz; ac_word=$2
6812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6829 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6841 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6842 if test -n "$GRAPHVIZ"; then
6843 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6844 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6851 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_GRAPHVIZ 1
6857 if test "$llvm_cv_os_type" = "MingW" ; then
6858 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861 cat >>confdefs.h <<_ACEOF
6862 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6866 # Extract the first word of "dot", so it can be a program name with args.
6867 set dummy dot; ac_word=$2
6868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6870 if test "${ac_cv_path_DOT+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6898 if test -n "$DOT"; then
6899 { echo "$as_me:$LINENO: result: $DOT" >&5
6900 echo "${ECHO_T}$DOT" >&6; }
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6907 if test "$DOT" != "echo dot" ; then
6909 cat >>confdefs.h <<\_ACEOF
6913 if test "$llvm_cv_os_type" = "MingW" ; then
6914 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6917 cat >>confdefs.h <<_ACEOF
6918 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6922 # Extract the first word of "fdp", so it can be a program name with args.
6923 set dummy fdp; 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_FDP+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_cv_path_FDP="$FDP" # 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_FDP="$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_FDP" && ac_cv_path_FDP="echo fdp"
6954 if test -n "$FDP"; then
6955 { echo "$as_me:$LINENO: result: $FDP" >&5
6956 echo "${ECHO_T}$FDP" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 if test "$FDP" != "echo fdp" ; then
6965 cat >>confdefs.h <<\_ACEOF
6969 if test "$llvm_cv_os_type" = "MingW" ; then
6970 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6973 cat >>confdefs.h <<_ACEOF
6974 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6978 # Extract the first word of "neato", so it can be a program name with args.
6979 set dummy neato; 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_NEATO+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 ac_cv_path_NEATO="$NEATO" # 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_NEATO="$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_NEATO" && ac_cv_path_NEATO="echo neato"
7009 NEATO=$ac_cv_path_NEATO
7010 if test -n "$NEATO"; then
7011 { echo "$as_me:$LINENO: result: $NEATO" >&5
7012 echo "${ECHO_T}$NEATO" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7019 if test "$NEATO" != "echo neato" ; then
7021 cat >>confdefs.h <<\_ACEOF
7022 #define HAVE_NEATO 1
7025 if test "$llvm_cv_os_type" = "MingW" ; then
7026 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 cat >>confdefs.h <<_ACEOF
7030 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7034 # Extract the first word of "twopi", so it can be a program name with args.
7035 set dummy twopi; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_TWOPI+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7065 TWOPI=$ac_cv_path_TWOPI
7066 if test -n "$TWOPI"; then
7067 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7068 echo "${ECHO_T}$TWOPI" >&6; }
7070 { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7075 if test "$TWOPI" != "echo twopi" ; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define HAVE_TWOPI 1
7081 if test "$llvm_cv_os_type" = "MingW" ; then
7082 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7085 cat >>confdefs.h <<_ACEOF
7086 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7090 # Extract the first word of "circo", so it can be a program name with args.
7091 set dummy circo; ac_word=$2
7092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7094 if test "${ac_cv_path_CIRCO+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7121 CIRCO=$ac_cv_path_CIRCO
7122 if test -n "$CIRCO"; then
7123 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7124 echo "${ECHO_T}$CIRCO" >&6; }
7126 { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7131 if test "$CIRCO" != "echo circo" ; then
7133 cat >>confdefs.h <<\_ACEOF
7134 #define HAVE_CIRCO 1
7137 if test "$llvm_cv_os_type" = "MingW" ; then
7138 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7141 cat >>confdefs.h <<_ACEOF
7142 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7146 for ac_prog in gv gsview32
7148 # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_GV+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 if test -n "$GV"; then
7180 { echo "$as_me:$LINENO: result: $GV" >&5
7181 echo "${ECHO_T}$GV" >&6; }
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7188 test -n "$GV" && break
7190 test -n "$GV" || GV="echo gv"
7192 if test "$GV" != "echo gv" ; then
7194 cat >>confdefs.h <<\_ACEOF
7198 if test "$llvm_cv_os_type" = "MingW" ; then
7199 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202 cat >>confdefs.h <<_ACEOF
7203 #define LLVM_PATH_GV "$GV${EXEEXT}"
7207 # Extract the first word of "dotty", so it can be a program name with args.
7208 set dummy dotty; ac_word=$2
7209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7211 if test "${ac_cv_path_DOTTY+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7238 DOTTY=$ac_cv_path_DOTTY
7239 if test -n "$DOTTY"; then
7240 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7241 echo "${ECHO_T}$DOTTY" >&6; }
7243 { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7248 if test "$DOTTY" != "echo dotty" ; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_DOTTY 1
7254 if test "$llvm_cv_os_type" = "MingW" ; then
7255 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7258 cat >>confdefs.h <<_ACEOF
7259 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7263 for ac_prog in xdot xdot.py
7265 # Extract the first word of "$ac_prog", so it can be a program name with args.
7266 set dummy $ac_prog; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_XDOT+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 XDOT=$ac_cv_path_XDOT
7296 if test -n "$XDOT"; then
7297 { echo "$as_me:$LINENO: result: $XDOT" >&5
7298 echo "${ECHO_T}$XDOT" >&6; }
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7305 test -n "$XDOT" && break
7307 test -n "$XDOT" || XDOT="echo xdot"
7309 if test "$XDOT" != "echo xdot" ; then
7311 cat >>confdefs.h <<\_ACEOF
7315 if test "$llvm_cv_os_type" = "MingW" ; then
7316 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7319 cat >>confdefs.h <<_ACEOF
7320 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7325 # Find a good install program. We prefer a C program (faster),
7326 # so one script is as good as another. But avoid the broken or
7327 # incompatible versions:
7328 # SysV /etc/install, /usr/sbin/install
7329 # SunOS /usr/etc/install
7330 # IRIX /sbin/install
7332 # AmigaOS /C/install, which installs bootblocks on floppy discs
7333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7336 # OS/2's system install, which has a completely different semantic
7337 # ./install, which can be erroneously created by make from ./install.sh.
7338 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7340 if test -z "$INSTALL"; then
7341 if test "${ac_cv_path_install+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 # Account for people who put trailing slashes in PATH elements.
7351 ./ | .// | /cC/* | \
7352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7356 # OSF1 and SCO ODT 3.0 have their own names for install.
7357 # Don't use installbsd from OSF since it installs stuff as root
7359 for ac_prog in ginstall scoinst install; do
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7362 if test $ac_prog = install &&
7363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7364 # AIX install. It has an incompatible calling convention.
7366 elif test $ac_prog = install &&
7367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7368 # program-specific install script used by HP pwplus--don't use.
7371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7384 if test "${ac_cv_path_install+set}" = set; then
7385 INSTALL=$ac_cv_path_install
7387 # As a last resort, use the slow shell script. Don't cache a
7388 # value for INSTALL within a source directory, because that will
7389 # break other packages using the cache if that directory is
7390 # removed, or if the value is a relative name.
7391 INSTALL=$ac_install_sh
7394 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7395 echo "${ECHO_T}$INSTALL" >&6; }
7397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398 # It thinks the first close brace ends the variable substitution.
7399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7401 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7403 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7406 [\\/$]* | ?:[\\/]* ) ;;
7407 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7410 # Extract the first word of "bzip2", so it can be a program name with args.
7411 set dummy bzip2; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_path_BZIP2+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 BZIP2=$ac_cv_path_BZIP2
7441 if test -n "$BZIP2"; then
7442 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7443 echo "${ECHO_T}$BZIP2" >&6; }
7445 { echo "$as_me:$LINENO: result: no" >&5
7446 echo "${ECHO_T}no" >&6; }
7450 # Extract the first word of "cat", so it can be a program name with args.
7451 set dummy cat; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_CAT+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 if test -n "$CAT"; then
7482 { echo "$as_me:$LINENO: result: $CAT" >&5
7483 echo "${ECHO_T}$CAT" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 # Extract the first word of "doxygen", so it can be a program name with args.
7491 set dummy doxygen; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 DOXYGEN=$ac_cv_path_DOXYGEN
7521 if test -n "$DOXYGEN"; then
7522 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7523 echo "${ECHO_T}$DOXYGEN" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 # Extract the first word of "groff", so it can be a program name with args.
7531 set dummy groff; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_GROFF+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 GROFF=$ac_cv_path_GROFF
7561 if test -n "$GROFF"; then
7562 { echo "$as_me:$LINENO: result: $GROFF" >&5
7563 echo "${ECHO_T}$GROFF" >&6; }
7565 { echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6; }
7570 # Extract the first word of "gzip", so it can be a program name with args.
7571 set dummy gzip; ac_word=$2
7572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7574 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7589 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 GZIPBIN=$ac_cv_path_GZIPBIN
7601 if test -n "$GZIPBIN"; then
7602 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7603 echo "${ECHO_T}$GZIPBIN" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 # Extract the first word of "pdfroff", so it can be a program name with args.
7611 set dummy pdfroff; ac_word=$2
7612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7614 if test "${ac_cv_path_PDFROFF+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 PDFROFF=$ac_cv_path_PDFROFF
7641 if test -n "$PDFROFF"; then
7642 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7643 echo "${ECHO_T}$PDFROFF" >&6; }
7645 { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7650 # Extract the first word of "zip", so it can be a program name with args.
7651 set dummy zip; ac_word=$2
7652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654 if test "${ac_cv_path_ZIP+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 if test -n "$ZIP"; then
7682 { echo "$as_me:$LINENO: result: $ZIP" >&5
7683 echo "${ECHO_T}$ZIP" >&6; }
7685 { echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6; }
7690 for ac_prog in ocamlc
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_OCAMLC+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 OCAMLC=$ac_cv_path_OCAMLC
7723 if test -n "$OCAMLC"; then
7724 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7725 echo "${ECHO_T}$OCAMLC" >&6; }
7727 { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7732 test -n "$OCAMLC" && break
7735 for ac_prog in ocamlopt
7737 # Extract the first word of "$ac_prog", so it can be a program name with args.
7738 set dummy $ac_prog; ac_word=$2
7739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7741 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7756 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 OCAMLOPT=$ac_cv_path_OCAMLOPT
7768 if test -n "$OCAMLOPT"; then
7769 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7770 echo "${ECHO_T}$OCAMLOPT" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7777 test -n "$OCAMLOPT" && break
7780 for ac_prog in ocamldep
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812 OCAMLDEP=$ac_cv_path_OCAMLDEP
7813 if test -n "$OCAMLDEP"; then
7814 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7815 echo "${ECHO_T}$OCAMLDEP" >&6; }
7817 { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7822 test -n "$OCAMLDEP" && break
7825 for ac_prog in ocamldoc
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 OCAMLDOC=$ac_cv_path_OCAMLDOC
7858 if test -n "$OCAMLDOC"; then
7859 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7860 echo "${ECHO_T}$OCAMLDOC" >&6; }
7862 { echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6; }
7867 test -n "$OCAMLDOC" && break
7870 for ac_prog in gas as
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7876 if test "${ac_cv_path_GAS+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 if test -n "$GAS"; then
7904 { echo "$as_me:$LINENO: result: $GAS" >&5
7905 echo "${ECHO_T}$GAS" >&6; }
7907 { echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6; }
7912 test -n "$GAS" && break
7916 { echo "$as_me:$LINENO: checking for linker version" >&5
7917 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7918 if test "${llvm_cv_link_version+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 version_string="$(ld -v 2>&1 | head -1)"
7925 if (echo "$version_string" | grep -q "ld64"); then
7926 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7928 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7932 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7933 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7935 cat >>confdefs.h <<_ACEOF
7936 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7941 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7942 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7943 if test "${llvm_cv_link_use_r+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 ac_cpp='$CPP $CPPFLAGS'
7948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7953 CFLAGS="$CFLAGS -Wl,-R."
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (ac_try="$ac_link"
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_link") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984 { (case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_try") 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest$ac_exeext'
7994 { (case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_try") 2>&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; }; then
8003 llvm_cv_link_use_r=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 llvm_cv_link_use_r=no
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8023 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8024 if test "$llvm_cv_link_use_r" = yes ; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_LINK_R 1
8033 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
8034 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
8035 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 ac_cpp='$CPP $CPPFLAGS'
8040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045 CFLAGS="$CFLAGS -rdynamic"
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (ac_try="$ac_link"
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_link") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_try") 2>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 llvm_cv_link_use_export_dynamic=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 llvm_cv_link_use_export_dynamic=no
8103 rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8107 ac_cpp='$CPP $CPPFLAGS'
8108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8114 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8115 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8116 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8118 cat >>confdefs.h <<\_ACEOF
8119 #define HAVE_LINK_EXPORT_DYNAMIC 1
8125 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8126 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8127 if test "${llvm_cv_link_use_version_script+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 ac_cpp='$CPP $CPPFLAGS'
8132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138 # The following code is from the autoconf manual,
8139 # "11.13: Limitations of Usual Tools".
8140 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8141 # Use mktemp if possible; otherwise fall back on mkdir,
8142 # with $RANDOM to make collisions less likely.
8146 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8148 test -n "$tmp" && test -d "$tmp"
8150 tmp=$TMPDIR/foo$$-$RANDOM
8151 (umask 077 && mkdir "$tmp")
8154 echo "{" > "$tmp/export.map"
8155 echo " global: main;" >> "$tmp/export.map"
8156 echo " local: *;" >> "$tmp/export.map"
8157 echo "};" >> "$tmp/export.map"
8159 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1 >conftest.err
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8190 { (case "(($ac_try" in
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_try") 2>&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 llvm_cv_link_use_version_script=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 llvm_cv_link_use_version_script=no
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8219 rm "$tmp/export.map"
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8231 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8232 if test "$llvm_cv_link_use_version_script" = yes ; then
8233 HAVE_LINK_VERSION_SCRIPT=1
8240 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8241 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8242 if test "${ac_cv_c_const+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.$ac_ext <<_ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8255 /* FIXME: Include the comments suggested by Paul. */
8257 /* Ultrix mips cc rejects this. */
8258 typedef int charset[2];
8260 /* SunOS 4.1.1 cc rejects this. */
8261 char const *const *ccp;
8263 /* NEC SVR4.0.2 mips cc rejects this. */
8264 struct point {int x, y;};
8265 static struct point const zero = {0,0};
8266 /* AIX XL C 1.02.0.0 rejects this.
8267 It does not let you subtract one const X* pointer from another in
8268 an arm of an if-expression whose if-part is not a constant
8270 const char *g = "string";
8271 ccp = &g + (g ? g-g : 0);
8272 /* HPUX 7.0 cc rejects these. */
8275 ccp = (char const *const *) p;
8276 { /* SCO 3.2v4 cc rejects this. */
8278 char const *s = 0 ? (char *) 0 : (char const *) 0;
8283 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8285 const int *foo = &x[0];
8288 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8289 typedef const int *iptr;
8293 { /* AIX XL C 1.02.0.0 rejects this saying
8294 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8295 struct s { int j; const int *ap[3]; };
8296 struct s *b; b->j = 5;
8298 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8302 return !x[0] && !zero.x;
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8354 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8355 if test $ac_cv_c_const = no; then
8357 cat >>confdefs.h <<\_ACEOF
8369 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8370 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8371 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8372 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 #include <sys/types.h>
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8403 grep -v '^ *+' conftest.er1 >conftest.err
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8409 { (case "(($ac_try" in
8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_try") 2>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; } &&
8418 { ac_try='test -s conftest.$ac_objext'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 eval "$as_ac_Header=yes"
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 eval "$as_ac_Header=no"
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 ac_res=`eval echo '${'$as_ac_Header'}'`
8439 { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442 cat >>confdefs.h <<_ACEOF
8443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8446 ac_header_dirent=$ac_hdr; break
8450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8451 if test $ac_header_dirent = dirent.h; then
8452 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8454 if test "${ac_cv_search_opendir+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_func_search_save_LIBS=$LIBS
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any GCC internal prototype to avoid an error.
8466 Use char because int might match the return type of a GCC
8467 builtin and then its argument prototype would still apply. */
8480 for ac_lib in '' dir; do
8481 if test -z "$ac_lib"; then
8482 ac_res="none required"
8485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (ac_try="$ac_link"
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494 (eval "$ac_link") 2>conftest.er1
8496 grep -v '^ *+' conftest.er1 >conftest.err
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest$ac_exeext'
8512 { (case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_try") 2>&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_search_opendir=$ac_res
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8529 rm -f core conftest.err conftest.$ac_objext \
8531 if test "${ac_cv_search_opendir+set}" = set; then
8535 if test "${ac_cv_search_opendir+set}" = set; then
8538 ac_cv_search_opendir=no
8541 LIBS=$ac_func_search_save_LIBS
8543 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8544 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8545 ac_res=$ac_cv_search_opendir
8546 if test "$ac_res" != no; then
8547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8552 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8553 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8554 if test "${ac_cv_search_opendir+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 ac_func_search_save_LIBS=$LIBS
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8580 for ac_lib in '' x; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602 { (case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_try") 2>&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617 (eval "$ac_try") 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_search_opendir=$ac_res
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -f core conftest.err conftest.$ac_objext \
8631 if test "${ac_cv_search_opendir+set}" = set; then
8635 if test "${ac_cv_search_opendir+set}" = set; then
8638 ac_cv_search_opendir=no
8641 LIBS=$ac_func_search_save_LIBS
8643 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8644 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8645 ac_res=$ac_cv_search_opendir
8646 if test "$ac_res" != no; then
8647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8654 for ac_header in dlfcn.h
8656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 ac_res=`eval echo '${'$as_ac_Header'}'`
8664 { echo "$as_me:$LINENO: result: $ac_res" >&5
8665 echo "${ECHO_T}$ac_res" >&6; }
8667 # Is the header compilable?
8668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8677 #include <$ac_header>
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694 { (case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_try") 2>&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_header_compiler=yes
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_header_compiler=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8723 echo "${ECHO_T}$ac_header_compiler" >&6; }
8725 # Is the header present?
8726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 #include <$ac_header>
8736 if { (ac_try="$ac_cpp conftest.$ac_ext"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8758 if test -z "$ac_cpp_err"; then
8759 ac_header_preproc=yes
8761 echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8764 ac_header_preproc=no
8767 rm -f conftest.err conftest.$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8769 echo "${ECHO_T}$ac_header_preproc" >&6; }
8771 # So? What about this header?
8772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8778 ac_header_preproc=yes
8781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8794 ## ------------------------------------ ##
8795 ## Report this to http://llvm.org/bugs/ ##
8796 ## ------------------------------------ ##
8798 ) | sed "s/^/$as_me: WARNING: /" >&2
8801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 eval "$as_ac_Header=\$ac_header_preproc"
8808 ac_res=`eval echo '${'$as_ac_Header'}'`
8809 { echo "$as_me:$LINENO: result: $ac_res" >&5
8810 echo "${ECHO_T}$ac_res" >&6; }
8813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8822 # Check whether --enable-ltdl-install was given.
8823 if test "${enable_ltdl_install+set}" = set; then
8824 enableval=$enable_ltdl_install;
8830 if test x"${enable_ltdl_install-no}" != xno; then
8832 INSTALL_LTDL_FALSE='#'
8834 INSTALL_LTDL_TRUE='#'
8840 if test x"${enable_ltdl_convenience-no}" != xno; then
8841 CONVENIENCE_LTDL_TRUE=
8842 CONVENIENCE_LTDL_FALSE='#'
8844 CONVENIENCE_LTDL_TRUE='#'
8845 CONVENIENCE_LTDL_FALSE=
8849 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8850 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8852 libname_spec='lib$name'
8860 shlibpath_overrides_runpath=unknown
8862 dynamic_linker="$host_os ld.so"
8863 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8864 if test "$GCC" = yes; then
8865 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8866 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8867 # if the path contains ";" then we assume it to be the separator
8868 # otherwise default to the standard path separator (i.e. ":") - it is
8869 # assumed that no part of a normal pathname contains ";" but that should
8870 # okay in the real world where ";" in dirpaths is itself problematic.
8871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8873 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8876 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8878 need_lib_prefix=unknown
8879 hardcode_into_libs=no
8881 # when you set need_version to no, make sure it does not cause -set_version
8882 # flags to be left without arguments
8883 need_version=unknown
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8889 shlibpath_var=LIBPATH
8891 # AIX 3 has no versioning support, so we append a major version to the name.
8892 soname_spec='${libname}${release}${shared_ext}$major'
8899 hardcode_into_libs=yes
8900 if test "$host_cpu" = ia64; then
8901 # AIX 5 supports IA64
8902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8903 shlibpath_var=LD_LIBRARY_PATH
8905 # With GCC up to 2.95.x, collect2 would create an import file
8906 # for dependence libraries. The import file would start with
8907 # the line `#! .'. This would cause the generated library to
8908 # depend on `.', always an invalid library. This was fixed in
8909 # development snapshots of GCC prior to 3.0.
8911 aix4 | aix4.[01] | aix4.[01].*)
8912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8914 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8922 # soname into executable. Probably we can add versioning support to
8923 # collect2, so additional links can be useful in future.
8924 if test "$aix_use_runtimelinking" = yes; then
8925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8926 # instead of lib<name>.a to let people know that these are not
8927 # typical AIX shared libraries.
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 # We preserve .a as extension for shared libraries through AIX4.2
8931 # and later when we are not doing run time linking.
8932 library_names_spec='${libname}${release}.a $libname.a'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LIBPATH
8940 library_names_spec='$libname.ixlibrary $libname.a'
8941 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8942 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'
8946 library_names_spec='${libname}${shared_ext}'
8947 dynamic_linker="$host_os ld.so"
8948 shlibpath_var=LIBRARY_PATH
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8960 # the default ld.so.conf also contains /usr/contrib/lib and
8961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8962 # libtool to hard-code these into programs
8965 cygwin* | mingw* | pw32*)
8966 version_type=windows
8971 case $GCC,$host_os in
8972 yes,cygwin* | yes,mingw* | yes,pw32*)
8973 library_names_spec='$libname.dll.a'
8974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8975 postinstall_cmds='base_file=`basename \${file}`~
8976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8977 dldir=$destdir/`dirname \$dlpath`~
8978 test -d \$dldir || mkdir -p \$dldir~
8979 $install_prog $dir/$dlname \$dldir/$dlname~
8980 chmod a+x \$dldir/$dlname'
8981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8982 dlpath=$dir/\$dldll~
8984 shlibpath_overrides_runpath=yes
8988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8993 # MinGW DLLs use traditional 'lib' prefix
8994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8997 # It is most probably a Windows format PATH printed by
8998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8999 # path with ; separators, and with drive letters. We can handle the
9000 # drive letters (cygwin fileutils understands them), so leave them,
9001 # especially as we might pass files found there to a mingw objdump,
9002 # which wouldn't understand a cygwinified path. Ahh.
9003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9009 # pw32 DLLs use 'pw' prefix rather than 'lib'
9010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9019 dynamic_linker='Win32 ld.exe'
9020 # FIXME: first we should search . and the directory the executable is in
9024 darwin* | rhapsody*)
9025 dynamic_linker="$host_os dyld"
9029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9030 soname_spec='${libname}${release}${major}$shared_ext'
9031 shlibpath_overrides_runpath=yes
9032 shlibpath_var=DYLD_LIBRARY_PATH
9033 shrext_cmds='.dylib'
9034 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9035 if test "$GCC" = yes; then
9036 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"`
9038 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 shlibpath_var=LD_LIBRARY_PATH
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 shlibpath_overrides_runpath=no
9064 hardcode_into_libs=yes
9065 dynamic_linker='GNU ld.so'
9068 freebsd* | dragonfly*)
9069 # DragonFly does not have aout. When/if they implement a new
9070 # versioning mechanism, adjust this.
9071 if test -x /usr/bin/objformat; then
9072 objformat=`/usr/bin/objformat`
9075 freebsd[123].*) objformat=aout ;;
9079 version_type=freebsd-$objformat
9080 case $version_type in
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9091 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9096 freebsd3.[01]* | freebsdelf3.[01]*)
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9100 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9101 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9102 shlibpath_overrides_runpath=no
9103 hardcode_into_libs=yes
9105 freebsd*) # from 4.6 on
9106 shlibpath_overrides_runpath=yes
9107 hardcode_into_libs=yes
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 hardcode_into_libs=yes
9122 hpux9* | hpux10* | hpux11*)
9123 # Give a soname corresponding to the major version so that dld.sl refuses to
9124 # link against other versions.
9131 hardcode_into_libs=yes
9132 dynamic_linker="$host_os dld.so"
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 if test "X$HPUX_IA64_MODE" = X32; then
9138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9146 hardcode_into_libs=yes
9147 dynamic_linker="$host_os dld.sl"
9148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9157 dynamic_linker="$host_os dld.sl"
9158 shlibpath_var=SHLIB_PATH
9159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9164 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9165 postinstall_cmds='chmod 555 $lib'
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=no
9177 hardcode_into_libs=yes
9180 irix5* | irix6* | nonstopux*)
9182 nonstopux*) version_type=nonstopux ;;
9184 if test "$lt_cv_prog_gnu_ld" = yes; then
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9195 irix5* | nonstopux*)
9199 case $LD in # libtool.m4 will add one of these switches to LD
9200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9201 libsuff= shlibsuff= libmagic=32-bit;;
9202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9203 libsuff=32 shlibsuff=N32 libmagic=N32;;
9204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9206 *) libsuff= shlibsuff= libmagic=never-match;;
9210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9211 shlibpath_overrides_runpath=no
9212 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9213 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9214 hardcode_into_libs=yes
9217 # No shared lib support for Linux oldld, aout, or coff.
9218 linux*oldld* | linux*aout* | linux*coff*)
9222 # This must be Linux ELF.
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=no
9232 # This implies no fast_install, which is unacceptable.
9233 # Some rework will be needed to allow for fast_install
9234 # before this can be enabled.
9235 hardcode_into_libs=yes
9237 # Append ld.so.conf contents to the search path
9238 if test -f /etc/ld.so.conf; then
9239 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' ' '`
9240 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9243 # We used to test for /lib/ld.so.1 and disable shared libraries on
9244 # powerpc, because MkLinux only supported shared libraries with the
9245 # GNU dynamic linker. Since this was broken with cross compilers,
9246 # most powerpc-linux boxes support dynamic linking these days and
9247 # people can always --disable-shared, the test was removed, and we
9248 # assume the GNU/Linux dynamic linker is in use.
9249 dynamic_linker='GNU/Linux ld.so'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9259 shlibpath_overrides_runpath=no
9260 hardcode_into_libs=yes
9261 dynamic_linker='GNU ld.so'
9268 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9271 dynamic_linker='NetBSD (a.out) ld.so'
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 dynamic_linker='NetBSD ld.elf_so'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9279 hardcode_into_libs=yes
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 shlibpath_overrides_runpath=yes
9301 sys_lib_dlsearch_path_spec="/usr/lib"
9303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9306 *) need_version=no ;;
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9313 openbsd2.[89] | openbsd2.[89].*)
9314 shlibpath_overrides_runpath=no
9317 shlibpath_overrides_runpath=yes
9321 shlibpath_overrides_runpath=yes
9326 libname_spec='$name'
9329 library_names_spec='$libname${shared_ext} $libname.a'
9330 dynamic_linker='OS/2 ld.exe'
9331 shlibpath_var=LIBPATH
9334 osf3* | osf4* | osf5*)
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 shlibpath_overrides_runpath=yes
9353 hardcode_into_libs=yes
9354 # ldd complains unless libraries are executable
9355 postinstall_cmds='chmod +x $lib'
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 if test "$with_gnu_ld" = yes; then
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 case $host_vendor in
9377 shlibpath_overrides_runpath=no
9379 export_dynamic_flag_spec='${wl}-Blargedynsym'
9380 runpath_var=LD_RUN_PATH
9388 shlibpath_overrides_runpath=no
9389 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9395 if test -d /usr/nec ;then
9397 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9398 soname_spec='$libname${shared_ext}.$major'
9399 shlibpath_var=LD_LIBRARY_PATH
9403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9404 version_type=freebsd-elf
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 hardcode_into_libs=yes
9411 if test "$with_gnu_ld" = yes; then
9412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9413 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9416 shlibpath_overrides_runpath=yes
9419 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9423 sys_lib_dlsearch_path_spec='/usr/lib'
9428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429 soname_spec='${libname}${release}${shared_ext}$major'
9430 shlibpath_var=LD_LIBRARY_PATH
9437 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9438 echo "${ECHO_T}$dynamic_linker" >&6; }
9439 test "$dynamic_linker" = no && can_build_shared=no
9441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9442 if test "$GCC" = yes; then
9443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9447 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9448 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9449 if test "${libltdl_cv_shlibext+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 eval libltdl_cv_shlibext=$shrext_cmds
9457 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9458 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9459 if test -n "$libltdl_cv_shlibext"; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9468 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9469 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9470 if test "${libltdl_cv_sys_search_path+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9475 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9476 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9477 if test -n "$libltdl_cv_sys_search_path"; then
9479 for dir in $libltdl_cv_sys_search_path; do
9480 if test -z "$sys_search_path"; then
9481 sys_search_path="$dir"
9483 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9487 cat >>confdefs.h <<_ACEOF
9488 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9493 { echo "$as_me:$LINENO: checking for objdir" >&5
9494 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9495 if test "${libltdl_cv_objdir+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 libltdl_cv_objdir="$objdir"
9499 if test -n "$objdir"; then
9502 rm -f .libs 2>/dev/null
9503 mkdir .libs 2>/dev/null
9504 if test -d .libs; then
9505 libltdl_cv_objdir=.libs
9507 # MS-DOS does not allow filenames that begin with a dot.
9508 libltdl_cv_objdir=_libs
9510 rmdir .libs 2>/dev/null
9514 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9515 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9517 cat >>confdefs.h <<_ACEOF
9518 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9526 # Check for command to grab the raw symbol name followed by C symbol from nm.
9527 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9528 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 # These are sane defaults that work on at least a few old systems.
9534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9536 # Character class describing NM global symbol codes.
9537 symcode='[BCDEGRST]'
9539 # Regexp to match symbols that can be accessed directly from C.
9540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9542 # Transform an extracted symbol line into a proper C declaration
9543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9545 # Transform an extracted symbol line into symbol name and symbol address
9546 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'"
9548 # Define system-specific variables.
9553 cygwin* | mingw* | pw32*)
9554 symcode='[ABCDGISTW]'
9556 hpux*) # Its linker distinguishes data from code symbols
9557 if test "$host_cpu" = ia64; then
9558 symcode='[ABCDEGRST]'
9560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9561 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'"
9564 if test "$host_cpu" = ia64; then
9565 symcode='[ABCDGIRSTW]'
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9567 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'"
9571 symcode='[BCDEGRST]'
9574 symcode='[BCDEGQRST]'
9585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9593 # Handle CRLF in mingw tool chain
9597 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9601 # If we're using GNU nm, then use its standard symbol codes.
9602 case `$NM -V 2>&1` in
9603 *GNU* | *'with BFD'*)
9604 symcode='[ABCDGIRSTW]' ;;
9607 # Try without a prefix undercore, then with it.
9608 for ac_symprfx in "" "_"; do
9610 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9611 symxfrm="\\1 $ac_symprfx\\2 \\2"
9613 # Write the raw and C identifiers.
9614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9616 # Check to see that the pipe works correctly.
9620 cat > conftest.$ac_ext <<EOF
9625 void nm_test_func(){}
9629 int main(){nm_test_var='a';nm_test_func();return(0);}
9632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9633 (eval $ac_compile) 2>&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; then
9637 # Now try to grab the symbols.
9639 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && test -s "$nlist"; then
9644 # Try sorting and uniquifying the output.
9645 if sort "$nlist" | uniq > "$nlist"T; then
9646 mv -f "$nlist"T "$nlist"
9651 # Make sure that we snagged all the symbols we need.
9652 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9653 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9654 cat <<EOF > conftest.$ac_ext
9660 # Now generate the symbol file.
9661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9663 cat <<EOF >> conftest.$ac_ext
9664 #if defined (__STDC__) && __STDC__
9665 # define lt_ptr_t void *
9667 # define lt_ptr_t char *
9671 /* The mapping between symbol names and symbols. */
9676 lt_preloaded_symbols[] =
9679 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9680 cat <<\EOF >> conftest.$ac_ext
9688 # Now try linking the two files.
9689 mv conftest.$ac_objext conftstm.$ac_objext
9690 lt_save_LIBS="$LIBS"
9691 lt_save_CFLAGS="$CFLAGS"
9692 LIBS="conftstm.$ac_objext"
9693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9701 LIBS="$lt_save_LIBS"
9702 CFLAGS="$lt_save_CFLAGS"
9704 echo "cannot find nm_test_func in $nlist" >&5
9707 echo "cannot find nm_test_var in $nlist" >&5
9710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9713 echo "$progname: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9716 rm -f conftest* conftst*
9718 # Do not use the global_symbol_pipe unless it works.
9719 if test "$pipe_works" = yes; then
9722 lt_cv_sys_global_symbol_pipe=
9728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9729 lt_cv_sys_global_symbol_to_cdecl=
9731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9732 { echo "$as_me:$LINENO: result: failed" >&5
9733 echo "${ECHO_T}failed" >&6; }
9735 { echo "$as_me:$LINENO: result: ok" >&5
9736 echo "${ECHO_T}ok" >&6; }
9740 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9741 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9742 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9746 libltdl_cv_preloaded_symbols=yes
9748 libltdl_cv_preloaded_symbols=no
9752 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9753 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9754 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9756 cat >>confdefs.h <<\_ACEOF
9757 #define HAVE_PRELOADED_SYMBOLS 1
9765 ac_cpp='$CPP $CPPFLAGS'
9766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9771 { echo "$as_me:$LINENO: checking for shl_load" >&5
9772 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9773 if test "${ac_cv_func_shl_load+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define shl_load innocuous_shl_load
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char shl_load (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9792 # include <limits.h>
9794 # include <assert.h>
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9806 /* The GNU C library defines this for functions which it implements
9807 to always fail with ENOSYS. Some functions are actually named
9808 something starting with __ and the normal name is an alias. */
9809 #if defined __stub_shl_load || defined __stub___shl_load
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (ac_try="$ac_link"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_link") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_try") 2>&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_func_shl_load=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_cv_func_shl_load=no
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9866 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9867 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9868 if test $ac_cv_func_shl_load = yes; then
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_SHL_LOAD 1
9875 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9876 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 ac_check_lib_save_LIBS=$LIBS
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9889 /* Override any GCC internal prototype to avoid an error.
9890 Use char because int might match the return type of a GCC
9891 builtin and then its argument prototype would still apply. */
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_link") 2>conftest.er1
9913 grep -v '^ *+' conftest.er1 >conftest.err
9915 cat conftest.err >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_dld_shl_load=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_dld_shl_load=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9951 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9952 if test $ac_cv_lib_dld_shl_load = yes; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define HAVE_SHL_LOAD 1
9958 LIBADD_DL="$LIBADD_DL -ldld"
9960 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9961 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9962 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 ac_check_lib_save_LIBS=$LIBS
9967 cat >conftest.$ac_ext <<_ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (ac_try="$ac_link"
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; } &&
10013 { ac_try='test -s conftest$ac_exeext'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dlopen=yes
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dl_dlopen=no
10031 rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
10033 LIBS=$ac_check_lib_save_LIBS
10035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10037 if test $ac_cv_lib_dl_dlopen = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_LIBDL 1
10043 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10052 # include <dlfcn.h>
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_link") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_try") 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_LIBDL 1
10101 libltdl_cv_func_dlopen="yes"
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10107 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10108 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 ac_check_lib_save_LIBS=$LIBS
10112 LIBS="-lsvld $LIBS"
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10150 { (case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_try") 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } &&
10159 { ac_try='test -s conftest$ac_exeext'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lib_svld_dlopen=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_lib_svld_dlopen=no
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10181 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10182 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10183 if test $ac_cv_lib_svld_dlopen = yes; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_LIBDL 1
10189 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10191 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10192 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS=$LIBS
10198 cat >conftest.$ac_ext <<_ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10215 return dld_link ();
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (ac_try="$ac_link"
10222 case "(($ac_try" in
10223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227 (eval "$ac_link") 2>conftest.er1
10229 grep -v '^ *+' conftest.er1 >conftest.err
10231 cat conftest.err >&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } &&
10234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_try") 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_lib_dld_dld_link=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_lib_dld_dld_link=no
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10268 if test $ac_cv_lib_dld_dld_link = yes; then
10270 cat >>confdefs.h <<\_ACEOF
10274 LIBADD_DL="$LIBADD_DL -ldld"
10276 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10277 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10278 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define _dyld_func_lookup innocuous__dyld_func_lookup
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char _dyld_func_lookup (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10297 # include <limits.h>
10299 # include <assert.h>
10302 #undef _dyld_func_lookup
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10310 char _dyld_func_lookup ();
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10321 return _dyld_func_lookup ();
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest$ac_exeext'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_func__dyld_func_lookup=yes
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10365 ac_cv_func__dyld_func_lookup=no
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10371 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10372 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10373 if test $ac_cv_func__dyld_func_lookup = yes; then
10375 cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_DYLD 1
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10402 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10404 lt_save_LIBS="$LIBS"
10405 LIBS="$LIBS $LIBADD_DL"
10407 for ac_func in dlerror
10409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10423 #define $ac_func innocuous_$ac_func
10425 /* System header to define __stub macros and hopefully few prototypes,
10426 which can conflict with char $ac_func (); below.
10427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428 <limits.h> exists even on freestanding compilers. */
10431 # include <limits.h>
10433 # include <assert.h>
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10445 /* The GNU C library defines this for functions which it implements
10446 to always fail with ENOSYS. Some functions are actually named
10447 something starting with __ and the normal name is an alias. */
10448 #if defined __stub_$ac_func || defined __stub___$ac_func
10455 return $ac_func ();
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_try") 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 eval "$as_ac_var=yes"
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 eval "$as_ac_var=no"
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10505 ac_res=`eval echo '${'$as_ac_var'}'`
10506 { echo "$as_me:$LINENO: result: $ac_res" >&5
10507 echo "${ECHO_T}$ac_res" >&6; }
10508 if test `eval echo '${'$as_ac_var'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10516 LIBS="$lt_save_LIBS"
10519 ac_cpp='$CPP $CPPFLAGS'
10520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10526 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10527 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10528 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_cv_sys_symbol_underscore=no
10532 cat > conftest.$ac_ext <<EOF
10533 void nm_test_func(){}
10534 int main(){nm_test_func;return 0;}
10536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10537 (eval $ac_compile) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Now try to grab the symbols.
10542 ac_nlist=conftest.nm
10543 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10544 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && test -s "$ac_nlist"; then
10548 # See whether the symbols have a leading underscore.
10549 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10550 ac_cv_sys_symbol_underscore=yes
10552 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10555 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10559 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10562 echo "configure: failed program was:" >&5
10568 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10569 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10572 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10573 if test x"$libltdl_cv_func_dlopen" = xyes ||
10574 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10575 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10576 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10577 if test "${libltdl_cv_need_uscore+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 libltdl_cv_need_uscore=unknown
10582 LIBS="$LIBS $LIBADD_DL"
10583 if test "$cross_compiling" = yes; then :
10584 libltdl_cv_need_uscore=cross
10586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587 lt_status=$lt_dlunknown
10588 cat > conftest.$ac_ext <<EOF
10589 #line 10589 "configure"
10590 #include "confdefs.h"
10599 # define LT_DLGLOBAL RTLD_GLOBAL
10602 # define LT_DLGLOBAL DL_GLOBAL
10604 # define LT_DLGLOBAL 0
10608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10609 find out it does not work in some platform. */
10610 #ifndef LT_DLLAZY_OR_NOW
10612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10615 # define LT_DLLAZY_OR_NOW DL_LAZY
10618 # define LT_DLLAZY_OR_NOW RTLD_NOW
10621 # define LT_DLLAZY_OR_NOW DL_NOW
10623 # define LT_DLLAZY_OR_NOW 0
10631 extern "C" void exit (int);
10634 void fnord() { int i=42;}
10637 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10638 int status = $lt_dlunknown;
10642 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10643 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10644 /* dlclose (self); */
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653 (eval $ac_link) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10657 (./conftest; exit; ) >&5 2>/dev/null
10659 case x$lt_status in
10660 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10661 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10662 x$lt_dlunknown|x*) ;;
10665 # compilation failed
10674 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10675 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10679 if test x"$libltdl_cv_need_uscore" = xyes; then
10681 cat >>confdefs.h <<\_ACEOF
10682 #define NEED_USCORE 1
10688 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10689 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10690 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 # PORTME does your system automatically load deplibs for dlopen?
10694 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10695 # For now, we just catch OSes we know something about -- in the
10696 # future, we'll try test this programmatically.
10697 libltdl_cv_sys_dlopen_deplibs=unknown
10699 aix3*|aix4.1.*|aix4.2.*)
10700 # Unknown whether this is true for these versions of AIX, but
10701 # we want this `case' here to explicitly catch those versions.
10702 libltdl_cv_sys_dlopen_deplibs=unknown
10705 libltdl_cv_sys_dlopen_deplibs=yes
10708 # Assuming the user has installed a libdl from somewhere, this is true
10709 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10710 libltdl_cv_sys_dlopen_deplibs=yes
10712 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10713 # GNU and its variants, using gnu ld.so (Glibc)
10714 libltdl_cv_sys_dlopen_deplibs=yes
10717 libltdl_cv_sys_dlopen_deplibs=yes
10720 libltdl_cv_sys_dlopen_deplibs=yes
10722 irix[12345]*|irix6.[01]*)
10723 # Catch all versions of IRIX before 6.2, and indicate that we don't
10724 # know how it worked for any of those versions.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10728 # The case above catches anything before 6.2, and it's known that
10729 # at 6.2 and later dlopen does load deplibs.
10730 libltdl_cv_sys_dlopen_deplibs=yes
10733 libltdl_cv_sys_dlopen_deplibs=yes
10736 libltdl_cv_sys_dlopen_deplibs=yes
10739 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10740 # it did *not* use an RPATH in a shared library to find objects the
10741 # library depends on, so we explicitly say `no'.
10742 libltdl_cv_sys_dlopen_deplibs=no
10744 osf5.0|osf5.0a|osf5.1)
10745 # dlopen *does* load deplibs and with the right loader patch applied
10746 # it even uses RPATH in a shared library to search for shared objects
10747 # that the library depends on, but there's no easy way to know if that
10748 # patch is installed. Since this is the case, all we can really
10749 # say is unknown -- it depends on the patch being installed. If
10750 # it is, this changes to `yes'. Without it, it would be `no'.
10751 libltdl_cv_sys_dlopen_deplibs=unknown
10754 # the two cases above should catch all versions of osf <= 5.1. Read
10755 # the comments above for what we know about them.
10756 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10757 # is used to find them so we can finally say `yes'.
10758 libltdl_cv_sys_dlopen_deplibs=yes
10761 libltdl_cv_sys_dlopen_deplibs=yes
10763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10769 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10770 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10771 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10773 cat >>confdefs.h <<\_ACEOF
10774 #define LTDL_DLOPEN_DEPLIBS 1
10780 for ac_header in argz.h
10782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 ac_res=`eval echo '${'$as_ac_Header'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10793 # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 #include <$ac_header>
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10814 grep -v '^ *+' conftest.er1 >conftest.err
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10844 ac_header_compiler=no
10847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849 echo "${ECHO_T}$ac_header_compiler" >&6; }
10851 # Is the header present?
10852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <$ac_header>
10862 if { (ac_try="$ac_cpp conftest.$ac_ext"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } >/dev/null; then
10875 if test -s conftest.err; then
10876 ac_cpp_err=$ac_c_preproc_warn_flag
10877 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10884 if test -z "$ac_cpp_err"; then
10885 ac_header_preproc=yes
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ac_header_preproc=no
10893 rm -f conftest.err conftest.$ac_ext
10894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 echo "${ECHO_T}$ac_header_preproc" >&6; }
10897 # So? What about this header?
10898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 ac_header_preproc=yes
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10920 ## ------------------------------------ ##
10921 ## Report this to http://llvm.org/bugs/ ##
10922 ## ------------------------------------ ##
10924 ) | sed "s/^/$as_me: WARNING: /" >&2
10927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 eval "$as_ac_Header=\$ac_header_preproc"
10934 ac_res=`eval echo '${'$as_ac_Header'}'`
10935 { echo "$as_me:$LINENO: result: $ac_res" >&5
10936 echo "${ECHO_T}$ac_res" >&6; }
10939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10940 cat >>confdefs.h <<_ACEOF
10941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10949 { echo "$as_me:$LINENO: checking for error_t" >&5
10950 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10951 if test "${ac_cv_type_error_t+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10964 typedef error_t ac__type_new_;
10968 if ((ac__type_new_ *) 0)
10970 if (sizeof (ac__type_new_))
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983 (eval "$ac_compile") 2>conftest.er1
10985 grep -v '^ *+' conftest.er1 >conftest.err
10987 cat conftest.err >&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } &&
10990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_try") 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 ac_cv_type_error_t=yes
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_cv_type_error_t=no
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11021 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11022 if test $ac_cv_type_error_t = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_ERROR_T 1
11031 cat >>confdefs.h <<\_ACEOF
11032 #define error_t int
11043 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11059 #define $ac_func innocuous_$ac_func
11061 /* System header to define __stub macros and hopefully few prototypes,
11062 which can conflict with char $ac_func (); below.
11063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11064 <limits.h> exists even on freestanding compilers. */
11067 # include <limits.h>
11069 # include <assert.h>
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11081 /* The GNU C library defines this for functions which it implements
11082 to always fail with ENOSYS. Some functions are actually named
11083 something starting with __ and the normal name is an alias. */
11084 #if defined __stub_$ac_func || defined __stub___$ac_func
11091 return $ac_func ();
11096 rm -f conftest.$ac_objext conftest$ac_exeext
11097 if { (ac_try="$ac_link"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_link") 2>conftest.er1
11105 grep -v '^ *+' conftest.er1 >conftest.err
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11111 { (case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11116 (eval "$ac_try") 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest$ac_exeext'
11121 { (case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_try") 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 eval "$as_ac_var=yes"
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 eval "$as_ac_var=no"
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11141 ac_res=`eval echo '${'$as_ac_var'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11144 if test `eval echo '${'$as_ac_var'}'` = yes; then
11145 cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11174 for ac_header in errno.h malloc.h memory.h unistd.h
11176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_res=`eval echo '${'$as_ac_Header'}'`
11184 { echo "$as_me:$LINENO: result: $ac_res" >&5
11185 echo "${ECHO_T}$ac_res" >&6; }
11187 # Is the header compilable?
11188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 #include <$ac_header>
11199 rm -f conftest.$ac_objext
11200 if { (ac_try="$ac_compile"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_compile") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_try") 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_header_compiler=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_header_compiler=no
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11243 echo "${ECHO_T}$ac_header_compiler" >&6; }
11245 # Is the header present?
11246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <$ac_header>
11256 if { (ac_try="$ac_cpp conftest.$ac_ext"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
11271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11278 if test -z "$ac_cpp_err"; then
11279 ac_header_preproc=yes
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 ac_header_preproc=no
11287 rm -f conftest.err conftest.$ac_ext
11288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6; }
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc=yes
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ## ------------------------------------ ##
11315 ## Report this to http://llvm.org/bugs/ ##
11316 ## ------------------------------------ ##
11318 ) | sed "s/^/$as_me: WARNING: /" >&2
11321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 eval "$as_ac_Header=\$ac_header_preproc"
11328 ac_res=`eval echo '${'$as_ac_Header'}'`
11329 { echo "$as_me:$LINENO: result: $ac_res" >&5
11330 echo "${ECHO_T}$ac_res" >&6; }
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 for ac_header in mach-o/dyld.h
11345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11352 ac_res=`eval echo '${'$as_ac_Header'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11356 # Is the header compilable?
11357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 $ac_includes_default
11366 #include <$ac_header>
11368 rm -f conftest.$ac_objext
11369 if { (ac_try="$ac_compile"
11370 case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_compile") 2>conftest.er1
11377 grep -v '^ *+' conftest.er1 >conftest.err
11379 cat conftest.err >&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_try") 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); }; } &&
11392 { ac_try='test -s conftest.$ac_objext'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_header_compiler=yes
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_header_compiler=no
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11412 echo "${ECHO_T}$ac_header_compiler" >&6; }
11414 # Is the header present?
11415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <$ac_header>
11425 if { (ac_try="$ac_cpp conftest.$ac_ext"
11426 case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1 >conftest.err
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } >/dev/null; then
11438 if test -s conftest.err; then
11439 ac_cpp_err=$ac_c_preproc_warn_flag
11440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11447 if test -z "$ac_cpp_err"; then
11448 ac_header_preproc=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_header_preproc=no
11456 rm -f conftest.err conftest.$ac_ext
11457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11458 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460 # So? What about this header?
11461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11467 ac_header_preproc=yes
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11483 ## ------------------------------------ ##
11484 ## Report this to http://llvm.org/bugs/ ##
11485 ## ------------------------------------ ##
11487 ) | sed "s/^/$as_me: WARNING: /" >&2
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 eval "$as_ac_Header=\$ac_header_preproc"
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11503 cat >>confdefs.h <<_ACEOF
11504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11515 for ac_func in closedir opendir readdir
11517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11531 #define $ac_func innocuous_$ac_func
11533 /* System header to define __stub macros and hopefully few prototypes,
11534 which can conflict with char $ac_func (); below.
11535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11536 <limits.h> exists even on freestanding compilers. */
11539 # include <limits.h>
11541 # include <assert.h>
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11553 /* The GNU C library defines this for functions which it implements
11554 to always fail with ENOSYS. Some functions are actually named
11555 something starting with __ and the normal name is an alias. */
11556 #if defined __stub_$ac_func || defined __stub___$ac_func
11563 return $ac_func ();
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_link") 2>conftest.er1
11577 grep -v '^ *+' conftest.er1 >conftest.err
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 eval "$as_ac_var=yes"
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 eval "$as_ac_var=no"
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11613 ac_res=`eval echo '${'$as_ac_var'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_var'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11627 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11640 if test "$GCC" != "yes" && test "$ICC" != "yes"
11642 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11643 echo "$as_me: error: gcc|icc required but not found" >&2;}
11644 { (exit 1); exit 1; }; }
11647 if test "$GXX" != "yes" && test "$IXX" != "yes"
11649 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11650 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11651 { (exit 1); exit 1; }; }
11654 if test "$GCC" = "yes"
11656 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11664 #if !defined(__GNUC__) || __GNUC__ < 3
11665 #error Unsupported GCC version
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_compile") 2>conftest.er1
11679 grep -v '^ *+' conftest.er1 >conftest.err
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_try") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11710 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11711 { (exit 1); exit 1; }; }
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 if test -z "$llvm_cv_gnu_make_command"
11719 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11720 echo "$as_me: error: GNU Make required but not found" >&2;}
11721 { (exit 1); exit 1; }; }
11724 { echo "$as_me:$LINENO: result: ok" >&5
11725 echo "${ECHO_T}ok" >&6; }
11727 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11728 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11729 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11731 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11733 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11737 NO_MAYBE_UNINITIALIZED=
11738 if test "$GXX" = "yes"
11740 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11742 if test -z "$NO_MAYBE_UNINITIALIZED"
11744 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11748 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11749 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11752 # Check whether --with-python was given.
11753 if test "${with_python+set}" = set; then
11754 withval=$with_python; PYTHON="$withval"
11758 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11759 { echo "$as_me:$LINENO: checking for python" >&5
11760 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11761 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11762 echo "${ECHO_T}user defined: $with_python" >&6; }
11764 if test -n "$PYTHON" ; then
11765 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11766 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11769 # Extract the first word of "python python2 python26", so it can be a program name with args.
11770 set dummy python python2 python26; ac_word=$2
11771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11773 if test "${ac_cv_path_PYTHON+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11778 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11788 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11796 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11797 echo "${ECHO_T}not found" >&6; }
11798 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11799 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11800 { (exit 1); exit 1; }; }"
11804 PYTHON=$ac_cv_path_PYTHON
11805 if test -n "$PYTHON"; then
11806 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11807 echo "${ECHO_T}$PYTHON" >&6; }
11809 { echo "$as_me:$LINENO: result: no" >&5
11810 echo "${ECHO_T}no" >&6; }
11816 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11817 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11818 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
11819 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11820 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11821 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11822 if test "$ac_python_version_major" -eq "2" \
11823 && test "$ac_python_version_minor" -ge "5" ; then
11824 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11825 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11827 { echo "$as_me:$LINENO: result: not found" >&5
11828 echo "${ECHO_T}not found" >&6; }
11829 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11830 See \`config.log' for more details." >&5
11831 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11832 See \`config.log' for more details." >&2;}
11833 { (exit 1); exit 1; }; }
11838 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11839 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11840 if test "${ac_cv_lib_m_sin+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 ac_check_lib_save_LIBS=$LIBS
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 /* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest$ac_exeext'
11892 { (case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_try") 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_lib_m_sin=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11909 rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11914 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11915 if test $ac_cv_lib_m_sin = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_LIBM 1
11924 if test "$llvm_cv_os_type" = "MingW" ; then
11926 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11927 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11928 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-limagehlp $LIBS"
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (ac_try="$ac_link"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_link") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest$ac_exeext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
11983 ac_cv_lib_imagehlp_main=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_imagehlp_main=no
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11996 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11997 if test $ac_cv_lib_imagehlp_main = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_LIBIMAGEHLP 1
12002 LIBS="-limagehlp $LIBS"
12007 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12008 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12009 if test "${ac_cv_lib_psapi_main+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 ac_check_lib_save_LIBS=$LIBS
12013 LIBS="-lpsapi $LIBS"
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (ac_try="$ac_link"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_link") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_try") 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_lib_psapi_main=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_lib_psapi_main=no
12072 rm -f core conftest.err conftest.$ac_objext \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12076 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12077 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12078 if test $ac_cv_lib_psapi_main = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_LIBPSAPI 1
12083 LIBS="-lpsapi $LIBS"
12088 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12089 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12090 if test "${ac_cv_lib_shell32_main+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 ac_check_lib_save_LIBS=$LIBS
12094 LIBS="-lshell32 $LIBS"
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (ac_try="$ac_link"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_link") 2>conftest.er1
12120 grep -v '^ *+' conftest.er1 >conftest.err
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
12125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_shell32_main=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_lib_shell32_main=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12158 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12159 if test $ac_cv_lib_shell32_main = yes; then
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_LIBSHELL32 1
12164 LIBS="-lshell32 $LIBS"
12170 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12171 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12172 if test "${ac_cv_search_dlopen+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_func_search_save_LIBS=$LIBS
12176 cat >conftest.$ac_ext <<_ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12198 for ac_lib in '' dl; do
12199 if test -z "$ac_lib"; then
12200 ac_res="none required"
12203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_link") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_search_dlopen=$ac_res
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12247 rm -f core conftest.err conftest.$ac_objext \
12249 if test "${ac_cv_search_dlopen+set}" = set; then
12253 if test "${ac_cv_search_dlopen+set}" = set; then
12256 ac_cv_search_dlopen=no
12258 rm conftest.$ac_ext
12259 LIBS=$ac_func_search_save_LIBS
12261 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12262 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12263 ac_res=$ac_cv_search_dlopen
12264 if test "$ac_res" != no; then
12265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12267 cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_DLOPEN 1
12272 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12273 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12277 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12278 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12279 if test "${ac_cv_search_clock_gettime+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 ac_func_search_save_LIBS=$LIBS
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12296 char clock_gettime ();
12300 return clock_gettime ();
12305 for ac_lib in '' rt; do
12306 if test -z "$ac_lib"; then
12307 ac_res="none required"
12310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (ac_try="$ac_link"
12314 case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_link") 2>conftest.er1
12321 grep -v '^ *+' conftest.er1 >conftest.err
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12327 { (case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_try") 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest$ac_exeext'
12337 { (case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_try") 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_search_clock_gettime=$ac_res
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f core conftest.err conftest.$ac_objext \
12356 if test "${ac_cv_search_clock_gettime+set}" = set; then
12360 if test "${ac_cv_search_clock_gettime+set}" = set; then
12363 ac_cv_search_clock_gettime=no
12365 rm conftest.$ac_ext
12366 LIBS=$ac_func_search_save_LIBS
12368 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12369 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12370 ac_res=$ac_cv_search_clock_gettime
12371 if test "$ac_res" != no; then
12372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12377 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12378 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12379 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12380 if test "${ac_cv_search_setupterm+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 ac_func_search_save_LIBS=$LIBS
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12401 return setupterm ();
12406 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12407 if test -z "$ac_lib"; then
12408 ac_res="none required"
12411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428 { (case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_try") 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } &&
12437 { ac_try='test -s conftest$ac_exeext'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_search_setupterm=$ac_res
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12455 rm -f core conftest.err conftest.$ac_objext \
12457 if test "${ac_cv_search_setupterm+set}" = set; then
12461 if test "${ac_cv_search_setupterm+set}" = set; then
12464 ac_cv_search_setupterm=no
12466 rm conftest.$ac_ext
12467 LIBS=$ac_func_search_save_LIBS
12469 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12470 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12471 ac_res=$ac_cv_search_setupterm
12472 if test "$ac_res" != no; then
12473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_TERMINFO 1
12483 if test "$llvm_cv_enable_libffi" = "yes" ; then
12484 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12485 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12486 if test "${ac_cv_search_ffi_call+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 ac_func_search_save_LIBS=$LIBS
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12507 return ffi_call ();
12512 for ac_lib in '' ffi; do
12513 if test -z "$ac_lib"; then
12514 ac_res="none required"
12517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (ac_try="$ac_link"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_link") 2>conftest.er1
12528 grep -v '^ *+' conftest.er1 >conftest.err
12530 cat conftest.err >&5
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
12533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12534 { (case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12539 (eval "$ac_try") 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_try") 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_cv_search_ffi_call=$ac_res
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f core conftest.err conftest.$ac_objext \
12563 if test "${ac_cv_search_ffi_call+set}" = set; then
12567 if test "${ac_cv_search_ffi_call+set}" = set; then
12570 ac_cv_search_ffi_call=no
12572 rm conftest.$ac_ext
12573 LIBS=$ac_func_search_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12576 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12577 ac_res=$ac_cv_search_ffi_call
12578 if test "$ac_res" != no; then
12579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12581 cat >>confdefs.h <<\_ACEOF
12582 #define HAVE_FFI_CALL 1
12586 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12587 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12588 { (exit 1); exit 1; }; }
12593 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12594 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12595 if test "${ac_cv_search_mallinfo+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12598 ac_func_search_save_LIBS=$LIBS
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12616 return mallinfo ();
12621 for ac_lib in '' malloc; do
12622 if test -z "$ac_lib"; then
12623 ac_res="none required"
12626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_link") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
12642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12643 { (case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_try") 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_search_mallinfo=$ac_res
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12670 rm -f core conftest.err conftest.$ac_objext \
12672 if test "${ac_cv_search_mallinfo+set}" = set; then
12676 if test "${ac_cv_search_mallinfo+set}" = set; then
12679 ac_cv_search_mallinfo=no
12681 rm conftest.$ac_ext
12682 LIBS=$ac_func_search_save_LIBS
12684 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12685 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12686 ac_res=$ac_cv_search_mallinfo
12687 if test "$ac_res" != no; then
12688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12690 cat >>confdefs.h <<\_ACEOF
12691 #define HAVE_MALLINFO 1
12697 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12699 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12700 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12701 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-lpthread $LIBS"
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12719 char pthread_mutex_init ();
12723 return pthread_mutex_init ();
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_link") 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12743 { (case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_try") 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest$ac_exeext'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_lib_pthread_pthread_mutex_init=yes
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ac_cv_lib_pthread_pthread_mutex_init=no
12770 rm -f core conftest.err conftest.$ac_objext \
12771 conftest$ac_exeext conftest.$ac_ext
12772 LIBS=$ac_check_lib_save_LIBS
12774 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12775 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12776 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12777 cat >>confdefs.h <<_ACEOF
12778 #define HAVE_LIBPTHREAD 1
12781 LIBS="-lpthread $LIBS"
12785 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12786 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12787 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 ac_func_search_save_LIBS=$LIBS
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12798 /* Override any GCC internal prototype to avoid an error.
12799 Use char because int might match the return type of a GCC
12800 builtin and then its argument prototype would still apply. */
12804 char pthread_mutex_lock ();
12808 return pthread_mutex_lock ();
12813 for ac_lib in '' pthread; do
12814 if test -z "$ac_lib"; then
12815 ac_res="none required"
12818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_link") 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12835 { (case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_try") 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest$ac_exeext'
12845 { (case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_try") 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 ac_cv_search_pthread_mutex_lock=$ac_res
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12862 rm -f core conftest.err conftest.$ac_objext \
12864 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12868 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12871 ac_cv_search_pthread_mutex_lock=no
12873 rm conftest.$ac_ext
12874 LIBS=$ac_func_search_save_LIBS
12876 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12877 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12878 ac_res=$ac_cv_search_pthread_mutex_lock
12879 if test "$ac_res" != no; then
12880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12882 cat >>confdefs.h <<\_ACEOF
12883 #define HAVE_PTHREAD_MUTEX_LOCK 1
12888 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12889 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12890 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 ac_func_search_save_LIBS=$LIBS
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12907 char pthread_rwlock_init ();
12911 return pthread_rwlock_init ();
12916 for ac_lib in '' pthread; do
12917 if test -z "$ac_lib"; then
12918 ac_res="none required"
12921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924 if { (ac_try="$ac_link"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12938 { (case "(($ac_try" in
12939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12940 *) ac_try_echo=$ac_try;;
12942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12943 (eval "$ac_try") 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12953 (eval "$ac_try") 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_search_pthread_rwlock_init=$ac_res
12959 echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12965 rm -f core conftest.err conftest.$ac_objext \
12967 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12971 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12974 ac_cv_search_pthread_rwlock_init=no
12976 rm conftest.$ac_ext
12977 LIBS=$ac_func_search_save_LIBS
12979 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12980 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12981 ac_res=$ac_cv_search_pthread_rwlock_init
12982 if test "$ac_res" != no; then
12983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_PTHREAD_RWLOCK_INIT 1
12991 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12992 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12993 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 ac_func_search_save_LIBS=$LIBS
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13010 char pthread_getspecific ();
13014 return pthread_getspecific ();
13019 for ac_lib in '' pthread; do
13020 if test -z "$ac_lib"; then
13021 ac_res="none required"
13024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13026 rm -f conftest.$ac_objext conftest$ac_exeext
13027 if { (ac_try="$ac_link"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13033 (eval "$ac_link") 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041 { (case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_try") 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } &&
13050 { ac_try='test -s conftest$ac_exeext'
13051 { (case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_try") 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_search_pthread_getspecific=$ac_res
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13068 rm -f core conftest.err conftest.$ac_objext \
13070 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13074 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13077 ac_cv_search_pthread_getspecific=no
13079 rm conftest.$ac_ext
13080 LIBS=$ac_func_search_save_LIBS
13082 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13083 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13084 ac_res=$ac_cv_search_pthread_getspecific
13085 if test "$ac_res" != no; then
13086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_PTHREAD_GETSPECIFIC 1
13096 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13098 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13099 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13100 if test "${ac_cv_lib_z_compress2+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 ac_check_lib_save_LIBS=$LIBS
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13122 return compress2 ();
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest$ac_exeext'
13152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_z_compress2=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_lib_z_compress2=no
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13174 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13175 if test $ac_cv_lib_z_compress2 = yes; then
13176 cat >>confdefs.h <<_ACEOF
13177 #define HAVE_LIBZ 1
13187 # Check whether --with-udis86 was given.
13188 if test "${with_udis86+set}" = set; then
13189 withval=$with_udis86;
13194 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13197 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13198 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13199 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-ludis86 $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13235 grep -v '^ *+' conftest.er1 >conftest.err
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } &&
13240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (case "(($ac_try" in
13252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_try") 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_lib_udis86_ud_init=yes
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ac_cv_lib_udis86_ud_init=no
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13272 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13273 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13274 if test $ac_cv_lib_udis86_ud_init = yes; then
13275 cat >>confdefs.h <<_ACEOF
13276 #define HAVE_LIBUDIS86 1
13279 LIBS="-ludis86 $LIBS"
13283 echo "Error! You need to have libudis86 around."
13295 cat >>confdefs.h <<_ACEOF
13296 #define USE_UDIS86 $USE_UDIS86
13301 # Check whether --with-oprofile was given.
13302 if test "${with_oprofile+set}" = set; then
13303 withval=$with_oprofile;
13307 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13308 no) llvm_cv_oppath=
13311 *) llvm_cv_oppath="${withval}/lib/oprofile"
13312 CPPFLAGS="-I${withval}/include";;
13314 case $llvm_cv_os_type in
13316 if test -n "$llvm_cv_oppath" ; then
13317 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13318 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13319 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13320 if test "${ac_cv_search_bfd_init+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13323 ac_func_search_save_LIBS=$LIBS
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13341 return bfd_init ();
13346 for ac_lib in '' bfd; do
13347 if test -z "$ac_lib"; then
13348 ac_res="none required"
13351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13353 rm -f conftest.$ac_objext conftest$ac_exeext
13354 if { (ac_try="$ac_link"
13355 case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_link") 2>conftest.er1
13362 grep -v '^ *+' conftest.er1 >conftest.err
13364 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } &&
13367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13368 { (case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_try") 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest$ac_exeext'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_search_bfd_init=$ac_res
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13395 rm -f core conftest.err conftest.$ac_objext \
13397 if test "${ac_cv_search_bfd_init+set}" = set; then
13401 if test "${ac_cv_search_bfd_init+set}" = set; then
13404 ac_cv_search_bfd_init=no
13406 rm conftest.$ac_ext
13407 LIBS=$ac_func_search_save_LIBS
13409 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13410 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13411 ac_res=$ac_cv_search_bfd_init
13412 if test "$ac_res" != no; then
13413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13417 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13418 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13419 if test "${ac_cv_search_op_open_agent+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 ac_func_search_save_LIBS=$LIBS
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13436 char op_open_agent ();
13440 return op_open_agent ();
13445 for ac_lib in '' opagent; do
13446 if test -z "$ac_lib"; then
13447 ac_res="none required"
13450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (ac_try="$ac_link"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_search_op_open_agent=$ac_res
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13494 rm -f core conftest.err conftest.$ac_objext \
13496 if test "${ac_cv_search_op_open_agent+set}" = set; then
13500 if test "${ac_cv_search_op_open_agent+set}" = set; then
13503 ac_cv_search_op_open_agent=no
13505 rm conftest.$ac_ext
13506 LIBS=$ac_func_search_save_LIBS
13508 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13509 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13510 ac_res=$ac_cv_search_op_open_agent
13511 if test "$ac_res" != no; then
13512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13516 echo "Error! You need to have libopagent around."
13521 if test "${ac_cv_header_opagent_h+set}" = set; then
13522 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13523 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13524 if test "${ac_cv_header_opagent_h+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13528 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13530 # Is the header compilable?
13531 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13532 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 #include <opagent.h>
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_header_compiler=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 ac_header_compiler=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13590 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 #include <opagent.h>
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607 grep -v '^ *+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null; then
13612 if test -s conftest.err; then
13613 ac_cpp_err=$ac_c_preproc_warn_flag
13614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13621 if test -z "$ac_cpp_err"; then
13622 ac_header_preproc=yes
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13627 ac_header_preproc=no
13630 rm -f conftest.err conftest.$ac_ext
13631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13632 echo "${ECHO_T}$ac_header_preproc" >&6; }
13634 # So? What about this header?
13635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13638 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13640 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13641 ac_header_preproc=yes
13644 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13645 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13647 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13649 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13651 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13653 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13655 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13657 ## ------------------------------------ ##
13658 ## Report this to http://llvm.org/bugs/ ##
13659 ## ------------------------------------ ##
13661 ) | sed "s/^/$as_me: WARNING: /" >&2
13664 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13665 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13666 if test "${ac_cv_header_opagent_h+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_cv_header_opagent_h=$ac_header_preproc
13671 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13672 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13675 if test $ac_cv_header_opagent_h = yes; then
13679 echo "Error! You need to have opagent.h around."
13687 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13688 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13689 { (exit 1); exit 1; }; } ;;
13700 cat >>confdefs.h <<_ACEOF
13701 #define LLVM_USE_OPROFILE $USE_OPROFILE
13706 # Check whether --with-intel-jitevents was given.
13707 if test "${with_intel_jitevents+set}" = set; then
13708 withval=$with_intel_jitevents;
13710 yes) USE_INTEL_JITEVENTS=1
13712 no) USE_INTEL_JITEVENTS=0
13714 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13715 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13716 { (exit 1); exit 1; }; };;
13719 case $llvm_cv_os_type in
13720 Linux|Win32|Cygwin|MingW) ;;
13721 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13722 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13723 { (exit 1); exit 1; }; };;
13726 case "$llvm_cv_target_arch" in
13728 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13729 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13730 { (exit 1); exit 1; }; };;
13735 USE_INTEL_JITEVENTS=0
13741 cat >>confdefs.h <<_ACEOF
13742 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13746 for ac_prog in xml2-config
13748 # Extract the first word of "$ac_prog", so it can be a program name with args.
13749 set dummy $ac_prog; ac_word=$2
13750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13752 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13753 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 if test -n "$XML2CONFIG"; then
13756 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_prog_XML2CONFIG="$ac_prog"
13766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13775 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13776 if test -n "$XML2CONFIG"; then
13777 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13778 echo "${ECHO_T}$XML2CONFIG" >&6; }
13780 { echo "$as_me:$LINENO: result: no" >&5
13781 echo "${ECHO_T}no" >&6; }
13785 test -n "$XML2CONFIG" && break
13789 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13790 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13791 if test "x$XML2CONFIG" = "x"; then
13792 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13793 echo "${ECHO_T}xml2-config not found" >&6; }
13795 LIBXML2_INC=`$XML2CONFIG --cflags`
13796 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13797 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13798 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13799 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13800 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 ac_check_lib_save_LIBS=$LIBS
13804 LIBS="-lxml2 $LIBS"
13805 cat >conftest.$ac_ext <<_ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13818 char xmlReadFile ();
13822 return xmlReadFile ();
13827 rm -f conftest.$ac_objext conftest$ac_exeext
13828 if { (ac_try="$ac_link"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_link") 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } &&
13841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; } &&
13851 { ac_try='test -s conftest$ac_exeext'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_lib_xml2_xmlReadFile=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_cv_lib_xml2_xmlReadFile=no
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13873 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13874 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13875 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13877 cat >>confdefs.h <<\_ACEOF
13878 #define CLANG_HAVE_LIBXML 1
13881 LIBXML2_LIBS="-lxml2"
13894 ac_header_dirent=no
13895 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13896 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13897 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13898 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 #include <sys/types.h>
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13935 { (case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_try") 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest.$ac_objext'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 eval "$as_ac_Header=yes"
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 eval "$as_ac_Header=no"
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 ac_res=`eval echo '${'$as_ac_Header'}'`
13965 { echo "$as_me:$LINENO: result: $ac_res" >&5
13966 echo "${ECHO_T}$ac_res" >&6; }
13967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13968 cat >>confdefs.h <<_ACEOF
13969 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13972 ac_header_dirent=$ac_hdr; break
13976 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13977 if test $ac_header_dirent = dirent.h; then
13978 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13979 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13980 if test "${ac_cv_search_opendir+set}" = set; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 ac_func_search_save_LIBS=$LIBS
13984 cat >conftest.$ac_ext <<_ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13991 /* Override any GCC internal prototype to avoid an error.
13992 Use char because int might match the return type of a GCC
13993 builtin and then its argument prototype would still apply. */
14006 for ac_lib in '' dir; do
14007 if test -z "$ac_lib"; then
14008 ac_res="none required"
14011 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_link") 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_search_opendir=$ac_res
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14055 rm -f core conftest.err conftest.$ac_objext \
14057 if test "${ac_cv_search_opendir+set}" = set; then
14061 if test "${ac_cv_search_opendir+set}" = set; then
14064 ac_cv_search_opendir=no
14066 rm conftest.$ac_ext
14067 LIBS=$ac_func_search_save_LIBS
14069 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14070 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14071 ac_res=$ac_cv_search_opendir
14072 if test "$ac_res" != no; then
14073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14078 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14079 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14080 if test "${ac_cv_search_opendir+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 ac_func_search_save_LIBS=$LIBS
14084 cat >conftest.$ac_ext <<_ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14091 /* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
14106 for ac_lib in '' x; do
14107 if test -z "$ac_lib"; then
14108 ac_res="none required"
14111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (ac_try="$ac_link"
14115 case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_link") 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; } &&
14137 { ac_try='test -s conftest$ac_exeext'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_try") 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; }; then
14147 ac_cv_search_opendir=$ac_res
14149 echo "$as_me: failed program was:" >&5
14150 sed 's/^/| /' conftest.$ac_ext >&5
14155 rm -f core conftest.err conftest.$ac_objext \
14157 if test "${ac_cv_search_opendir+set}" = set; then
14161 if test "${ac_cv_search_opendir+set}" = set; then
14164 ac_cv_search_opendir=no
14166 rm conftest.$ac_ext
14167 LIBS=$ac_func_search_save_LIBS
14169 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14170 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14171 ac_res=$ac_cv_search_opendir
14172 if test "$ac_res" != no; then
14173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14179 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14180 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14181 if test "${ac_cv_header_mmap_anon+set}" = set; then
14182 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 ac_cpp='$CPP $CPPFLAGS'
14186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/mman.h>
14197 #include <unistd.h>
14202 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14207 rm -f conftest.$ac_objext
14208 if { (ac_try="$ac_compile"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_compile") 2>conftest.er1
14216 grep -v '^ *+' conftest.er1 >conftest.err
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14237 (eval "$ac_try") 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_header_mmap_anon=yes
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_header_mmap_anon=no
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14259 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14260 if test "$ac_cv_header_mmap_anon" = yes; then
14262 cat >>confdefs.h <<\_ACEOF
14263 #define HAVE_MMAP_ANONYMOUS 1
14268 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14269 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14270 if test "${ac_cv_header_stat_broken+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 #include <sys/types.h>
14280 #include <sys/stat.h>
14282 #if defined S_ISBLK && defined S_IFDIR
14283 # if S_ISBLK (S_IFDIR)
14288 #if defined S_ISBLK && defined S_IFCHR
14289 # if S_ISBLK (S_IFCHR)
14294 #if defined S_ISLNK && defined S_IFREG
14295 # if S_ISLNK (S_IFREG)
14300 #if defined S_ISSOCK && defined S_IFREG
14301 # if S_ISSOCK (S_IFREG)
14307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14308 $EGREP "You lose" >/dev/null 2>&1; then
14309 ac_cv_header_stat_broken=yes
14311 ac_cv_header_stat_broken=no
14316 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14317 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14318 if test $ac_cv_header_stat_broken = yes; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define STAT_MACROS_BROKEN 1
14326 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14327 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14328 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 cat >conftest.$ac_ext <<_ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14337 #include <sys/types.h>
14338 #include <sys/wait.h>
14339 #ifndef WEXITSTATUS
14340 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14343 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14351 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14356 rm -f conftest.$ac_objext
14357 if { (ac_try="$ac_compile"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363 (eval "$ac_compile") 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } &&
14370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_try") 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_header_sys_wait_h=yes
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_header_sys_wait_h=no
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14401 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14402 if test $ac_cv_header_sys_wait_h = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_SYS_WAIT_H 1
14410 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14411 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14412 if test "${ac_cv_header_time+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <sys/types.h>
14422 #include <sys/time.h>
14428 if ((struct tm *) 0)
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_compile") 2>conftest.er1
14443 grep -v '^ *+' conftest.er1 >conftest.err
14445 cat conftest.err >&5
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_try") 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 ac_cv_header_time=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_header_time=no
14476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14479 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14480 if test $ac_cv_header_time = yes; then
14482 cat >>confdefs.h <<\_ACEOF
14483 #define TIME_WITH_SYS_TIME 1
14490 ac_cpp='$CXXCPP $CPPFLAGS'
14491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14496 ac_cpp='$CXXCPP $CPPFLAGS'
14497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14501 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14502 if test -z "$CXXCPP"; then
14503 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14506 # Double quotes because CXXCPP needs to be expanded
14507 for CXXCPP in "$CXX -E" "/lib/cpp"
14509 ac_preproc_ok=false
14510 for ac_cxx_preproc_warn_flag in '' yes
14512 # Use a header file that comes with gcc, so configuring glibc
14513 # with a fresh cross-compiler works.
14514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14515 # <limits.h> exists even on freestanding compilers.
14516 # On the NeXT, cc -E runs the code through the compiler's parser,
14517 # not just through cpp. "Syntax error" is here to catch this case.
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14525 # include <limits.h>
14527 # include <assert.h>
14531 if { (ac_try="$ac_cpp conftest.$ac_ext"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } >/dev/null; then
14544 if test -s conftest.err; then
14545 ac_cpp_err=$ac_cxx_preproc_warn_flag
14546 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14553 if test -z "$ac_cpp_err"; then
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 # Broken: fails on valid input.
14563 rm -f conftest.err conftest.$ac_ext
14565 # OK, works on sane cases. Now check whether nonexistent headers
14566 # can be detected and how.
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <ac_nonexistent.h>
14575 if { (ac_try="$ac_cpp conftest.$ac_ext"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } >/dev/null; then
14588 if test -s conftest.err; then
14589 ac_cpp_err=$ac_cxx_preproc_warn_flag
14590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14597 if test -z "$ac_cpp_err"; then
14598 # Broken: success on invalid input.
14601 echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 # Passes both tests.
14609 rm -f conftest.err conftest.$ac_ext
14612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14613 rm -f conftest.err conftest.$ac_ext
14614 if $ac_preproc_ok; then
14619 ac_cv_prog_CXXCPP=$CXXCPP
14622 CXXCPP=$ac_cv_prog_CXXCPP
14624 ac_cv_prog_CXXCPP=$CXXCPP
14626 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14627 echo "${ECHO_T}$CXXCPP" >&6; }
14628 ac_preproc_ok=false
14629 for ac_cxx_preproc_warn_flag in '' yes
14631 # Use a header file that comes with gcc, so configuring glibc
14632 # with a fresh cross-compiler works.
14633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634 # <limits.h> exists even on freestanding compilers.
14635 # On the NeXT, cc -E runs the code through the compiler's parser,
14636 # not just through cpp. "Syntax error" is here to catch this case.
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 # include <limits.h>
14646 # include <assert.h>
14650 if { (ac_try="$ac_cpp conftest.$ac_ext"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } >/dev/null; then
14663 if test -s conftest.err; then
14664 ac_cpp_err=$ac_cxx_preproc_warn_flag
14665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14672 if test -z "$ac_cpp_err"; then
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 # Broken: fails on valid input.
14682 rm -f conftest.err conftest.$ac_ext
14684 # OK, works on sane cases. Now check whether nonexistent headers
14685 # can be detected and how.
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 #include <ac_nonexistent.h>
14694 if { (ac_try="$ac_cpp conftest.$ac_ext"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } >/dev/null; then
14707 if test -s conftest.err; then
14708 ac_cpp_err=$ac_cxx_preproc_warn_flag
14709 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14716 if test -z "$ac_cpp_err"; then
14717 # Broken: success on invalid input.
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 # Passes both tests.
14728 rm -f conftest.err conftest.$ac_ext
14731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14732 rm -f conftest.err conftest.$ac_ext
14733 if $ac_preproc_ok; then
14736 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14737 See \`config.log' for more details." >&5
14738 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14739 See \`config.log' for more details." >&2;}
14740 { (exit 1); exit 1; }; }
14744 ac_cpp='$CXXCPP $CPPFLAGS'
14745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14751 for ac_header in cxxabi.h
14753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 ac_res=`eval echo '${'$as_ac_Header'}'`
14761 { echo "$as_me:$LINENO: result: $ac_res" >&5
14762 echo "${ECHO_T}$ac_res" >&6; }
14764 # Is the header compilable?
14765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14767 cat >conftest.$ac_ext <<_ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 $ac_includes_default
14774 #include <$ac_header>
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_compile") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14791 { (case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_try") 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_try") 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_header_compiler=yes
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14815 ac_header_compiler=no
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14820 echo "${ECHO_T}$ac_header_compiler" >&6; }
14822 # Is the header present?
14823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <$ac_header>
14833 if { (ac_try="$ac_cpp conftest.$ac_ext"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null; then
14846 if test -s conftest.err; then
14847 ac_cpp_err=$ac_cxx_preproc_warn_flag
14848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14855 if test -z "$ac_cpp_err"; then
14856 ac_header_preproc=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_header_preproc=no
14864 rm -f conftest.err conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14866 echo "${ECHO_T}$ac_header_preproc" >&6; }
14868 # So? What about this header?
14869 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14875 ac_header_preproc=yes
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14891 ## ------------------------------------ ##
14892 ## Report this to http://llvm.org/bugs/ ##
14893 ## ------------------------------------ ##
14895 ) | sed "s/^/$as_me: WARNING: /" >&2
14898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 eval "$as_ac_Header=\$ac_header_preproc"
14905 ac_res=`eval echo '${'$as_ac_Header'}'`
14906 { echo "$as_me:$LINENO: result: $ac_res" >&5
14907 echo "${ECHO_T}$ac_res" >&6; }
14910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14911 cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14920 ac_cpp='$CPP $CPPFLAGS'
14921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14930 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 ac_res=`eval echo '${'$as_ac_Header'}'`
14940 { echo "$as_me:$LINENO: result: $ac_res" >&5
14941 echo "${ECHO_T}$ac_res" >&6; }
14943 # Is the header compilable?
14944 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 $ac_includes_default
14953 #include <$ac_header>
14955 rm -f conftest.$ac_objext
14956 if { (ac_try="$ac_compile"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_compile") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (case "(($ac_try" in
14981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982 *) ac_try_echo=$ac_try;;
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985 (eval "$ac_try") 2>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 ac_header_compiler=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_header_compiler=no
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14999 echo "${ECHO_T}$ac_header_compiler" >&6; }
15001 # Is the header present?
15002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 #include <$ac_header>
15012 if { (ac_try="$ac_cpp conftest.$ac_ext"
15013 case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } >/dev/null; then
15025 if test -s conftest.err; then
15026 ac_cpp_err=$ac_c_preproc_warn_flag
15027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15034 if test -z "$ac_cpp_err"; then
15035 ac_header_preproc=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 ac_header_preproc=no
15043 rm -f conftest.err conftest.$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15045 echo "${ECHO_T}$ac_header_preproc" >&6; }
15047 # So? What about this header?
15048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15054 ac_header_preproc=yes
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15070 ## ------------------------------------ ##
15071 ## Report this to http://llvm.org/bugs/ ##
15072 ## ------------------------------------ ##
15074 ) | sed "s/^/$as_me: WARNING: /" >&2
15077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 eval "$as_ac_Header=\$ac_header_preproc"
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085 { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15104 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 ac_res=`eval echo '${'$as_ac_Header'}'`
15114 { echo "$as_me:$LINENO: result: $ac_res" >&5
15115 echo "${ECHO_T}$ac_res" >&6; }
15117 # Is the header compilable?
15118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15127 #include <$ac_header>
15129 rm -f conftest.$ac_objext
15130 if { (ac_try="$ac_compile"
15131 case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 ac_header_compiler=yes
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 ac_header_compiler=no
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15173 echo "${ECHO_T}$ac_header_compiler" >&6; }
15175 # Is the header present?
15176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15178 cat >conftest.$ac_ext <<_ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 #include <$ac_header>
15186 if { (ac_try="$ac_cpp conftest.$ac_ext"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } >/dev/null; then
15199 if test -s conftest.err; then
15200 ac_cpp_err=$ac_c_preproc_warn_flag
15201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15208 if test -z "$ac_cpp_err"; then
15209 ac_header_preproc=yes
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 ac_header_preproc=no
15217 rm -f conftest.err conftest.$ac_ext
15218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15219 echo "${ECHO_T}$ac_header_preproc" >&6; }
15221 # So? What about this header?
15222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15228 ac_header_preproc=yes
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15244 ## ------------------------------------ ##
15245 ## Report this to http://llvm.org/bugs/ ##
15246 ## ------------------------------------ ##
15248 ) | sed "s/^/$as_me: WARNING: /" >&2
15251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 eval "$as_ac_Header=\$ac_header_preproc"
15258 ac_res=`eval echo '${'$as_ac_Header'}'`
15259 { echo "$as_me:$LINENO: result: $ac_res" >&5
15260 echo "${ECHO_T}$ac_res" >&6; }
15263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15264 cat >>confdefs.h <<_ACEOF
15265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15273 for ac_header in utime.h
15275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 ac_res=`eval echo '${'$as_ac_Header'}'`
15283 { echo "$as_me:$LINENO: result: $ac_res" >&5
15284 echo "${ECHO_T}$ac_res" >&6; }
15286 # Is the header compilable?
15287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 $ac_includes_default
15296 #include <$ac_header>
15298 rm -f conftest.$ac_objext
15299 if { (ac_try="$ac_compile"
15300 case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_compile") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313 { (case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_try") 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } &&
15322 { ac_try='test -s conftest.$ac_objext'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_header_compiler=yes
15334 echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15337 ac_header_compiler=no
15340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15342 echo "${ECHO_T}$ac_header_compiler" >&6; }
15344 # Is the header present?
15345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <$ac_header>
15355 if { (ac_try="$ac_cpp conftest.$ac_ext"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15363 grep -v '^ *+' conftest.er1 >conftest.err
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } >/dev/null; then
15368 if test -s conftest.err; then
15369 ac_cpp_err=$ac_c_preproc_warn_flag
15370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15377 if test -z "$ac_cpp_err"; then
15378 ac_header_preproc=yes
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 ac_header_preproc=no
15386 rm -f conftest.err conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15388 echo "${ECHO_T}$ac_header_preproc" >&6; }
15390 # So? What about this header?
15391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15397 ac_header_preproc=yes
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413 ## ------------------------------------ ##
15414 ## Report this to http://llvm.org/bugs/ ##
15415 ## ------------------------------------ ##
15417 ) | sed "s/^/$as_me: WARNING: /" >&2
15420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 eval "$as_ac_Header=\$ac_header_preproc"
15427 ac_res=`eval echo '${'$as_ac_Header'}'`
15428 { echo "$as_me:$LINENO: result: $ac_res" >&5
15429 echo "${ECHO_T}$ac_res" >&6; }
15432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15433 cat >>confdefs.h <<_ACEOF
15434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15446 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15459 # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <$ac_header>
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_compiler=no
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6; }
15517 # Is the header present?
15518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <$ac_header>
15528 if { (ac_try="$ac_cpp conftest.$ac_ext"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } >/dev/null; then
15541 if test -s conftest.err; then
15542 ac_cpp_err=$ac_c_preproc_warn_flag
15543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15550 if test -z "$ac_cpp_err"; then
15551 ac_header_preproc=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_preproc=no
15559 rm -f conftest.err conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6; }
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586 ## ------------------------------------ ##
15587 ## Report this to http://llvm.org/bugs/ ##
15588 ## ------------------------------------ ##
15590 ) | sed "s/^/$as_me: WARNING: /" >&2
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 eval "$as_ac_Header=\$ac_header_preproc"
15600 ac_res=`eval echo '${'$as_ac_Header'}'`
15601 { echo "$as_me:$LINENO: result: $ac_res" >&5
15602 echo "${ECHO_T}$ac_res" >&6; }
15605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15617 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15630 # Is the header compilable?
15631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 $ac_includes_default
15640 #include <$ac_header>
15642 rm -f conftest.$ac_objext
15643 if { (ac_try="$ac_compile"
15644 case "(($ac_try" in
15645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649 (eval "$ac_compile") 2>conftest.er1
15651 grep -v '^ *+' conftest.er1 >conftest.err
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15657 { (case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_try") 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; } &&
15666 { ac_try='test -s conftest.$ac_objext'
15667 { (case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_try") 2>&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; }; then
15676 ac_header_compiler=yes
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15681 ac_header_compiler=no
15684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686 echo "${ECHO_T}$ac_header_compiler" >&6; }
15688 # Is the header present?
15689 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15691 cat >conftest.$ac_ext <<_ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15697 #include <$ac_header>
15699 if { (ac_try="$ac_cpp conftest.$ac_ext"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707 grep -v '^ *+' conftest.er1 >conftest.err
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } >/dev/null; then
15712 if test -s conftest.err; then
15713 ac_cpp_err=$ac_c_preproc_warn_flag
15714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15721 if test -z "$ac_cpp_err"; then
15722 ac_header_preproc=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_header_preproc=no
15730 rm -f conftest.err conftest.$ac_ext
15731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15732 echo "${ECHO_T}$ac_header_preproc" >&6; }
15734 # So? What about this header?
15735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15741 ac_header_preproc=yes
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15757 ## ------------------------------------ ##
15758 ## Report this to http://llvm.org/bugs/ ##
15759 ## ------------------------------------ ##
15761 ) | sed "s/^/$as_me: WARNING: /" >&2
15764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 eval "$as_ac_Header=\$ac_header_preproc"
15771 ac_res=`eval echo '${'$as_ac_Header'}'`
15772 { echo "$as_me:$LINENO: result: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15777 cat >>confdefs.h <<_ACEOF
15778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15786 for ac_header in valgrind/valgrind.h
15788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 ac_res=`eval echo '${'$as_ac_Header'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15799 # Is the header compilable?
15800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 $ac_includes_default
15809 #include <$ac_header>
15811 rm -f conftest.$ac_objext
15812 if { (ac_try="$ac_compile"
15813 case "(($ac_try" in
15814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815 *) ac_try_echo=$ac_try;;
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818 (eval "$ac_compile") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826 { (case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_try") 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_try") 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_header_compiler=yes
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_header_compiler=no
15853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15855 echo "${ECHO_T}$ac_header_compiler" >&6; }
15857 # Is the header present?
15858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15860 cat >conftest.$ac_ext <<_ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 #include <$ac_header>
15868 if { (ac_try="$ac_cpp conftest.$ac_ext"
15869 case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } >/dev/null; then
15881 if test -s conftest.err; then
15882 ac_cpp_err=$ac_c_preproc_warn_flag
15883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15890 if test -z "$ac_cpp_err"; then
15891 ac_header_preproc=yes
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_header_preproc=no
15899 rm -f conftest.err conftest.$ac_ext
15900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15901 echo "${ECHO_T}$ac_header_preproc" >&6; }
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15910 ac_header_preproc=yes
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15926 ## ------------------------------------ ##
15927 ## Report this to http://llvm.org/bugs/ ##
15928 ## ------------------------------------ ##
15930 ) | sed "s/^/$as_me: WARNING: /" >&2
15933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 eval "$as_ac_Header=\$ac_header_preproc"
15940 ac_res=`eval echo '${'$as_ac_Header'}'`
15941 { echo "$as_me:$LINENO: result: $ac_res" >&5
15942 echo "${ECHO_T}$ac_res" >&6; }
15945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15946 cat >>confdefs.h <<_ACEOF
15947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15955 for ac_header in fenv.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15968 # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15978 #include <$ac_header>
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15995 { (case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_try") 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_header_compiler=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16019 ac_header_compiler=no
16022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16024 echo "${ECHO_T}$ac_header_compiler" >&6; }
16026 # Is the header present?
16027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <$ac_header>
16037 if { (ac_try="$ac_cpp conftest.$ac_ext"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16045 grep -v '^ *+' conftest.er1 >conftest.err
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } >/dev/null; then
16050 if test -s conftest.err; then
16051 ac_cpp_err=$ac_c_preproc_warn_flag
16052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16059 if test -z "$ac_cpp_err"; then
16060 ac_header_preproc=yes
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16065 ac_header_preproc=no
16068 rm -f conftest.err conftest.$ac_ext
16069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16070 echo "${ECHO_T}$ac_header_preproc" >&6; }
16072 # So? What about this header?
16073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16079 ac_header_preproc=yes
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16095 ## ------------------------------------ ##
16096 ## Report this to http://llvm.org/bugs/ ##
16097 ## ------------------------------------ ##
16099 ) | sed "s/^/$as_me: WARNING: /" >&2
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 eval "$as_ac_Header=\$ac_header_preproc"
16109 ac_res=`eval echo '${'$as_ac_Header'}'`
16110 { echo "$as_me:$LINENO: result: $ac_res" >&5
16111 echo "${ECHO_T}$ac_res" >&6; }
16114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16115 cat >>confdefs.h <<_ACEOF
16116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16123 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16124 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16125 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16139 #ifndef FE_ALL_EXCEPT
16140 char *p = (char *) FE_ALL_EXCEPT;
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_compile") 2>conftest.er1
16157 grep -v '^ *+' conftest.er1 >conftest.err
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
16162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16163 { (case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_try") 2>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); }; } &&
16172 { ac_try='test -s conftest.$ac_objext'
16173 { (case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_try") 2>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16182 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16187 ac_cv_have_decl_FE_ALL_EXCEPT=no
16190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16192 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16193 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16194 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16196 cat >>confdefs.h <<_ACEOF
16197 #define HAVE_DECL_FE_ALL_EXCEPT 1
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_DECL_FE_ALL_EXCEPT 0
16208 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16209 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16210 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16225 char *p = (char *) FE_INEXACT;
16233 rm -f conftest.$ac_objext
16234 if { (ac_try="$ac_compile"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_cv_have_decl_FE_INEXACT=yes
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_cv_have_decl_FE_INEXACT=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16278 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16279 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define HAVE_DECL_FE_INEXACT 1
16287 cat >>confdefs.h <<_ACEOF
16288 #define HAVE_DECL_FE_INEXACT 0
16295 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16297 for ac_header in pthread.h
16299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 ac_res=`eval echo '${'$as_ac_Header'}'`
16307 { echo "$as_me:$LINENO: result: $ac_res" >&5
16308 echo "${ECHO_T}$ac_res" >&6; }
16310 # Is the header compilable?
16311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 $ac_includes_default
16320 #include <$ac_header>
16322 rm -f conftest.$ac_objext
16323 if { (ac_try="$ac_compile"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_compile") 2>conftest.er1
16331 grep -v '^ *+' conftest.er1 >conftest.err
16333 cat conftest.err >&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16337 { (case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_try") 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
16347 { (case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_try") 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_header_compiler=yes
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_header_compiler=no
16364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16366 echo "${ECHO_T}$ac_header_compiler" >&6; }
16368 # Is the header present?
16369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <$ac_header>
16379 if { (ac_try="$ac_cpp conftest.$ac_ext"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } >/dev/null; then
16392 if test -s conftest.err; then
16393 ac_cpp_err=$ac_c_preproc_warn_flag
16394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16401 if test -z "$ac_cpp_err"; then
16402 ac_header_preproc=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_header_preproc=no
16410 rm -f conftest.err conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16412 echo "${ECHO_T}$ac_header_preproc" >&6; }
16414 # So? What about this header?
16415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16421 ac_header_preproc=yes
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16437 ## ------------------------------------ ##
16438 ## Report this to http://llvm.org/bugs/ ##
16439 ## ------------------------------------ ##
16441 ) | sed "s/^/$as_me: WARNING: /" >&2
16444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 eval "$as_ac_Header=\$ac_header_preproc"
16451 ac_res=`eval echo '${'$as_ac_Header'}'`
16452 { echo "$as_me:$LINENO: result: $ac_res" >&5
16453 echo "${ECHO_T}$ac_res" >&6; }
16456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16473 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16475 for ac_header in zlib.h
16477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 ac_res=`eval echo '${'$as_ac_Header'}'`
16485 { echo "$as_me:$LINENO: result: $ac_res" >&5
16486 echo "${ECHO_T}$ac_res" >&6; }
16488 # Is the header compilable?
16489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16491 cat >conftest.$ac_ext <<_ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 $ac_includes_default
16498 #include <$ac_header>
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_compile") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest.$ac_objext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16534 ac_header_compiler=yes
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_header_compiler=no
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16544 echo "${ECHO_T}$ac_header_compiler" >&6; }
16546 # Is the header present?
16547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16549 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <$ac_header>
16557 if { (ac_try="$ac_cpp conftest.$ac_ext"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16565 grep -v '^ *+' conftest.er1 >conftest.err
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } >/dev/null; then
16570 if test -s conftest.err; then
16571 ac_cpp_err=$ac_c_preproc_warn_flag
16572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16579 if test -z "$ac_cpp_err"; then
16580 ac_header_preproc=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ac_header_preproc=no
16588 rm -f conftest.err conftest.$ac_ext
16589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16590 echo "${ECHO_T}$ac_header_preproc" >&6; }
16592 # So? What about this header?
16593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16599 ac_header_preproc=yes
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16615 ## ------------------------------------ ##
16616 ## Report this to http://llvm.org/bugs/ ##
16617 ## ------------------------------------ ##
16619 ) | sed "s/^/$as_me: WARNING: /" >&2
16622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 eval "$as_ac_Header=\$ac_header_preproc"
16629 ac_res=`eval echo '${'$as_ac_Header'}'`
16630 { echo "$as_me:$LINENO: result: $ac_res" >&5
16631 echo "${ECHO_T}$ac_res" >&6; }
16634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16652 if test "$llvm_cv_enable_libffi" = "yes" ; then
16655 for ac_header in ffi.h ffi/ffi.h
16657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 ac_res=`eval echo '${'$as_ac_Header'}'`
16665 { echo "$as_me:$LINENO: result: $ac_res" >&5
16666 echo "${ECHO_T}$ac_res" >&6; }
16668 # Is the header compilable?
16669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 #include <$ac_header>
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_compile") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); } &&
16694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; } &&
16704 { ac_try='test -s conftest.$ac_objext'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_header_compiler=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_header_compiler=no
16722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724 echo "${ECHO_T}$ac_header_compiler" >&6; }
16726 # Is the header present?
16727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <$ac_header>
16737 if { (ac_try="$ac_cpp conftest.$ac_ext"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } >/dev/null; then
16750 if test -s conftest.err; then
16751 ac_cpp_err=$ac_c_preproc_warn_flag
16752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16759 if test -z "$ac_cpp_err"; then
16760 ac_header_preproc=yes
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ac_header_preproc=no
16768 rm -f conftest.err conftest.$ac_ext
16769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16770 echo "${ECHO_T}$ac_header_preproc" >&6; }
16772 # So? What about this header?
16773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16779 ac_header_preproc=yes
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16795 ## ------------------------------------ ##
16796 ## Report this to http://llvm.org/bugs/ ##
16797 ## ------------------------------------ ##
16799 ) | sed "s/^/$as_me: WARNING: /" >&2
16802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 eval "$as_ac_Header=\$ac_header_preproc"
16809 ac_res=`eval echo '${'$as_ac_Header'}'`
16810 { echo "$as_me:$LINENO: result: $ac_res" >&5
16811 echo "${ECHO_T}$ac_res" >&6; }
16814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16815 cat >>confdefs.h <<_ACEOF
16816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826 for ac_header in CrashReporterClient.h
16828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16833 echo $ECHO_N "(cached) $ECHO_C" >&6
16835 ac_res=`eval echo '${'$as_ac_Header'}'`
16836 { echo "$as_me:$LINENO: result: $ac_res" >&5
16837 echo "${ECHO_T}$ac_res" >&6; }
16839 # Is the header compilable?
16840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16842 cat >conftest.$ac_ext <<_ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16848 $ac_includes_default
16849 #include <$ac_header>
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_header_compiler=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_header_compiler=no
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16895 echo "${ECHO_T}$ac_header_compiler" >&6; }
16897 # Is the header present?
16898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 #include <$ac_header>
16908 if { (ac_try="$ac_cpp conftest.$ac_ext"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } >/dev/null; then
16921 if test -s conftest.err; then
16922 ac_cpp_err=$ac_c_preproc_warn_flag
16923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16930 if test -z "$ac_cpp_err"; then
16931 ac_header_preproc=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_header_preproc=no
16939 rm -f conftest.err conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16941 echo "${ECHO_T}$ac_header_preproc" >&6; }
16943 # So? What about this header?
16944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16950 ac_header_preproc=yes
16953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16966 ## ------------------------------------ ##
16967 ## Report this to http://llvm.org/bugs/ ##
16968 ## ------------------------------------ ##
16970 ) | sed "s/^/$as_me: WARNING: /" >&2
16973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16978 eval "$as_ac_Header=\$ac_header_preproc"
16980 ac_res=`eval echo '${'$as_ac_Header'}'`
16981 { echo "$as_me:$LINENO: result: $ac_res" >&5
16982 echo "${ECHO_T}$ac_res" >&6; }
16985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16986 cat >>confdefs.h <<_ACEOF
16987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16995 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16996 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h. */
17005 extern const char *__crashreporter_info__;
17007 __crashreporter_info__ = "test";
17013 rm -f conftest.$ac_objext conftest$ac_exeext
17014 if { (ac_try="$ac_link"
17015 case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_link") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17028 { (case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_try") 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); }; } &&
17037 { ac_try='test -s conftest$ac_exeext'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17048 { echo "$as_me:$LINENO: result: yes" >&5
17049 echo "${ECHO_T}yes" >&6; }
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_CRASHREPORTER_INFO 1
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17061 { echo "$as_me:$LINENO: result: no" >&5
17062 echo "${ECHO_T}no" >&6; }
17064 cat >>confdefs.h <<\_ACEOF
17065 #define HAVE_CRASHREPORTER_INFO 0
17071 rm -f core conftest.err conftest.$ac_objext \
17072 conftest$ac_exeext conftest.$ac_ext
17076 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17077 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17078 if test "${ac_cv_huge_val_sanity+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17083 ac_cpp='$CXXCPP $CPPFLAGS'
17084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17088 ac_save_CXXFLAGS=$CXXFLAGS
17089 CXXFLAGS="$CXXFLAGS -pedantic"
17090 if test "$cross_compiling" = yes; then
17091 ac_cv_huge_val_sanity=yes
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17103 double x = HUGE_VAL; return x != x;
17108 rm -f conftest$ac_exeext
17109 if { (ac_try="$ac_link"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_link") 2>&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17119 { (case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_try") 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_huge_val_sanity=yes
17130 echo "$as_me: program exited with status $ac_status" >&5
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ( exit $ac_status )
17135 ac_cv_huge_val_sanity=no
17137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17141 CXXFLAGS=$ac_save_CXXFLAGS
17143 ac_cpp='$CPP $CPPFLAGS'
17144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17150 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17151 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17152 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17155 { echo "$as_me:$LINENO: checking for pid_t" >&5
17156 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17157 if test "${ac_cv_type_pid_t+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 $ac_includes_default
17167 typedef pid_t ac__type_new_;
17171 if ((ac__type_new_ *) 0)
17173 if (sizeof (ac__type_new_))
17179 rm -f conftest.$ac_objext
17180 if { (ac_try="$ac_compile"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_compile") 2>conftest.er1
17188 grep -v '^ *+' conftest.er1 >conftest.err
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17194 { (case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_try") 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
17204 { (case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_try") 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_cv_type_pid_t=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_type_pid_t=no
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17224 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17225 if test $ac_cv_type_pid_t = yes; then
17229 cat >>confdefs.h <<_ACEOF
17235 { echo "$as_me:$LINENO: checking for size_t" >&5
17236 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17237 if test "${ac_cv_type_size_t+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 $ac_includes_default
17247 typedef size_t ac__type_new_;
17251 if ((ac__type_new_ *) 0)
17253 if (sizeof (ac__type_new_))
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_compile") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest.$ac_objext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_cv_type_size_t=yes
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17298 ac_cv_type_size_t=no
17301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17304 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17305 if test $ac_cv_type_size_t = yes; then
17309 cat >>confdefs.h <<_ACEOF
17310 #define size_t unsigned int
17316 cat >>confdefs.h <<_ACEOF
17317 #define RETSIGTYPE void
17320 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17321 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17322 if test "${ac_cv_struct_tm+set}" = set; then
17323 echo $ECHO_N "(cached) $ECHO_C" >&6
17325 cat >conftest.$ac_ext <<_ACEOF
17328 cat confdefs.h >>conftest.$ac_ext
17329 cat >>conftest.$ac_ext <<_ACEOF
17330 /* end confdefs.h. */
17331 #include <sys/types.h>
17337 struct tm *tp; tp->tm_sec;
17342 rm -f conftest.$ac_objext
17343 if { (ac_try="$ac_compile"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_compile") 2>conftest.er1
17351 grep -v '^ *+' conftest.er1 >conftest.err
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17376 ac_cv_struct_tm=time.h
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_cv_struct_tm=sys/time.h
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17387 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17388 if test $ac_cv_struct_tm = sys/time.h; then
17390 cat >>confdefs.h <<\_ACEOF
17391 #define TM_IN_SYS_TIME 1
17396 { echo "$as_me:$LINENO: checking for int64_t" >&5
17397 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17398 if test "${ac_cv_type_int64_t+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 $ac_includes_default
17408 typedef int64_t ac__type_new_;
17412 if ((ac__type_new_ *) 0)
17414 if (sizeof (ac__type_new_))
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest.$ac_objext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 ac_cv_type_int64_t=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_cv_type_int64_t=no
17462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17464 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17465 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17466 if test $ac_cv_type_int64_t = yes; then
17468 cat >>confdefs.h <<_ACEOF
17469 #define HAVE_INT64_T 1
17474 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17475 echo "$as_me: error: Type int64_t required but not found" >&2;}
17476 { (exit 1); exit 1; }; }
17479 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17480 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17481 if test "${ac_cv_type_uint64_t+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 $ac_includes_default
17491 typedef uint64_t ac__type_new_;
17495 if ((ac__type_new_ *) 0)
17497 if (sizeof (ac__type_new_))
17503 rm -f conftest.$ac_objext
17504 if { (ac_try="$ac_compile"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_compile") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17518 { (case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_try") 2>&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest.$ac_objext'
17528 { (case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533 (eval "$ac_try") 2>&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 ac_cv_type_uint64_t=yes
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 ac_cv_type_uint64_t=no
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17548 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17549 if test $ac_cv_type_uint64_t = yes; then
17551 cat >>confdefs.h <<_ACEOF
17552 #define HAVE_UINT64_T 1
17557 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17558 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17559 if test "${ac_cv_type_u_int64_t+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 cat >conftest.$ac_ext <<_ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h. */
17568 $ac_includes_default
17569 typedef u_int64_t ac__type_new_;
17573 if ((ac__type_new_ *) 0)
17575 if (sizeof (ac__type_new_))
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest.$ac_objext'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_type_u_int64_t=yes
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_type_u_int64_t=no
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17626 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17627 if test $ac_cv_type_u_int64_t = yes; then
17629 cat >>confdefs.h <<_ACEOF
17630 #define HAVE_U_INT64_T 1
17635 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17636 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17637 { (exit 1); exit 1; }; }
17651 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17667 #define $ac_func innocuous_$ac_func
17669 /* System header to define __stub macros and hopefully few prototypes,
17670 which can conflict with char $ac_func (); below.
17671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17672 <limits.h> exists even on freestanding compilers. */
17675 # include <limits.h>
17677 # include <assert.h>
17682 /* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17689 /* The GNU C library defines this for functions which it implements
17690 to always fail with ENOSYS. Some functions are actually named
17691 something starting with __ and the normal name is an alias. */
17692 #if defined __stub_$ac_func || defined __stub___$ac_func
17699 return $ac_func ();
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_link") 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } &&
17718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17719 { (case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_try") 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; } &&
17728 { ac_try='test -s conftest$ac_exeext'
17729 { (case "(($ac_try" in
17730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17731 *) ac_try_echo=$ac_try;;
17733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17734 (eval "$ac_try") 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 eval "$as_ac_var=yes"
17740 echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 eval "$as_ac_var=no"
17746 rm -f core conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17749 ac_res=`eval echo '${'$as_ac_var'}'`
17750 { echo "$as_me:$LINENO: result: $ac_res" >&5
17751 echo "${ECHO_T}$ac_res" >&6; }
17752 if test `eval echo '${'$as_ac_var'}'` = yes; then
17753 cat >>confdefs.h <<_ACEOF
17754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17764 for ac_func in powf fmodf strtof round
17766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17780 #define $ac_func innocuous_$ac_func
17782 /* System header to define __stub macros and hopefully few prototypes,
17783 which can conflict with char $ac_func (); below.
17784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17785 <limits.h> exists even on freestanding compilers. */
17788 # include <limits.h>
17790 # include <assert.h>
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17802 /* The GNU C library defines this for functions which it implements
17803 to always fail with ENOSYS. Some functions are actually named
17804 something starting with __ and the normal name is an alias. */
17805 #if defined __stub_$ac_func || defined __stub___$ac_func
17812 return $ac_func ();
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (ac_try="$ac_link"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17824 (eval "$ac_link") 2>conftest.er1
17826 grep -v '^ *+' conftest.er1 >conftest.err
17828 cat conftest.err >&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17832 { (case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_try") 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; } &&
17841 { ac_try='test -s conftest$ac_exeext'
17842 { (case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_try") 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 eval "$as_ac_var=yes"
17853 echo "$as_me: failed program was:" >&5
17854 sed 's/^/| /' conftest.$ac_ext >&5
17856 eval "$as_ac_var=no"
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval echo '${'$as_ac_var'}'`
17863 { echo "$as_me:$LINENO: result: $ac_res" >&5
17864 echo "${ECHO_T}$ac_res" >&6; }
17865 if test `eval echo '${'$as_ac_var'}'` = yes; then
17866 cat >>confdefs.h <<_ACEOF
17867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 for ac_func in log log2 log10 exp exp2
17880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17884 echo $ECHO_N "(cached) $ECHO_C" >&6
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17894 #define $ac_func innocuous_$ac_func
17896 /* System header to define __stub macros and hopefully few prototypes,
17897 which can conflict with char $ac_func (); below.
17898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17899 <limits.h> exists even on freestanding compilers. */
17902 # include <limits.h>
17904 # include <assert.h>
17909 /* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17916 /* The GNU C library defines this for functions which it implements
17917 to always fail with ENOSYS. Some functions are actually named
17918 something starting with __ and the normal name is an alias. */
17919 #if defined __stub_$ac_func || defined __stub___$ac_func
17926 return $ac_func ();
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 eval "$as_ac_var=yes"
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 eval "$as_ac_var=no"
17973 rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17976 ac_res=`eval echo '${'$as_ac_var'}'`
17977 { echo "$as_me:$LINENO: result: $ac_res" >&5
17978 echo "${ECHO_T}$ac_res" >&6; }
17979 if test `eval echo '${'$as_ac_var'}'` = yes; then
17980 cat >>confdefs.h <<_ACEOF
17981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 cat >conftest.$ac_ext <<_ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18008 #define $ac_func innocuous_$ac_func
18010 /* System header to define __stub macros and hopefully few prototypes,
18011 which can conflict with char $ac_func (); below.
18012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013 <limits.h> exists even on freestanding compilers. */
18016 # include <limits.h>
18018 # include <assert.h>
18023 /* Override any GCC internal prototype to avoid an error.
18024 Use char because int might match the return type of a GCC
18025 builtin and then its argument prototype would still apply. */
18030 /* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033 #if defined __stub_$ac_func || defined __stub___$ac_func
18040 return $ac_func ();
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_link") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062 *) ac_try_echo=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try='test -s conftest$ac_exeext'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 eval "$as_ac_var=yes"
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 eval "$as_ac_var=no"
18087 rm -f core conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18090 ac_res=`eval echo '${'$as_ac_var'}'`
18091 { echo "$as_me:$LINENO: result: $ac_res" >&5
18092 echo "${ECHO_T}$ac_res" >&6; }
18093 if test `eval echo '${'$as_ac_var'}'` = yes; then
18094 cat >>confdefs.h <<_ACEOF
18095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18104 for ac_func in isatty mkdtemp mkstemp
18106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18120 #define $ac_func innocuous_$ac_func
18122 /* System header to define __stub macros and hopefully few prototypes,
18123 which can conflict with char $ac_func (); below.
18124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18125 <limits.h> exists even on freestanding compilers. */
18128 # include <limits.h>
18130 # include <assert.h>
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18142 /* The GNU C library defines this for functions which it implements
18143 to always fail with ENOSYS. Some functions are actually named
18144 something starting with __ and the normal name is an alias. */
18145 #if defined __stub_$ac_func || defined __stub___$ac_func
18152 return $ac_func ();
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest$ac_exeext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 eval "$as_ac_var=yes"
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 eval "$as_ac_var=no"
18199 rm -f core conftest.err conftest.$ac_objext \
18200 conftest$ac_exeext conftest.$ac_ext
18202 ac_res=`eval echo '${'$as_ac_var'}'`
18203 { echo "$as_me:$LINENO: result: $ac_res" >&5
18204 echo "${ECHO_T}$ac_res" >&6; }
18205 if test `eval echo '${'$as_ac_var'}'` = yes; then
18206 cat >>confdefs.h <<_ACEOF
18207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18219 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18225 echo $ECHO_N "(cached) $ECHO_C" >&6
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18235 #define $ac_func innocuous_$ac_func
18237 /* System header to define __stub macros and hopefully few prototypes,
18238 which can conflict with char $ac_func (); below.
18239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240 <limits.h> exists even on freestanding compilers. */
18243 # include <limits.h>
18245 # include <assert.h>
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18257 /* The GNU C library defines this for functions which it implements
18258 to always fail with ENOSYS. Some functions are actually named
18259 something starting with __ and the normal name is an alias. */
18260 #if defined __stub_$ac_func || defined __stub___$ac_func
18267 return $ac_func ();
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (ac_try="$ac_link"
18274 case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18281 grep -v '^ *+' conftest.er1 >conftest.err
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 eval "$as_ac_var=yes"
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 eval "$as_ac_var=no"
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18317 ac_res=`eval echo '${'$as_ac_var'}'`
18318 { echo "$as_me:$LINENO: result: $ac_res" >&5
18319 echo "${ECHO_T}$ac_res" >&6; }
18320 if test `eval echo '${'$as_ac_var'}'` = yes; then
18321 cat >>confdefs.h <<_ACEOF
18322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18332 for ac_func in strerror strerror_r setenv arc4random
18334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18348 #define $ac_func innocuous_$ac_func
18350 /* System header to define __stub macros and hopefully few prototypes,
18351 which can conflict with char $ac_func (); below.
18352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18353 <limits.h> exists even on freestanding compilers. */
18356 # include <limits.h>
18358 # include <assert.h>
18363 /* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18370 /* The GNU C library defines this for functions which it implements
18371 to always fail with ENOSYS. Some functions are actually named
18372 something starting with __ and the normal name is an alias. */
18373 #if defined __stub_$ac_func || defined __stub___$ac_func
18380 return $ac_func ();
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (ac_try="$ac_link"
18387 case "(($ac_try" in
18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18389 *) ac_try_echo=$ac_try;;
18391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18392 (eval "$ac_link") 2>conftest.er1
18394 grep -v '^ *+' conftest.er1 >conftest.err
18396 cat conftest.err >&5
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
18399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest$ac_exeext'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; }; then
18419 eval "$as_ac_var=yes"
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 eval "$as_ac_var=no"
18427 rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18430 ac_res=`eval echo '${'$as_ac_var'}'`
18431 { echo "$as_me:$LINENO: result: $ac_res" >&5
18432 echo "${ECHO_T}$ac_res" >&6; }
18433 if test `eval echo '${'$as_ac_var'}'` = yes; then
18434 cat >>confdefs.h <<_ACEOF
18435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18445 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18461 #define $ac_func innocuous_$ac_func
18463 /* System header to define __stub macros and hopefully few prototypes,
18464 which can conflict with char $ac_func (); below.
18465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 <limits.h> exists even on freestanding compilers. */
18469 # include <limits.h>
18471 # include <assert.h>
18476 /* Override any GCC internal prototype to avoid an error.
18477 Use char because int might match the return type of a GCC
18478 builtin and then its argument prototype would still apply. */
18483 /* The GNU C library defines this for functions which it implements
18484 to always fail with ENOSYS. Some functions are actually named
18485 something starting with __ and the normal name is an alias. */
18486 #if defined __stub_$ac_func || defined __stub___$ac_func
18493 return $ac_func ();
18498 rm -f conftest.$ac_objext conftest$ac_exeext
18499 if { (ac_try="$ac_link"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_link") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1 >conftest.err
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
18512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18513 { (case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_try") 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest$ac_exeext'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; }; then
18532 eval "$as_ac_var=yes"
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 eval "$as_ac_var=no"
18540 rm -f core conftest.err conftest.$ac_objext \
18541 conftest$ac_exeext conftest.$ac_ext
18543 ac_res=`eval echo '${'$as_ac_var'}'`
18544 { echo "$as_me:$LINENO: result: $ac_res" >&5
18545 echo "${ECHO_T}$ac_res" >&6; }
18546 if test `eval echo '${'$as_ac_var'}'` = yes; then
18547 cat >>confdefs.h <<_ACEOF
18548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18559 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18575 #define $ac_func innocuous_$ac_func
18577 /* System header to define __stub macros and hopefully few prototypes,
18578 which can conflict with char $ac_func (); below.
18579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18580 <limits.h> exists even on freestanding compilers. */
18583 # include <limits.h>
18585 # include <assert.h>
18590 /* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18597 /* The GNU C library defines this for functions which it implements
18598 to always fail with ENOSYS. Some functions are actually named
18599 something starting with __ and the normal name is an alias. */
18600 #if defined __stub_$ac_func || defined __stub___$ac_func
18607 return $ac_func ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 eval "$as_ac_var=yes"
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18651 eval "$as_ac_var=no"
18654 rm -f core conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18657 ac_res=`eval echo '${'$as_ac_var'}'`
18658 { echo "$as_me:$LINENO: result: $ac_res" >&5
18659 echo "${ECHO_T}$ac_res" >&6; }
18660 if test `eval echo '${'$as_ac_var'}'` = yes; then
18661 cat >>confdefs.h <<_ACEOF
18662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18670 for ac_func in futimes futimens
18672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686 #define $ac_func innocuous_$ac_func
18688 /* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18694 # include <limits.h>
18696 # include <assert.h>
18701 /* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18708 /* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711 #if defined __stub_$ac_func || defined __stub___$ac_func
18718 return $ac_func ();
18723 rm -f conftest.$ac_objext conftest$ac_exeext
18724 if { (ac_try="$ac_link"
18725 case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_link") 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } &&
18737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18738 { (case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_try") 2>&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); }; } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_try") 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; }; then
18757 eval "$as_ac_var=yes"
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18762 eval "$as_ac_var=no"
18765 rm -f core conftest.err conftest.$ac_objext \
18766 conftest$ac_exeext conftest.$ac_ext
18768 ac_res=`eval echo '${'$as_ac_var'}'`
18769 { echo "$as_me:$LINENO: result: $ac_res" >&5
18770 echo "${ECHO_T}$ac_res" >&6; }
18771 if test `eval echo '${'$as_ac_var'}'` = yes; then
18772 cat >>confdefs.h <<_ACEOF
18773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18779 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18780 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18781 if test "${llvm_cv_c_printf_a+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 ac_cpp='$CPP $CPPFLAGS'
18786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790 if test "$cross_compiling" = yes; then
18791 llvmac_cv_c_printf_a=no
18793 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18802 #include <stdlib.h>
18808 volatile double A, B;
18812 sprintf(Buffer, "%a", A);
18816 if (A != 0x1.999999999999ap-4)
18823 rm -f conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18834 { (case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_try") 2>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
18843 llvm_cv_c_printf_a=yes
18845 echo "$as_me: program exited with status $ac_status" >&5
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ( exit $ac_status )
18850 llvmac_cv_c_printf_a=no
18852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18857 ac_cpp='$CPP $CPPFLAGS'
18858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18864 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18865 if test "$llvm_cv_c_printf_a" = "yes"; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_PRINTF_A 1
18875 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18876 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18877 if test "${ac_cv_func_rand48+set}" = set; then
18878 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 ac_cpp='$CXXCPP $CPPFLAGS'
18883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 #include <stdlib.h>
18897 srand48(0);lrand48();drand48();
18902 rm -f conftest.$ac_objext
18903 if { (ac_try="$ac_compile"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_compile") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_func_rand48=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_func_rand48=no
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946 ac_cpp='$CPP $CPPFLAGS'
18947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18953 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18954 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18956 if test "$ac_cv_func_rand48" = "yes" ; then
18958 cat >>confdefs.h <<\_ACEOF
18959 #define HAVE_RAND48 1
18965 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18966 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18967 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 $ac_includes_default
18981 char *p = (char *) strerror_s;
18989 rm -f conftest.$ac_objext
18990 if { (ac_try="$ac_compile"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_compile") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_cv_have_decl_strerror_s=yes
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_have_decl_strerror_s=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19034 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19035 if test $ac_cv_have_decl_strerror_s = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038 #define HAVE_DECL_STRERROR_S 1
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_DECL_STRERROR_S 0
19052 if test "$llvm_cv_os_type" = "MingW" ; then
19053 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19054 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_gcc__alloca=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_lib_gcc__alloca=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19129 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19130 if test $ac_cv_lib_gcc__alloca = yes; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE__ALLOCA 1
19138 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19139 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19140 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_check_lib_save_LIBS=$LIBS
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19162 return __alloca ();
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_link") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_lib_gcc___alloca=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_lib_gcc___alloca=no
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19214 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19215 if test $ac_cv_lib_gcc___alloca = yes; then
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE___ALLOCA 1
19223 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19224 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 ac_check_lib_save_LIBS=$LIBS
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19247 return __chkstk ();
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest$ac_exeext'
19277 { (case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_try") 2>&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286 ac_cv_lib_gcc___chkstk=yes
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_lib_gcc___chkstk=no
19294 rm -f core conftest.err conftest.$ac_objext \
19295 conftest$ac_exeext conftest.$ac_ext
19296 LIBS=$ac_check_lib_save_LIBS
19298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19299 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19300 if test $ac_cv_lib_gcc___chkstk = yes; then
19302 cat >>confdefs.h <<\_ACEOF
19303 #define HAVE___CHKSTK 1
19308 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19309 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19310 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 ac_check_lib_save_LIBS=$LIBS
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19322 /* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply. */
19332 return ___chkstk ();
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_link") 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest$ac_exeext'
19362 { (case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_try") 2>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); }; }; then
19371 ac_cv_lib_gcc____chkstk=yes
19373 echo "$as_me: failed program was:" >&5
19374 sed 's/^/| /' conftest.$ac_ext >&5
19376 ac_cv_lib_gcc____chkstk=no
19379 rm -f core conftest.err conftest.$ac_objext \
19380 conftest$ac_exeext conftest.$ac_ext
19381 LIBS=$ac_check_lib_save_LIBS
19383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19384 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19385 if test $ac_cv_lib_gcc____chkstk = yes; then
19387 cat >>confdefs.h <<\_ACEOF
19388 #define HAVE____CHKSTK 1
19394 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19395 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19418 return __ashldi3 ();
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } &&
19437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest$ac_exeext'
19448 { (case "(($ac_try" in
19449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450 *) ac_try_echo=$ac_try;;
19452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19453 (eval "$ac_try") 2>&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 ac_cv_lib_gcc___ashldi3=yes
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_cv_lib_gcc___ashldi3=no
19465 rm -f core conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19469 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19470 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19471 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE___ASHLDI3 1
19479 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19480 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19481 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 ac_check_lib_save_LIBS=$LIBS
19486 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19493 /* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19503 return __ashrdi3 ();
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19523 { (case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest$ac_exeext'
19533 { (case "(($ac_try" in
19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535 *) ac_try_echo=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_try") 2>&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; }; then
19542 ac_cv_lib_gcc___ashrdi3=yes
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_cv_lib_gcc___ashrdi3=no
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19555 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19556 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE___ASHRDI3 1
19564 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19565 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19566 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19569 ac_check_lib_save_LIBS=$LIBS
19571 cat >conftest.$ac_ext <<_ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19578 /* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19588 return __divdi3 ();
19593 rm -f conftest.$ac_objext conftest$ac_exeext
19594 if { (ac_try="$ac_link"
19595 case "(($ac_try" in
19596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19597 *) ac_try_echo=$ac_try;;
19599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19600 (eval "$ac_link") 2>conftest.er1
19602 grep -v '^ *+' conftest.er1 >conftest.err
19604 cat conftest.err >&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); } &&
19607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest$ac_exeext'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 ac_cv_lib_gcc___divdi3=yes
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19632 ac_cv_lib_gcc___divdi3=no
19635 rm -f core conftest.err conftest.$ac_objext \
19636 conftest$ac_exeext conftest.$ac_ext
19637 LIBS=$ac_check_lib_save_LIBS
19639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19640 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19641 if test $ac_cv_lib_gcc___divdi3 = yes; then
19643 cat >>confdefs.h <<\_ACEOF
19644 #define HAVE___DIVDI3 1
19649 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19650 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19651 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 ac_check_lib_save_LIBS=$LIBS
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19663 /* Override any GCC internal prototype to avoid an error.
19664 Use char because int might match the return type of a GCC
19665 builtin and then its argument prototype would still apply. */
19673 return __fixdfdi ();
19678 rm -f conftest.$ac_objext conftest$ac_exeext
19679 if { (ac_try="$ac_link"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_link") 2>conftest.er1
19687 grep -v '^ *+' conftest.er1 >conftest.err
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_try") 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest$ac_exeext'
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_lib_gcc___fixdfdi=yes
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_cv_lib_gcc___fixdfdi=no
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19725 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19726 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19728 cat >>confdefs.h <<\_ACEOF
19729 #define HAVE___FIXDFDI 1
19734 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19735 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19736 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_check_lib_save_LIBS=$LIBS
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19748 /* Override any GCC internal prototype to avoid an error.
19749 Use char because int might match the return type of a GCC
19750 builtin and then its argument prototype would still apply. */
19758 return __fixsfdi ();
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_link") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } &&
19777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest$ac_exeext'
19788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19797 ac_cv_lib_gcc___fixsfdi=yes
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 ac_cv_lib_gcc___fixsfdi=no
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19810 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19811 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19813 cat >>confdefs.h <<\_ACEOF
19814 #define HAVE___FIXSFDI 1
19819 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19820 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19821 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_check_lib_save_LIBS=$LIBS
19826 cat >conftest.$ac_ext <<_ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19833 /* Override any GCC internal prototype to avoid an error.
19834 Use char because int might match the return type of a GCC
19835 builtin and then its argument prototype would still apply. */
19839 char __floatdidf ();
19843 return __floatdidf ();
19848 rm -f conftest.$ac_objext conftest$ac_exeext
19849 if { (ac_try="$ac_link"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_link") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest$ac_exeext'
19873 { (case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_try") 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_lib_gcc___floatdidf=yes
19884 echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 ac_cv_lib_gcc___floatdidf=no
19890 rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
19892 LIBS=$ac_check_lib_save_LIBS
19894 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19895 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19896 if test $ac_cv_lib_gcc___floatdidf = yes; then
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE___FLOATDIDF 1
19904 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19905 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19906 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19907 echo $ECHO_N "(cached) $ECHO_C" >&6
19909 ac_check_lib_save_LIBS=$LIBS
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19918 /* Override any GCC internal prototype to avoid an error.
19919 Use char because int might match the return type of a GCC
19920 builtin and then its argument prototype would still apply. */
19928 return __lshrdi3 ();
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } &&
19947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_try") 2>&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_lib_gcc___lshrdi3=yes
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_cv_lib_gcc___lshrdi3=no
19975 rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19980 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19981 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19983 cat >>confdefs.h <<\_ACEOF
19984 #define HAVE___LSHRDI3 1
19989 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19990 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19991 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 ac_check_lib_save_LIBS=$LIBS
19996 cat >conftest.$ac_ext <<_ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20013 return __moddi3 ();
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_try") 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest$ac_exeext'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20052 ac_cv_lib_gcc___moddi3=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20057 ac_cv_lib_gcc___moddi3=no
20060 rm -f core conftest.err conftest.$ac_objext \
20061 conftest$ac_exeext conftest.$ac_ext
20062 LIBS=$ac_check_lib_save_LIBS
20064 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20065 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20066 if test $ac_cv_lib_gcc___moddi3 = yes; then
20068 cat >>confdefs.h <<\_ACEOF
20069 #define HAVE___MODDI3 1
20074 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20075 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20076 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 ac_check_lib_save_LIBS=$LIBS
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20088 /* Override any GCC internal prototype to avoid an error.
20089 Use char because int might match the return type of a GCC
20090 builtin and then its argument prototype would still apply. */
20098 return __udivdi3 ();
20103 rm -f conftest.$ac_objext conftest$ac_exeext
20104 if { (ac_try="$ac_link"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_link") 2>conftest.er1
20112 grep -v '^ *+' conftest.er1 >conftest.err
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest$ac_exeext'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20137 ac_cv_lib_gcc___udivdi3=yes
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 ac_cv_lib_gcc___udivdi3=no
20145 rm -f core conftest.err conftest.$ac_objext \
20146 conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20150 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20151 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE___UDIVDI3 1
20159 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20160 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20161 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 ac_check_lib_save_LIBS=$LIBS
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20183 return __umoddi3 ();
20188 rm -f conftest.$ac_objext conftest$ac_exeext
20189 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20197 grep -v '^ *+' conftest.er1 >conftest.err
20199 cat conftest.err >&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); } &&
20202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20203 { (case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_try") 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; } &&
20212 { ac_try='test -s conftest$ac_exeext'
20213 { (case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_try") 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_lib_gcc___umoddi3=yes
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_lib_gcc___umoddi3=no
20230 rm -f core conftest.err conftest.$ac_objext \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20235 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20236 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20238 cat >>confdefs.h <<\_ACEOF
20239 #define HAVE___UMODDI3 1
20245 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20246 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20247 if test "${ac_cv_lib_gcc___main+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 ac_check_lib_save_LIBS=$LIBS
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; } &&
20298 { ac_try='test -s conftest$ac_exeext'
20299 { (case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_try") 2>&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; }; then
20308 ac_cv_lib_gcc___main=yes
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_lib_gcc___main=no
20316 rm -f core conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 LIBS=$ac_check_lib_save_LIBS
20320 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20321 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20322 if test $ac_cv_lib_gcc___main = yes; then
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE___MAIN 1
20330 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20331 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20332 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 ac_check_lib_save_LIBS=$LIBS
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20344 /* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20354 return __cmpdi2 ();
20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); } &&
20373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest$ac_exeext'
20384 { (case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_try") 2>&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_cv_lib_gcc___cmpdi2=yes
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_cv_lib_gcc___cmpdi2=no
20401 rm -f core conftest.err conftest.$ac_objext \
20402 conftest$ac_exeext conftest.$ac_ext
20403 LIBS=$ac_check_lib_save_LIBS
20405 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20406 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20407 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE___CMPDI2 1
20417 if test "$llvm_cv_os_type" = "MingW" ; then
20418 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20419 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20420 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 #include <windows.h>
20429 #include <imagehlp.h>
20430 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20431 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20435 rm -f conftest.$ac_objext
20436 if { (ac_try="$ac_compile"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_compile") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20450 { (case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_try") 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest.$ac_objext'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20470 { echo "$as_me:$LINENO: result: yes" >&5
20471 echo "${ECHO_T}yes" >&6; }
20472 llvm_cv_win32_elmcb_pcstr="PCSTR"
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20479 { echo "$as_me:$LINENO: result: no" >&5
20480 echo "${ECHO_T}no" >&6; }
20481 llvm_cv_win32_elmcb_pcstr="PSTR"
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 cat >>confdefs.h <<_ACEOF
20488 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20495 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20496 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20497 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 ac_cpp='$CXXCPP $CPPFLAGS'
20503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
20536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20537 { (case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_try") 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try='test -s conftest.$ac_objext'
20547 { (case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_try") 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_func_isnan_in_math_h=yes
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_cv_func_isnan_in_math_h=no
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 ac_cpp='$CPP $CPPFLAGS'
20567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20573 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20574 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20577 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20579 cat >>confdefs.h <<\_ACEOF
20580 #define HAVE_ISNAN_IN_MATH_H 1
20586 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20587 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20588 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20589 echo $ECHO_N "(cached) $ECHO_C" >&6
20593 ac_cpp='$CXXCPP $CPPFLAGS'
20594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20613 rm -f conftest.$ac_objext
20614 if { (ac_try="$ac_compile"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_compile") 2>conftest.er1
20622 grep -v '^ *+' conftest.er1 >conftest.err
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } &&
20627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20628 { (case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_try") 2>&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; } &&
20637 { ac_try='test -s conftest.$ac_objext'
20638 { (case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_try") 2>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }; then
20647 ac_cv_func_isnan_in_cmath=yes
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_func_isnan_in_cmath=no
20655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657 ac_cpp='$CPP $CPPFLAGS'
20658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20665 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20667 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_ISNAN_IN_CMATH 1
20676 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20677 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20678 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20679 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 ac_cpp='$CXXCPP $CPPFLAGS'
20684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20698 float f; std::isnan(f);
20703 rm -f conftest.$ac_objext
20704 if { (ac_try="$ac_compile"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_compile") 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; } &&
20727 { ac_try='test -s conftest.$ac_objext'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ac_cv_func_std_isnan_in_cmath=yes
20739 echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_cv_func_std_isnan_in_cmath=no
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20747 ac_cpp='$CPP $CPPFLAGS'
20748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20754 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20755 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20757 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20759 cat >>confdefs.h <<\_ACEOF
20760 #define HAVE_STD_ISNAN_IN_CMATH 1
20768 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20769 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20770 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 ac_cpp='$CXXCPP $CPPFLAGS'
20776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20795 rm -f conftest.$ac_objext
20796 if { (ac_try="$ac_compile"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_compile") 2>conftest.er1
20804 grep -v '^ *+' conftest.er1 >conftest.err
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
20809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20810 { (case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_try") 2>&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest.$ac_objext'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_func_isinf_in_math_h=yes
20831 echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20834 ac_cv_func_isinf_in_math_h=no
20837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 ac_cpp='$CPP $CPPFLAGS'
20840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20846 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20847 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20849 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20851 cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_ISINF_IN_MATH_H 1
20858 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20859 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20860 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 ac_cpp='$CXXCPP $CPPFLAGS'
20866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20885 rm -f conftest.$ac_objext
20886 if { (ac_try="$ac_compile"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_compile") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
20899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
20910 { (case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_try") 2>&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); }; }; then
20919 ac_cv_func_isinf_in_cmath=yes
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_cv_func_isinf_in_cmath=no
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20937 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20939 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20941 cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_ISINF_IN_CMATH 1
20948 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20949 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20950 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20955 ac_cpp='$CXXCPP $CPPFLAGS'
20956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20960 cat >conftest.$ac_ext <<_ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20970 float f; std::isinf(f);
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest.$ac_objext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_func_std_isinf_in_cmath=yes
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 ac_cv_func_std_isinf_in_cmath=no
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 ac_cpp='$CPP $CPPFLAGS'
21020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21026 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21027 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21029 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_STD_ISINF_IN_CMATH 1
21038 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21039 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21040 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 ac_cpp='$CXXCPP $CPPFLAGS'
21046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21050 cat >conftest.$ac_ext <<_ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 #include <ieeefp.h>
21060 float f; finite(f);
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21080 { (case "(($ac_try" in
21081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082 *) ac_try_echo=$ac_try;;
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085 (eval "$ac_try") 2>&5
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; } &&
21089 { ac_try='test -s conftest.$ac_objext'
21090 { (case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_try") 2>&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; }; then
21099 ac_cv_func_finite_in_ieeefp_h=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21104 ac_cv_func_finite_in_ieeefp_h=no
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109 ac_cpp='$CPP $CPPFLAGS'
21110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21116 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21117 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21119 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21121 cat >>confdefs.h <<\_ACEOF
21122 #define HAVE_FINITE_IN_IEEEFP_H 1
21129 if test "$llvm_cv_platform_type" = "Unix" ; then
21132 for ac_header in stdlib.h unistd.h
21134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 ac_res=`eval echo '${'$as_ac_Header'}'`
21142 { echo "$as_me:$LINENO: result: $ac_res" >&5
21143 echo "${ECHO_T}$ac_res" >&6; }
21145 # Is the header compilable?
21146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 $ac_includes_default
21155 #include <$ac_header>
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21172 { (case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_try") 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 ac_header_compiler=yes
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21196 ac_header_compiler=no
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21201 echo "${ECHO_T}$ac_header_compiler" >&6; }
21203 # Is the header present?
21204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 #include <$ac_header>
21214 if { (ac_try="$ac_cpp conftest.$ac_ext"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } >/dev/null; then
21227 if test -s conftest.err; then
21228 ac_cpp_err=$ac_c_preproc_warn_flag
21229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21236 if test -z "$ac_cpp_err"; then
21237 ac_header_preproc=yes
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21242 ac_header_preproc=no
21245 rm -f conftest.err conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21247 echo "${ECHO_T}$ac_header_preproc" >&6; }
21249 # So? What about this header?
21250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21256 ac_header_preproc=yes
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21272 ## ------------------------------------ ##
21273 ## Report this to http://llvm.org/bugs/ ##
21274 ## ------------------------------------ ##
21276 ) | sed "s/^/$as_me: WARNING: /" >&2
21279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 eval "$as_ac_Header=\$ac_header_preproc"
21286 ac_res=`eval echo '${'$as_ac_Header'}'`
21287 { echo "$as_me:$LINENO: result: $ac_res" >&5
21288 echo "${ECHO_T}$ac_res" >&6; }
21291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21292 cat >>confdefs.h <<_ACEOF
21293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21301 for ac_func in getpagesize
21303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21304 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 cat >conftest.$ac_ext <<_ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21317 #define $ac_func innocuous_$ac_func
21319 /* System header to define __stub macros and hopefully few prototypes,
21320 which can conflict with char $ac_func (); below.
21321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21322 <limits.h> exists even on freestanding compilers. */
21325 # include <limits.h>
21327 # include <assert.h>
21332 /* Override any GCC internal prototype to avoid an error.
21333 Use char because int might match the return type of a GCC
21334 builtin and then its argument prototype would still apply. */
21339 /* The GNU C library defines this for functions which it implements
21340 to always fail with ENOSYS. Some functions are actually named
21341 something starting with __ and the normal name is an alias. */
21342 #if defined __stub_$ac_func || defined __stub___$ac_func
21349 return $ac_func ();
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (ac_try="$ac_link"
21356 case "(($ac_try" in
21357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21358 *) ac_try_echo=$ac_try;;
21360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21361 (eval "$ac_link") 2>conftest.er1
21363 grep -v '^ *+' conftest.er1 >conftest.err
21365 cat conftest.err >&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } &&
21368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21369 { (case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_try") 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }; } &&
21378 { ac_try='test -s conftest$ac_exeext'
21379 { (case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_try") 2>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 eval "$as_ac_var=yes"
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 eval "$as_ac_var=no"
21396 rm -f core conftest.err conftest.$ac_objext \
21397 conftest$ac_exeext conftest.$ac_ext
21399 ac_res=`eval echo '${'$as_ac_var'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402 if test `eval echo '${'$as_ac_var'}'` = yes; then
21403 cat >>confdefs.h <<_ACEOF
21404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21410 { echo "$as_me:$LINENO: checking for working mmap" >&5
21411 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21412 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 if test "$cross_compiling" = yes; then
21416 ac_cv_func_mmap_fixed_mapped=no
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 /* malloc might have been renamed as rpl_malloc. */
21428 /* Thanks to Mike Haertel and Jim Avera for this test.
21429 Here is a matrix of mmap possibilities:
21430 mmap private not fixed
21431 mmap private fixed at somewhere currently unmapped
21432 mmap private fixed at somewhere already mapped
21433 mmap shared not fixed
21434 mmap shared fixed at somewhere currently unmapped
21435 mmap shared fixed at somewhere already mapped
21436 For private mappings, we should verify that changes cannot be read()
21437 back from the file, nor mmap's back from the file at a different
21438 address. (There have been systems where private was not correctly
21439 implemented like the infamous i386 svr4.0, and systems where the
21440 VM page cache was not coherent with the file system buffer cache
21441 like early versions of FreeBSD and possibly contemporary NetBSD.)
21442 For shared mappings, we should conversely verify that changes get
21443 propagated back to all the places they're supposed to be.
21445 Grep wants private fixed already mapped.
21446 The main things grep needs to know about mmap are:
21447 * does it exist and is it safe to write into the mmap'd area
21448 * how to use it (BSD variants) */
21451 #include <sys/mman.h>
21453 #if !STDC_HEADERS && !HAVE_STDLIB_H
21457 /* This mess was copied from the GNU getpagesize.h. */
21458 #if !HAVE_GETPAGESIZE
21459 /* Assume that all systems that can run configure have sys/param.h. */
21460 # if !HAVE_SYS_PARAM_H
21461 # define HAVE_SYS_PARAM_H 1
21464 # ifdef _SC_PAGESIZE
21465 # define getpagesize() sysconf(_SC_PAGESIZE)
21466 # else /* no _SC_PAGESIZE */
21467 # if HAVE_SYS_PARAM_H
21468 # include <sys/param.h>
21469 # ifdef EXEC_PAGESIZE
21470 # define getpagesize() EXEC_PAGESIZE
21471 # else /* no EXEC_PAGESIZE */
21473 # define getpagesize() NBPG * CLSIZE
21476 # endif /* no CLSIZE */
21477 # else /* no NBPG */
21479 # define getpagesize() NBPC
21480 # else /* no NBPC */
21482 # define getpagesize() PAGESIZE
21483 # endif /* PAGESIZE */
21484 # endif /* no NBPC */
21485 # endif /* no NBPG */
21486 # endif /* no EXEC_PAGESIZE */
21487 # else /* no HAVE_SYS_PARAM_H */
21488 # define getpagesize() 8192 /* punt totally */
21489 # endif /* no HAVE_SYS_PARAM_H */
21490 # endif /* no _SC_PAGESIZE */
21492 #endif /* no HAVE_GETPAGESIZE */
21497 char *data, *data2, *data3;
21501 pagesize = getpagesize ();
21503 /* First, make a file with some known garbage in it. */
21504 data = (char *) malloc (pagesize);
21507 for (i = 0; i < pagesize; ++i)
21508 *(data + i) = rand ();
21510 fd = creat ("conftest.mmap", 0600);
21513 if (write (fd, data, pagesize) != pagesize)
21517 /* Next, try to mmap the file at a fixed address which already has
21518 something else allocated at it. If we can, also make sure that
21519 we see the same garbage. */
21520 fd = open ("conftest.mmap", O_RDWR);
21523 data2 = (char *) malloc (2 * pagesize);
21526 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21527 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21528 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21530 for (i = 0; i < pagesize; ++i)
21531 if (*(data + i) != *(data2 + i))
21534 /* Finally, make sure that changes to the mapped area do not
21535 percolate back to the file as seen by read(). (This is a bug on
21536 some variants of i386 svr4.0.) */
21537 for (i = 0; i < pagesize; ++i)
21538 *(data2 + i) = *(data2 + i) + 1;
21539 data3 = (char *) malloc (pagesize);
21542 if (read (fd, data3, pagesize) != pagesize)
21544 for (i = 0; i < pagesize; ++i)
21545 if (*(data + i) != *(data3 + i))
21551 rm -f conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21562 { (case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_try") 2>&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21571 ac_cv_func_mmap_fixed_mapped=yes
21573 echo "$as_me: program exited with status $ac_status" >&5
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ( exit $ac_status )
21578 ac_cv_func_mmap_fixed_mapped=no
21580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21585 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21586 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21587 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21589 cat >>confdefs.h <<\_ACEOF
21590 #define HAVE_MMAP 1
21594 rm -f conftest.mmap
21596 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21597 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21598 if test "${ac_cv_func_mmap_file+set}" = set; then
21599 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 ac_cpp='$CPP $CPPFLAGS'
21603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21607 if test "$cross_compiling" = yes; then
21608 ac_cv_func_mmap_file=no
21610 cat >conftest.$ac_ext <<_ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h. */
21618 #include <sys/types.h>
21619 #include <sys/mman.h>
21627 fd = creat ("foo",0777);
21628 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21630 return (fd != (int) MAP_FAILED);
21635 rm -f conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_link") 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21646 { (case "(($ac_try" in
21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_try") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_cv_func_mmap_file=yes
21657 echo "$as_me: program exited with status $ac_status" >&5
21658 echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21661 ( exit $ac_status )
21662 ac_cv_func_mmap_file=no
21664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21669 ac_cpp='$CPP $CPPFLAGS'
21670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21677 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21678 if test "$ac_cv_func_mmap_file" = yes; then
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_MMAP_FILE
21688 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21689 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21690 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 if test "$llvm_cv_os_type" = "Interix" ; then
21694 ac_cv_need_dev_zero_for_mmap=yes
21696 ac_cv_need_dev_zero_for_mmap=no
21700 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21701 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21702 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21704 cat >>confdefs.h <<\_ACEOF
21705 #define NEED_DEV_ZERO_FOR_MMAP 1
21710 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21712 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21713 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21715 if test "$ac_cv_func_mmap_file" = "no"
21717 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21718 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21722 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21723 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21725 ac_cpp='$CXXCPP $CPPFLAGS'
21726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21730 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21739 volatile unsigned long val = 1;
21740 __sync_synchronize();
21741 __sync_val_compare_and_swap(&val, 1, 0);
21742 __sync_add_and_fetch(&val, 1);
21743 __sync_sub_and_fetch(&val, 1);
21749 rm -f conftest.$ac_objext conftest$ac_exeext
21750 if { (ac_try="$ac_link"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_link") 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21764 { (case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_try") 2>&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest$ac_exeext'
21774 { (case "(($ac_try" in
21775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_try") 2>&5
21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782 (exit $ac_status); }; }; then
21784 { echo "$as_me:$LINENO: result: yes" >&5
21785 echo "${ECHO_T}yes" >&6; }
21787 cat >>confdefs.h <<\_ACEOF
21788 #define LLVM_HAS_ATOMICS 1
21793 echo "$as_me: failed program was:" >&5
21794 sed 's/^/| /' conftest.$ac_ext >&5
21797 { echo "$as_me:$LINENO: result: no" >&5
21798 echo "${ECHO_T}no" >&6; }
21800 cat >>confdefs.h <<\_ACEOF
21801 #define LLVM_HAS_ATOMICS 0
21804 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21805 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21809 rm -f core conftest.err conftest.$ac_objext \
21810 conftest$ac_exeext conftest.$ac_ext
21812 ac_cpp='$CPP $CPPFLAGS'
21813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21819 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21820 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21821 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21822 if test "${llvm_cv_linux_mixed+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 ac_cpp='$CPP $CPPFLAGS'
21827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21838 error: Not x86-64 even if uname says so!
21849 rm -f conftest.$ac_objext
21850 if { (ac_try="$ac_compile"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_compile") 2>conftest.er1
21858 grep -v '^ *+' conftest.er1 >conftest.err
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } &&
21863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21864 { (case "(($ac_try" in
21865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866 *) ac_try_echo=$ac_try;;
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869 (eval "$ac_try") 2>&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); }; } &&
21873 { ac_try='test -s conftest.$ac_objext'
21874 { (case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_try") 2>&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 llvm_cv_linux_mixed=no
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 llvm_cv_linux_mixed=yes
21891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 ac_cpp='$CPP $CPPFLAGS'
21894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21900 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21901 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21903 if test "$llvm_cv_linux_mixed" = "yes"; then
21904 llvm_cv_target_arch="x86"
21910 for ac_func in __dso_handle
21912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21926 #define $ac_func innocuous_$ac_func
21928 /* System header to define __stub macros and hopefully few prototypes,
21929 which can conflict with char $ac_func (); below.
21930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931 <limits.h> exists even on freestanding compilers. */
21934 # include <limits.h>
21936 # include <assert.h>
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21948 /* The GNU C library defines this for functions which it implements
21949 to always fail with ENOSYS. Some functions are actually named
21950 something starting with __ and the normal name is an alias. */
21951 #if defined __stub_$ac_func || defined __stub___$ac_func
21958 return $ac_func ();
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } &&
21977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21978 { (case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_try") 2>&5
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); }; } &&
21987 { ac_try='test -s conftest$ac_exeext'
21988 { (case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_try") 2>&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); }; }; then
21997 eval "$as_ac_var=yes"
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 eval "$as_ac_var=no"
22005 rm -f core conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
22008 ac_res=`eval echo '${'$as_ac_var'}'`
22009 { echo "$as_me:$LINENO: result: $ac_res" >&5
22010 echo "${ECHO_T}$ac_res" >&6; }
22011 if test `eval echo '${'$as_ac_var'}'` = yes; then
22012 cat >>confdefs.h <<_ACEOF
22013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22020 SHLIBEXT=$libltdl_cv_shlibext
22023 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22026 if test "${prefix}" = "NONE" ; then
22027 prefix="/usr/local"
22029 eval LLVM_PREFIX="${prefix}";
22030 eval LLVM_BINDIR="${prefix}/bin";
22031 eval LLVM_DATADIR="${prefix}/share/llvm";
22032 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22033 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22034 eval LLVM_INCLUDEDIR="${prefix}/include";
22035 eval LLVM_INFODIR="${prefix}/info";
22036 eval LLVM_MANDIR="${prefix}/man";
22037 LLVM_CONFIGTIME=`date`
22048 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22049 LLVM_CONFIGTIME="(timestamp not enabled)"
22053 cat >>confdefs.h <<_ACEOF
22054 #define LLVM_PREFIX "$LLVM_PREFIX"
22058 cat >>confdefs.h <<_ACEOF
22059 #define LLVM_BINDIR "$LLVM_BINDIR"
22063 cat >>confdefs.h <<_ACEOF
22064 #define LLVM_DATADIR "$LLVM_DATADIR"
22068 cat >>confdefs.h <<_ACEOF
22069 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22073 cat >>confdefs.h <<_ACEOF
22074 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22078 cat >>confdefs.h <<_ACEOF
22079 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22083 cat >>confdefs.h <<_ACEOF
22084 #define LLVM_INFODIR "$LLVM_INFODIR"
22088 cat >>confdefs.h <<_ACEOF
22089 #define LLVM_MANDIR "$LLVM_MANDIR"
22093 cat >>confdefs.h <<_ACEOF
22094 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22098 cat >>confdefs.h <<_ACEOF
22099 #define LLVM_HOST_TRIPLE "$host"
22103 cat >>confdefs.h <<_ACEOF
22104 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22108 if test "$BINDINGS_TO_BUILD" = auto ; then
22109 BINDINGS_TO_BUILD=""
22110 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22111 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22114 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22120 binding_prereqs_failed=0
22121 for a_binding in $BINDINGS_TO_BUILD ; do
22122 case "$a_binding" in
22124 if test "x$OCAMLC" = x ; then
22125 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22126 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22127 binding_prereqs_failed=1
22129 if test "x$OCAMLDEP" = x ; then
22130 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22131 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22132 binding_prereqs_failed=1
22134 if test "x$OCAMLOPT" = x ; then
22135 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22136 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22138 if test "x$with_ocaml_libdir" != xauto ; then
22139 OCAML_LIBDIR=$with_ocaml_libdir
22142 ocaml_stdlib="`"$OCAMLC" -where`"
22143 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22145 # ocaml stdlib is beneath our prefix; use stdlib
22146 OCAML_LIBDIR=$ocaml_stdlib
22149 # ocaml stdlib is outside our prefix; use libdir/ocaml
22150 OCAML_LIBDIR=${prefix}/lib/ocaml
22157 if test "$binding_prereqs_failed" = 1 ; then
22158 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22159 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22160 { (exit 1); exit 1; }; }
22163 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22164 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22165 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22166 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 ac_cpp='$CXXCPP $CPPFLAGS'
22170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22174 oldcxxflags="$CXXFLAGS"
22175 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22176 cat >conftest.$ac_ext <<_ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22191 rm -f conftest.$ac_objext
22192 if { (ac_try="$ac_compile"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198 (eval "$ac_compile") 2>conftest.er1
22200 grep -v '^ *+' conftest.er1 >conftest.err
22202 cat conftest.err >&5
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); } &&
22205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22206 { (case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; } &&
22215 { ac_try='test -s conftest.$ac_objext'
22216 { (case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_try") 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 llvm_cv_cxx_visibility_inlines_hidden=yes
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 llvm_cv_cxx_visibility_inlines_hidden=no
22233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22234 CXXFLAGS="$oldcxxflags"
22236 ac_cpp='$CPP $CPPFLAGS'
22237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22243 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22244 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22245 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22246 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22249 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22254 if test "$llvm_cv_link_use_r" = "yes" ; then
22261 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22262 RDYNAMIC="-rdynamic"
22269 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22276 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22278 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22280 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22282 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22284 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22287 ac_config_files="$ac_config_files Makefile.config"
22290 ac_config_files="$ac_config_files llvm.spec"
22293 ac_config_files="$ac_config_files docs/doxygen.cfg"
22296 if test "${clang_src_root}" = ""; then
22297 clang_src_root="$srcdir/tools/clang"
22299 if test -f ${clang_src_root}/README.txt; then
22300 configh="include/clang/Config/config.h"
22301 doxy="docs/doxygen.cfg"
22302 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22304 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22308 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22311 test "x$program_prefix" = "xNONE" && program_prefix=""
22315 ac_config_commands="$ac_config_commands setup"
22317 ac_config_commands="$ac_config_commands Makefile"
22320 ac_config_commands="$ac_config_commands Makefile.common"
22323 ac_config_commands="$ac_config_commands examples/Makefile"
22326 ac_config_commands="$ac_config_commands lib/Makefile"
22329 ac_config_commands="$ac_config_commands runtime/Makefile"
22332 ac_config_commands="$ac_config_commands test/Makefile"
22335 ac_config_commands="$ac_config_commands test/Makefile.tests"
22338 ac_config_commands="$ac_config_commands unittests/Makefile"
22341 ac_config_commands="$ac_config_commands tools/Makefile"
22344 ac_config_commands="$ac_config_commands utils/Makefile"
22347 ac_config_commands="$ac_config_commands projects/Makefile"
22350 ac_config_commands="$ac_config_commands bindings/Makefile"
22353 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22357 cat >confcache <<\_ACEOF
22358 # This file is a shell script that caches the results of configure
22359 # tests run on this system so they can be shared between configure
22360 # scripts and configure runs, see configure's option --config-cache.
22361 # It is not useful on other systems. If it contains results you don't
22362 # want to keep, you may remove or edit it.
22364 # config.status only pays attention to the cache file if you give it
22365 # the --recheck option to rerun configure.
22367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22369 # following values.
22373 # The following way of writing the cache mishandles newlines in values,
22374 # but we know of no workaround that is simple, portable, and efficient.
22375 # So, we kill variables containing newlines.
22376 # Ultrix sh set writes to stderr and can't be redirected directly,
22377 # and sets the high bit in the cache file unless we assign to the vars.
22379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22380 eval ac_val=\$$ac_var
22384 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22385 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22388 _ | IFS | as_nl) ;; #(
22389 *) $as_unset $ac_var ;;
22395 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22396 *${as_nl}ac_space=\ *)
22397 # `set' does not quote correctly, so add quotes (double-quote
22398 # substitution turns \\\\ into \\, and sed turns \\ into \).
22401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22404 # `set' quotes correctly as required by POSIX, so do not add quotes.
22405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22418 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22419 if test -w "$cache_file"; then
22420 test "x$cache_file" != "x/dev/null" &&
22421 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22422 echo "$as_me: updating cache $cache_file" >&6;}
22423 cat confcache >$cache_file
22425 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22426 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22432 # Let make expand exec_prefix.
22433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22435 DEFS=-DHAVE_CONFIG_H
22439 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22440 # 1. Remove the extension, and $U if already installed.
22441 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22442 ac_i=`echo "$ac_i" | sed "$ac_script"`
22443 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22444 # will be set to the directory where LIBOBJS objects are built.
22445 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22446 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22448 LIBOBJS=$ac_libobjs
22450 LTLIBOBJS=$ac_ltlibobjs
22453 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22454 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22455 Usually this means the macro was only invoked conditionally." >&5
22456 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22457 Usually this means the macro was only invoked conditionally." >&2;}
22458 { (exit 1); exit 1; }; }
22460 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22461 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22462 Usually this means the macro was only invoked conditionally." >&5
22463 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22464 Usually this means the macro was only invoked conditionally." >&2;}
22465 { (exit 1); exit 1; }; }
22468 : ${CONFIG_STATUS=./config.status}
22469 ac_clean_files_save=$ac_clean_files
22470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22473 cat >$CONFIG_STATUS <<_ACEOF
22475 # Generated by $as_me.
22476 # Run this file to recreate the current configuration.
22477 # Compiler output produced by configure, useful for debugging
22478 # configure, is in config.log if it exists.
22481 ac_cs_recheck=false
22483 SHELL=\${CONFIG_SHELL-$SHELL}
22486 cat >>$CONFIG_STATUS <<\_ACEOF
22487 ## --------------------- ##
22488 ## M4sh Initialization. ##
22489 ## --------------------- ##
22491 # Be Bourne compatible
22492 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22496 # is contrary to our usage. Disable this feature.
22497 alias -g '${1+"$@"}'='"$@"'
22498 setopt NO_GLOB_SUBST
22500 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22502 BIN_SH=xpg4; export BIN_SH # for Tru64
22503 DUALCASE=1; export DUALCASE # for MKS sh
22507 # Avoid depending upon Character Ranges.
22508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22511 as_cr_digits='0123456789'
22512 as_cr_alnum=$as_cr_Letters$as_cr_digits
22514 # The user is always right.
22515 if test "${PATH_SEPARATOR+set}" != set; then
22516 echo "#! /bin/sh" >conf$$.sh
22517 echo "exit 0" >>conf$$.sh
22519 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22527 # Support unset when possible.
22528 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22536 # We need space, tab and new line, in precisely that order. Quoting is
22537 # there to prevent editors from complaining about space-tab.
22538 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22539 # splitting by setting IFS to empty value.)
22544 # Find who we are. Look in the path if we contain no directory separator.
22546 *[\\/]* ) as_myself=$0 ;;
22547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22548 for as_dir in $PATH
22551 test -z "$as_dir" && as_dir=.
22552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22558 # We did not find ourselves, most probably we were run as `sh COMMAND'
22559 # in which case we are not to be found in the path.
22560 if test "x$as_myself" = x; then
22563 if test ! -f "$as_myself"; then
22564 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22565 { (exit 1); exit 1; }
22568 # Work around bugs in pre-3.0 UWIN ksh.
22569 for as_var in ENV MAIL MAILPATH
22570 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22578 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22579 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22580 LC_TELEPHONE LC_TIME
22582 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22583 eval $as_var=C; export $as_var
22585 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22589 # Required to use basename.
22590 if expr a : '\(a\)' >/dev/null 2>&1 &&
22591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22597 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22598 as_basename=basename
22604 # Name of the executable.
22605 as_me=`$as_basename -- "$0" ||
22606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22607 X"$0" : 'X\(//\)$' \| \
22608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22610 sed '/^.*\/\([^/][^/]*\)\/*$/{
22629 as_lineno_1=$LINENO
22630 as_lineno_2=$LINENO
22631 test "x$as_lineno_1" != "x$as_lineno_2" &&
22632 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22634 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22635 # uniformly replaced by the line number. The first 'sed' inserts a
22636 # line-number line after each line using $LINENO; the second 'sed'
22637 # does the real work. The second script uses 'N' to pair each
22638 # line-number line with the line containing $LINENO, and appends
22639 # trailing '-' during substitution so that $LINENO is not a special
22640 # case at line end.
22641 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22642 # scripts with optimization help from Paolo Bonzini. Blame Lee
22643 # E. McMahon (1931-1989) for sed's syntax. :-)
22655 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22658 ' >$as_me.lineno &&
22659 chmod +x "$as_me.lineno" ||
22660 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22661 { (exit 1); exit 1; }; }
22663 # Don't try to exec as it changes $[0], causing all sort of problems
22664 # (the dirname of $[0] is not the place where we might find the
22665 # original and so on. Autoconf is especially sensitive to this).
22666 . "./$as_me.lineno"
22667 # Exit status is that of the last command.
22672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22678 ECHO_C= ECHO_N= ECHO_T=
22679 case `echo -n x` in
22681 case `echo 'x\c'` in
22682 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22689 if expr a : '\(a\)' >/dev/null 2>&1 &&
22690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22696 rm -f conf$$ conf$$.exe conf$$.file
22697 if test -d conf$$.dir; then
22698 rm -f conf$$.dir/conf$$.file
22704 if ln -s conf$$.file conf$$ 2>/dev/null; then
22706 # ... but there are two gotchas:
22707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22709 # In both cases, we have to default to `cp -p'.
22710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22712 elif ln conf$$.file conf$$ 2>/dev/null; then
22717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22718 rmdir conf$$.dir 2>/dev/null
22720 if mkdir -p . 2>/dev/null; then
22723 test -d ./-p && rmdir ./-p
22727 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22728 # systems may use methods other than mode bits to determine executability.
22729 cat >conf$$.file <<_ASEOF
22733 chmod +x conf$$.file
22734 if test -x conf$$.file >/dev/null 2>&1; then
22735 as_executable_p="test -x"
22741 # Sed expression to map a string onto a valid CPP name.
22742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22744 # Sed expression to map a string onto a valid variable name.
22745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22750 # Save the log message, to keep $[0] and so on meaningful, and to
22751 # report actual input values of CONFIG_FILES etc. instead of their
22752 # values after options handling.
22754 This file was extended by LLVM $as_me 3.4svn, which was
22755 generated by GNU Autoconf 2.60. Invocation command line was
22757 CONFIG_FILES = $CONFIG_FILES
22758 CONFIG_HEADERS = $CONFIG_HEADERS
22759 CONFIG_LINKS = $CONFIG_LINKS
22760 CONFIG_COMMANDS = $CONFIG_COMMANDS
22763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22768 cat >>$CONFIG_STATUS <<_ACEOF
22769 # Files that config.status was made for.
22770 config_files="$ac_config_files"
22771 config_headers="$ac_config_headers"
22772 config_commands="$ac_config_commands"
22776 cat >>$CONFIG_STATUS <<\_ACEOF
22778 \`$as_me' instantiates files from templates according to the
22779 current configuration.
22781 Usage: $0 [OPTIONS] [FILE]...
22783 -h, --help print this help, then exit
22784 -V, --version print version number, then exit
22785 -q, --quiet do not print progress messages
22786 -d, --debug don't remove temporary files
22787 --recheck update $as_me by reconfiguring in the same conditions
22788 --file=FILE[:TEMPLATE]
22789 instantiate the configuration file FILE
22790 --header=FILE[:TEMPLATE]
22791 instantiate the configuration header FILE
22793 Configuration files:
22796 Configuration headers:
22799 Configuration commands:
22802 Report bugs to <bug-autoconf@gnu.org>."
22805 cat >>$CONFIG_STATUS <<_ACEOF
22807 LLVM config.status 3.4svn
22808 configured by $0, generated by GNU Autoconf 2.60,
22809 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22811 Copyright (C) 2006 Free Software Foundation, Inc.
22812 This config.status script is free software; the Free Software Foundation
22813 gives unlimited permission to copy, distribute and modify it."
22820 cat >>$CONFIG_STATUS <<\_ACEOF
22821 # If no file are specified by the user, then we need to provide default
22822 # value. By we need to know if files were specified by the user.
22828 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22829 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22840 # Handling of the options.
22841 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22843 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22844 echo "$ac_cs_version"; exit ;;
22845 --debug | --debu | --deb | --de | --d | -d )
22847 --file | --fil | --fi | --f )
22849 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22850 ac_need_defaults=false;;
22851 --header | --heade | --head | --hea )
22853 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22854 ac_need_defaults=false;;
22856 # Conflict between --help and --header
22857 { echo "$as_me: error: ambiguous option: $1
22858 Try \`$0 --help' for more information." >&2
22859 { (exit 1); exit 1; }; };;
22860 --help | --hel | -h )
22861 echo "$ac_cs_usage"; exit ;;
22862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22866 # This is an error.
22867 -*) { echo "$as_me: error: unrecognized option: $1
22868 Try \`$0 --help' for more information." >&2
22869 { (exit 1); exit 1; }; } ;;
22871 *) ac_config_targets="$ac_config_targets $1"
22872 ac_need_defaults=false ;;
22878 ac_configure_extra_args=
22880 if $ac_cs_silent; then
22882 ac_configure_extra_args="$ac_configure_extra_args --silent"
22886 cat >>$CONFIG_STATUS <<_ACEOF
22887 if \$ac_cs_recheck; then
22888 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22889 CONFIG_SHELL=$SHELL
22890 export CONFIG_SHELL
22891 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22895 cat >>$CONFIG_STATUS <<\_ACEOF
22899 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22900 ## Running $as_me. ##
22906 cat >>$CONFIG_STATUS <<_ACEOF
22910 llvm_src="${srcdir}"
22914 cat >>$CONFIG_STATUS <<\_ACEOF
22916 # Handling of arguments.
22917 for ac_config_target in $ac_config_targets
22919 case $ac_config_target in
22920 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22921 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22922 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22923 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22924 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22925 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22926 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22927 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22928 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22929 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22930 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22931 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22932 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22933 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22934 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22935 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22936 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22937 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22938 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22939 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22940 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22941 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22942 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22943 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22944 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22945 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22946 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22948 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22949 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22950 { (exit 1); exit 1; }; };;
22955 # If the user did not use the arguments to specify the items to instantiate,
22956 # then the envvar interface is used. Set only those that are not.
22957 # We use the long form for the default assignment because of an extremely
22958 # bizarre bug on SunOS 4.1.3.
22959 if $ac_need_defaults; then
22960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22965 # Have a temporary directory for convenience. Make it in the build tree
22966 # simply because there is no reason against having it here, and in addition,
22967 # creating and moving files from /tmp can sometimes cause problems.
22968 # Hook for its removal unless debugging.
22969 # Note that there is a small window in which the directory will not be cleaned:
22970 # after its creation but before its name has been assigned to `$tmp'.
22974 trap 'exit_status=$?
22975 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22977 trap '{ (exit 1); exit 1; }' 1 2 13 15
22979 # Create a (secure) tmp directory for tmp files.
22982 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22983 test -n "$tmp" && test -d "$tmp"
22986 tmp=./conf$$-$RANDOM
22987 (umask 077 && mkdir "$tmp")
22990 echo "$me: cannot create a temporary directory in ." >&2
22991 { (exit 1); exit 1; }
22995 # Set up the sed scripts for CONFIG_FILES section.
22998 # No need to generate the scripts if there are no CONFIG_FILES.
22999 # This happens for instance when ./config.status config.h
23000 if test -n "$CONFIG_FILES"; then
23007 for ac_last_try in false false false false false :; do
23008 cat >conf$$subs.sed <<_ACEOF
23009 SHELL!$SHELL$ac_delim
23010 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23011 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23012 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23013 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23014 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23015 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23016 exec_prefix!$exec_prefix$ac_delim
23017 prefix!$prefix$ac_delim
23018 program_transform_name!$program_transform_name$ac_delim
23019 bindir!$bindir$ac_delim
23020 sbindir!$sbindir$ac_delim
23021 libexecdir!$libexecdir$ac_delim
23022 datarootdir!$datarootdir$ac_delim
23023 datadir!$datadir$ac_delim
23024 sysconfdir!$sysconfdir$ac_delim
23025 sharedstatedir!$sharedstatedir$ac_delim
23026 localstatedir!$localstatedir$ac_delim
23027 includedir!$includedir$ac_delim
23028 oldincludedir!$oldincludedir$ac_delim
23029 docdir!$docdir$ac_delim
23030 infodir!$infodir$ac_delim
23031 htmldir!$htmldir$ac_delim
23032 dvidir!$dvidir$ac_delim
23033 pdfdir!$pdfdir$ac_delim
23034 psdir!$psdir$ac_delim
23035 libdir!$libdir$ac_delim
23036 localedir!$localedir$ac_delim
23037 mandir!$mandir$ac_delim
23038 DEFS!$DEFS$ac_delim
23039 ECHO_C!$ECHO_C$ac_delim
23040 ECHO_N!$ECHO_N$ac_delim
23041 ECHO_T!$ECHO_T$ac_delim
23042 LIBS!$LIBS$ac_delim
23043 build_alias!$build_alias$ac_delim
23044 host_alias!$host_alias$ac_delim
23045 target_alias!$target_alias$ac_delim
23046 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23048 CFLAGS!$CFLAGS$ac_delim
23049 LDFLAGS!$LDFLAGS$ac_delim
23050 CPPFLAGS!$CPPFLAGS$ac_delim
23051 ac_ct_CC!$ac_ct_CC$ac_delim
23052 EXEEXT!$EXEEXT$ac_delim
23053 OBJEXT!$OBJEXT$ac_delim
23055 CXXFLAGS!$CXXFLAGS$ac_delim
23056 ac_ct_CXX!$ac_ct_CXX$ac_delim
23058 subdirs!$subdirs$ac_delim
23059 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23060 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23061 build!$build$ac_delim
23062 build_cpu!$build_cpu$ac_delim
23063 build_vendor!$build_vendor$ac_delim
23064 build_os!$build_os$ac_delim
23065 host!$host$ac_delim
23066 host_cpu!$host_cpu$ac_delim
23067 host_vendor!$host_vendor$ac_delim
23068 host_os!$host_os$ac_delim
23069 target!$target$ac_delim
23070 target_cpu!$target_cpu$ac_delim
23071 target_vendor!$target_vendor$ac_delim
23072 target_os!$target_os$ac_delim
23074 HOST_OS!$HOST_OS$ac_delim
23075 TARGET_OS!$TARGET_OS$ac_delim
23076 LINKALL!$LINKALL$ac_delim
23077 NOLINKALL!$NOLINKALL$ac_delim
23078 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23079 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23080 ARCH!$ARCH$ac_delim
23081 HOST_ARCH!$HOST_ARCH$ac_delim
23082 ENDIAN!$ENDIAN$ac_delim
23083 GREP!$GREP$ac_delim
23084 EGREP!$EGREP$ac_delim
23085 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23086 BUILD_CC!$BUILD_CC$ac_delim
23087 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23088 BUILD_CXX!$BUILD_CXX$ac_delim
23089 CVSBUILD!$CVSBUILD$ac_delim
23090 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23091 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23092 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23093 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23094 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23095 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23096 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23097 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23098 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23099 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23100 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23101 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23102 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23103 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23104 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23110 elif $ac_last_try; then
23111 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23112 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23113 { (exit 1); exit 1; }; }
23115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23119 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23120 if test -n "$ac_eof"; then
23121 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23122 ac_eof=`expr $ac_eof + 1`
23125 cat >>$CONFIG_STATUS <<_ACEOF
23126 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23127 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23130 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23131 s/^/s,@/; s/!/@,|#_!!_#|/
23134 s/'"$ac_delim"'$/,g/; t
23136 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23137 ' >>$CONFIG_STATUS <conf$$subs.sed
23138 rm -f conf$$subs.sed
23139 cat >>$CONFIG_STATUS <<_ACEOF
23145 for ac_last_try in false false false false false :; do
23146 cat >conf$$subs.sed <<_ACEOF
23147 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23148 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23149 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23150 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23151 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23152 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23153 ENABLE_PIC!$ENABLE_PIC$ac_delim
23154 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23155 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23156 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23157 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23158 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23159 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23160 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23161 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23162 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23163 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23164 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23165 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23166 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23167 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23169 ifGNUmake!$ifGNUmake$ac_delim
23170 LN_S!$LN_S$ac_delim
23173 DATE!$DATE$ac_delim
23174 FIND!$FIND$ac_delim
23175 MKDIR!$MKDIR$ac_delim
23177 RANLIB!$RANLIB$ac_delim
23182 BINPWD!$BINPWD$ac_delim
23183 GRAPHVIZ!$GRAPHVIZ$ac_delim
23186 NEATO!$NEATO$ac_delim
23187 TWOPI!$TWOPI$ac_delim
23188 CIRCO!$CIRCO$ac_delim
23190 DOTTY!$DOTTY$ac_delim
23191 XDOT!$XDOT$ac_delim
23192 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23193 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23194 INSTALL_DATA!$INSTALL_DATA$ac_delim
23195 BZIP2!$BZIP2$ac_delim
23197 DOXYGEN!$DOXYGEN$ac_delim
23198 GROFF!$GROFF$ac_delim
23199 GZIPBIN!$GZIPBIN$ac_delim
23200 PDFROFF!$PDFROFF$ac_delim
23202 OCAMLC!$OCAMLC$ac_delim
23203 OCAMLOPT!$OCAMLOPT$ac_delim
23204 OCAMLDEP!$OCAMLDEP$ac_delim
23205 OCAMLDOC!$OCAMLDOC$ac_delim
23207 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23208 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23209 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23210 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23211 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23212 LIBADD_DL!$LIBADD_DL$ac_delim
23213 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23214 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23215 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23216 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23217 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23218 PYTHON!$PYTHON$ac_delim
23219 USE_UDIS86!$USE_UDIS86$ac_delim
23220 USE_OPROFILE!$USE_OPROFILE$ac_delim
23221 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23222 XML2CONFIG!$XML2CONFIG$ac_delim
23223 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23224 LIBXML2_INC!$LIBXML2_INC$ac_delim
23225 CXXCPP!$CXXCPP$ac_delim
23226 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23227 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23228 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23229 MMAP_FILE!$MMAP_FILE$ac_delim
23230 SHLIBEXT!$SHLIBEXT$ac_delim
23231 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23232 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23233 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23234 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23235 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23236 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23237 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23238 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23239 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23240 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23241 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23242 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23243 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23246 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23248 elif $ac_last_try; then
23249 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23250 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23251 { (exit 1); exit 1; }; }
23253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23257 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23258 if test -n "$ac_eof"; then
23259 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23260 ac_eof=`expr $ac_eof + 1`
23263 cat >>$CONFIG_STATUS <<_ACEOF
23264 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23268 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23269 s/^/s,@/; s/!/@,|#_!!_#|/
23272 s/'"$ac_delim"'$/,g/; t
23274 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23275 ' >>$CONFIG_STATUS <conf$$subs.sed
23276 rm -f conf$$subs.sed
23277 cat >>$CONFIG_STATUS <<_ACEOF
23283 for ac_last_try in false false false false false :; do
23284 cat >conf$$subs.sed <<_ACEOF
23285 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23286 RPATH!$RPATH$ac_delim
23287 RDYNAMIC!$RDYNAMIC$ac_delim
23288 program_prefix!$program_prefix$ac_delim
23289 LIBOBJS!$LIBOBJS$ac_delim
23290 LTLIBOBJS!$LTLIBOBJS$ac_delim
23293 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23295 elif $ac_last_try; then
23296 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23297 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23298 { (exit 1); exit 1; }; }
23300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23304 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23305 if test -n "$ac_eof"; then
23306 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23307 ac_eof=`expr $ac_eof + 1`
23310 cat >>$CONFIG_STATUS <<_ACEOF
23311 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23315 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23316 s/^/s,@/; s/!/@,|#_!!_#|/
23319 s/'"$ac_delim"'$/,g/; t
23321 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23322 ' >>$CONFIG_STATUS <conf$$subs.sed
23323 rm -f conf$$subs.sed
23324 cat >>$CONFIG_STATUS <<_ACEOF
23331 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23332 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23333 # trailing colons and then remove the whole line if VPATH becomes empty
23334 # (actually we leave an empty line to preserve line numbers).
23335 if test "x$srcdir" = x.; then
23336 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23337 s/:*\$(srcdir):*/:/
23338 s/:*\${srcdir}:*/:/
23340 s/^\([^=]*=[ ]*\):*/\1/
23346 cat >>$CONFIG_STATUS <<\_ACEOF
23347 fi # test -n "$CONFIG_FILES"
23350 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23353 :[FHLC]) ac_mode=$ac_tag; continue;;
23355 case $ac_mode$ac_tag in
23357 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23358 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23359 { (exit 1); exit 1; }; };;
23360 :[FH]-) ac_tag=-:-;;
23361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23378 -) ac_f="$tmp/stdin";;
23379 *) # Look for the file first in the build tree, then in the source tree
23380 # (if the path is not absolute). The absolute path cannot be DOS-style,
23381 # because $ac_f cannot contain `:'.
23385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23387 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23388 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23389 { (exit 1); exit 1; }; };;
23391 ac_file_inputs="$ac_file_inputs $ac_f"
23394 # Let's still pretend it is `configure' which instantiates (i.e., don't
23395 # use $as_me), people would be surprised to read:
23396 # /* config.h. Generated by config.status. */
23397 configure_input="Generated from "`IFS=:
23398 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23399 if test x"$ac_file" != x-; then
23400 configure_input="$ac_file. $configure_input"
23401 { echo "$as_me:$LINENO: creating $ac_file" >&5
23402 echo "$as_me: creating $ac_file" >&6;}
23406 *:-:* | *:-) cat >"$tmp/stdin";;
23411 ac_dir=`$as_dirname -- "$ac_file" ||
23412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23413 X"$ac_file" : 'X\(//\)[^/]' \| \
23414 X"$ac_file" : 'X\(//\)$' \| \
23415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23421 /^X\(\/\/\)[^/].*/{
23436 -*) as_dir=./$as_dir;;
23438 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23442 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23443 *) as_qdir=$as_dir;;
23445 as_dirs="'$as_qdir' $as_dirs"
23446 as_dir=`$as_dirname -- "$as_dir" ||
23447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23448 X"$as_dir" : 'X\(//\)[^/]' \| \
23449 X"$as_dir" : 'X\(//\)$' \| \
23450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23456 /^X\(\/\/\)[^/].*/{
23469 test -d "$as_dir" && break
23471 test -z "$as_dirs" || eval "mkdir $as_dirs"
23472 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23473 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23474 { (exit 1); exit 1; }; }; }
23478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23480 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23481 # A ".." for each directory in $ac_dir_suffix.
23482 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23483 case $ac_top_builddir_sub in
23484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23488 ac_abs_top_builddir=$ac_pwd
23489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23490 # for backward compatibility:
23491 ac_top_builddir=$ac_top_build_prefix
23494 .) # We are building in place.
23496 ac_top_srcdir=$ac_top_builddir_sub
23497 ac_abs_top_srcdir=$ac_pwd ;;
23498 [\\/]* | ?:[\\/]* ) # Absolute name.
23499 ac_srcdir=$srcdir$ac_dir_suffix;
23500 ac_top_srcdir=$srcdir
23501 ac_abs_top_srcdir=$srcdir ;;
23502 *) # Relative name.
23503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23504 ac_top_srcdir=$ac_top_build_prefix$srcdir
23505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23522 cat >>$CONFIG_STATUS <<\_ACEOF
23523 # If the template does not know about datarootdir, expand it.
23524 # FIXME: This hack should be removed a few years after 2.60.
23525 ac_datarootdir_hack=; ac_datarootdir_seen=
23527 case `sed -n '/datarootdir/ {
23536 ' $ac_file_inputs` in
23537 *datarootdir*) ac_datarootdir_seen=yes;;
23538 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23539 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23540 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23542 cat >>$CONFIG_STATUS <<_ACEOF
23543 ac_datarootdir_hack='
23544 s&@datadir@&$datadir&g
23545 s&@docdir@&$docdir&g
23546 s&@infodir@&$infodir&g
23547 s&@localedir@&$localedir&g
23548 s&@mandir@&$mandir&g
23549 s&\\\${datarootdir}&$datarootdir&g' ;;
23553 # Neutralize VPATH when `$srcdir' = `.'.
23554 # Shell code in configure.ac might set extrasub.
23555 # FIXME: do we really want to maintain this feature?
23556 cat >>$CONFIG_STATUS <<_ACEOF
23560 cat >>$CONFIG_STATUS <<\_ACEOF
23562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23563 s&@configure_input@&$configure_input&;t t
23564 s&@top_builddir@&$ac_top_builddir_sub&;t t
23565 s&@srcdir@&$ac_srcdir&;t t
23566 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23567 s&@top_srcdir@&$ac_top_srcdir&;t t
23568 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23569 s&@builddir@&$ac_builddir&;t t
23570 s&@abs_builddir@&$ac_abs_builddir&;t t
23571 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23572 s&@INSTALL@&$ac_INSTALL&;t t
23573 $ac_datarootdir_hack
23574 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23579 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23580 which seems to be undefined. Please make sure it is defined." >&5
23581 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23582 which seems to be undefined. Please make sure it is defined." >&2;}
23586 -) cat "$tmp/out"; rm -f "$tmp/out";;
23587 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23596 # Transform confdefs.h into a sed script `conftest.defines', that
23597 # substitutes the proper values into config.h.in to produce config.h.
23598 rm -f conftest.defines conftest.tail
23599 # First, append a space to every undef/define line, to ease matching.
23600 echo 's/$/ /' >conftest.defines
23601 # Then, protect against being on the right side of a sed subst, or in
23602 # an unquoted here document, in config.status. If some macros were
23603 # called several times there might be several #defines for the same
23604 # symbol, which is useless. But do not sort them, since the last
23605 # AC_DEFINE must be honored.
23606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23607 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23608 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23609 # PARAMS is the parameter list in the macro definition--in most cases, it's
23610 # just an empty string.
23611 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23612 ac_dB='\\)[ (].*,\\1define\\2'
23620 s/^[ ]*#[ ]*define[ ][ ]*//
23625 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23626 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23627 ' >>conftest.defines
23629 # Remove the space that was appended to ease matching.
23630 # Then replace #undef with comments. This is necessary, for
23631 # example, in the case of _POSIX_SOURCE, which is predefined and required
23632 # on some systems where configure will not decide to define it.
23633 # (The regexp can be short, since the line contains either #define or #undef.)
23635 s,^[ #]*u.*,/* & */,' >>conftest.defines
23637 # Break up conftest.defines:
23638 ac_max_sed_lines=50
23640 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23641 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23642 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23644 ac_in='$ac_file_inputs'
23645 ac_out='"$tmp/out1"'
23646 ac_nxt='"$tmp/out2"'
23650 # Write a here document:
23651 cat >>$CONFIG_STATUS <<_ACEOF
23652 # First, check the format of the line:
23653 cat >"\$tmp/defines.sed" <<\\CEOF
23654 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23655 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23659 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23661 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23662 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23663 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23664 grep . conftest.tail >/dev/null || break
23665 rm -f conftest.defines
23666 mv conftest.tail conftest.defines
23668 rm -f conftest.defines conftest.tail
23670 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23671 cat >>$CONFIG_STATUS <<\_ACEOF
23672 if test x"$ac_file" != x-; then
23673 echo "/* $configure_input */" >"$tmp/config.h"
23674 cat "$ac_result" >>"$tmp/config.h"
23675 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23676 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23677 echo "$as_me: $ac_file is unchanged" >&6;}
23680 mv "$tmp/config.h" $ac_file
23683 echo "/* $configure_input */"
23689 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23690 echo "$as_me: executing $ac_file commands" >&6;}
23695 case $ac_file$ac_mode in
23696 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23698 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23700 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23702 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23704 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23706 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23708 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23709 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23710 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23711 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23712 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23713 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23714 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23715 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23716 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23717 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23718 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23719 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23720 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23721 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23727 { (exit 0); exit 0; }
23729 chmod +x $CONFIG_STATUS
23730 ac_clean_files=$ac_clean_files_save
23733 # configure is writing to config.log, and then calls config.status.
23734 # config.status does its own redirection, appending to config.log.
23735 # Unfortunately, on DOS this fails, as config.log is still kept open
23736 # by configure, so config.status won't be able to write to it; its
23737 # output is simply discarded. So we exec the FD to /dev/null,
23738 # effectively closing config.log, so it can be properly (re)opened and
23739 # appended to by config.status. When coming back to configure, we
23740 # need to make the FD available again.
23741 if test "$no_create" != yes; then
23743 ac_config_status_args=
23744 test "$silent" = yes &&
23745 ac_config_status_args="$ac_config_status_args --quiet"
23747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23750 # would make configure fail if this is the last instruction.
23751 $ac_cs_success || { (exit 1); exit 1; }
23755 # CONFIG_SUBDIRS section.
23757 if test "$no_recursion" != yes; then
23759 # Remove --cache-file and --srcdir arguments so they do not pile up.
23760 ac_sub_configure_args=
23762 eval "set x $ac_configure_args"
23766 if test -n "$ac_prev"; then
23771 -cache-file | --cache-file | --cache-fil | --cache-fi \
23772 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23773 ac_prev=cache_file ;;
23774 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23775 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23778 --config-cache | -C)
23780 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23782 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23784 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23786 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23790 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23792 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23796 # Always prepend --prefix to ensure using the same prefix
23797 # in subdir configurations.
23798 ac_arg="--prefix=$prefix"
23800 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23802 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23807 # Do not complain, so a configure script can configure whichever
23808 # parts of a large source tree are present.
23809 test -d "$srcdir/$ac_dir" || continue
23811 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23812 echo "$as_me:$LINENO: $ac_msg" >&5
23816 -*) as_dir=./$as_dir;;
23818 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23822 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23823 *) as_qdir=$as_dir;;
23825 as_dirs="'$as_qdir' $as_dirs"
23826 as_dir=`$as_dirname -- "$as_dir" ||
23827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23828 X"$as_dir" : 'X\(//\)[^/]' \| \
23829 X"$as_dir" : 'X\(//\)$' \| \
23830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23836 /^X\(\/\/\)[^/].*/{
23849 test -d "$as_dir" && break
23851 test -z "$as_dirs" || eval "mkdir $as_dirs"
23852 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23853 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23854 { (exit 1); exit 1; }; }; }
23858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23861 # A ".." for each directory in $ac_dir_suffix.
23862 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23863 case $ac_top_builddir_sub in
23864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23868 ac_abs_top_builddir=$ac_pwd
23869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23870 # for backward compatibility:
23871 ac_top_builddir=$ac_top_build_prefix
23874 .) # We are building in place.
23876 ac_top_srcdir=$ac_top_builddir_sub
23877 ac_abs_top_srcdir=$ac_pwd ;;
23878 [\\/]* | ?:[\\/]* ) # Absolute name.
23879 ac_srcdir=$srcdir$ac_dir_suffix;
23880 ac_top_srcdir=$srcdir
23881 ac_abs_top_srcdir=$srcdir ;;
23882 *) # Relative name.
23883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23884 ac_top_srcdir=$ac_top_build_prefix$srcdir
23885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23892 # Check for guested configure; otherwise get Cygnus style configure.
23893 if test -f "$ac_srcdir/configure.gnu"; then
23894 ac_sub_configure=$ac_srcdir/configure.gnu
23895 elif test -f "$ac_srcdir/configure"; then
23896 ac_sub_configure=$ac_srcdir/configure
23897 elif test -f "$ac_srcdir/configure.in"; then
23898 # This should be Cygnus configure.
23899 ac_sub_configure=$ac_aux_dir/configure
23901 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23902 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23906 # The recursion is here.
23907 if test -n "$ac_sub_configure"; then
23908 # Make the cache file name correct relative to the subdirectory.
23909 case $cache_file in
23910 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23911 *) # Relative name.
23912 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23915 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23916 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23917 # The eval makes quoting arguments work.
23918 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23919 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23920 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23921 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23922 { (exit 1); exit 1; }; }