2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.4svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.4svn'
565 PACKAGE_STRING='LLVM 3.4svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
715 LLVM_ENUM_ASM_PRINTERS
716 LLVM_ENUM_ASM_PARSERS
717 LLVM_ENUM_DISASSEMBLERS
763 HAVE_LINK_VERSION_SCRIPT
766 CONVENIENCE_LTDL_TRUE
767 CONVENIENCE_LTDL_FALSE
770 NO_MISSING_FIELD_INITIALIZERS
771 COVERED_SWITCH_DEFAULT
772 NO_MAYBE_UNINITIALIZED
800 ENABLE_VISIBILITY_INLINES_HIDDEN
807 ac_precious_vars='build_alias
819 ac_subdirs_all='projects/llvm-gcc
823 projects/llvm-poolalloc
826 projects/llvm-stacker
834 # Initialize some variables set by options.
836 ac_init_version=false
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
846 program_transform_name=s,x,x,
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 -enable-* | --enable-*)
954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
958 { (exit 1); exit 1; }; }
959 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
960 eval enable_$ac_feature=\$ac_optarg ;;
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
975 -help | --help | --hel | --he | -h)
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 htmldir=$ac_optarg ;;
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1005 -libdir | --libdir | --libdi | --libd)
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1096 -psdir | --psdir | --psdi | --psd | --ps)
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1124 -site=* | --site=* | --sit=*)
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package| sed 's/-/_/g'`
1157 eval with_$ac_package=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid package name: $ac_package" >&2
1164 { (exit 1); exit 1; }; }
1165 ac_package=`echo $ac_package | sed 's/-/_/g'`
1166 eval with_$ac_package=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) { echo "$as_me: error: unrecognized option: $ac_option
1187 Try \`$0 --help' for more information." >&2
1188 { (exit 1); exit 1; }; }
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1196 { (exit 1); exit 1; }; }
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 { echo "$as_me: error: missing argument to $ac_option" >&2
1214 { (exit 1); exit 1; }; }
1217 # Be sure to have absolute directory names.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1229 { (exit 1); exit 1; }; }
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 { echo "$as_me: error: Working directory cannot be determined" >&2
1260 { (exit 1); exit 1; }; }
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 { echo "$as_me: error: pwd does not report name of working directory" >&2
1263 { (exit 1); exit 1; }; }
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$0" ||
1271 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$0" : 'X\(//\)[^/]' \| \
1273 X"$0" : 'X\(//\)$' \| \
1274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1303 { (exit 1); exit 1; }; }
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1308 { (exit 1); exit 1; }; }
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures LLVM 3.4svn to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 --target=TARGET configure for building compilers for TARGET [HOST]
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";;
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-polly Use polly if available (default is YES)
1408 --enable-libcpp Use libc++ if available (default is NO)
1409 --enable-cxx11 Use c++11 if available (default is NO)
1410 --enable-split-dwarf Use split-dwarf if available (default is NO)
1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1412 --enable-clang-static-analyzer
1413 Enable building of clang Static Analyzer (default is
1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416 --enable-optimized Compile with optimizations enabled (default is NO)
1417 --enable-profiling Compile with profiling enabled (default is NO)
1418 --enable-assertions Compile with assertion checks enabled (default is
1420 --enable-werror Compile with -Werror enabled (default is NO)
1421 --enable-expensive-checks
1422 Compile with expensive debug checks enabled (default
1424 --enable-debug-runtime Build runtime libs with debug symbols (default is
1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1427 optimization is on and YES if it's off)
1428 --enable-keep-symbols Do not strip installed executables)
1429 --enable-jit Enable Just In Time Compiling (default is YES)
1430 --enable-docs Build documents (default is YES)
1431 --enable-doxygen Build doxygen documentation (default is NO)
1432 --enable-threads Use threads if available (default is YES)
1433 --enable-pthreads Use pthreads if available (default is YES)
1434 --enable-zlib Use zlib for compression/decompression if available
1436 --enable-pic Build LLVM with Position Independent Code (default
1438 --enable-shared Build a shared library and link tools against it
1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1441 Win32 DLL (default is NO)
1442 --enable-timestamps Enable embedding timestamp information in build
1444 --enable-backtraces Enable embedding backtraces on crash (default is
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-libffi Check for the presence of libffi (default is NO)
1457 --enable-ltdl-install install libltdl
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-optimize-option Select the compiler options to use for optimized
1464 --with-extra-options Specify additional options to compile LLVM with
1465 --with-extra-ld-options Specify additional options to link LLVM with
1466 --with-ocaml-libdir Specify install location for ocaml bindings (default
1468 --with-clang-srcdir Directory to the out-of-tree Clang source
1469 --with-clang-resource-dir
1470 Relative directory from the Clang binary for
1472 --with-c-include-dirs Colon separated list of directories clang will
1474 --with-gcc-toolchain Directory where gcc is installed.
1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1476 --with-binutils-include Specify path to binutils/include/ containing
1477 plugin-api.h file for gold plugin.
1478 --with-bug-report-url Specify the URL where bug reports should be
1479 submitted (default=http://llvm.org/bugs/)
1480 --with-internal-prefix Installation directory for internal files
1481 --with-python path to python
1482 --with-udis86=<path> Use udis86 external x86 disassembler library
1483 --with-oprofile=<prefix>
1484 Tell OProfile >= 0.9.4 how to symbolize JIT output
1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1498 CXXCPP C++ preprocessor
1500 Use these variables to override the choices made by `configure' or to help
1501 it to find libraries and programs with nonstandard names/locations.
1503 Report bugs to <http://llvm.org/bugs/>.
1508 if test "$ac_init_help" = "recursive"; then
1509 # If there are subdirs, report their specific --help.
1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511 test -d "$ac_dir" || continue
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 LLVM configure 3.4svn
1565 generated by GNU Autoconf 2.60
1567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1568 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1572 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by LLVM $as_me 3.4svn, which was
1581 generated by GNU Autoconf 2.60. Invocation command line was
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_must_keep_next=false
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 -* ) ac_must_keep_next=true ;;
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 echo "$ac_var='\''$ac_val'\''"
1744 if test -n "$ac_subst_files"; then
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1762 if test -s confdefs.h; then
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1853 # Check that the precious variables saved in the cache have kept the same
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 cat >>confdefs.h <<\_ACEOF
1935 #define LLVM_VERSION_MAJOR 3
1939 cat >>confdefs.h <<\_ACEOF
1940 #define LLVM_VERSION_MINOR 4
1944 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1953 for ac_dir in autoconf "$srcdir"/autoconf; do
1954 if test -f "$ac_dir/install-sh"; then
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 elif test -f "$ac_dir/install.sh"; then
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 elif test -f "$ac_dir/shtool"; then
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 if test -z "$ac_aux_dir"; then
1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1971 { (exit 1); exit 1; }; }
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 if test ${srcdir} != "." ; then
1985 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1986 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1987 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1988 { (exit 1); exit 1; }; }
1996 ac_cpp='$CPP $CPPFLAGS'
1997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000 if test -n "$ac_tool_prefix"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CC"; then
2032 { echo "$as_me:$LINENO: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$CC" && break
2043 if test -z "$CC"; then
2045 for ac_prog in clang llvm-gcc gcc
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_prog_ac_ct_CC="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075 if test -n "$ac_ct_CC"; then
2076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077 echo "${ECHO_T}$ac_ct_CC" >&6; }
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2084 test -n "$ac_ct_CC" && break
2087 if test "x$ac_ct_CC" = x; then
2090 case $cross_compiling:$ac_tool_warned in
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: 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." >&2;}
2098 ac_tool_warned=yes ;;
2105 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&5
2107 echo "$as_me: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&2;}
2109 { (exit 1); exit 1; }; }
2111 # Provide some information about the compiler.
2112 echo "$as_me:$LINENO: checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (ac_try="$ac_compiler --version >&5"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2120 (eval "$ac_compiler --version >&5") 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (ac_try="$ac_compiler -v >&5"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2130 (eval "$ac_compiler -v >&5") 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (ac_try="$ac_compiler -V >&5"
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140 (eval "$ac_compiler -V >&5") 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2165 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 # List of possible output files, starting from the most likely.
2170 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2171 # only as a last resort. b.out is created by i960 compilers.
2172 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2174 # The IRIX 6 linker writes into existing files which may not be
2175 # executable, retaining their permissions. Remove them first so a
2176 # subsequent execution test works.
2178 for ac_file in $ac_files
2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2182 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2187 if { (ac_try="$ac_link_default"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193 (eval "$ac_link_default") 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2200 # so that the user can short-circuit this test for compilers unknown to
2202 for ac_file in $ac_files
2204 test -f "$ac_file" || continue
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2209 # We found the default executable, but exeext='' is most
2213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 # We set ac_cv_exeext here because the later test for it is not
2218 # safe: cross compilers may not add the suffix if given an `-o'
2219 # argument, so we may need to know it at that point already.
2220 # Even if this section looks crufty: it has the advantage of
2227 test "$ac_cv_exeext" = no && ac_cv_exeext=
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2240 ac_exeext=$ac_cv_exeext
2241 { echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6; }
2244 # Check that the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 if test "$cross_compiling" = maybe; then
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267 If you meant to cross compile, use \`--host'.
2268 See \`config.log' for more details." >&5
2269 echo "$as_me: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2279 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280 ac_clean_files=$ac_clean_files_save
2281 # Check that the compiler produces executables we can run. If not, either
2282 # the compiler is broken, or we cross compile.
2283 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286 echo "${ECHO_T}$cross_compiling" >&6; }
2288 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290 if { (ac_try="$ac_link"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302 # work properly (i.e., refer to `conftest.exe'), while it won't with
2304 for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest$ac_cv_exeext
2322 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2325 rm -f conftest.$ac_ext
2326 EXEEXT=$ac_cv_exeext
2328 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2330 if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.o conftest.obj
2349 if { (ac_try="$ac_compile"
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2380 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381 echo "${ECHO_T}$ac_cv_objext" >&6; }
2382 OBJEXT=$ac_cv_objext
2384 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (ac_try="$ac_compile"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
2416 grep -v '^ *+' conftest.er1 >conftest.err
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2422 { (case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_try") 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437 (eval "$ac_try") 2>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2455 GCC=`test $ac_compiler_gnu = yes && echo yes`
2456 ac_test_CFLAGS=${CFLAGS+set}
2457 ac_save_CFLAGS=$CFLAGS
2458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2460 if test "${ac_cv_prog_cc_g+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 ac_save_c_werror_flag=$ac_c_werror_flag
2464 ac_c_werror_flag=yes
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2482 rm -f conftest.$ac_objext
2483 if { (ac_try="$ac_compile"
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_compile") 2>conftest.er1
2491 grep -v '^ *+' conftest.er1 >conftest.err
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2497 { (case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_try") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; } &&
2506 { ac_try='test -s conftest.$ac_objext'
2507 { (case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_try") 2>&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2552 { (case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557 (eval "$ac_try") 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567 (eval "$ac_try") 2>&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 ac_c_werror_flag=$ac_save_c_werror_flag
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.$ac_objext
2594 if { (ac_try="$ac_compile"
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_compile") 2>conftest.er1
2602 grep -v '^ *+' conftest.er1 >conftest.err
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2608 { (case "(($ac_try" in
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_try") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2623 (eval "$ac_try") 2>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_c_werror_flag=$ac_save_c_werror_flag
2644 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2645 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2646 if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS=$ac_save_CFLAGS
2648 elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2655 if test "$GCC" = yes; then
2661 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2662 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_cc_c89+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 ac_cv_prog_cc_c89=no
2668 cat >conftest.$ac_ext <<_ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2692 s = g (p, va_arg (v,int));
2697 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2698 function prototypes and stuff, but not '\xHH' hex character constants.
2699 These don't provoke an error unfortunately, instead are silently treated
2700 as 'x'. The following induces an error, until -std is added to get
2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2702 array size at least. It's necessary to write '\x00'==0 to get something
2703 that's true only with -std. */
2704 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2706 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2707 inside strings and character constants. */
2709 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2711 int test (int i, double x);
2712 struct s1 {int (*f) (int a);};
2713 struct s2 {int (*f) (double a);};
2714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 CC="$ac_save_CC $ac_arg"
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_cv_prog_cc_c89=$ac_arg
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext
2772 test "x$ac_cv_prog_cc_c89" != "xno" && break
2774 rm -f conftest.$ac_ext
2779 case "x$ac_cv_prog_cc_c89" in
2781 { echo "$as_me:$LINENO: result: none needed" >&5
2782 echo "${ECHO_T}none needed" >&6; } ;;
2784 { echo "$as_me:$LINENO: result: unsupported" >&5
2785 echo "${ECHO_T}unsupported" >&6; } ;;
2787 CC="$CC $ac_cv_prog_cc_c89"
2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 ac_cpp='$CXXCPP $CPPFLAGS'
2801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2804 if test -z "$CXX"; then
2805 if test -n "$CCC"; then
2808 if test -n "$ac_tool_prefix"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$CXX"; then
2819 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$CXX"; then
2840 { echo "$as_me:$LINENO: result: $CXX" >&5
2841 echo "${ECHO_T}$CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$CXX" && break
2851 if test -z "$CXX"; then
2853 for ac_prog in clang++ llvm-g++ g++
2855 # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2859 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 if test -n "$ac_ct_CXX"; then
2863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_ac_ct_CXX="$ac_prog"
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2883 if test -n "$ac_ct_CXX"; then
2884 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2885 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2887 { echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6; }
2892 test -n "$ac_ct_CXX" && break
2895 if test "x$ac_ct_CXX" = x; then
2898 case $cross_compiling:$ac_tool_warned in
2900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2901 whose name does not start with the host triplet. If you think this
2902 configuration is useful to you, please write to autoconf@gnu.org." >&5
2903 echo "$as_me: 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." >&2;}
2906 ac_tool_warned=yes ;;
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923 (eval "$ac_compiler --version >&5") 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compiler -v >&5") 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compiler -V >&5") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2949 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2950 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
2996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3017 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3018 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3019 GXX=`test $ac_compiler_gnu = yes && echo yes`
3020 ac_test_CXXFLAGS=${CXXFLAGS+set}
3021 ac_save_CXXFLAGS=$CXXFLAGS
3022 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3023 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cxx_g+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3028 ac_cxx_werror_flag=yes
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3055 grep -v '^ *+' conftest.er1 >conftest.err
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_prog_cxx_g=yes
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_cxx_g=yes
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211 CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213 if test "$GXX" = yes; then
3219 if test "$GXX" = yes; then
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250 for ac_c_preproc_warn_flag in '' yes
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 # include <limits.h>
3267 # include <assert.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3299 # Broken: fails on valid input.
3303 rm -f conftest.err conftest.$ac_ext
3305 # OK, works on sane cases. Now check whether nonexistent headers
3306 # can be detected and how.
3307 cat >conftest.$ac_ext <<_ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3315 if { (ac_try="$ac_cpp conftest.$ac_ext"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3323 grep -v '^ *+' conftest.er1 >conftest.err
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } >/dev/null; then
3328 if test -s conftest.err; then
3329 ac_cpp_err=$ac_c_preproc_warn_flag
3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3337 if test -z "$ac_cpp_err"; then
3338 # Broken: success on invalid input.
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # Passes both tests.
3349 rm -f conftest.err conftest.$ac_ext
3352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3353 rm -f conftest.err conftest.$ac_ext
3354 if $ac_preproc_ok; then
3366 { echo "$as_me:$LINENO: result: $CPP" >&5
3367 echo "${ECHO_T}$CPP" >&6; }
3369 for ac_c_preproc_warn_flag in '' yes
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3384 # include <limits.h>
3386 # include <assert.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Broken: fails on valid input.
3422 rm -f conftest.err conftest.$ac_ext
3424 # OK, works on sane cases. Now check whether nonexistent headers
3425 # can be detected and how.
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3434 if { (ac_try="$ac_cpp conftest.$ac_ext"
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3442 grep -v '^ *+' conftest.er1 >conftest.err
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } >/dev/null; then
3447 if test -s conftest.err; then
3448 ac_cpp_err=$ac_c_preproc_warn_flag
3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 if test -z "$ac_cpp_err"; then
3457 # Broken: success on invalid input.
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Passes both tests.
3468 rm -f conftest.err conftest.$ac_ext
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then
3476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&5
3478 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&2;}
3480 { (exit 1); exit 1; }; }
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test "$CXX" = "clang++" ; then
3491 { echo "$as_me:$LINENO: checking whether clang works" >&5
3492 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3507 #if __has_include (<cxxabi.h>)
3510 #if __has_include (<unwind.h>)
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3557 { echo "$as_me:$LINENO: result: yes" >&5
3558 echo "${ECHO_T}yes" >&6; }
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3565 { echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6; }
3567 { { 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
3568 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;}
3569 { (exit 1); exit 1; }; }
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -d ${srcdir}/projects/llvm-gcc ; then
3585 subdirs="$subdirs projects/llvm-gcc"
3589 if test -d ${srcdir}/projects/test-suite ; then
3590 subdirs="$subdirs projects/test-suite"
3594 if test -d ${srcdir}/projects/llvm-test ; then
3595 subdirs="$subdirs projects/llvm-test"
3599 if test -d ${srcdir}/projects/poolalloc ; then
3600 subdirs="$subdirs projects/poolalloc"
3604 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3605 subdirs="$subdirs projects/llvm-poolalloc"
3609 for i in `ls ${srcdir}/projects`
3611 if test -d ${srcdir}/projects/${i} ; then
3613 sample) subdirs="$subdirs projects/sample"
3615 privbracket) subdirs="$subdirs projects/privbracket"
3617 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3619 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3621 llvm-java) subdirs="$subdirs projects/llvm-java"
3623 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3625 safecode) subdirs="$subdirs projects/safecode"
3627 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3636 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3637 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3643 # Check whether --enable-polly was given.
3644 if test "${enable_polly+set}" = set; then
3645 enableval=$enable_polly;
3650 case "$enableval" in
3655 default) ENABLE_POLLY=1
3657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3658 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3659 { (exit 1); exit 1; }; } ;;
3663 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3666 subdirs="$subdirs tools/polly"
3671 # Make sure we can run config.sub.
3672 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3674 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3675 { (exit 1); exit 1; }; }
3677 { echo "$as_me:$LINENO: checking build system type" >&5
3678 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3679 if test "${ac_cv_build+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_build_alias=$build_alias
3683 test "x$ac_build_alias" = x &&
3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3685 test "x$ac_build_alias" = x &&
3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3687 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3688 { (exit 1); exit 1; }; }
3689 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3691 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3692 { (exit 1); exit 1; }; }
3695 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3696 echo "${ECHO_T}$ac_cv_build" >&6; }
3697 case $ac_cv_build in
3699 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3700 echo "$as_me: error: invalid value of canonical build" >&2;}
3701 { (exit 1); exit 1; }; };;
3704 ac_save_IFS=$IFS; IFS='-'
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3714 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3717 { echo "$as_me:$LINENO: checking host system type" >&5
3718 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_host+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 if test "x$host_alias" = x; then
3723 ac_cv_host=$ac_cv_build
3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3727 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3728 { (exit 1); exit 1; }; }
3732 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3733 echo "${ECHO_T}$ac_cv_host" >&6; }
3736 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3737 echo "$as_me: error: invalid value of canonical host" >&2;}
3738 { (exit 1); exit 1; }; };;
3741 ac_save_IFS=$IFS; IFS='-'
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3754 { echo "$as_me:$LINENO: checking target system type" >&5
3755 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3756 if test "${ac_cv_target+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 if test "x$target_alias" = x; then
3760 ac_cv_target=$ac_cv_host
3762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3764 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3765 { (exit 1); exit 1; }; }
3769 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3770 echo "${ECHO_T}$ac_cv_target" >&6; }
3771 case $ac_cv_target in
3773 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3774 echo "$as_me: error: invalid value of canonical target" >&2;}
3775 { (exit 1); exit 1; }; };;
3777 target=$ac_cv_target
3778 ac_save_IFS=$IFS; IFS='-'
3784 # Remember, the first character of IFS is used to create $*,
3785 # except with old shells:
3788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3791 # The aliases save the names the user supplied, while $host etc.
3792 # will get canonicalized.
3793 test -n "$target_alias" &&
3794 test "$program_prefix$program_suffix$program_transform_name" = \
3796 program_prefix=${target_alias}-
3798 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3799 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3800 if test "${llvm_cv_os_type+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 llvm_cv_link_all_option="-Wl,--whole-archive"
3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3807 llvm_cv_os_type="AIX"
3808 llvm_cv_platform_type="Unix" ;;
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="IRIX"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="Cygwin"
3818 llvm_cv_platform_type="Unix" ;;
3820 llvm_cv_link_all_option="-Wl,-all_load"
3821 llvm_cv_no_link_all_option="-Wl,-noall_load"
3822 llvm_cv_os_type="Darwin"
3823 llvm_cv_platform_type="Unix" ;;
3825 llvm_cv_link_all_option="-Wl,-all_load"
3826 llvm_cv_no_link_all_option="-Wl,-noall_load"
3827 llvm_cv_os_type="Minix"
3828 llvm_cv_platform_type="Unix" ;;
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="FreeBSD"
3833 llvm_cv_platform_type="Unix" ;;
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="GNU/kFreeBSD"
3838 llvm_cv_platform_type="Unix" ;;
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="OpenBSD"
3843 llvm_cv_platform_type="Unix" ;;
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="NetBSD"
3848 llvm_cv_platform_type="Unix" ;;
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="DragonFly"
3853 llvm_cv_platform_type="Unix" ;;
3855 llvm_cv_link_all_option="-Wl,--whole-archive"
3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3857 llvm_cv_os_type="HP-UX"
3858 llvm_cv_platform_type="Unix" ;;
3860 llvm_cv_link_all_option="-Wl,--whole-archive"
3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3862 llvm_cv_os_type="Interix"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Linux"
3868 llvm_cv_platform_type="Unix" ;;
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="GNU"
3873 llvm_cv_platform_type="Unix" ;;
3875 llvm_cv_link_all_option="-Wl,-z,allextract"
3876 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3877 llvm_cv_os_type="SunOS"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,-z,allextract"
3881 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3882 llvm_cv_os_type="AuroraUX"
3883 llvm_cv_platform_type="Unix" ;;
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Win32"
3888 llvm_cv_platform_type="Win32" ;;
3890 llvm_cv_link_all_option="-Wl,--whole-archive"
3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3892 llvm_cv_os_type="MingW"
3893 llvm_cv_platform_type="Win32" ;;
3895 llvm_cv_link_all_option="-Wl,--whole-archive"
3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3897 llvm_cv_os_type="Haiku"
3898 llvm_cv_platform_type="Unix" ;;
3900 llvm_cv_link_all_option="-Wl,--whole-archive"
3901 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3902 llvm_cv_os_type="Freestanding"
3903 llvm_cv_platform_type="Unix" ;;
3905 llvm_cv_link_all_option="-Wl,--whole-archive"
3906 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3907 llvm_cv_os_type="Freestanding"
3908 llvm_cv_platform_type="Unix" ;;
3910 llvm_cv_link_all_option=""
3911 llvm_cv_no_link_all_option=""
3912 llvm_cv_os_type="Unknown"
3913 llvm_cv_platform_type="Unknown" ;;
3916 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3917 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3920 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3921 if test "${llvm_cv_target_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 llvm_cv_target_os_type="AIX" ;;
3928 llvm_cv_target_os_type="IRIX" ;;
3930 llvm_cv_target_os_type="Cygwin" ;;
3932 llvm_cv_target_os_type="Darwin" ;;
3934 llvm_cv_target_os_type="Minix" ;;
3936 llvm_cv_target_os_type="FreeBSD" ;;
3938 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3940 llvm_cv_target_os_type="OpenBSD" ;;
3942 llvm_cv_target_os_type="NetBSD" ;;
3944 llvm_cv_target_os_type="DragonFly" ;;
3946 llvm_cv_target_os_type="HP-UX" ;;
3948 llvm_cv_target_os_type="Interix" ;;
3950 llvm_cv_target_os_type="Linux" ;;
3952 llvm_cv_target_os_type="GNU" ;;
3954 llvm_cv_target_os_type="SunOS" ;;
3956 llvm_cv_target_os_type="AuroraUX" ;;
3958 llvm_cv_target_os_type="Win32" ;;
3960 llvm_cv_target_os_type="MingW" ;;
3962 llvm_cv_target_os_type="Haiku" ;;
3964 llvm_cv_target_os_type="RTEMS" ;;
3966 llvm_cv_target_os_type="NativeClient" ;;
3968 llvm_cv_target_os_type="Freestanding" ;;
3970 llvm_cv_target_os_type="Unknown" ;;
3973 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3974 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3976 if test "$llvm_cv_os_type" = "Unknown" ; then
3977 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3978 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3979 { (exit 1); exit 1; }; }
3984 HOST_OS=$llvm_cv_os_type
3986 TARGET_OS=$llvm_cv_target_os_type
3989 LINKALL=$llvm_cv_link_all_option
3991 NOLINKALL=$llvm_cv_no_link_all_option
3994 case $llvm_cv_platform_type in
3997 cat >>confdefs.h <<\_ACEOF
3998 #define LLVM_ON_UNIX 1
4008 cat >>confdefs.h <<\_ACEOF
4009 #define LLVM_ON_WIN32 1
4019 { echo "$as_me:$LINENO: checking target architecture" >&5
4020 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4021 if test "${llvm_cv_target_arch+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 i?86-*) llvm_cv_target_arch="x86" ;;
4026 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4027 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4028 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4029 arm*-*) llvm_cv_target_arch="ARM" ;;
4030 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4031 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4032 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4033 xcore-*) llvm_cv_target_arch="XCore" ;;
4034 msp430-*) llvm_cv_target_arch="MSP430" ;;
4035 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4036 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4037 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4038 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4039 *) llvm_cv_target_arch="Unknown" ;;
4042 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4043 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4045 if test "$llvm_cv_target_arch" = "Unknown" ; then
4046 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4047 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4050 case "$llvm_cv_target_arch" in
4051 x86) LLVM_NATIVE_ARCH="X86" ;;
4052 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4053 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4056 ARCH=$llvm_cv_target_arch
4060 i?86-*) host_arch="x86" ;;
4061 amd64-* | x86_64-*) host_arch="x86_64" ;;
4062 sparc*-*) host_arch="Sparc" ;;
4063 powerpc*-*) host_arch="PowerPC" ;;
4064 arm*-*) host_arch="ARM" ;;
4065 aarch64*-*) host_arch="AArch64" ;;
4066 mips-* | mips64-*) host_arch="Mips" ;;
4067 mipsel-* | mips64el-*) host_arch="Mips" ;;
4068 xcore-*) host_arch="XCore" ;;
4069 msp430-*) host_arch="MSP430" ;;
4070 hexagon-*) host_arch="Hexagon" ;;
4071 mblaze-*) host_arch="MBlaze" ;;
4072 s390x-*) host_arch="SystemZ" ;;
4073 *) host_arch="Unknown" ;;
4076 if test "$host_arch" = "Unknown" ; then
4077 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4081 HOST_ARCH=$host_arch
4086 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4087 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_GREP+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # Extract the first word of "grep ggrep" to use in msg output
4092 if test -z "$GREP"; then
4093 set dummy grep ggrep; ac_prog_name=$2
4094 if test "${ac_cv_path_GREP+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 ac_path_GREP_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in grep ggrep; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 ac_count=`expr $ac_count + 1`
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP="$ac_path_GREP"
4128 ac_path_GREP_max=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 $ac_path_GREP_found && break 3
4147 GREP="$ac_cv_path_GREP"
4148 if test -z "$GREP"; then
4149 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4150 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cv_path_GREP=$GREP
4160 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4161 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4162 GREP="$ac_cv_path_GREP"
4165 { echo "$as_me:$LINENO: checking for egrep" >&5
4166 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4167 if test "${ac_cv_path_EGREP+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4171 then ac_cv_path_EGREP="$GREP -E"
4173 # Extract the first word of "egrep" to use in msg output
4174 if test -z "$EGREP"; then
4175 set dummy egrep; ac_prog_name=$2
4176 if test "${ac_cv_path_EGREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_path_EGREP_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in egrep; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4190 # Check for GNU ac_path_EGREP and select it if it is found.
4191 # Check for GNU $ac_path_EGREP
4192 case `"$ac_path_EGREP" --version 2>&1` in
4194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 echo 'EGREP' >> "conftest.nl"
4204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 ac_count=`expr $ac_count + 1`
4207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_EGREP="$ac_path_EGREP"
4210 ac_path_EGREP_max=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219 $ac_path_EGREP_found && break 3
4229 EGREP="$ac_cv_path_EGREP"
4230 if test -z "$EGREP"; then
4231 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4232 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4233 { (exit 1); exit 1; }; }
4237 ac_cv_path_EGREP=$EGREP
4243 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4244 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4248 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4249 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4250 if test "${ac_cv_header_stdc+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 cat >conftest.$ac_ext <<_ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_header_stdc=yes
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ac_cv_header_stdc=no
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 if test $ac_cv_header_stdc = yes; then
4317 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev/null 2>&1; then
4331 ac_cv_header_stdc=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "free" >/dev/null 2>&1; then
4352 ac_cv_header_stdc=no
4358 if test $ac_cv_header_stdc = yes; then
4359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4360 if test "$cross_compiling" = yes; then
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4371 #if ((' ' & 0x0FF) == 0x020)
4372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4375 # define ISLOWER(c) \
4376 (('a' <= (c) && (c) <= 'i') \
4377 || ('j' <= (c) && (c) <= 'r') \
4378 || ('s' <= (c) && (c) <= 'z'))
4379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4387 for (i = 0; i < 256; i++)
4388 if (XOR (islower (i), ISLOWER (i))
4389 || toupper (i) != TOUPPER (i))
4394 rm -f conftest$ac_exeext
4395 if { (ac_try="$ac_link"
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_link") 2>&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410 (eval "$ac_try") 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4416 echo "$as_me: program exited with status $ac_status" >&5
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_cv_header_stdc=no
4423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4430 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4433 cat >>confdefs.h <<\_ACEOF
4434 #define STDC_HEADERS 1
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4450 inttypes.h stdint.h unistd.h
4452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 $ac_includes_default
4466 #include <$ac_header>
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_compile") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483 { (case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_try") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498 (eval "$ac_try") 2>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 eval "$as_ac_Header=yes"
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 eval "$as_ac_Header=no"
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513 { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4516 cat >>confdefs.h <<_ACEOF
4517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4526 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4527 if test "${ac_cv_c_bigendian+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # See if sys/param.h defines the BYTE_ORDER macro.
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 #include <sys/param.h>
4543 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4551 rm -f conftest.$ac_objext
4552 if { (ac_try="$ac_compile"
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558 (eval "$ac_compile") 2>conftest.er1
4560 grep -v '^ *+' conftest.er1 >conftest.err
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
4565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4566 { (case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_try") 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 # It does; now see whether it defined to BIG_ENDIAN or not.
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 #include <sys/param.h>
4598 #if BYTE_ORDER != BIG_ENDIAN
4606 rm -f conftest.$ac_objext
4607 if { (ac_try="$ac_compile"
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4621 { (case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_try") 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest.$ac_objext'
4631 { (case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636 (eval "$ac_try") 2>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 ac_cv_c_bigendian=yes
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4645 ac_cv_c_bigendian=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 # It does not; compile a test program.
4654 if test "$cross_compiling" = yes; then
4655 # try to guess the endianness by grepping values into an object file
4656 ac_cv_c_bigendian=unknown
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4664 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4665 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4666 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4667 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4668 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4672 _ascii (); _ebcdic ();
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4692 { (case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_try") 2>&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707 (eval "$ac_try") 2>&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4712 ac_cv_c_bigendian=yes
4714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4715 if test "$ac_cv_c_bigendian" = unknown; then
4716 ac_cv_c_bigendian=no
4718 # finding both strings is unlikely to happen, but who knows?
4719 ac_cv_c_bigendian=unknown
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 cat >conftest.$ac_ext <<_ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 $ac_includes_default
4742 /* Are we little or big endian? From Harbison&Steele. */
4746 char c[sizeof (long int)];
4749 return u.c[sizeof (long int) - 1] == 1;
4755 rm -f conftest$ac_exeext
4756 if { (ac_try="$ac_link"
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_link") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_c_bigendian=no
4777 echo "$as_me: program exited with status $ac_status" >&5
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4782 ac_cv_c_bigendian=yes
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4794 case $ac_cv_c_bigendian in
4802 { { echo "$as_me:$LINENO: error: unknown endianness
4803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4804 echo "$as_me: error: unknown endianness
4805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4806 { (exit 1); exit 1; }; } ;;
4810 if test "$cross_compiling" = yes; then
4811 LLVM_CROSS_COMPILING=1
4814 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4815 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4816 if test "${ac_cv_build_exeext+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4820 ac_cv_build_exeext=.exe
4822 ac_build_prefix=${build_alias}-
4824 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4825 set dummy ${ac_build_prefix}gcc; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 if test -n "$BUILD_CC"; then
4832 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 BUILD_CC=$ac_cv_prog_BUILD_CC
4852 if test -n "$BUILD_CC"; then
4853 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4854 echo "${ECHO_T}$BUILD_CC" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 if test -z "$BUILD_CC"; then
4862 # Extract the first word of "gcc", so it can be a program name with args.
4863 set dummy gcc; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test -n "$BUILD_CC"; then
4870 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_BUILD_CC="gcc"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 BUILD_CC=$ac_cv_prog_BUILD_CC
4890 if test -n "$BUILD_CC"; then
4891 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4892 echo "${ECHO_T}$BUILD_CC" >&6; }
4894 { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4899 if test -z "$BUILD_CC"; then
4900 # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 if test -n "$BUILD_CC"; then
4908 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4919 ac_prog_rejected=yes
4922 ac_cv_prog_BUILD_CC="cc"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 if test $ac_prog_rejected = yes; then
4931 # We found a bogon in the path, so make sure we never use it.
4932 set dummy $ac_cv_prog_BUILD_CC
4934 if test $# != 0; then
4935 # We chose a different compiler from the bogus one.
4936 # However, it has the same basename, so the bogon will be chosen
4937 # first if we set BUILD_CC to just the basename; use the full file name.
4939 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4944 BUILD_CC=$ac_cv_prog_BUILD_CC
4945 if test -n "$BUILD_CC"; then
4946 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4947 echo "${ECHO_T}$BUILD_CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4957 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4958 { (exit 1); exit 1; }; }
4959 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4961 echo 'int main () { return 0; }' > conftest.$ac_ext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4964 (eval $ac_build_link) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; then
4968 for file in conftest.*; do
4970 *.c | *.o | *.obj | *.dSYM) ;;
4971 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4975 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4976 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4977 { (exit 1); exit 1; }; }
4980 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4985 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4986 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4987 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4988 ac_build_exeext=$BUILD_EXEEXT
4990 ac_build_prefix=${build_alias}-
4991 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4992 set dummy ${ac_build_prefix}g++; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 if test -n "$BUILD_CXX"; then
4999 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5019 if test -n "$BUILD_CXX"; then
5020 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5021 echo "${ECHO_T}$BUILD_CXX" >&6; }
5023 { echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6; }
5028 if test -z "$BUILD_CXX"; then
5029 # Extract the first word of "g++", so it can be a program name with args.
5030 set dummy g++; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$BUILD_CXX"; then
5037 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_BUILD_CXX="g++"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5057 if test -n "$BUILD_CXX"; then
5058 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5059 echo "${ECHO_T}$BUILD_CXX" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5066 if test -z "$BUILD_CXX"; then
5067 # Extract the first word of "c++", so it can be a program name with args.
5068 set dummy c++; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if test -n "$BUILD_CXX"; then
5075 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5086 ac_prog_rejected=yes
5089 ac_cv_prog_BUILD_CXX="c++"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 if test $ac_prog_rejected = yes; then
5098 # We found a bogon in the path, so make sure we never use it.
5099 set dummy $ac_cv_prog_BUILD_CXX
5101 if test $# != 0; then
5102 # We chose a different compiler from the bogus one.
5103 # However, it has the same basename, so the bogon will be chosen
5104 # first if we set BUILD_CXX to just the basename; use the full file name.
5106 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5111 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5112 if test -n "$BUILD_CXX"; then
5113 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5114 echo "${ECHO_T}$BUILD_CXX" >&6; }
5116 { echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6; }
5124 LLVM_CROSS_COMPILING=0
5128 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5139 # Check whether --enable-libcpp was given.
5140 if test "${enable_libcpp+set}" = set; then
5141 enableval=$enable_libcpp;
5146 case "$enableval" in
5147 yes) ENABLE_LIBCPP=1
5151 default) ENABLE_LIBCPP=0
5153 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5154 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5155 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-cxx11 was given.
5159 if test "${enable_cxx11+set}" = set; then
5160 enableval=$enable_cxx11;
5165 case "$enableval" in
5170 default) ENABLE_CXX11=0
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 # Check whether --enable-split-dwarf was given.
5178 if test "${enable_split_dwarf+set}" = set; then
5179 enableval=$enable_split_dwarf;
5184 case "$enableval" in
5185 yes) ENABLE_SPLIT_DWARF=1
5187 no) ENABLE_SPLIT_DWARF=0
5189 default) ENABLE_SPLIT_DWARF=0
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-clang-arcmt was given.
5198 if test "${enable_clang_arcmt+set}" = set; then
5199 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5204 case "$enableval" in
5205 yes) ENABLE_CLANG_ARCMT=1
5207 no) ENABLE_CLANG_ARCMT=0
5209 default) ENABLE_CLANG_ARCMT=1
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 clang_static_analyzer="yes"
5217 # Check whether --enable-clang-static-analyzer was given.
5218 if test "${enable_clang_static_analyzer+set}" = set; then
5219 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5224 case "$enableval" in
5225 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5227 no) ENABLE_CLANG_STATIC_ANALYZER=0
5229 default) ENABLE_CLANG_STATIC_ANALYZER=1
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-clang-rewriter was given.
5237 if test "${enable_clang_rewriter+set}" = set; then
5238 enableval=$enable_clang_rewriter;
5243 case "$enableval" in
5244 yes) ENABLE_CLANG_REWRITER=1
5247 if test ${clang_arcmt} != "no" ; then
5248 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5249 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5250 { (exit 1); exit 1; }; }
5252 if test ${clang_static_analyzer} != "no" ; then
5253 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5254 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5255 { (exit 1); exit 1; }; }
5257 ENABLE_CLANG_REWRITER=0
5260 default) ENABLE_CLANG_REWRITER=1
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5263 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5267 # Check whether --enable-optimized was given.
5268 if test "${enable_optimized+set}" = set; then
5269 enableval=$enable_optimized;
5274 if test ${enableval} = "no" ; then
5278 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5282 # Check whether --enable-profiling was given.
5283 if test "${enable_profiling+set}" = set; then
5284 enableval=$enable_profiling;
5289 if test ${enableval} = "no" ; then
5293 ENABLE_PROFILING=ENABLE_PROFILING=1
5297 # Check whether --enable-assertions was given.
5298 if test "${enable_assertions+set}" = set; then
5299 enableval=$enable_assertions;
5304 if test ${enableval} = "yes" ; then
5308 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5312 # Check whether --enable-werror was given.
5313 if test "${enable_werror+set}" = set; then
5314 enableval=$enable_werror;
5319 case "$enableval" in
5320 yes) ENABLE_WERROR=1
5324 default) ENABLE_WERROR=0
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5331 # Check whether --enable-expensive-checks was given.
5332 if test "${enable_expensive_checks+set}" = set; then
5333 enableval=$enable_expensive_checks;
5338 if test ${enableval} = "yes" ; then
5339 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5341 EXPENSIVE_CHECKS=yes
5344 ENABLE_EXPENSIVE_CHECKS=
5350 # Check whether --enable-debug-runtime was given.
5351 if test "${enable_debug_runtime+set}" = set; then
5352 enableval=$enable_debug_runtime;
5357 if test ${enableval} = "no" ; then
5361 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5365 # Check whether --enable-debug-symbols was given.
5366 if test "${enable_debug_symbols+set}" = set; then
5367 enableval=$enable_debug_symbols;
5372 if test ${enableval} = "no" ; then
5376 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5380 # Check whether --enable-keep-symbols was given.
5381 if test "${enable_keep_symbols+set}" = set; then
5382 enableval=$enable_keep_symbols;
5387 if test ${enableval} = "no" ; then
5391 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5395 # Check whether --enable-jit was given.
5396 if test "${enable_jit+set}" = set; then
5397 enableval=$enable_jit;
5402 if test ${enableval} = "no"
5407 case "$llvm_cv_target_arch" in
5408 x86) TARGET_HAS_JIT=1
5410 Sparc) TARGET_HAS_JIT=0
5412 PowerPC) TARGET_HAS_JIT=1
5414 x86_64) TARGET_HAS_JIT=1
5416 ARM) TARGET_HAS_JIT=1
5418 AArch64) TARGET_HAS_JIT=0
5420 Mips) TARGET_HAS_JIT=1
5422 XCore) TARGET_HAS_JIT=0
5424 MSP430) TARGET_HAS_JIT=0
5426 Hexagon) TARGET_HAS_JIT=0
5428 MBlaze) TARGET_HAS_JIT=0
5430 NVPTX) TARGET_HAS_JIT=0
5432 SystemZ) TARGET_HAS_JIT=1
5439 # Check whether --enable-docs was given.
5440 if test "${enable_docs+set}" = set; then
5441 enableval=$enable_docs;
5446 case "$enableval" in
5451 default) ENABLE_DOCS=1
5453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5454 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5455 { (exit 1); exit 1; }; } ;;
5458 # Check whether --enable-doxygen was given.
5459 if test "${enable_doxygen+set}" = set; then
5460 enableval=$enable_doxygen;
5465 case "$enableval" in
5466 yes) ENABLE_DOXYGEN=1
5468 no) ENABLE_DOXYGEN=0
5470 default) ENABLE_DOXYGEN=0
5472 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5474 { (exit 1); exit 1; }; } ;;
5477 # Check whether --enable-threads was given.
5478 if test "${enable_threads+set}" = set; then
5479 enableval=$enable_threads;
5484 case "$enableval" in
5485 yes) LLVM_ENABLE_THREADS=1
5487 no) LLVM_ENABLE_THREADS=0
5489 default) LLVM_ENABLE_THREADS=1
5491 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5493 { (exit 1); exit 1; }; } ;;
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5501 # Check whether --enable-pthreads was given.
5502 if test "${enable_pthreads+set}" = set; then
5503 enableval=$enable_pthreads;
5508 case "$enableval" in
5509 yes) ENABLE_PTHREADS=1
5511 no) ENABLE_PTHREADS=0
5513 default) ENABLE_PTHREADS=1
5515 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5517 { (exit 1); exit 1; }; } ;;
5520 # Check whether --enable-zlib was given.
5521 if test "${enable_zlib+set}" = set; then
5522 enableval=$enable_zlib;
5527 case "$enableval" in
5528 yes) LLVM_ENABLE_ZLIB=1
5530 no) LLVM_ENABLE_ZLIB=0
5532 default) LLVM_ENABLE_ZLIB=1
5534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5535 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5536 { (exit 1); exit 1; }; } ;;
5539 cat >>confdefs.h <<_ACEOF
5540 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5544 # Check whether --enable-pic was given.
5545 if test "${enable_pic+set}" = set; then
5546 enableval=$enable_pic;
5551 case "$enableval" in
5556 default) ENABLE_PIC=1
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 cat >>confdefs.h <<_ACEOF
5564 #define ENABLE_PIC $ENABLE_PIC
5568 # Check whether --enable-shared was given.
5569 if test "${enable_shared+set}" = set; then
5570 enableval=$enable_shared;
5575 case "$enableval" in
5576 yes) ENABLE_SHARED=1
5580 default) ENABLE_SHARED=0
5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5587 # Check whether --enable-embed-stdcxx was given.
5588 if test "${enable_embed_stdcxx+set}" = set; then
5589 enableval=$enable_embed_stdcxx;
5594 case "$enableval" in
5595 yes) ENABLE_EMBED_STDCXX=1
5597 no) ENABLE_EMBED_STDCXX=0
5599 default) ENABLE_EMBED_STDCXX=0
5601 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5602 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5603 { (exit 1); exit 1; }; } ;;
5606 # Check whether --enable-timestamps was given.
5607 if test "${enable_timestamps+set}" = set; then
5608 enableval=$enable_timestamps;
5613 case "$enableval" in
5614 yes) ENABLE_TIMESTAMPS=1
5616 no) ENABLE_TIMESTAMPS=0
5618 default) ENABLE_TIMESTAMPS=1
5620 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5621 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5622 { (exit 1); exit 1; }; } ;;
5625 cat >>confdefs.h <<_ACEOF
5626 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5631 # Check whether --enable-backtraces was given.
5632 if test "${enable_backtraces+set}" = set; then
5633 enableval=$enable_backtraces;
5638 case "$enableval" in
5639 yes) ENABLE_BACKTRACES=1
5641 no) ENABLE_BACKTRACES=0
5643 default) ENABLE_BACKTRACES=1
5645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5646 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5647 { (exit 1); exit 1; }; } ;;
5650 cat >>confdefs.h <<_ACEOF
5651 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5656 # Check whether --enable-targets was given.
5657 if test "${enable_targets+set}" = set; then
5658 enableval=$enable_targets;
5663 if test "$enableval" = host-only ; then
5666 case "$enableval" in
5667 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5668 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5670 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5679 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5680 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5681 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5682 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5683 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5684 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5685 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5686 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5687 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5688 host) case "$llvm_cv_target_arch" in
5689 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5690 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5691 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5692 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5693 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5694 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5695 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5696 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5697 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5698 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5699 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5700 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5701 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5702 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5703 echo "$as_me: error: Can not set target to build" >&2;}
5704 { (exit 1); exit 1; }; } ;;
5706 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5707 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5708 { (exit 1); exit 1; }; } ;;
5714 # Check whether --enable-experimental-targets was given.
5715 if test "${enable_experimental_targets+set}" = set; then
5716 enableval=$enable_experimental_targets;
5722 if test ${enableval} != "disable"
5724 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5727 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5730 for a_target in $TARGETS_TO_BUILD; do
5731 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5737 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5738 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5739 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5740 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5741 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5742 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5744 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5745 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5758 cat >>confdefs.h <<_ACEOF
5759 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5763 cat >>confdefs.h <<_ACEOF
5764 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5767 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5769 cat >>confdefs.h <<_ACEOF
5770 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5774 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5776 cat >>confdefs.h <<_ACEOF
5777 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5784 LLVM_ENUM_TARGETS=""
5785 LLVM_ENUM_ASM_PRINTERS=""
5786 LLVM_ENUM_ASM_PARSERS=""
5787 LLVM_ENUM_DISASSEMBLERS=""
5788 for target_to_build in $TARGETS_TO_BUILD; do
5789 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5790 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5791 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5793 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5794 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5796 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5797 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5806 # Check whether --with-optimize-option was given.
5807 if test "${with_optimize_option+set}" = set; then
5808 withval=$with_optimize_option;
5813 { echo "$as_me:$LINENO: checking optimization flags" >&5
5814 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5817 case "$llvm_cv_os_type" in
5818 FreeBSD) optimize_option=-O2 ;;
5819 MingW) optimize_option=-O2 ;;
5820 *) optimize_option=-O3 ;;
5822 *) optimize_option="$withval" ;;
5824 OPTIMIZE_OPTION=$optimize_option
5826 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5827 echo "${ECHO_T}$optimize_option" >&6; }
5830 # Check whether --with-extra-options was given.
5831 if test "${with_extra_options+set}" = set; then
5832 withval=$with_extra_options;
5838 default) EXTRA_OPTIONS= ;;
5839 *) EXTRA_OPTIONS=$withval ;;
5841 EXTRA_OPTIONS=$EXTRA_OPTIONS
5845 # Check whether --with-extra-ld-options was given.
5846 if test "${with_extra_ld_options+set}" = set; then
5847 withval=$with_extra_ld_options;
5853 default) EXTRA_LD_OPTIONS= ;;
5854 *) EXTRA_LD_OPTIONS=$withval ;;
5856 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5859 # Check whether --enable-bindings was given.
5860 if test "${enable_bindings+set}" = set; then
5861 enableval=$enable_bindings;
5866 BINDINGS_TO_BUILD=""
5867 case "$enableval" in
5868 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5869 all ) BINDINGS_TO_BUILD="ocaml" ;;
5870 none | no) BINDINGS_TO_BUILD="" ;;
5871 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5872 case "$a_binding" in
5873 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5874 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5875 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5876 { (exit 1); exit 1; }; } ;;
5883 # Check whether --with-ocaml-libdir was given.
5884 if test "${with_ocaml_libdir+set}" = set; then
5885 withval=$with_ocaml_libdir;
5891 auto) with_ocaml_libdir="$withval" ;;
5892 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5893 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5894 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5895 { (exit 1); exit 1; }; } ;;
5899 # Check whether --with-clang-srcdir was given.
5900 if test "${with_clang_srcdir+set}" = set; then
5901 withval=$with_clang_srcdir;
5907 -) clang_src_root="" ;;
5908 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5909 *) clang_src_root="$ac_pwd/$withval" ;;
5911 CLANG_SRC_ROOT=$clang_src_root
5915 # Check whether --with-clang-resource-dir was given.
5916 if test "${with_clang_resource_dir+set}" = set; then
5917 withval=$with_clang_resource_dir;
5923 cat >>confdefs.h <<_ACEOF
5924 #define CLANG_RESOURCE_DIR "$withval"
5929 # Check whether --with-c-include-dirs was given.
5930 if test "${with_c_include_dirs+set}" = set; then
5931 withval=$with_c_include_dirs;
5937 cat >>confdefs.h <<_ACEOF
5938 #define C_INCLUDE_DIRS "$withval"
5942 # Clang normally uses the system c++ headers and libraries. With this option,
5943 # clang will use the ones provided by a gcc installation instead. This option should
5944 # be passed the same value that was used with --prefix when configuring gcc.
5946 # Check whether --with-gcc-toolchain was given.
5947 if test "${with_gcc_toolchain+set}" = set; then
5948 withval=$with_gcc_toolchain;
5954 cat >>confdefs.h <<_ACEOF
5955 #define GCC_INSTALL_PREFIX "$withval"
5960 # Check whether --with-default-sysroot was given.
5961 if test "${with_default_sysroot+set}" = set; then
5962 withval=$with_default_sysroot;
5968 cat >>confdefs.h <<_ACEOF
5969 #define DEFAULT_SYSROOT "$withval"
5974 # Check whether --with-binutils-include was given.
5975 if test "${with_binutils_include+set}" = set; then
5976 withval=$with_binutils_include;
5982 default) WITH_BINUTILS_INCDIR=default ;;
5983 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5984 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5985 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5986 { (exit 1); exit 1; }; } ;;
5988 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5989 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5991 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5992 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5993 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5994 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5995 { (exit 1); exit 1; }; };
6000 # Check whether --with-bug-report-url was given.
6001 if test "${with_bug_report_url+set}" = set; then
6002 withval=$with_bug_report_url;
6004 withval="http://llvm.org/bugs/"
6008 cat >>confdefs.h <<_ACEOF
6009 #define BUG_REPORT_URL "$withval"
6013 # Check whether --enable-libffi was given.
6014 if test "${enable_libffi+set}" = set; then
6015 enableval=$enable_libffi; case "$enableval" in
6016 yes) llvm_cv_enable_libffi="yes" ;;
6017 no) llvm_cv_enable_libffi="no" ;;
6018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6019 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6020 { (exit 1); exit 1; }; } ;;
6023 llvm_cv_enable_libffi=no
6028 # Check whether --with-internal-prefix was given.
6029 if test "${with_internal_prefix+set}" = set; then
6030 withval=$with_internal_prefix;
6035 INTERNAL_PREFIX=$withval
6039 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6040 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6041 if test "${lt_cv_path_NM+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 if test -n "$NM"; then
6045 # Let the user override the test.
6048 lt_nm_to_check="${ac_tool_prefix}nm"
6049 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6050 lt_nm_to_check="$lt_nm_to_check nm"
6052 for lt_tmp_nm in $lt_nm_to_check; do
6053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6054 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6056 test -z "$ac_dir" && ac_dir=.
6057 tmp_nm="$ac_dir/$lt_tmp_nm"
6058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6059 # Check to see if the nm accepts a BSD-compat flag.
6060 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6061 # nm: unknown option "B" ignored
6062 # Tru64's nm complains that /dev/null is an invalid object file
6063 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6064 */dev/null* | *'Invalid file or object type'*)
6065 lt_cv_path_NM="$tmp_nm -B"
6069 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6071 lt_cv_path_NM="$tmp_nm -p"
6075 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6076 continue # so that we can try to find one that supports BSD flags
6085 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6088 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6089 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6094 { echo "$as_me:$LINENO: checking for GNU make" >&5
6095 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6096 if test "${llvm_cv_gnu_make_command+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 llvm_cv_gnu_make_command=''
6100 for a in "$MAKE" make gmake gnumake ; do
6101 if test -z "$a" ; then continue ; fi ;
6102 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6104 llvm_cv_gnu_make_command=$a ;
6109 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6110 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6111 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6115 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6116 echo "${ECHO_T}\"Not found\"" >&6; };
6120 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6121 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6123 if test "$LN_S" = "ln -s"; then
6124 { echo "$as_me:$LINENO: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6; }
6127 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6128 echo "${ECHO_T}no, using $LN_S" >&6; }
6131 # Extract the first word of "cmp", so it can be a program name with args.
6132 set dummy cmp; ac_word=$2
6133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135 if test "${ac_cv_path_CMP+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6163 if test -n "$CMP"; then
6164 { echo "$as_me:$LINENO: result: $CMP" >&5
6165 echo "${ECHO_T}$CMP" >&6; }
6167 { echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6; }
6172 # Extract the first word of "cp", so it can be a program name with args.
6173 set dummy cp; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_path_CP+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6181 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6204 if test -n "$CP"; then
6205 { echo "$as_me:$LINENO: result: $CP" >&5
6206 echo "${ECHO_T}$CP" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6213 # Extract the first word of "date", so it can be a program name with args.
6214 set dummy date; ac_word=$2
6215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6217 if test "${ac_cv_path_DATE+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6244 DATE=$ac_cv_path_DATE
6245 if test -n "$DATE"; then
6246 { echo "$as_me:$LINENO: result: $DATE" >&5
6247 echo "${ECHO_T}$DATE" >&6; }
6249 { echo "$as_me:$LINENO: result: no" >&5
6250 echo "${ECHO_T}no" >&6; }
6254 # Extract the first word of "find", so it can be a program name with args.
6255 set dummy find; ac_word=$2
6256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6258 if test "${ac_cv_path_FIND+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6285 FIND=$ac_cv_path_FIND
6286 if test -n "$FIND"; then
6287 { echo "$as_me:$LINENO: result: $FIND" >&5
6288 echo "${ECHO_T}$FIND" >&6; }
6290 { echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6; }
6295 # Extract the first word of "grep", so it can be a program name with args.
6296 set dummy grep; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_GREP+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6326 GREP=$ac_cv_path_GREP
6327 if test -n "$GREP"; then
6328 { echo "$as_me:$LINENO: result: $GREP" >&5
6329 echo "${ECHO_T}$GREP" >&6; }
6331 { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6336 # Extract the first word of "mkdir", so it can be a program name with args.
6337 set dummy mkdir; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_MKDIR+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6367 MKDIR=$ac_cv_path_MKDIR
6368 if test -n "$MKDIR"; then
6369 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6370 echo "${ECHO_T}$MKDIR" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6377 # Extract the first word of "mv", so it can be a program name with args.
6378 set dummy mv; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_MV+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6409 if test -n "$MV"; then
6410 { echo "$as_me:$LINENO: result: $MV" >&5
6411 echo "${ECHO_T}$MV" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_prog_RANLIB+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 if test -n "$RANLIB"; then
6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6449 echo "${ECHO_T}$RANLIB" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458 ac_ct_RANLIB=$RANLIB
6459 # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 if test -n "$ac_ct_RANLIB"; then
6467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_RANLIB="ranlib"
6477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6489 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6495 if test "x$ac_ct_RANLIB" = x; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet. If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&5
6503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6504 whose name does not start with the host triplet. If you think this
6505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6506 ac_tool_warned=yes ;;
6508 RANLIB=$ac_ct_RANLIB
6511 RANLIB="$ac_cv_prog_RANLIB"
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ar; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_prog_AR+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 if test -n "$AR"; then
6523 ac_cv_prog_AR="$AR" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_AR="${ac_tool_prefix}ar"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 if test -n "$AR"; then
6544 { echo "$as_me:$LINENO: result: $AR" >&5
6545 echo "${ECHO_T}$AR" >&6; }
6547 { echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6; }
6553 if test -z "$ac_cv_prog_AR"; then
6555 # Extract the first word of "ar", so it can be a program name with args.
6556 set dummy ar; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 if test -n "$ac_ct_AR"; then
6563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_AR="ar"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6583 if test -n "$ac_ct_AR"; then
6584 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6585 echo "${ECHO_T}$ac_ct_AR" >&6; }
6587 { echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6; }
6591 if test "x$ac_ct_AR" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet. If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&5
6599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6600 whose name does not start with the host triplet. If you think this
6601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6602 ac_tool_warned=yes ;;
6610 # Extract the first word of "rm", so it can be a program name with args.
6611 set dummy rm; ac_word=$2
6612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6614 if test "${ac_cv_path_RM+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6629 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6642 if test -n "$RM"; then
6643 { echo "$as_me:$LINENO: result: $RM" >&5
6644 echo "${ECHO_T}$RM" >&6; }
6646 { echo "$as_me:$LINENO: result: no" >&5
6647 echo "${ECHO_T}no" >&6; }
6651 # Extract the first word of "sed", so it can be a program name with args.
6652 set dummy sed; ac_word=$2
6653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6655 if test "${ac_cv_path_SED+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6683 if test -n "$SED"; then
6684 { echo "$as_me:$LINENO: result: $SED" >&5
6685 echo "${ECHO_T}$SED" >&6; }
6687 { echo "$as_me:$LINENO: result: no" >&5
6688 echo "${ECHO_T}no" >&6; }
6692 # Extract the first word of "tar", so it can be a program name with args.
6693 set dummy tar; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_TAR+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6724 if test -n "$TAR"; then
6725 { echo "$as_me:$LINENO: result: $TAR" >&5
6726 echo "${ECHO_T}$TAR" >&6; }
6728 { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6733 # Extract the first word of "pwd", so it can be a program name with args.
6734 set dummy pwd; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_path_BINPWD+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6764 BINPWD=$ac_cv_path_BINPWD
6765 if test -n "$BINPWD"; then
6766 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6767 echo "${ECHO_T}$BINPWD" >&6; }
6769 { echo "$as_me:$LINENO: result: no" >&5
6770 echo "${ECHO_T}no" >&6; }
6775 # Extract the first word of "Graphviz", so it can be a program name with args.
6776 set dummy Graphviz; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6806 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6807 if test -n "$GRAPHVIZ"; then
6808 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6809 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6816 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_GRAPHVIZ 1
6822 if test "$llvm_cv_os_type" = "MingW" ; then
6823 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6831 # Extract the first word of "dot", so it can be a program name with args.
6832 set dummy dot; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOT+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6863 if test -n "$DOT"; then
6864 { echo "$as_me:$LINENO: result: $DOT" >&5
6865 echo "${ECHO_T}$DOT" >&6; }
6867 { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6872 if test "$DOT" != "echo dot" ; then
6874 cat >>confdefs.h <<\_ACEOF
6878 if test "$llvm_cv_os_type" = "MingW" ; then
6879 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6887 # Extract the first word of "fdp", so it can be a program name with args.
6888 set dummy fdp; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_FDP+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6919 if test -n "$FDP"; then
6920 { echo "$as_me:$LINENO: result: $FDP" >&5
6921 echo "${ECHO_T}$FDP" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6928 if test "$FDP" != "echo fdp" ; then
6930 cat >>confdefs.h <<\_ACEOF
6934 if test "$llvm_cv_os_type" = "MingW" ; then
6935 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6943 # Extract the first word of "neato", so it can be a program name with args.
6944 set dummy neato; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_path_NEATO+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6974 NEATO=$ac_cv_path_NEATO
6975 if test -n "$NEATO"; then
6976 { echo "$as_me:$LINENO: result: $NEATO" >&5
6977 echo "${ECHO_T}$NEATO" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6984 if test "$NEATO" != "echo neato" ; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_NEATO 1
6990 if test "$llvm_cv_os_type" = "MingW" ; then
6991 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6994 cat >>confdefs.h <<_ACEOF
6995 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6999 # Extract the first word of "twopi", so it can be a program name with args.
7000 set dummy twopi; ac_word=$2
7001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7003 if test "${ac_cv_path_TWOPI+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7030 TWOPI=$ac_cv_path_TWOPI
7031 if test -n "$TWOPI"; then
7032 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7033 echo "${ECHO_T}$TWOPI" >&6; }
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 if test "$TWOPI" != "echo twopi" ; then
7042 cat >>confdefs.h <<\_ACEOF
7043 #define HAVE_TWOPI 1
7046 if test "$llvm_cv_os_type" = "MingW" ; then
7047 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7050 cat >>confdefs.h <<_ACEOF
7051 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7055 # Extract the first word of "circo", so it can be a program name with args.
7056 set dummy circo; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_CIRCO+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7086 CIRCO=$ac_cv_path_CIRCO
7087 if test -n "$CIRCO"; then
7088 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7089 echo "${ECHO_T}$CIRCO" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7096 if test "$CIRCO" != "echo circo" ; then
7098 cat >>confdefs.h <<\_ACEOF
7099 #define HAVE_CIRCO 1
7102 if test "$llvm_cv_os_type" = "MingW" ; then
7103 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7106 cat >>confdefs.h <<_ACEOF
7107 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7111 for ac_prog in gv gsview32
7113 # Extract the first word of "$ac_prog", so it can be a program name with args.
7114 set dummy $ac_prog; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_path_GV+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 if test -n "$GV"; then
7145 { echo "$as_me:$LINENO: result: $GV" >&5
7146 echo "${ECHO_T}$GV" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 test -n "$GV" && break
7155 test -n "$GV" || GV="echo gv"
7157 if test "$GV" != "echo gv" ; then
7159 cat >>confdefs.h <<\_ACEOF
7163 if test "$llvm_cv_os_type" = "MingW" ; then
7164 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7167 cat >>confdefs.h <<_ACEOF
7168 #define LLVM_PATH_GV "$GV${EXEEXT}"
7172 # Extract the first word of "dotty", so it can be a program name with args.
7173 set dummy dotty; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOTTY+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7203 DOTTY=$ac_cv_path_DOTTY
7204 if test -n "$DOTTY"; then
7205 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7206 echo "${ECHO_T}$DOTTY" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 if test "$DOTTY" != "echo dotty" ; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define HAVE_DOTTY 1
7219 if test "$llvm_cv_os_type" = "MingW" ; then
7220 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7223 cat >>confdefs.h <<_ACEOF
7224 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7228 for ac_prog in xdot xdot.py
7230 # Extract the first word of "$ac_prog", so it can be a program name with args.
7231 set dummy $ac_prog; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_path_XDOT+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 XDOT=$ac_cv_path_XDOT
7261 if test -n "$XDOT"; then
7262 { echo "$as_me:$LINENO: result: $XDOT" >&5
7263 echo "${ECHO_T}$XDOT" >&6; }
7265 { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7270 test -n "$XDOT" && break
7272 test -n "$XDOT" || XDOT="echo xdot"
7274 if test "$XDOT" != "echo xdot" ; then
7276 cat >>confdefs.h <<\_ACEOF
7280 if test "$llvm_cv_os_type" = "MingW" ; then
7281 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7284 cat >>confdefs.h <<_ACEOF
7285 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7290 # Find a good install program. We prefer a C program (faster),
7291 # so one script is as good as another. But avoid the broken or
7292 # incompatible versions:
7293 # SysV /etc/install, /usr/sbin/install
7294 # SunOS /usr/etc/install
7295 # IRIX /sbin/install
7297 # AmigaOS /C/install, which installs bootblocks on floppy discs
7298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7301 # OS/2's system install, which has a completely different semantic
7302 # ./install, which can be erroneously created by make from ./install.sh.
7303 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7304 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7305 if test -z "$INSTALL"; then
7306 if test "${ac_cv_path_install+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 # Account for people who put trailing slashes in PATH elements.
7316 ./ | .// | /cC/* | \
7317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7318 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7321 # OSF1 and SCO ODT 3.0 have their own names for install.
7322 # Don't use installbsd from OSF since it installs stuff as root
7324 for ac_prog in ginstall scoinst install; do
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7327 if test $ac_prog = install &&
7328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7329 # AIX install. It has an incompatible calling convention.
7331 elif test $ac_prog = install &&
7332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7333 # program-specific install script used by HP pwplus--don't use.
7336 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7349 if test "${ac_cv_path_install+set}" = set; then
7350 INSTALL=$ac_cv_path_install
7352 # As a last resort, use the slow shell script. Don't cache a
7353 # value for INSTALL within a source directory, because that will
7354 # break other packages using the cache if that directory is
7355 # removed, or if the value is a relative name.
7356 INSTALL=$ac_install_sh
7359 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7360 echo "${ECHO_T}$INSTALL" >&6; }
7362 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7363 # It thinks the first close brace ends the variable substitution.
7364 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7366 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7368 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7371 [\\/$]* | ?:[\\/]* ) ;;
7372 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7375 # Extract the first word of "bzip2", so it can be a program name with args.
7376 set dummy bzip2; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_BZIP2+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 BZIP2=$ac_cv_path_BZIP2
7406 if test -n "$BZIP2"; then
7407 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7408 echo "${ECHO_T}$BZIP2" >&6; }
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7415 # Extract the first word of "cat", so it can be a program name with args.
7416 set dummy cat; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_CAT+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 if test -n "$CAT"; then
7447 { echo "$as_me:$LINENO: result: $CAT" >&5
7448 echo "${ECHO_T}$CAT" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7455 # Extract the first word of "doxygen", so it can be a program name with args.
7456 set dummy doxygen; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 DOXYGEN=$ac_cv_path_DOXYGEN
7486 if test -n "$DOXYGEN"; then
7487 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7488 echo "${ECHO_T}$DOXYGEN" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 # Extract the first word of "groff", so it can be a program name with args.
7496 set dummy groff; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GROFF+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 GROFF=$ac_cv_path_GROFF
7526 if test -n "$GROFF"; then
7527 { echo "$as_me:$LINENO: result: $GROFF" >&5
7528 echo "${ECHO_T}$GROFF" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7535 # Extract the first word of "gzip", so it can be a program name with args.
7536 set dummy gzip; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 GZIPBIN=$ac_cv_path_GZIPBIN
7566 if test -n "$GZIPBIN"; then
7567 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7568 echo "${ECHO_T}$GZIPBIN" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 # Extract the first word of "pdfroff", so it can be a program name with args.
7576 set dummy pdfroff; ac_word=$2
7577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579 if test "${ac_cv_path_PDFROFF+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 PDFROFF=$ac_cv_path_PDFROFF
7606 if test -n "$PDFROFF"; then
7607 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7608 echo "${ECHO_T}$PDFROFF" >&6; }
7610 { echo "$as_me:$LINENO: result: no" >&5
7611 echo "${ECHO_T}no" >&6; }
7615 # Extract the first word of "zip", so it can be a program name with args.
7616 set dummy zip; ac_word=$2
7617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7619 if test "${ac_cv_path_ZIP+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 if test -n "$ZIP"; then
7647 { echo "$as_me:$LINENO: result: $ZIP" >&5
7648 echo "${ECHO_T}$ZIP" >&6; }
7650 { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7655 for ac_prog in ocamlc
7657 # Extract the first word of "$ac_prog", so it can be a program name with args.
7658 set dummy $ac_prog; ac_word=$2
7659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661 if test "${ac_cv_path_OCAMLC+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 OCAMLC=$ac_cv_path_OCAMLC
7688 if test -n "$OCAMLC"; then
7689 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7690 echo "${ECHO_T}$OCAMLC" >&6; }
7692 { echo "$as_me:$LINENO: result: no" >&5
7693 echo "${ECHO_T}no" >&6; }
7697 test -n "$OCAMLC" && break
7700 for ac_prog in ocamlopt
7702 # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 OCAMLOPT=$ac_cv_path_OCAMLOPT
7733 if test -n "$OCAMLOPT"; then
7734 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7735 echo "${ECHO_T}$OCAMLOPT" >&6; }
7737 { echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6; }
7742 test -n "$OCAMLOPT" && break
7745 for ac_prog in ocamldep
7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy $ac_prog; ac_word=$2
7749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7751 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 OCAMLDEP=$ac_cv_path_OCAMLDEP
7778 if test -n "$OCAMLDEP"; then
7779 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7780 echo "${ECHO_T}$OCAMLDEP" >&6; }
7782 { echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6; }
7787 test -n "$OCAMLDEP" && break
7790 for ac_prog in ocamldoc
7792 # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7796 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 OCAMLDOC=$ac_cv_path_OCAMLDOC
7823 if test -n "$OCAMLDOC"; then
7824 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7825 echo "${ECHO_T}$OCAMLDOC" >&6; }
7827 { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7832 test -n "$OCAMLDOC" && break
7835 for ac_prog in gas as
7837 # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_path_GAS+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 if test -n "$GAS"; then
7869 { echo "$as_me:$LINENO: result: $GAS" >&5
7870 echo "${ECHO_T}$GAS" >&6; }
7872 { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7877 test -n "$GAS" && break
7881 { echo "$as_me:$LINENO: checking for linker version" >&5
7882 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7883 if test "${llvm_cv_link_version+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 version_string="$(ld -v 2>&1 | head -1)"
7890 if (echo "$version_string" | grep -q "ld64"); then
7891 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7893 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7897 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7898 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7900 cat >>confdefs.h <<_ACEOF
7901 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7906 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7907 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7908 if test "${llvm_cv_link_use_r+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918 CFLAGS="$CFLAGS -Wl,-R."
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7949 { (case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_try") 2>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; } &&
7958 { ac_try='test -s conftest$ac_exeext'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 llvm_cv_link_use_r=yes
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7973 llvm_cv_link_use_r=no
7976 rm -f core conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7980 ac_cpp='$CPP $CPPFLAGS'
7981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7988 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7989 if test "$llvm_cv_link_use_r" = yes ; then
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_LINK_R 1
7998 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7999 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8000 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 ac_cpp='$CPP $CPPFLAGS'
8005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_link") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041 { (case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_try") 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 llvm_cv_link_use_export_dynamic=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 llvm_cv_link_use_export_dynamic=no
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8072 ac_cpp='$CPP $CPPFLAGS'
8073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8080 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8081 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_LINK_EXPORT_DYNAMIC 1
8090 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8091 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8092 if test "${llvm_cv_link_use_version_script+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 ac_cpp='$CPP $CPPFLAGS'
8097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103 # The following code is from the autoconf manual,
8104 # "11.13: Limitations of Usual Tools".
8105 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8106 # Use mktemp if possible; otherwise fall back on mkdir,
8107 # with $RANDOM to make collisions less likely.
8111 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8113 test -n "$tmp" && test -d "$tmp"
8115 tmp=$TMPDIR/foo$$-$RANDOM
8116 (umask 077 && mkdir "$tmp")
8119 echo "{" > "$tmp/export.map"
8120 echo " global: main;" >> "$tmp/export.map"
8121 echo " local: *;" >> "$tmp/export.map"
8122 echo "};" >> "$tmp/export.map"
8124 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (ac_try="$ac_link"
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 llvm_cv_link_use_version_script=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 llvm_cv_link_use_version_script=no
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 rm "$tmp/export.map"
8188 ac_cpp='$CPP $CPPFLAGS'
8189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8196 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8197 if test "$llvm_cv_link_use_version_script" = yes ; then
8198 HAVE_LINK_VERSION_SCRIPT=1
8205 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8207 if test "${ac_cv_c_const+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8220 /* FIXME: Include the comments suggested by Paul. */
8222 /* Ultrix mips cc rejects this. */
8223 typedef int charset[2];
8225 /* SunOS 4.1.1 cc rejects this. */
8226 char const *const *ccp;
8228 /* NEC SVR4.0.2 mips cc rejects this. */
8229 struct point {int x, y;};
8230 static struct point const zero = {0,0};
8231 /* AIX XL C 1.02.0.0 rejects this.
8232 It does not let you subtract one const X* pointer from another in
8233 an arm of an if-expression whose if-part is not a constant
8235 const char *g = "string";
8236 ccp = &g + (g ? g-g : 0);
8237 /* HPUX 7.0 cc rejects these. */
8240 ccp = (char const *const *) p;
8241 { /* SCO 3.2v4 cc rejects this. */
8243 char const *s = 0 ? (char *) 0 : (char const *) 0;
8248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8250 const int *foo = &x[0];
8253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254 typedef const int *iptr;
8258 { /* AIX XL C 1.02.0.0 rejects this saying
8259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260 struct s { int j; const int *ap[3]; };
8261 struct s *b; b->j = 5;
8263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8267 return !x[0] && !zero.x;
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8319 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8320 if test $ac_cv_c_const = no; then
8322 cat >>confdefs.h <<\_ACEOF
8334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8335 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8336 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 #include <sys/types.h>
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_try") 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 eval "$as_ac_Header=yes"
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 eval "$as_ac_Header=no"
8401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 ac_res=`eval echo '${'$as_ac_Header'}'`
8404 { echo "$as_me:$LINENO: result: $ac_res" >&5
8405 echo "${ECHO_T}$ac_res" >&6; }
8406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8407 cat >>confdefs.h <<_ACEOF
8408 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8411 ac_header_dirent=$ac_hdr; break
8415 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8416 if test $ac_header_dirent = dirent.h; then
8417 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8418 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8419 if test "${ac_cv_search_opendir+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 ac_func_search_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8430 /* Override any GCC internal prototype to avoid an error.
8431 Use char because int might match the return type of a GCC
8432 builtin and then its argument prototype would still apply. */
8445 for ac_lib in '' dir; do
8446 if test -z "$ac_lib"; then
8447 ac_res="none required"
8450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (ac_try="$ac_link"
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_link") 2>conftest.er1
8461 grep -v '^ *+' conftest.er1 >conftest.err
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8467 { (case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_try") 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest$ac_exeext'
8477 { (case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_try") 2>&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_search_opendir=$ac_res
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -f core conftest.err conftest.$ac_objext \
8496 if test "${ac_cv_search_opendir+set}" = set; then
8500 if test "${ac_cv_search_opendir+set}" = set; then
8503 ac_cv_search_opendir=no
8506 LIBS=$ac_func_search_save_LIBS
8508 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8509 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8510 ac_res=$ac_cv_search_opendir
8511 if test "$ac_res" != no; then
8512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8517 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8518 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8519 if test "${ac_cv_search_opendir+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 ac_func_search_save_LIBS=$LIBS
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8545 for ac_lib in '' x; do
8546 if test -z "$ac_lib"; then
8547 ac_res="none required"
8550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8552 rm -f conftest.$ac_objext conftest$ac_exeext
8553 if { (ac_try="$ac_link"
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_link") 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8567 { (case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572 (eval "$ac_try") 2>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
8577 { (case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_try") 2>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_cv_search_opendir=$ac_res
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8594 rm -f core conftest.err conftest.$ac_objext \
8596 if test "${ac_cv_search_opendir+set}" = set; then
8600 if test "${ac_cv_search_opendir+set}" = set; then
8603 ac_cv_search_opendir=no
8606 LIBS=$ac_func_search_save_LIBS
8608 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8609 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8610 ac_res=$ac_cv_search_opendir
8611 if test "$ac_res" != no; then
8612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8619 for ac_header in dlfcn.h
8621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8626 echo $ECHO_N "(cached) $ECHO_C" >&6
8628 ac_res=`eval echo '${'$as_ac_Header'}'`
8629 { echo "$as_me:$LINENO: result: $ac_res" >&5
8630 echo "${ECHO_T}$ac_res" >&6; }
8632 # Is the header compilable?
8633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641 $ac_includes_default
8642 #include <$ac_header>
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8659 { (case "(($ac_try" in
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_try") 2>&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_try") 2>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_header_compiler=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 ac_header_compiler=no
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8688 echo "${ECHO_T}$ac_header_compiler" >&6; }
8690 # Is the header present?
8691 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 #include <$ac_header>
8701 if { (ac_try="$ac_cpp conftest.$ac_ext"
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } >/dev/null; then
8714 if test -s conftest.err; then
8715 ac_cpp_err=$ac_c_preproc_warn_flag
8716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8723 if test -z "$ac_cpp_err"; then
8724 ac_header_preproc=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8729 ac_header_preproc=no
8732 rm -f conftest.err conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8734 echo "${ECHO_T}$ac_header_preproc" >&6; }
8736 # So? What about this header?
8737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8743 ac_header_preproc=yes
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8753 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 ## ------------------------------------ ##
8760 ## Report this to http://llvm.org/bugs/ ##
8761 ## ------------------------------------ ##
8763 ) | sed "s/^/$as_me: WARNING: /" >&2
8766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 eval "$as_ac_Header=\$ac_header_preproc"
8773 ac_res=`eval echo '${'$as_ac_Header'}'`
8774 { echo "$as_me:$LINENO: result: $ac_res" >&5
8775 echo "${ECHO_T}$ac_res" >&6; }
8778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8779 cat >>confdefs.h <<_ACEOF
8780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 # Check whether --enable-ltdl-install was given.
8788 if test "${enable_ltdl_install+set}" = set; then
8789 enableval=$enable_ltdl_install;
8795 if test x"${enable_ltdl_install-no}" != xno; then
8797 INSTALL_LTDL_FALSE='#'
8799 INSTALL_LTDL_TRUE='#'
8805 if test x"${enable_ltdl_convenience-no}" != xno; then
8806 CONVENIENCE_LTDL_TRUE=
8807 CONVENIENCE_LTDL_FALSE='#'
8809 CONVENIENCE_LTDL_TRUE='#'
8810 CONVENIENCE_LTDL_FALSE=
8814 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8815 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8817 libname_spec='lib$name'
8825 shlibpath_overrides_runpath=unknown
8827 dynamic_linker="$host_os ld.so"
8828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8829 if test "$GCC" = yes; then
8830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8831 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8832 # if the path contains ";" then we assume it to be the separator
8833 # otherwise default to the standard path separator (i.e. ":") - it is
8834 # assumed that no part of a normal pathname contains ";" but that should
8835 # okay in the real world where ";" in dirpaths is itself problematic.
8836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8843 need_lib_prefix=unknown
8844 hardcode_into_libs=no
8846 # when you set need_version to no, make sure it does not cause -set_version
8847 # flags to be left without arguments
8848 need_version=unknown
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8854 shlibpath_var=LIBPATH
8856 # AIX 3 has no versioning support, so we append a major version to the name.
8857 soname_spec='${libname}${release}${shared_ext}$major'
8864 hardcode_into_libs=yes
8865 if test "$host_cpu" = ia64; then
8866 # AIX 5 supports IA64
8867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8868 shlibpath_var=LD_LIBRARY_PATH
8870 # With GCC up to 2.95.x, collect2 would create an import file
8871 # for dependence libraries. The import file would start with
8872 # the line `#! .'. This would cause the generated library to
8873 # depend on `.', always an invalid library. This was fixed in
8874 # development snapshots of GCC prior to 3.0.
8876 aix4 | aix4.[01] | aix4.[01].*)
8877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8887 # soname into executable. Probably we can add versioning support to
8888 # collect2, so additional links can be useful in future.
8889 if test "$aix_use_runtimelinking" = yes; then
8890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8891 # instead of lib<name>.a to let people know that these are not
8892 # typical AIX shared libraries.
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 # We preserve .a as extension for shared libraries through AIX4.2
8896 # and later when we are not doing run time linking.
8897 library_names_spec='${libname}${release}.a $libname.a'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8900 shlibpath_var=LIBPATH
8905 library_names_spec='$libname.ixlibrary $libname.a'
8906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8907 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'
8911 library_names_spec='${libname}${shared_ext}'
8912 dynamic_linker="$host_os ld.so"
8913 shlibpath_var=LIBRARY_PATH
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8925 # the default ld.so.conf also contains /usr/contrib/lib and
8926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8927 # libtool to hard-code these into programs
8930 cygwin* | mingw* | pw32*)
8931 version_type=windows
8936 case $GCC,$host_os in
8937 yes,cygwin* | yes,mingw* | yes,pw32*)
8938 library_names_spec='$libname.dll.a'
8939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8940 postinstall_cmds='base_file=`basename \${file}`~
8941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8942 dldir=$destdir/`dirname \$dlpath`~
8943 test -d \$dldir || mkdir -p \$dldir~
8944 $install_prog $dir/$dlname \$dldir/$dlname~
8945 chmod a+x \$dldir/$dlname'
8946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8947 dlpath=$dir/\$dldll~
8949 shlibpath_overrides_runpath=yes
8953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8958 # MinGW DLLs use traditional 'lib' prefix
8959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8962 # It is most probably a Windows format PATH printed by
8963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8964 # path with ; separators, and with drive letters. We can handle the
8965 # drive letters (cygwin fileutils understands them), so leave them,
8966 # especially as we might pass files found there to a mingw objdump,
8967 # which wouldn't understand a cygwinified path. Ahh.
8968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8974 # pw32 DLLs use 'pw' prefix rather than 'lib'
8975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8984 dynamic_linker='Win32 ld.exe'
8985 # FIXME: first we should search . and the directory the executable is in
8989 darwin* | rhapsody*)
8990 dynamic_linker="$host_os dyld"
8994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8995 soname_spec='${libname}${release}${major}$shared_ext'
8996 shlibpath_overrides_runpath=yes
8997 shlibpath_var=DYLD_LIBRARY_PATH
8998 shrext_cmds='.dylib'
8999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9000 if test "$GCC" = yes; then
9001 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"`
9003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9013 soname_spec='${libname}${release}${shared_ext}$major'
9014 shlibpath_var=LD_LIBRARY_PATH
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=no
9029 hardcode_into_libs=yes
9030 dynamic_linker='GNU ld.so'
9033 freebsd* | dragonfly*)
9034 # DragonFly does not have aout. When/if they implement a new
9035 # versioning mechanism, adjust this.
9036 if test -x /usr/bin/objformat; then
9037 objformat=`/usr/bin/objformat`
9040 freebsd[123].*) objformat=aout ;;
9044 version_type=freebsd-$objformat
9045 case $version_type in
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9056 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9061 freebsd3.[01]* | freebsdelf3.[01]*)
9062 shlibpath_overrides_runpath=yes
9063 hardcode_into_libs=yes
9065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9070 freebsd*) # from 4.6 on
9071 shlibpath_overrides_runpath=yes
9072 hardcode_into_libs=yes
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 hardcode_into_libs=yes
9087 hpux9* | hpux10* | hpux11*)
9088 # Give a soname corresponding to the major version so that dld.sl refuses to
9089 # link against other versions.
9096 hardcode_into_libs=yes
9097 dynamic_linker="$host_os dld.so"
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 if test "X$HPUX_IA64_MODE" = X32; then
9103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.sl"
9113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9122 dynamic_linker="$host_os dld.sl"
9123 shlibpath_var=SHLIB_PATH
9124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130 postinstall_cmds='chmod 555 $lib'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138 soname_spec='${libname}${release}${shared_ext}$major'
9139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140 shlibpath_var=LD_LIBRARY_PATH
9141 shlibpath_overrides_runpath=no
9142 hardcode_into_libs=yes
9145 irix5* | irix6* | nonstopux*)
9147 nonstopux*) version_type=nonstopux ;;
9149 if test "$lt_cv_prog_gnu_ld" = yes; then
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9160 irix5* | nonstopux*)
9164 case $LD in # libtool.m4 will add one of these switches to LD
9165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166 libsuff= shlibsuff= libmagic=32-bit;;
9167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168 libsuff=32 shlibsuff=N32 libmagic=N32;;
9169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171 *) libsuff= shlibsuff= libmagic=never-match;;
9175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176 shlibpath_overrides_runpath=no
9177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179 hardcode_into_libs=yes
9182 # No shared lib support for Linux oldld, aout, or coff.
9183 linux*oldld* | linux*aout* | linux*coff*)
9187 # This must be Linux ELF.
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 # This implies no fast_install, which is unacceptable.
9198 # Some rework will be needed to allow for fast_install
9199 # before this can be enabled.
9200 hardcode_into_libs=yes
9202 # Append ld.so.conf contents to the search path
9203 if test -f /etc/ld.so.conf; then
9204 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' ' '`
9205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9208 # We used to test for /lib/ld.so.1 and disable shared libraries on
9209 # powerpc, because MkLinux only supported shared libraries with the
9210 # GNU dynamic linker. Since this was broken with cross compilers,
9211 # most powerpc-linux boxes support dynamic linking these days and
9212 # people can always --disable-shared, the test was removed, and we
9213 # assume the GNU/Linux dynamic linker is in use.
9214 dynamic_linker='GNU/Linux ld.so'
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 shlibpath_var=LD_LIBRARY_PATH
9224 shlibpath_overrides_runpath=no
9225 hardcode_into_libs=yes
9226 dynamic_linker='GNU ld.so'
9233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9236 dynamic_linker='NetBSD (a.out) ld.so'
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 dynamic_linker='NetBSD ld.elf_so'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 shlibpath_overrides_runpath=yes
9244 hardcode_into_libs=yes
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=yes
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 shlibpath_overrides_runpath=yes
9266 sys_lib_dlsearch_path_spec="/usr/lib"
9268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9271 *) need_version=no ;;
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278 openbsd2.[89] | openbsd2.[89].*)
9279 shlibpath_overrides_runpath=no
9282 shlibpath_overrides_runpath=yes
9286 shlibpath_overrides_runpath=yes
9291 libname_spec='$name'
9294 library_names_spec='$libname${shared_ext} $libname.a'
9295 dynamic_linker='OS/2 ld.exe'
9296 shlibpath_var=LIBPATH
9299 osf3* | osf4* | osf5*)
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9318 hardcode_into_libs=yes
9319 # ldd complains unless libraries are executable
9320 postinstall_cmds='chmod +x $lib'
9325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9327 shlibpath_var=LD_LIBRARY_PATH
9328 shlibpath_overrides_runpath=yes
9329 if test "$with_gnu_ld" = yes; then
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec='${libname}${release}${shared_ext}$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 case $host_vendor in
9342 shlibpath_overrides_runpath=no
9344 export_dynamic_flag_spec='${wl}-Blargedynsym'
9345 runpath_var=LD_RUN_PATH
9353 shlibpath_overrides_runpath=no
9354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9360 if test -d /usr/nec ;then
9362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9363 soname_spec='$libname${shared_ext}.$major'
9364 shlibpath_var=LD_LIBRARY_PATH
9368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9369 version_type=freebsd-elf
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 hardcode_into_libs=yes
9376 if test "$with_gnu_ld" = yes; then
9377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9378 shlibpath_overrides_runpath=no
9380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9381 shlibpath_overrides_runpath=yes
9384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9388 sys_lib_dlsearch_path_spec='/usr/lib'
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 shlibpath_var=LD_LIBRARY_PATH
9402 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9403 echo "${ECHO_T}$dynamic_linker" >&6; }
9404 test "$dynamic_linker" = no && can_build_shared=no
9406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9407 if test "$GCC" = yes; then
9408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9412 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9413 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9414 if test "${libltdl_cv_shlibext+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 eval libltdl_cv_shlibext=$shrext_cmds
9422 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9423 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9424 if test -n "$libltdl_cv_shlibext"; then
9426 cat >>confdefs.h <<_ACEOF
9427 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9433 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9434 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_sys_search_path+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9440 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9441 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9442 if test -n "$libltdl_cv_sys_search_path"; then
9444 for dir in $libltdl_cv_sys_search_path; do
9445 if test -z "$sys_search_path"; then
9446 sys_search_path="$dir"
9448 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9452 cat >>confdefs.h <<_ACEOF
9453 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9458 { echo "$as_me:$LINENO: checking for objdir" >&5
9459 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9460 if test "${libltdl_cv_objdir+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 libltdl_cv_objdir="$objdir"
9464 if test -n "$objdir"; then
9467 rm -f .libs 2>/dev/null
9468 mkdir .libs 2>/dev/null
9469 if test -d .libs; then
9470 libltdl_cv_objdir=.libs
9472 # MS-DOS does not allow filenames that begin with a dot.
9473 libltdl_cv_objdir=_libs
9475 rmdir .libs 2>/dev/null
9479 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9480 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9482 cat >>confdefs.h <<_ACEOF
9483 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9491 # Check for command to grab the raw symbol name followed by C symbol from nm.
9492 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9493 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9494 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 # These are sane defaults that work on at least a few old systems.
9499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9501 # Character class describing NM global symbol codes.
9502 symcode='[BCDEGRST]'
9504 # Regexp to match symbols that can be accessed directly from C.
9505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9507 # Transform an extracted symbol line into a proper C declaration
9508 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9510 # Transform an extracted symbol line into symbol name and symbol address
9511 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'"
9513 # Define system-specific variables.
9518 cygwin* | mingw* | pw32*)
9519 symcode='[ABCDGISTW]'
9521 hpux*) # Its linker distinguishes data from code symbols
9522 if test "$host_cpu" = ia64; then
9523 symcode='[ABCDEGRST]'
9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9526 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9529 if test "$host_cpu" = ia64; then
9530 symcode='[ABCDGIRSTW]'
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532 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'"
9536 symcode='[BCDEGRST]'
9539 symcode='[BCDEGQRST]'
9550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9558 # Handle CRLF in mingw tool chain
9562 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9566 # If we're using GNU nm, then use its standard symbol codes.
9567 case `$NM -V 2>&1` in
9568 *GNU* | *'with BFD'*)
9569 symcode='[ABCDGIRSTW]' ;;
9572 # Try without a prefix undercore, then with it.
9573 for ac_symprfx in "" "_"; do
9575 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9576 symxfrm="\\1 $ac_symprfx\\2 \\2"
9578 # Write the raw and C identifiers.
9579 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9581 # Check to see that the pipe works correctly.
9585 cat > conftest.$ac_ext <<EOF
9590 void nm_test_func(){}
9594 int main(){nm_test_var='a';nm_test_func();return(0);}
9597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9598 (eval $ac_compile) 2>&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; then
9602 # Now try to grab the symbols.
9604 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9605 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && test -s "$nlist"; then
9609 # Try sorting and uniquifying the output.
9610 if sort "$nlist" | uniq > "$nlist"T; then
9611 mv -f "$nlist"T "$nlist"
9616 # Make sure that we snagged all the symbols we need.
9617 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9618 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9619 cat <<EOF > conftest.$ac_ext
9625 # Now generate the symbol file.
9626 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9628 cat <<EOF >> conftest.$ac_ext
9629 #if defined (__STDC__) && __STDC__
9630 # define lt_ptr_t void *
9632 # define lt_ptr_t char *
9636 /* The mapping between symbol names and symbols. */
9641 lt_preloaded_symbols[] =
9644 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9645 cat <<\EOF >> conftest.$ac_ext
9653 # Now try linking the two files.
9654 mv conftest.$ac_objext conftstm.$ac_objext
9655 lt_save_LIBS="$LIBS"
9656 lt_save_CFLAGS="$CFLAGS"
9657 LIBS="conftstm.$ac_objext"
9658 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660 (eval $ac_link) 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9666 LIBS="$lt_save_LIBS"
9667 CFLAGS="$lt_save_CFLAGS"
9669 echo "cannot find nm_test_func in $nlist" >&5
9672 echo "cannot find nm_test_var in $nlist" >&5
9675 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9678 echo "$progname: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 rm -f conftest* conftst*
9683 # Do not use the global_symbol_pipe unless it works.
9684 if test "$pipe_works" = yes; then
9687 lt_cv_sys_global_symbol_pipe=
9693 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9694 lt_cv_sys_global_symbol_to_cdecl=
9696 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9697 { echo "$as_me:$LINENO: result: failed" >&5
9698 echo "${ECHO_T}failed" >&6; }
9700 { echo "$as_me:$LINENO: result: ok" >&5
9701 echo "${ECHO_T}ok" >&6; }
9705 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9706 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9707 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9711 libltdl_cv_preloaded_symbols=yes
9713 libltdl_cv_preloaded_symbols=no
9717 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9718 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9719 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_PRELOADED_SYMBOLS 1
9730 ac_cpp='$CPP $CPPFLAGS'
9731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9736 { echo "$as_me:$LINENO: checking for shl_load" >&5
9737 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9738 if test "${ac_cv_func_shl_load+set}" = set; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 cat >conftest.$ac_ext <<_ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9749 #define shl_load innocuous_shl_load
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char shl_load (); below.
9753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754 <limits.h> exists even on freestanding compilers. */
9757 # include <limits.h>
9759 # include <assert.h>
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined __stub_shl_load || defined __stub___shl_load
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; } &&
9810 { ac_try='test -s conftest$ac_exeext'
9811 { (case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_try") 2>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_func_shl_load=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_cv_func_shl_load=no
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9832 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9833 if test $ac_cv_func_shl_load = yes; then
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_SHL_LOAD 1
9840 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9841 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_check_lib_save_LIBS=$LIBS
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>conftest.er1
9878 grep -v '^ *+' conftest.er1 >conftest.err
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884 { (case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_try") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; } &&
9893 { ac_try='test -s conftest$ac_exeext'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
9903 ac_cv_lib_dld_shl_load=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_cv_lib_dld_shl_load=no
9911 rm -f core conftest.err conftest.$ac_objext \
9912 conftest$ac_exeext conftest.$ac_ext
9913 LIBS=$ac_check_lib_save_LIBS
9915 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9916 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9917 if test $ac_cv_lib_dld_shl_load = yes; then
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_SHL_LOAD 1
9923 LIBADD_DL="$LIBADD_DL -ldld"
9925 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9926 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 ac_check_lib_save_LIBS=$LIBS
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9963 grep -v '^ *+' conftest.er1 >conftest.err
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_lib_dl_dlopen=yes
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_cv_lib_dl_dlopen=no
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998 LIBS=$ac_check_lib_save_LIBS
10000 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10001 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10002 if test $ac_cv_lib_dl_dlopen = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_LIBDL 1
10008 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10017 # include <dlfcn.h>
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (ac_try="$ac_link"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_link") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1 >conftest.err
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_LIBDL 1
10066 libltdl_cv_func_dlopen="yes"
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10072 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-lsvld $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_link") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } &&
10114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10115 { (case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_try") 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; } &&
10124 { ac_try='test -s conftest$ac_exeext'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_lib_svld_dlopen=yes
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10139 ac_cv_lib_svld_dlopen=no
10142 rm -f core conftest.err conftest.$ac_objext \
10143 conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10146 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10147 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10148 if test $ac_cv_lib_svld_dlopen = yes; then
10150 cat >>confdefs.h <<\_ACEOF
10151 #define HAVE_LIBDL 1
10154 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10156 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 ac_check_lib_save_LIBS=$LIBS
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10180 return dld_link ();
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10200 { (case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_try") 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest$ac_exeext'
10210 { (case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_try") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219 ac_cv_lib_dld_dld_link=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_cv_lib_dld_dld_link=no
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10233 if test $ac_cv_lib_dld_dld_link = yes; then
10235 cat >>confdefs.h <<\_ACEOF
10239 LIBADD_DL="$LIBADD_DL -ldld"
10241 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10242 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10243 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10254 #define _dyld_func_lookup innocuous__dyld_func_lookup
10256 /* System header to define __stub macros and hopefully few prototypes,
10257 which can conflict with char _dyld_func_lookup (); below.
10258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10259 <limits.h> exists even on freestanding compilers. */
10262 # include <limits.h>
10264 # include <assert.h>
10267 #undef _dyld_func_lookup
10269 /* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10275 char _dyld_func_lookup ();
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10286 return _dyld_func_lookup ();
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10300 grep -v '^ *+' conftest.er1 >conftest.err
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_try") 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; } &&
10315 { ac_try='test -s conftest$ac_exeext'
10316 { (case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_try") 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func__dyld_func_lookup=yes
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_cv_func__dyld_func_lookup=no
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10336 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10337 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10338 if test $ac_cv_func__dyld_func_lookup = yes; then
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_DYLD 1
10355 rm -f core conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10367 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10369 lt_save_LIBS="$LIBS"
10370 LIBS="$LIBS $LIBADD_DL"
10372 for ac_func in dlerror
10374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10388 #define $ac_func innocuous_$ac_func
10390 /* System header to define __stub macros and hopefully few prototypes,
10391 which can conflict with char $ac_func (); below.
10392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10393 <limits.h> exists even on freestanding compilers. */
10396 # include <limits.h>
10398 # include <assert.h>
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10410 /* The GNU C library defines this for functions which it implements
10411 to always fail with ENOSYS. Some functions are actually named
10412 something starting with __ and the normal name is an alias. */
10413 #if defined __stub_$ac_func || defined __stub___$ac_func
10420 return $ac_func ();
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 if { (ac_try="$ac_link"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_link") 2>conftest.er1
10434 grep -v '^ *+' conftest.er1 >conftest.err
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10440 { (case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_try") 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_try") 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 eval "$as_ac_var=yes"
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 eval "$as_ac_var=no"
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10470 ac_res=`eval echo '${'$as_ac_var'}'`
10471 { echo "$as_me:$LINENO: result: $ac_res" >&5
10472 echo "${ECHO_T}$ac_res" >&6; }
10473 if test `eval echo '${'$as_ac_var'}'` = yes; then
10474 cat >>confdefs.h <<_ACEOF
10475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10481 LIBS="$lt_save_LIBS"
10484 ac_cpp='$CPP $CPPFLAGS'
10485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10491 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10492 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10493 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 ac_cv_sys_symbol_underscore=no
10497 cat > conftest.$ac_ext <<EOF
10498 void nm_test_func(){}
10499 int main(){nm_test_func;return 0;}
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; then
10506 # Now try to grab the symbols.
10507 ac_nlist=conftest.nm
10508 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && test -s "$ac_nlist"; then
10513 # See whether the symbols have a leading underscore.
10514 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10515 ac_cv_sys_symbol_underscore=yes
10517 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10520 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10524 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10527 echo "configure: failed program was:" >&5
10533 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10534 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10537 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10538 if test x"$libltdl_cv_func_dlopen" = xyes ||
10539 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10540 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10541 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10542 if test "${libltdl_cv_need_uscore+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 libltdl_cv_need_uscore=unknown
10547 LIBS="$LIBS $LIBADD_DL"
10548 if test "$cross_compiling" = yes; then :
10549 libltdl_cv_need_uscore=cross
10551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10552 lt_status=$lt_dlunknown
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10554 "configure"
10555 #include "confdefs.h"
10564 # define LT_DLGLOBAL RTLD_GLOBAL
10567 # define LT_DLGLOBAL DL_GLOBAL
10569 # define LT_DLGLOBAL 0
10573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10574 find out it does not work in some platform. */
10575 #ifndef LT_DLLAZY_OR_NOW
10577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10580 # define LT_DLLAZY_OR_NOW DL_LAZY
10583 # define LT_DLLAZY_OR_NOW RTLD_NOW
10586 # define LT_DLLAZY_OR_NOW DL_NOW
10588 # define LT_DLLAZY_OR_NOW 0
10596 extern "C" void exit (int);
10599 void fnord() { int i=42;}
10602 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10603 int status = $lt_dlunknown;
10607 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10608 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10609 /* dlclose (self); */
10617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618 (eval $ac_link) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10622 (./conftest; exit; ) >&5 2>/dev/null
10624 case x$lt_status in
10625 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10626 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10627 x$lt_dlunknown|x*) ;;
10630 # compilation failed
10639 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10640 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10644 if test x"$libltdl_cv_need_uscore" = xyes; then
10646 cat >>confdefs.h <<\_ACEOF
10647 #define NEED_USCORE 1
10653 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10654 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10655 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 # PORTME does your system automatically load deplibs for dlopen?
10659 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10660 # For now, we just catch OSes we know something about -- in the
10661 # future, we'll try test this programmatically.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10664 aix3*|aix4.1.*|aix4.2.*)
10665 # Unknown whether this is true for these versions of AIX, but
10666 # we want this `case' here to explicitly catch those versions.
10667 libltdl_cv_sys_dlopen_deplibs=unknown
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 # Assuming the user has installed a libdl from somewhere, this is true
10674 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10675 libltdl_cv_sys_dlopen_deplibs=yes
10677 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10678 # GNU and its variants, using gnu ld.so (Glibc)
10679 libltdl_cv_sys_dlopen_deplibs=yes
10682 libltdl_cv_sys_dlopen_deplibs=yes
10685 libltdl_cv_sys_dlopen_deplibs=yes
10687 irix[12345]*|irix6.[01]*)
10688 # Catch all versions of IRIX before 6.2, and indicate that we don't
10689 # know how it worked for any of those versions.
10690 libltdl_cv_sys_dlopen_deplibs=unknown
10693 # The case above catches anything before 6.2, and it's known that
10694 # at 6.2 and later dlopen does load deplibs.
10695 libltdl_cv_sys_dlopen_deplibs=yes
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10704 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10705 # it did *not* use an RPATH in a shared library to find objects the
10706 # library depends on, so we explicitly say `no'.
10707 libltdl_cv_sys_dlopen_deplibs=no
10709 osf5.0|osf5.0a|osf5.1)
10710 # dlopen *does* load deplibs and with the right loader patch applied
10711 # it even uses RPATH in a shared library to search for shared objects
10712 # that the library depends on, but there's no easy way to know if that
10713 # patch is installed. Since this is the case, all we can really
10714 # say is unknown -- it depends on the patch being installed. If
10715 # it is, this changes to `yes'. Without it, it would be `no'.
10716 libltdl_cv_sys_dlopen_deplibs=unknown
10719 # the two cases above should catch all versions of osf <= 5.1. Read
10720 # the comments above for what we know about them.
10721 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10722 # is used to find them so we can finally say `yes'.
10723 libltdl_cv_sys_dlopen_deplibs=yes
10726 libltdl_cv_sys_dlopen_deplibs=yes
10728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10729 libltdl_cv_sys_dlopen_deplibs=yes
10734 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10735 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10736 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10738 cat >>confdefs.h <<\_ACEOF
10739 #define LTDL_DLOPEN_DEPLIBS 1
10745 for ac_header in argz.h
10747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 ac_res=`eval echo '${'$as_ac_Header'}'`
10755 { echo "$as_me:$LINENO: result: $ac_res" >&5
10756 echo "${ECHO_T}$ac_res" >&6; }
10758 # Is the header compilable?
10759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 $ac_includes_default
10768 #include <$ac_header>
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_compile") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest.$ac_objext'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
10804 ac_header_compiler=yes
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 ac_header_compiler=no
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10814 echo "${ECHO_T}$ac_header_compiler" >&6; }
10816 # Is the header present?
10817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <$ac_header>
10827 if { (ac_try="$ac_cpp conftest.$ac_ext"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } >/dev/null; then
10840 if test -s conftest.err; then
10841 ac_cpp_err=$ac_c_preproc_warn_flag
10842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10849 if test -z "$ac_cpp_err"; then
10850 ac_header_preproc=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_header_preproc=no
10858 rm -f conftest.err conftest.$ac_ext
10859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10860 echo "${ECHO_T}$ac_header_preproc" >&6; }
10862 # So? What about this header?
10863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10869 ac_header_preproc=yes
10872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10885 ## ------------------------------------ ##
10886 ## Report this to http://llvm.org/bugs/ ##
10887 ## ------------------------------------ ##
10889 ) | sed "s/^/$as_me: WARNING: /" >&2
10892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 eval "$as_ac_Header=\$ac_header_preproc"
10899 ac_res=`eval echo '${'$as_ac_Header'}'`
10900 { echo "$as_me:$LINENO: result: $ac_res" >&5
10901 echo "${ECHO_T}$ac_res" >&6; }
10904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10905 cat >>confdefs.h <<_ACEOF
10906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914 { echo "$as_me:$LINENO: checking for error_t" >&5
10915 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10916 if test "${ac_cv_type_error_t+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10929 typedef error_t ac__type_new_;
10933 if ((ac__type_new_ *) 0)
10935 if (sizeof (ac__type_new_))
10941 rm -f conftest.$ac_objext
10942 if { (ac_try="$ac_compile"
10943 case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_compile") 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10956 { (case "(($ac_try" in
10957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10958 *) ac_try_echo=$ac_try;;
10960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10961 (eval "$ac_try") 2>&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; } &&
10965 { ac_try='test -s conftest.$ac_objext'
10966 { (case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_try") 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_type_error_t=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_cv_type_error_t=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10986 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10987 if test $ac_cv_type_error_t = yes; then
10989 cat >>confdefs.h <<_ACEOF
10990 #define HAVE_ERROR_T 1
10996 cat >>confdefs.h <<\_ACEOF
10997 #define error_t int
11008 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11024 #define $ac_func innocuous_$ac_func
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char $ac_func (); below.
11028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029 <limits.h> exists even on freestanding compilers. */
11032 # include <limits.h>
11034 # include <assert.h>
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11056 return $ac_func ();
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_try") 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 eval "$as_ac_var=yes"
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 eval "$as_ac_var=no"
11103 rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11106 ac_res=`eval echo '${'$as_ac_var'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109 if test `eval echo '${'$as_ac_var'}'` = yes; then
11110 cat >>confdefs.h <<_ACEOF
11111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 ac_res=`eval echo '${'$as_ac_Header'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11157 # Is the header compilable?
11158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11167 #include <$ac_header>
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_compile") 2>conftest.er1
11178 grep -v '^ *+' conftest.er1 >conftest.err
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11184 { (case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_try") 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try='test -s conftest.$ac_objext'
11194 { (case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_try") 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 ac_header_compiler=yes
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 ac_header_compiler=no
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11213 echo "${ECHO_T}$ac_header_compiler" >&6; }
11215 # Is the header present?
11216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 #include <$ac_header>
11226 if { (ac_try="$ac_cpp conftest.$ac_ext"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11234 grep -v '^ *+' conftest.er1 >conftest.err
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } >/dev/null; then
11239 if test -s conftest.err; then
11240 ac_cpp_err=$ac_c_preproc_warn_flag
11241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11248 if test -z "$ac_cpp_err"; then
11249 ac_header_preproc=yes
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 ac_header_preproc=no
11257 rm -f conftest.err conftest.$ac_ext
11258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11259 echo "${ECHO_T}$ac_header_preproc" >&6; }
11261 # So? What about this header?
11262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11268 ac_header_preproc=yes
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11284 ## ------------------------------------ ##
11285 ## Report this to http://llvm.org/bugs/ ##
11286 ## ------------------------------------ ##
11288 ) | sed "s/^/$as_me: WARNING: /" >&2
11291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 eval "$as_ac_Header=\$ac_header_preproc"
11298 ac_res=`eval echo '${'$as_ac_Header'}'`
11299 { echo "$as_me:$LINENO: result: $ac_res" >&5
11300 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11329 # Is the header compilable?
11330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11332 cat >conftest.$ac_ext <<_ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 $ac_includes_default
11339 #include <$ac_header>
11341 rm -f conftest.$ac_objext
11342 if { (ac_try="$ac_compile"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_compile") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11356 { (case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_try") 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_header_compiler=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_header_compiler=no
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11385 echo "${ECHO_T}$ac_header_compiler" >&6; }
11387 # Is the header present?
11388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <$ac_header>
11398 if { (ac_try="$ac_cpp conftest.$ac_ext"
11399 case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11406 grep -v '^ *+' conftest.er1 >conftest.err
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } >/dev/null; then
11411 if test -s conftest.err; then
11412 ac_cpp_err=$ac_c_preproc_warn_flag
11413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11420 if test -z "$ac_cpp_err"; then
11421 ac_header_preproc=yes
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_header_preproc=no
11429 rm -f conftest.err conftest.$ac_ext
11430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11431 echo "${ECHO_T}$ac_header_preproc" >&6; }
11433 # So? What about this header?
11434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11440 ac_header_preproc=yes
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11456 ## ------------------------------------ ##
11457 ## Report this to http://llvm.org/bugs/ ##
11458 ## ------------------------------------ ##
11460 ) | sed "s/^/$as_me: WARNING: /" >&2
11463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 echo $ECHO_N "(cached) $ECHO_C" >&6
11468 eval "$as_ac_Header=\$ac_header_preproc"
11470 ac_res=`eval echo '${'$as_ac_Header'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11476 cat >>confdefs.h <<_ACEOF
11477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11486 for ac_header in string.h strings.h
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11499 # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1 >conftest.err
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } &&
11525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526 { (case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_try") 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_try") 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_header_compiler=no
11553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11555 echo "${ECHO_T}$ac_header_compiler" >&6; }
11557 # Is the header present?
11558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 #include <$ac_header>
11568 if { (ac_try="$ac_cpp conftest.$ac_ext"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } >/dev/null; then
11581 if test -s conftest.err; then
11582 ac_cpp_err=$ac_c_preproc_warn_flag
11583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11590 if test -z "$ac_cpp_err"; then
11591 ac_header_preproc=yes
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_header_preproc=no
11599 rm -f conftest.err conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11601 echo "${ECHO_T}$ac_header_preproc" >&6; }
11603 # So? What about this header?
11604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11610 ac_header_preproc=yes
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11626 ## ------------------------------------ ##
11627 ## Report this to http://llvm.org/bugs/ ##
11628 ## ------------------------------------ ##
11630 ) | sed "s/^/$as_me: WARNING: /" >&2
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 eval "$as_ac_Header=\$ac_header_preproc"
11640 ac_res=`eval echo '${'$as_ac_Header'}'`
11641 { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11657 for ac_func in strchr index
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11673 #define $ac_func innocuous_$ac_func
11675 /* System header to define __stub macros and hopefully few prototypes,
11676 which can conflict with char $ac_func (); below.
11677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11678 <limits.h> exists even on freestanding compilers. */
11681 # include <limits.h>
11683 # include <assert.h>
11688 /* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11695 /* The GNU C library defines this for functions which it implements
11696 to always fail with ENOSYS. Some functions are actually named
11697 something starting with __ and the normal name is an alias. */
11698 #if defined __stub_$ac_func || defined __stub___$ac_func
11705 return $ac_func ();
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_link") 2>conftest.er1
11719 grep -v '^ *+' conftest.er1 >conftest.err
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11725 { (case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_try") 2>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest$ac_exeext'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 eval "$as_ac_var=yes"
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 eval "$as_ac_var=no"
11752 rm -f core conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11755 ac_res=`eval echo '${'$as_ac_var'}'`
11756 { echo "$as_me:$LINENO: result: $ac_res" >&5
11757 echo "${ECHO_T}$ac_res" >&6; }
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759 cat >>confdefs.h <<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11768 for ac_func in strrchr rindex
11770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11784 #define $ac_func innocuous_$ac_func
11786 /* System header to define __stub macros and hopefully few prototypes,
11787 which can conflict with char $ac_func (); below.
11788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11789 <limits.h> exists even on freestanding compilers. */
11792 # include <limits.h>
11794 # include <assert.h>
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11806 /* The GNU C library defines this for functions which it implements
11807 to always fail with ENOSYS. Some functions are actually named
11808 something starting with __ and the normal name is an alias. */
11809 #if defined __stub_$ac_func || defined __stub___$ac_func
11816 return $ac_func ();
11821 rm -f conftest.$ac_objext conftest$ac_exeext
11822 if { (ac_try="$ac_link"
11823 case "(($ac_try" in
11824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_link") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11836 { (case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_try") 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest$ac_exeext'
11846 { (case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_try") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 eval "$as_ac_var=yes"
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 eval "$as_ac_var=no"
11863 rm -f core conftest.err conftest.$ac_objext \
11864 conftest$ac_exeext conftest.$ac_ext
11866 ac_res=`eval echo '${'$as_ac_var'}'`
11867 { echo "$as_me:$LINENO: result: $ac_res" >&5
11868 echo "${ECHO_T}$ac_res" >&6; }
11869 if test `eval echo '${'$as_ac_var'}'` = yes; then
11870 cat >>confdefs.h <<_ACEOF
11871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11879 for ac_func in memcpy bcopy
11881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11895 #define $ac_func innocuous_$ac_func
11897 /* System header to define __stub macros and hopefully few prototypes,
11898 which can conflict with char $ac_func (); below.
11899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900 <limits.h> exists even on freestanding compilers. */
11903 # include <limits.h>
11905 # include <assert.h>
11910 /* Override any GCC internal prototype to avoid an error.
11911 Use char because int might match the return type of a GCC
11912 builtin and then its argument prototype would still apply. */
11917 /* The GNU C library defines this for functions which it implements
11918 to always fail with ENOSYS. Some functions are actually named
11919 something starting with __ and the normal name is an alias. */
11920 #if defined __stub_$ac_func || defined __stub___$ac_func
11927 return $ac_func ();
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11974 rm -f core conftest.err conftest.$ac_objext \
11975 conftest$ac_exeext conftest.$ac_ext
11977 ac_res=`eval echo '${'$as_ac_var'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979 echo "${ECHO_T}$ac_res" >&6; }
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990 for ac_func in memmove strcmp
11992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12006 #define $ac_func innocuous_$ac_func
12008 /* System header to define __stub macros and hopefully few prototypes,
12009 which can conflict with char $ac_func (); below.
12010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12011 <limits.h> exists even on freestanding compilers. */
12014 # include <limits.h>
12016 # include <assert.h>
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12028 /* The GNU C library defines this for functions which it implements
12029 to always fail with ENOSYS. Some functions are actually named
12030 something starting with __ and the normal name is an alias. */
12031 #if defined __stub_$ac_func || defined __stub___$ac_func
12038 return $ac_func ();
12043 rm -f conftest.$ac_objext conftest$ac_exeext
12044 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12058 { (case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_try") 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest$ac_exeext'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 eval "$as_ac_var=yes"
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 eval "$as_ac_var=no"
12085 rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12088 ac_res=`eval echo '${'$as_ac_var'}'`
12089 { echo "$as_me:$LINENO: result: $ac_res" >&5
12090 echo "${ECHO_T}$ac_res" >&6; }
12091 if test `eval echo '${'$as_ac_var'}'` = yes; then
12092 cat >>confdefs.h <<_ACEOF
12093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12102 for ac_func in closedir opendir readdir
12104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 cat >conftest.$ac_ext <<_ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12118 #define $ac_func innocuous_$ac_func
12120 /* System header to define __stub macros and hopefully few prototypes,
12121 which can conflict with char $ac_func (); below.
12122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12123 <limits.h> exists even on freestanding compilers. */
12126 # include <limits.h>
12128 # include <assert.h>
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12140 /* The GNU C library defines this for functions which it implements
12141 to always fail with ENOSYS. Some functions are actually named
12142 something starting with __ and the normal name is an alias. */
12143 #if defined __stub_$ac_func || defined __stub___$ac_func
12150 return $ac_func ();
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_link") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12170 { (case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_try") 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 eval "$as_ac_var=yes"
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 eval "$as_ac_var=no"
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12200 ac_res=`eval echo '${'$as_ac_var'}'`
12201 { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 echo "${ECHO_T}$ac_res" >&6; }
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12213 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12214 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12227 if test "$GCC" != "yes" && test "$ICC" != "yes"
12229 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12230 echo "$as_me: error: gcc|icc required but not found" >&2;}
12231 { (exit 1); exit 1; }; }
12234 if test "$GXX" != "yes" && test "$IXX" != "yes"
12236 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12237 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12238 { (exit 1); exit 1; }; }
12241 if test "$GCC" = "yes"
12243 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 #if !defined(__GNUC__) || __GNUC__ < 3
12252 #error Unsupported GCC version
12257 rm -f conftest.$ac_objext
12258 if { (ac_try="$ac_compile"
12259 case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_compile") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1 >conftest.err
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272 { (case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_try") 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12297 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12298 { (exit 1); exit 1; }; }
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 if test -z "$llvm_cv_gnu_make_command"
12306 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12307 echo "$as_me: error: GNU Make required but not found" >&2;}
12308 { (exit 1); exit 1; }; }
12311 { echo "$as_me:$LINENO: result: ok" >&5
12312 echo "${ECHO_T}ok" >&6; }
12314 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12315 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12316 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12318 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12320 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12324 NO_MAYBE_UNINITIALIZED=
12325 if test "$GXX" = "yes"
12327 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12329 if test -z "$NO_MAYBE_UNINITIALIZED"
12331 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12335 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12336 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12339 # Check whether --with-python was given.
12340 if test "${with_python+set}" = set; then
12341 withval=$with_python; PYTHON="$withval"
12345 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12346 { echo "$as_me:$LINENO: checking for python" >&5
12347 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12348 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12349 echo "${ECHO_T}user defined: $with_python" >&6; }
12351 if test -n "$PYTHON" ; then
12352 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12353 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12356 # Extract the first word of "python python2 python26", so it can be a program name with args.
12357 set dummy python python2 python26; ac_word=$2
12358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12360 if test "${ac_cv_path_PYTHON+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12384 echo "${ECHO_T}not found" >&6; }
12385 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12386 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12387 { (exit 1); exit 1; }; }"
12391 PYTHON=$ac_cv_path_PYTHON
12392 if test -n "$PYTHON"; then
12393 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12394 echo "${ECHO_T}$PYTHON" >&6; }
12396 { echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6; }
12403 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12404 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12405 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12406 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12407 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12408 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12409 if test "$ac_python_version_major" -eq "2" \
12410 && test "$ac_python_version_minor" -ge "5" ; then
12411 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12412 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12414 { echo "$as_me:$LINENO: result: not found" >&5
12415 echo "${ECHO_T}not found" >&6; }
12416 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12417 See \`config.log' for more details." >&5
12418 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12419 See \`config.log' for more details." >&2;}
12420 { (exit 1); exit 1; }; }
12425 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12426 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12427 if test "${ac_cv_lib_m_sin+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 ac_check_lib_save_LIBS=$LIBS
12432 cat >conftest.$ac_ext <<_ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12439 /* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469 { (case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_try") 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_try") 2>&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_lib_m_sin=yes
12490 echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12500 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12501 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12502 if test $ac_cv_lib_m_sin = yes; then
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_LIBM 1
12511 if test "$llvm_cv_os_type" = "MingW" ; then
12513 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12514 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-limagehlp $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12536 rm -f conftest.$ac_objext conftest$ac_exeext
12537 if { (ac_try="$ac_link"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_link") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12551 { (case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_try") 2>&5
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; } &&
12560 { ac_try='test -s conftest$ac_exeext'
12561 { (case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_try") 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 ac_cv_lib_imagehlp_main=yes
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_cv_lib_imagehlp_main=no
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12582 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12583 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12584 if test $ac_cv_lib_imagehlp_main = yes; then
12585 cat >>confdefs.h <<_ACEOF
12586 #define HAVE_LIBIMAGEHLP 1
12589 LIBS="-limagehlp $LIBS"
12594 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12595 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12596 if test "${ac_cv_lib_psapi_main+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 ac_check_lib_save_LIBS=$LIBS
12600 LIBS="-lpsapi $LIBS"
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_link") 2>conftest.er1
12626 grep -v '^ *+' conftest.er1 >conftest.err
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12632 { (case "(($ac_try" in
12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_try") 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_lib_psapi_main=yes
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_cv_lib_psapi_main=no
12659 rm -f core conftest.err conftest.$ac_objext \
12660 conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_check_lib_save_LIBS
12663 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12664 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12665 if test $ac_cv_lib_psapi_main = yes; then
12666 cat >>confdefs.h <<_ACEOF
12667 #define HAVE_LIBPSAPI 1
12670 LIBS="-lpsapi $LIBS"
12676 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12677 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12678 if test "${ac_cv_search_dlopen+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 ac_func_search_save_LIBS=$LIBS
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12704 for ac_lib in '' dl; do
12705 if test -z "$ac_lib"; then
12706 ac_res="none required"
12709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (ac_try="$ac_link"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_link") 2>conftest.er1
12720 grep -v '^ *+' conftest.er1 >conftest.err
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12726 { (case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_try") 2>&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_search_dlopen=$ac_res
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12753 rm -f core conftest.err conftest.$ac_objext \
12755 if test "${ac_cv_search_dlopen+set}" = set; then
12759 if test "${ac_cv_search_dlopen+set}" = set; then
12762 ac_cv_search_dlopen=no
12764 rm conftest.$ac_ext
12765 LIBS=$ac_func_search_save_LIBS
12767 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12768 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12769 ac_res=$ac_cv_search_dlopen
12770 if test "$ac_res" != no; then
12771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12773 cat >>confdefs.h <<\_ACEOF
12774 #define HAVE_DLOPEN 1
12778 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12779 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12783 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12784 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12785 if test "${ac_cv_search_clock_gettime+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 ac_func_search_save_LIBS=$LIBS
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12802 char clock_gettime ();
12806 return clock_gettime ();
12811 for ac_lib in '' rt; do
12812 if test -z "$ac_lib"; then
12813 ac_res="none required"
12816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12825 (eval "$ac_link") 2>conftest.er1
12827 grep -v '^ *+' conftest.er1 >conftest.err
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12833 { (case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_search_clock_gettime=$ac_res
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12860 rm -f core conftest.err conftest.$ac_objext \
12862 if test "${ac_cv_search_clock_gettime+set}" = set; then
12866 if test "${ac_cv_search_clock_gettime+set}" = set; then
12869 ac_cv_search_clock_gettime=no
12871 rm conftest.$ac_ext
12872 LIBS=$ac_func_search_save_LIBS
12874 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12875 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12876 ac_res=$ac_cv_search_clock_gettime
12877 if test "$ac_res" != no; then
12878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883 if test "$llvm_cv_enable_libffi" = "yes" ; then
12884 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12885 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12886 if test "${ac_cv_search_ffi_call+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12889 ac_func_search_save_LIBS=$LIBS
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12907 return ffi_call ();
12912 for ac_lib in '' ffi; do
12913 if test -z "$ac_lib"; then
12914 ac_res="none required"
12917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>conftest.er1
12928 grep -v '^ *+' conftest.er1 >conftest.err
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12934 { (case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_search_ffi_call=$ac_res
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f core conftest.err conftest.$ac_objext \
12963 if test "${ac_cv_search_ffi_call+set}" = set; then
12967 if test "${ac_cv_search_ffi_call+set}" = set; then
12970 ac_cv_search_ffi_call=no
12972 rm conftest.$ac_ext
12973 LIBS=$ac_func_search_save_LIBS
12975 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12976 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12977 ac_res=$ac_cv_search_ffi_call
12978 if test "$ac_res" != no; then
12979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12981 cat >>confdefs.h <<\_ACEOF
12982 #define HAVE_FFI_CALL 1
12986 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12987 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12988 { (exit 1); exit 1; }; }
12993 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12994 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_mallinfo+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13016 return mallinfo ();
13021 for ac_lib in '' malloc; do
13022 if test -z "$ac_lib"; then
13023 ac_res="none required"
13026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035 (eval "$ac_link") 2>conftest.er1
13037 grep -v '^ *+' conftest.er1 >conftest.err
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
13042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_try") 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_try") 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_cv_search_mallinfo=$ac_res
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13070 rm -f core conftest.err conftest.$ac_objext \
13072 if test "${ac_cv_search_mallinfo+set}" = set; then
13076 if test "${ac_cv_search_mallinfo+set}" = set; then
13079 ac_cv_search_mallinfo=no
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13085 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13086 ac_res=$ac_cv_search_mallinfo
13087 if test "$ac_res" != no; then
13088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_MALLINFO 1
13097 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13099 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13100 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13101 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 ac_check_lib_save_LIBS=$LIBS
13105 LIBS="-lpthread $LIBS"
13106 cat >conftest.$ac_ext <<_ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13113 /* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13119 char pthread_mutex_init ();
13123 return pthread_mutex_init ();
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_pthread_pthread_mutex_init=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_lib_pthread_pthread_mutex_init=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13175 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13176 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178 #define HAVE_LIBPTHREAD 1
13181 LIBS="-lpthread $LIBS"
13185 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13186 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13187 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_func_search_save_LIBS=$LIBS
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13204 char pthread_mutex_lock ();
13208 return pthread_mutex_lock ();
13213 for ac_lib in '' pthread; do
13214 if test -z "$ac_lib"; then
13215 ac_res="none required"
13218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (ac_try="$ac_link"
13222 case "(($ac_try" in
13223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_link") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1 >conftest.err
13231 cat conftest.err >&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13235 { (case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_try") 2>&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest$ac_exeext'
13245 { (case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_try") 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_search_pthread_mutex_lock=$ac_res
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13262 rm -f core conftest.err conftest.$ac_objext \
13264 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13268 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13271 ac_cv_search_pthread_mutex_lock=no
13273 rm conftest.$ac_ext
13274 LIBS=$ac_func_search_save_LIBS
13276 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13277 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13278 ac_res=$ac_cv_search_pthread_mutex_lock
13279 if test "$ac_res" != no; then
13280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_PTHREAD_MUTEX_LOCK 1
13288 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13289 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13290 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_func_search_save_LIBS=$LIBS
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13307 char pthread_rwlock_init ();
13311 return pthread_rwlock_init ();
13316 for ac_lib in '' pthread; do
13317 if test -z "$ac_lib"; then
13318 ac_res="none required"
13321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324 if { (ac_try="$ac_link"
13325 case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_search_pthread_rwlock_init=$ac_res
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13365 rm -f core conftest.err conftest.$ac_objext \
13367 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13371 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13374 ac_cv_search_pthread_rwlock_init=no
13376 rm conftest.$ac_ext
13377 LIBS=$ac_func_search_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13380 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13381 ac_res=$ac_cv_search_pthread_rwlock_init
13382 if test "$ac_res" != no; then
13383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_PTHREAD_RWLOCK_INIT 1
13391 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13392 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13393 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 ac_func_search_save_LIBS=$LIBS
13397 cat >conftest.$ac_ext <<_ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13404 /* Override any GCC internal prototype to avoid an error.
13405 Use char because int might match the return type of a GCC
13406 builtin and then its argument prototype would still apply. */
13410 char pthread_getspecific ();
13414 return pthread_getspecific ();
13419 for ac_lib in '' pthread; do
13420 if test -z "$ac_lib"; then
13421 ac_res="none required"
13424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_link") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441 { (case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_try") 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try='test -s conftest$ac_exeext'
13451 { (case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_try") 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_search_pthread_getspecific=$ac_res
13462 echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13468 rm -f core conftest.err conftest.$ac_objext \
13470 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13474 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13477 ac_cv_search_pthread_getspecific=no
13479 rm conftest.$ac_ext
13480 LIBS=$ac_func_search_save_LIBS
13482 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13483 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13484 ac_res=$ac_cv_search_pthread_getspecific
13485 if test "$ac_res" != no; then
13486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_PTHREAD_GETSPECIFIC 1
13496 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13498 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13499 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13500 if test "${ac_cv_lib_z_compress2+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13503 ac_check_lib_save_LIBS=$LIBS
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13512 /* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13522 return compress2 ();
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_link") 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13542 { (case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_try") 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_lib_z_compress2=yes
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_lib_z_compress2=no
13569 rm -f core conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13573 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13574 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13575 if test $ac_cv_lib_z_compress2 = yes; then
13576 cat >>confdefs.h <<_ACEOF
13577 #define HAVE_LIBZ 1
13587 # Check whether --with-udis86 was given.
13588 if test "${with_udis86+set}" = set; then
13589 withval=$with_udis86;
13594 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13597 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13598 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13599 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 ac_check_lib_save_LIBS=$LIBS
13603 LIBS="-ludis86 $LIBS"
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13611 /* Override any GCC internal prototype to avoid an error.
13612 Use char because int might match the return type of a GCC
13613 builtin and then its argument prototype would still apply. */
13626 rm -f conftest.$ac_objext conftest$ac_exeext
13627 if { (ac_try="$ac_link"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_link") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13641 { (case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_try") 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
13651 { (case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_try") 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 ac_cv_lib_udis86_ud_init=yes
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_cv_lib_udis86_ud_init=no
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext conftest.$ac_ext
13670 LIBS=$ac_check_lib_save_LIBS
13672 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13673 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13674 if test $ac_cv_lib_udis86_ud_init = yes; then
13675 cat >>confdefs.h <<_ACEOF
13676 #define HAVE_LIBUDIS86 1
13679 LIBS="-ludis86 $LIBS"
13683 echo "Error! You need to have libudis86 around."
13695 cat >>confdefs.h <<_ACEOF
13696 #define USE_UDIS86 $USE_UDIS86
13701 # Check whether --with-oprofile was given.
13702 if test "${with_oprofile+set}" = set; then
13703 withval=$with_oprofile;
13707 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13708 no) llvm_cv_oppath=
13711 *) llvm_cv_oppath="${withval}/lib/oprofile"
13712 CPPFLAGS="-I${withval}/include";;
13714 case $llvm_cv_os_type in
13716 if test -n "$llvm_cv_oppath" ; then
13717 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13718 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13719 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13720 if test "${ac_cv_search_bfd_init+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 ac_func_search_save_LIBS=$LIBS
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13741 return bfd_init ();
13746 for ac_lib in '' bfd; do
13747 if test -z "$ac_lib"; then
13748 ac_res="none required"
13751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_search_bfd_init=$ac_res
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13795 rm -f core conftest.err conftest.$ac_objext \
13797 if test "${ac_cv_search_bfd_init+set}" = set; then
13801 if test "${ac_cv_search_bfd_init+set}" = set; then
13804 ac_cv_search_bfd_init=no
13806 rm conftest.$ac_ext
13807 LIBS=$ac_func_search_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13810 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13811 ac_res=$ac_cv_search_bfd_init
13812 if test "$ac_res" != no; then
13813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13817 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13818 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13819 if test "${ac_cv_search_op_open_agent+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 ac_func_search_save_LIBS=$LIBS
13823 cat >conftest.$ac_ext <<_ACEOF
13826 cat confdefs.h >>conftest.$ac_ext
13827 cat >>conftest.$ac_ext <<_ACEOF
13828 /* end confdefs.h. */
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13836 char op_open_agent ();
13840 return op_open_agent ();
13845 for ac_lib in '' opagent; do
13846 if test -z "$ac_lib"; then
13847 ac_res="none required"
13850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (ac_try="$ac_link"
13854 case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_link") 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13867 { (case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_try") 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest$ac_exeext'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 ac_cv_search_op_open_agent=$ac_res
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13894 rm -f core conftest.err conftest.$ac_objext \
13896 if test "${ac_cv_search_op_open_agent+set}" = set; then
13900 if test "${ac_cv_search_op_open_agent+set}" = set; then
13903 ac_cv_search_op_open_agent=no
13905 rm conftest.$ac_ext
13906 LIBS=$ac_func_search_save_LIBS
13908 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13909 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13910 ac_res=$ac_cv_search_op_open_agent
13911 if test "$ac_res" != no; then
13912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13916 echo "Error! You need to have libopagent around."
13921 if test "${ac_cv_header_opagent_h+set}" = set; then
13922 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13923 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_opagent_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13930 # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13932 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13940 #include <opagent.h>
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_header_compiler=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13981 ac_header_compiler=no
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 echo "${ECHO_T}$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13990 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <opagent.h>
13999 if { (ac_try="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null; then
14012 if test -s conftest.err; then
14013 ac_cpp_err=$ac_c_preproc_warn_flag
14014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14021 if test -z "$ac_cpp_err"; then
14022 ac_header_preproc=yes
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 ac_header_preproc=no
14030 rm -f conftest.err conftest.$ac_ext
14031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14032 echo "${ECHO_T}$ac_header_preproc" >&6; }
14034 # So? What about this header?
14035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14038 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14040 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14041 ac_header_preproc=yes
14044 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14045 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14047 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14049 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14051 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14053 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14055 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14057 ## ------------------------------------ ##
14058 ## Report this to http://llvm.org/bugs/ ##
14059 ## ------------------------------------ ##
14061 ) | sed "s/^/$as_me: WARNING: /" >&2
14064 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14065 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_opagent_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_cv_header_opagent_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14075 if test $ac_cv_header_opagent_h = yes; then
14079 echo "Error! You need to have opagent.h around."
14087 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
14088 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
14089 { (exit 1); exit 1; }; } ;;
14100 cat >>confdefs.h <<_ACEOF
14101 #define LLVM_USE_OPROFILE $USE_OPROFILE
14106 # Check whether --with-intel-jitevents was given.
14107 if test "${with_intel_jitevents+set}" = set; then
14108 withval=$with_intel_jitevents;
14110 yes) USE_INTEL_JITEVENTS=1
14112 no) USE_INTEL_JITEVENTS=0
14114 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
14115 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
14116 { (exit 1); exit 1; }; };;
14119 case $llvm_cv_os_type in
14120 Linux|Win32|Cygwin|MingW) ;;
14121 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
14122 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
14123 { (exit 1); exit 1; }; };;
14126 case "$llvm_cv_target_arch" in
14128 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
14129 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14130 { (exit 1); exit 1; }; };;
14135 USE_INTEL_JITEVENTS=0
14141 cat >>confdefs.h <<_ACEOF
14142 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14146 for ac_prog in xml2-config
14148 # Extract the first word of "$ac_prog", so it can be a program name with args.
14149 set dummy $ac_prog; ac_word=$2
14150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14152 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 if test -n "$XML2CONFIG"; then
14156 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14159 for as_dir in $PATH
14162 test -z "$as_dir" && as_dir=.
14163 for ac_exec_ext in '' $ac_executable_extensions; do
14164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14165 ac_cv_prog_XML2CONFIG="$ac_prog"
14166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14175 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14176 if test -n "$XML2CONFIG"; then
14177 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14178 echo "${ECHO_T}$XML2CONFIG" >&6; }
14180 { echo "$as_me:$LINENO: result: no" >&5
14181 echo "${ECHO_T}no" >&6; }
14185 test -n "$XML2CONFIG" && break
14189 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14190 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14191 if test "x$XML2CONFIG" = "x"; then
14192 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14193 echo "${ECHO_T}xml2-config not found" >&6; }
14195 LIBXML2_INC=`$XML2CONFIG --cflags`
14196 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14197 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14198 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14199 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14200 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 ac_check_lib_save_LIBS=$LIBS
14204 LIBS="-lxml2 $LIBS"
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14212 /* Override any GCC internal prototype to avoid an error.
14213 Use char because int might match the return type of a GCC
14214 builtin and then its argument prototype would still apply. */
14218 char xmlReadFile ();
14222 return xmlReadFile ();
14227 rm -f conftest.$ac_objext conftest$ac_exeext
14228 if { (ac_try="$ac_link"
14229 case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_link") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14242 { (case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_try") 2>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; } &&
14251 { ac_try='test -s conftest$ac_exeext'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_lib_xml2_xmlReadFile=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_lib_xml2_xmlReadFile=no
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 LIBS=$ac_check_lib_save_LIBS
14273 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14274 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14275 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14277 cat >>confdefs.h <<\_ACEOF
14278 #define CLANG_HAVE_LIBXML 1
14281 LIBXML2_LIBS="-lxml2"
14294 ac_header_dirent=no
14295 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14296 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14297 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14298 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 cat >conftest.$ac_ext <<_ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 #include <sys/types.h>
14320 rm -f conftest.$ac_objext
14321 if { (ac_try="$ac_compile"
14322 case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_compile") 2>conftest.er1
14329 grep -v '^ *+' conftest.er1 >conftest.err
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14335 { (case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_try") 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 eval "$as_ac_Header=yes"
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 eval "$as_ac_Header=no"
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 ac_res=`eval echo '${'$as_ac_Header'}'`
14365 { echo "$as_me:$LINENO: result: $ac_res" >&5
14366 echo "${ECHO_T}$ac_res" >&6; }
14367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14368 cat >>confdefs.h <<_ACEOF
14369 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14372 ac_header_dirent=$ac_hdr; break
14376 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14377 if test $ac_header_dirent = dirent.h; then
14378 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14379 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14380 if test "${ac_cv_search_opendir+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 ac_func_search_save_LIBS=$LIBS
14384 cat >conftest.$ac_ext <<_ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14406 for ac_lib in '' dir; do
14407 if test -z "$ac_lib"; then
14408 ac_res="none required"
14411 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14413 rm -f conftest.$ac_objext conftest$ac_exeext
14414 if { (ac_try="$ac_link"
14415 case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_link") 2>conftest.er1
14422 grep -v '^ *+' conftest.er1 >conftest.err
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14428 { (case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_try") 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; } &&
14437 { ac_try='test -s conftest$ac_exeext'
14438 { (case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_try") 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; }; then
14447 ac_cv_search_opendir=$ac_res
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14455 rm -f core conftest.err conftest.$ac_objext \
14457 if test "${ac_cv_search_opendir+set}" = set; then
14461 if test "${ac_cv_search_opendir+set}" = set; then
14464 ac_cv_search_opendir=no
14466 rm conftest.$ac_ext
14467 LIBS=$ac_func_search_save_LIBS
14469 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14470 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14471 ac_res=$ac_cv_search_opendir
14472 if test "$ac_res" != no; then
14473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14478 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14480 if test "${ac_cv_search_opendir+set}" = set; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 ac_func_search_save_LIBS=$LIBS
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14491 /* Override any GCC internal prototype to avoid an error.
14492 Use char because int might match the return type of a GCC
14493 builtin and then its argument prototype would still apply. */
14506 for ac_lib in '' x; do
14507 if test -z "$ac_lib"; then
14508 ac_res="none required"
14511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_link") 2>conftest.er1
14522 grep -v '^ *+' conftest.er1 >conftest.err
14524 cat conftest.err >&5
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14528 { (case "(($ac_try" in
14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14530 *) ac_try_echo=$ac_try;;
14532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14533 (eval "$ac_try") 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest$ac_exeext'
14538 { (case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_try") 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; }; then
14547 ac_cv_search_opendir=$ac_res
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14555 rm -f core conftest.err conftest.$ac_objext \
14557 if test "${ac_cv_search_opendir+set}" = set; then
14561 if test "${ac_cv_search_opendir+set}" = set; then
14564 ac_cv_search_opendir=no
14566 rm conftest.$ac_ext
14567 LIBS=$ac_func_search_save_LIBS
14569 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14570 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14571 ac_res=$ac_cv_search_opendir
14572 if test "$ac_res" != no; then
14573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14579 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14580 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14581 if test "${ac_cv_header_mmap_anon+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 ac_cpp='$CPP $CPPFLAGS'
14586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14590 cat >conftest.$ac_ext <<_ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 #include <sys/mman.h>
14597 #include <unistd.h>
14602 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14607 rm -f conftest.$ac_objext
14608 if { (ac_try="$ac_compile"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_compile") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_cv_header_mmap_anon=yes
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_cv_header_mmap_anon=no
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 ac_cpp='$CPP $CPPFLAGS'
14652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14658 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14659 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14660 if test "$ac_cv_header_mmap_anon" = yes; then
14662 cat >>confdefs.h <<\_ACEOF
14663 #define HAVE_MMAP_ANONYMOUS 1
14668 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14669 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_stat_broken+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <sys/types.h>
14680 #include <sys/stat.h>
14682 #if defined S_ISBLK && defined S_IFDIR
14683 # if S_ISBLK (S_IFDIR)
14688 #if defined S_ISBLK && defined S_IFCHR
14689 # if S_ISBLK (S_IFCHR)
14694 #if defined S_ISLNK && defined S_IFREG
14695 # if S_ISLNK (S_IFREG)
14700 #if defined S_ISSOCK && defined S_IFREG
14701 # if S_ISSOCK (S_IFREG)
14707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708 $EGREP "You lose" >/dev/null 2>&1; then
14709 ac_cv_header_stat_broken=yes
14711 ac_cv_header_stat_broken=no
14716 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14717 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14718 if test $ac_cv_header_stat_broken = yes; then
14720 cat >>confdefs.h <<\_ACEOF
14721 #define STAT_MACROS_BROKEN 1
14726 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14727 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14728 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 cat >conftest.$ac_ext <<_ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 #include <sys/types.h>
14738 #include <sys/wait.h>
14739 #ifndef WEXITSTATUS
14740 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14743 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_compile") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
14770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14771 { (case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_try") 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest.$ac_objext'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; }; then
14790 ac_cv_header_sys_wait_h=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_header_sys_wait_h=no
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14801 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14802 if test $ac_cv_header_sys_wait_h = yes; then
14804 cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_SYS_WAIT_H 1
14810 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14811 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_time+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <sys/types.h>
14822 #include <sys/time.h>
14828 if ((struct tm *) 0)
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_compile") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } &&
14848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14849 { (case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854 (eval "$ac_try") 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_cv_header_time=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_cv_header_time=no
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14878 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14879 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14880 if test $ac_cv_header_time = yes; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define TIME_WITH_SYS_TIME 1
14890 ac_cpp='$CXXCPP $CPPFLAGS'
14891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14896 ac_cpp='$CXXCPP $CPPFLAGS'
14897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14900 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14902 if test -z "$CXXCPP"; then
14903 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 # Double quotes because CXXCPP needs to be expanded
14907 for CXXCPP in "$CXX -E" "/lib/cpp"
14909 ac_preproc_ok=false
14910 for ac_cxx_preproc_warn_flag in '' yes
14912 # Use a header file that comes with gcc, so configuring glibc
14913 # with a fresh cross-compiler works.
14914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14915 # <limits.h> exists even on freestanding compilers.
14916 # On the NeXT, cc -E runs the code through the compiler's parser,
14917 # not just through cpp. "Syntax error" is here to catch this case.
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14925 # include <limits.h>
14927 # include <assert.h>
14931 if { (ac_try="$ac_cpp conftest.$ac_ext"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14939 grep -v '^ *+' conftest.er1 >conftest.err
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null; then
14944 if test -s conftest.err; then
14945 ac_cpp_err=$ac_cxx_preproc_warn_flag
14946 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14953 if test -z "$ac_cpp_err"; then
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 # Broken: fails on valid input.
14963 rm -f conftest.err conftest.$ac_ext
14965 # OK, works on sane cases. Now check whether nonexistent headers
14966 # can be detected and how.
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <ac_nonexistent.h>
14975 if { (ac_try="$ac_cpp conftest.$ac_ext"
14976 case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14983 grep -v '^ *+' conftest.er1 >conftest.err
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } >/dev/null; then
14988 if test -s conftest.err; then
14989 ac_cpp_err=$ac_cxx_preproc_warn_flag
14990 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14997 if test -z "$ac_cpp_err"; then
14998 # Broken: success on invalid input.
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15004 # Passes both tests.
15009 rm -f conftest.err conftest.$ac_ext
15012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15013 rm -f conftest.err conftest.$ac_ext
15014 if $ac_preproc_ok; then
15019 ac_cv_prog_CXXCPP=$CXXCPP
15022 CXXCPP=$ac_cv_prog_CXXCPP
15024 ac_cv_prog_CXXCPP=$CXXCPP
15026 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
15027 echo "${ECHO_T}$CXXCPP" >&6; }
15028 ac_preproc_ok=false
15029 for ac_cxx_preproc_warn_flag in '' yes
15031 # Use a header file that comes with gcc, so configuring glibc
15032 # with a fresh cross-compiler works.
15033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15034 # <limits.h> exists even on freestanding compilers.
15035 # On the NeXT, cc -E runs the code through the compiler's parser,
15036 # not just through cpp. "Syntax error" is here to catch this case.
15037 cat >conftest.$ac_ext <<_ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15044 # include <limits.h>
15046 # include <assert.h>
15050 if { (ac_try="$ac_cpp conftest.$ac_ext"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } >/dev/null; then
15063 if test -s conftest.err; then
15064 ac_cpp_err=$ac_cxx_preproc_warn_flag
15065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15072 if test -z "$ac_cpp_err"; then
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 # Broken: fails on valid input.
15082 rm -f conftest.err conftest.$ac_ext
15084 # OK, works on sane cases. Now check whether nonexistent headers
15085 # can be detected and how.
15086 cat >conftest.$ac_ext <<_ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15092 #include <ac_nonexistent.h>
15094 if { (ac_try="$ac_cpp conftest.$ac_ext"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } >/dev/null; then
15107 if test -s conftest.err; then
15108 ac_cpp_err=$ac_cxx_preproc_warn_flag
15109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15116 if test -z "$ac_cpp_err"; then
15117 # Broken: success on invalid input.
15120 echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15123 # Passes both tests.
15128 rm -f conftest.err conftest.$ac_ext
15131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15132 rm -f conftest.err conftest.$ac_ext
15133 if $ac_preproc_ok; then
15136 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15137 See \`config.log' for more details." >&5
15138 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15139 See \`config.log' for more details." >&2;}
15140 { (exit 1); exit 1; }; }
15144 ac_cpp='$CXXCPP $CPPFLAGS'
15145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15151 for ac_header in cxxabi.h
15153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15164 # Is the header compilable?
15165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 $ac_includes_default
15174 #include <$ac_header>
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15185 grep -v '^ *+' conftest.er1 >conftest.err
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_header_compiler=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_compiler=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15220 echo "${ECHO_T}$ac_header_compiler" >&6; }
15222 # Is the header present?
15223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 #include <$ac_header>
15233 if { (ac_try="$ac_cpp conftest.$ac_ext"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } >/dev/null; then
15246 if test -s conftest.err; then
15247 ac_cpp_err=$ac_cxx_preproc_warn_flag
15248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15255 if test -z "$ac_cpp_err"; then
15256 ac_header_preproc=yes
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_header_preproc=no
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15268 # So? What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15291 ## ------------------------------------ ##
15292 ## Report this to http://llvm.org/bugs/ ##
15293 ## ------------------------------------ ##
15295 ) | sed "s/^/$as_me: WARNING: /" >&2
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 eval "$as_ac_Header=\$ac_header_preproc"
15305 ac_res=`eval echo '${'$as_ac_Header'}'`
15306 { echo "$as_me:$LINENO: result: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15311 cat >>confdefs.h <<_ACEOF
15312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15320 ac_cpp='$CPP $CPPFLAGS'
15321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15331 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 ac_res=`eval echo '${'$as_ac_Header'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342 echo "${ECHO_T}$ac_res" >&6; }
15344 # Is the header compilable?
15345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15346 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15354 #include <$ac_header>
15356 rm -f conftest.$ac_objext
15357 if { (ac_try="$ac_compile"
15358 case "(($ac_try" in
15359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15360 *) ac_try_echo=$ac_try;;
15362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15363 (eval "$ac_compile") 2>conftest.er1
15365 grep -v '^ *+' conftest.er1 >conftest.err
15367 cat conftest.err >&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest.$ac_objext'
15381 { (case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_try") 2>&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_header_compiler=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_compiler=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <$ac_header>
15413 if { (ac_try="$ac_cpp conftest.$ac_ext"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } >/dev/null; then
15426 if test -s conftest.err; then
15427 ac_cpp_err=$ac_c_preproc_warn_flag
15428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15435 if test -z "$ac_cpp_err"; then
15436 ac_header_preproc=yes
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_header_preproc=no
15444 rm -f conftest.err conftest.$ac_ext
15445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6; }
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15471 ## ------------------------------------ ##
15472 ## Report this to http://llvm.org/bugs/ ##
15473 ## ------------------------------------ ##
15475 ) | sed "s/^/$as_me: WARNING: /" >&2
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15483 eval "$as_ac_Header=\$ac_header_preproc"
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486 { echo "$as_me:$LINENO: result: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15491 cat >>confdefs.h <<_ACEOF
15492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15505 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 ac_res=`eval echo '${'$as_ac_Header'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516 echo "${ECHO_T}$ac_res" >&6; }
15518 # Is the header compilable?
15519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15521 cat >conftest.$ac_ext <<_ACEOF
15524 cat confdefs.h >>conftest.$ac_ext
15525 cat >>conftest.$ac_ext <<_ACEOF
15526 /* end confdefs.h. */
15527 $ac_includes_default
15528 #include <$ac_header>
15530 rm -f conftest.$ac_objext
15531 if { (ac_try="$ac_compile"
15532 case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_compile") 2>conftest.er1
15539 grep -v '^ *+' conftest.er1 >conftest.err
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_header_compiler=yes
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574 echo "${ECHO_T}$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <$ac_header>
15587 if { (ac_try="$ac_cpp conftest.$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } >/dev/null; then
15600 if test -s conftest.err; then
15601 ac_cpp_err=$ac_c_preproc_warn_flag
15602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15609 if test -z "$ac_cpp_err"; then
15610 ac_header_preproc=yes
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_header_preproc=no
15618 rm -f conftest.err conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15620 echo "${ECHO_T}$ac_header_preproc" >&6; }
15622 # So? What about this header?
15623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15629 ac_header_preproc=yes
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15645 ## ------------------------------------ ##
15646 ## Report this to http://llvm.org/bugs/ ##
15647 ## ------------------------------------ ##
15649 ) | sed "s/^/$as_me: WARNING: /" >&2
15652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15657 eval "$as_ac_Header=\$ac_header_preproc"
15659 ac_res=`eval echo '${'$as_ac_Header'}'`
15660 { echo "$as_me:$LINENO: result: $ac_res" >&5
15661 echo "${ECHO_T}$ac_res" >&6; }
15664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15675 for ac_header in utime.h windows.h
15677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 ac_res=`eval echo '${'$as_ac_Header'}'`
15685 { echo "$as_me:$LINENO: result: $ac_res" >&5
15686 echo "${ECHO_T}$ac_res" >&6; }
15688 # Is the header compilable?
15689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15690 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15698 #include <$ac_header>
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15709 grep -v '^ *+' conftest.er1 >conftest.err
15711 cat conftest.err >&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } &&
15714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15715 { (case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_try") 2>&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
15725 { (case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_try") 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_header_compiler=yes
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 ac_header_compiler=no
15742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15744 echo "${ECHO_T}$ac_header_compiler" >&6; }
15746 # Is the header present?
15747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755 #include <$ac_header>
15757 if { (ac_try="$ac_cpp conftest.$ac_ext"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } >/dev/null; then
15770 if test -s conftest.err; then
15771 ac_cpp_err=$ac_c_preproc_warn_flag
15772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15779 if test -z "$ac_cpp_err"; then
15780 ac_header_preproc=yes
15782 echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15785 ac_header_preproc=no
15788 rm -f conftest.err conftest.$ac_ext
15789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 echo "${ECHO_T}$ac_header_preproc" >&6; }
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15815 ## ------------------------------------ ##
15816 ## Report this to http://llvm.org/bugs/ ##
15817 ## ------------------------------------ ##
15819 ) | sed "s/^/$as_me: WARNING: /" >&2
15822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 eval "$as_ac_Header=\$ac_header_preproc"
15829 ac_res=`eval echo '${'$as_ac_Header'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15835 cat >>confdefs.h <<_ACEOF
15836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15848 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 ac_res=`eval echo '${'$as_ac_Header'}'`
15858 { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15861 # Is the header compilable?
15862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 $ac_includes_default
15871 #include <$ac_header>
15873 rm -f conftest.$ac_objext
15874 if { (ac_try="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_compile") 2>conftest.er1
15882 grep -v '^ *+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15888 { (case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_try") 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
15898 { (case "(($ac_try" in
15899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903 (eval "$ac_try") 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_header_compiler=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_header_compiler=no
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15917 echo "${ECHO_T}$ac_header_compiler" >&6; }
15919 # Is the header present?
15920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 #include <$ac_header>
15930 if { (ac_try="$ac_cpp conftest.$ac_ext"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } >/dev/null; then
15943 if test -s conftest.err; then
15944 ac_cpp_err=$ac_c_preproc_warn_flag
15945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15952 if test -z "$ac_cpp_err"; then
15953 ac_header_preproc=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_preproc=no
15961 rm -f conftest.err conftest.$ac_ext
15962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15963 echo "${ECHO_T}$ac_header_preproc" >&6; }
15965 # So? What about this header?
15966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15972 ac_header_preproc=yes
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15988 ## ------------------------------------ ##
15989 ## Report this to http://llvm.org/bugs/ ##
15990 ## ------------------------------------ ##
15992 ) | sed "s/^/$as_me: WARNING: /" >&2
15995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
16000 eval "$as_ac_Header=\$ac_header_preproc"
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16008 cat >>confdefs.h <<_ACEOF
16009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16020 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 ac_res=`eval echo '${'$as_ac_Header'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16033 # Is the header compilable?
16034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16042 $ac_includes_default
16043 #include <$ac_header>
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052 (eval "$ac_compile") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } &&
16059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16060 { (case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_try") 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079 ac_header_compiler=yes
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_header_compiler=no
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 echo "${ECHO_T}$ac_header_compiler" >&6; }
16091 # Is the header present?
16092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 #include <$ac_header>
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16110 grep -v '^ *+' conftest.er1 >conftest.err
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } >/dev/null; then
16115 if test -s conftest.err; then
16116 ac_cpp_err=$ac_c_preproc_warn_flag
16117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16124 if test -z "$ac_cpp_err"; then
16125 ac_header_preproc=yes
16127 echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_header_preproc=no
16133 rm -f conftest.err conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16135 echo "${ECHO_T}$ac_header_preproc" >&6; }
16137 # So? What about this header?
16138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16144 ac_header_preproc=yes
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16160 ## ------------------------------------ ##
16161 ## Report this to http://llvm.org/bugs/ ##
16162 ## ------------------------------------ ##
16164 ) | sed "s/^/$as_me: WARNING: /" >&2
16167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 eval "$as_ac_Header=\$ac_header_preproc"
16174 ac_res=`eval echo '${'$as_ac_Header'}'`
16175 { echo "$as_me:$LINENO: result: $ac_res" >&5
16176 echo "${ECHO_T}$ac_res" >&6; }
16179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 for ac_header in valgrind/valgrind.h
16191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 ac_res=`eval echo '${'$as_ac_Header'}'`
16199 { echo "$as_me:$LINENO: result: $ac_res" >&5
16200 echo "${ECHO_T}$ac_res" >&6; }
16202 # Is the header compilable?
16203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16205 cat >conftest.$ac_ext <<_ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h. */
16211 $ac_includes_default
16212 #include <$ac_header>
16214 rm -f conftest.$ac_objext
16215 if { (ac_try="$ac_compile"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_compile") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } &&
16228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; } &&
16238 { ac_try='test -s conftest.$ac_objext'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_header_compiler=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_header_compiler=no
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16258 echo "${ECHO_T}$ac_header_compiler" >&6; }
16260 # Is the header present?
16261 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 #include <$ac_header>
16271 if { (ac_try="$ac_cpp conftest.$ac_ext"
16272 case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } >/dev/null; then
16284 if test -s conftest.err; then
16285 ac_cpp_err=$ac_c_preproc_warn_flag
16286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16293 if test -z "$ac_cpp_err"; then
16294 ac_header_preproc=yes
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_header_preproc=no
16302 rm -f conftest.err conftest.$ac_ext
16303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16304 echo "${ECHO_T}$ac_header_preproc" >&6; }
16306 # So? What about this header?
16307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16313 ac_header_preproc=yes
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16329 ## ------------------------------------ ##
16330 ## Report this to http://llvm.org/bugs/ ##
16331 ## ------------------------------------ ##
16333 ) | sed "s/^/$as_me: WARNING: /" >&2
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 eval "$as_ac_Header=\$ac_header_preproc"
16343 ac_res=`eval echo '${'$as_ac_Header'}'`
16344 { echo "$as_me:$LINENO: result: $ac_res" >&5
16345 echo "${ECHO_T}$ac_res" >&6; }
16348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358 for ac_header in fenv.h
16360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 ac_res=`eval echo '${'$as_ac_Header'}'`
16368 { echo "$as_me:$LINENO: result: $ac_res" >&5
16369 echo "${ECHO_T}$ac_res" >&6; }
16371 # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 $ac_includes_default
16381 #include <$ac_header>
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_compile") 2>conftest.er1
16392 grep -v '^ *+' conftest.er1 >conftest.err
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398 { (case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_try") 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_header_compiler=yes
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_header_compiler=no
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6; }
16429 # Is the header present?
16430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 #include <$ac_header>
16440 if { (ac_try="$ac_cpp conftest.$ac_ext"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } >/dev/null; then
16453 if test -s conftest.err; then
16454 ac_cpp_err=$ac_c_preproc_warn_flag
16455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16462 if test -z "$ac_cpp_err"; then
16463 ac_header_preproc=yes
16465 echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_header_preproc=no
16471 rm -f conftest.err conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473 echo "${ECHO_T}$ac_header_preproc" >&6; }
16475 # So? What about this header?
16476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16482 ac_header_preproc=yes
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16498 ## ------------------------------------ ##
16499 ## Report this to http://llvm.org/bugs/ ##
16500 ## ------------------------------------ ##
16502 ) | sed "s/^/$as_me: WARNING: /" >&2
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 eval "$as_ac_Header=\$ac_header_preproc"
16512 ac_res=`eval echo '${'$as_ac_Header'}'`
16513 { echo "$as_me:$LINENO: result: $ac_res" >&5
16514 echo "${ECHO_T}$ac_res" >&6; }
16517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16518 cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16526 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16527 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16528 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 cat >conftest.$ac_ext <<_ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16542 #ifndef FE_ALL_EXCEPT
16543 char *p = (char *) FE_ALL_EXCEPT;
16551 rm -f conftest.$ac_objext
16552 if { (ac_try="$ac_compile"
16553 case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_compile") 2>conftest.er1
16560 grep -v '^ *+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
16565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_try") 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_cv_have_decl_FE_ALL_EXCEPT=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16596 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16597 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_FE_ALL_EXCEPT 1
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_DECL_FE_ALL_EXCEPT 0
16611 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16612 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16613 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 cat >conftest.$ac_ext <<_ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16628 char *p = (char *) FE_INEXACT;
16636 rm -f conftest.$ac_objext
16637 if { (ac_try="$ac_compile"
16638 case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_compile") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest.$ac_objext'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_have_decl_FE_INEXACT=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_have_decl_FE_INEXACT=no
16678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16681 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16682 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_DECL_FE_INEXACT 1
16690 cat >>confdefs.h <<_ACEOF
16691 #define HAVE_DECL_FE_INEXACT 0
16698 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16700 for ac_header in pthread.h
16702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 ac_res=`eval echo '${'$as_ac_Header'}'`
16710 { echo "$as_me:$LINENO: result: $ac_res" >&5
16711 echo "${ECHO_T}$ac_res" >&6; }
16713 # Is the header compilable?
16714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 $ac_includes_default
16723 #include <$ac_header>
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_compile") 2>conftest.er1
16734 grep -v '^ *+' conftest.er1 >conftest.err
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16740 { (case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_try") 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } &&
16749 { ac_try='test -s conftest.$ac_objext'
16750 { (case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_try") 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_header_compiler=yes
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_header_compiler=no
16767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16769 echo "${ECHO_T}$ac_header_compiler" >&6; }
16771 # Is the header present?
16772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 #include <$ac_header>
16782 if { (ac_try="$ac_cpp conftest.$ac_ext"
16783 case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } >/dev/null; then
16795 if test -s conftest.err; then
16796 ac_cpp_err=$ac_c_preproc_warn_flag
16797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16804 if test -z "$ac_cpp_err"; then
16805 ac_header_preproc=yes
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ac_header_preproc=no
16813 rm -f conftest.err conftest.$ac_ext
16814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16815 echo "${ECHO_T}$ac_header_preproc" >&6; }
16817 # So? What about this header?
16818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16824 ac_header_preproc=yes
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16840 ## ------------------------------------ ##
16841 ## Report this to http://llvm.org/bugs/ ##
16842 ## ------------------------------------ ##
16844 ) | sed "s/^/$as_me: WARNING: /" >&2
16847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 eval "$as_ac_Header=\$ac_header_preproc"
16854 ac_res=`eval echo '${'$as_ac_Header'}'`
16855 { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16860 cat >>confdefs.h <<_ACEOF
16861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16876 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16878 for ac_header in zlib.h
16880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 ac_res=`eval echo '${'$as_ac_Header'}'`
16888 { echo "$as_me:$LINENO: result: $ac_res" >&5
16889 echo "${ECHO_T}$ac_res" >&6; }
16891 # Is the header compilable?
16892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 $ac_includes_default
16901 #include <$ac_header>
16903 rm -f conftest.$ac_objext
16904 if { (ac_try="$ac_compile"
16905 case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_compile") 2>conftest.er1
16912 grep -v '^ *+' conftest.er1 >conftest.err
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16918 { (case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_try") 2>&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; } &&
16927 { ac_try='test -s conftest.$ac_objext'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; }; then
16937 ac_header_compiler=yes
16939 echo "$as_me: failed program was:" >&5
16940 sed 's/^/| /' conftest.$ac_ext >&5
16942 ac_header_compiler=no
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16947 echo "${ECHO_T}$ac_header_compiler" >&6; }
16949 # Is the header present?
16950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 #include <$ac_header>
16960 if { (ac_try="$ac_cpp conftest.$ac_ext"
16961 case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16968 grep -v '^ *+' conftest.er1 >conftest.err
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } >/dev/null; then
16973 if test -s conftest.err; then
16974 ac_cpp_err=$ac_c_preproc_warn_flag
16975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16982 if test -z "$ac_cpp_err"; then
16983 ac_header_preproc=yes
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_header_preproc=no
16991 rm -f conftest.err conftest.$ac_ext
16992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16993 echo "${ECHO_T}$ac_header_preproc" >&6; }
16995 # So? What about this header?
16996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17002 ac_header_preproc=yes
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17018 ## ------------------------------------ ##
17019 ## Report this to http://llvm.org/bugs/ ##
17020 ## ------------------------------------ ##
17022 ) | sed "s/^/$as_me: WARNING: /" >&2
17025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 eval "$as_ac_Header=\$ac_header_preproc"
17032 ac_res=`eval echo '${'$as_ac_Header'}'`
17033 { echo "$as_me:$LINENO: result: $ac_res" >&5
17034 echo "${ECHO_T}$ac_res" >&6; }
17037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17055 if test "$llvm_cv_enable_libffi" = "yes" ; then
17058 for ac_header in ffi.h ffi/ffi.h
17060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 ac_res=`eval echo '${'$as_ac_Header'}'`
17068 { echo "$as_me:$LINENO: result: $ac_res" >&5
17069 echo "${ECHO_T}$ac_res" >&6; }
17071 # Is the header compilable?
17072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 $ac_includes_default
17081 #include <$ac_header>
17083 rm -f conftest.$ac_objext
17084 if { (ac_try="$ac_compile"
17085 case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_compile") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_header_compiler=yes
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 ac_header_compiler=no
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17127 echo "${ECHO_T}$ac_header_compiler" >&6; }
17129 # Is the header present?
17130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 #include <$ac_header>
17140 if { (ac_try="$ac_cpp conftest.$ac_ext"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17148 grep -v '^ *+' conftest.er1 >conftest.err
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } >/dev/null; then
17153 if test -s conftest.err; then
17154 ac_cpp_err=$ac_c_preproc_warn_flag
17155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17162 if test -z "$ac_cpp_err"; then
17163 ac_header_preproc=yes
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.$ac_ext >&5
17168 ac_header_preproc=no
17171 rm -f conftest.err conftest.$ac_ext
17172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17173 echo "${ECHO_T}$ac_header_preproc" >&6; }
17175 # So? What about this header?
17176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17182 ac_header_preproc=yes
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17198 ## ------------------------------------ ##
17199 ## Report this to http://llvm.org/bugs/ ##
17200 ## ------------------------------------ ##
17202 ) | sed "s/^/$as_me: WARNING: /" >&2
17205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 eval "$as_ac_Header=\$ac_header_preproc"
17212 ac_res=`eval echo '${'$as_ac_Header'}'`
17213 { echo "$as_me:$LINENO: result: $ac_res" >&5
17214 echo "${ECHO_T}$ac_res" >&6; }
17217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17218 cat >>confdefs.h <<_ACEOF
17219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17229 for ac_header in CrashReporterClient.h
17231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 ac_res=`eval echo '${'$as_ac_Header'}'`
17239 { echo "$as_me:$LINENO: result: $ac_res" >&5
17240 echo "${ECHO_T}$ac_res" >&6; }
17242 # Is the header compilable?
17243 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 $ac_includes_default
17252 #include <$ac_header>
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_compile") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest.$ac_objext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_header_compiler=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_header_compiler=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17298 echo "${ECHO_T}$ac_header_compiler" >&6; }
17300 # Is the header present?
17301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17303 cat >conftest.$ac_ext <<_ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 #include <$ac_header>
17311 if { (ac_try="$ac_cpp conftest.$ac_ext"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1 >conftest.err
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } >/dev/null; then
17324 if test -s conftest.err; then
17325 ac_cpp_err=$ac_c_preproc_warn_flag
17326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17333 if test -z "$ac_cpp_err"; then
17334 ac_header_preproc=yes
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_header_preproc=no
17342 rm -f conftest.err conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6; }
17346 # So? What about this header?
17347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17353 ac_header_preproc=yes
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17369 ## ------------------------------------ ##
17370 ## Report this to http://llvm.org/bugs/ ##
17371 ## ------------------------------------ ##
17373 ) | sed "s/^/$as_me: WARNING: /" >&2
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 eval "$as_ac_Header=\$ac_header_preproc"
17383 ac_res=`eval echo '${'$as_ac_Header'}'`
17384 { echo "$as_me:$LINENO: result: $ac_res" >&5
17385 echo "${ECHO_T}$ac_res" >&6; }
17388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17389 cat >>confdefs.h <<_ACEOF
17390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17399 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17400 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17408 extern const char *__crashreporter_info__;
17410 __crashreporter_info__ = "test";
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1 >conftest.err
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17431 { (case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_try") 2>&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest$ac_exeext'
17441 { (case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446 (eval "$ac_try") 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17451 { echo "$as_me:$LINENO: result: yes" >&5
17452 echo "${ECHO_T}yes" >&6; }
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_CRASHREPORTER_INFO 1
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17464 { echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6; }
17467 cat >>confdefs.h <<\_ACEOF
17468 #define HAVE_CRASHREPORTER_INFO 0
17474 rm -f core conftest.err conftest.$ac_objext \
17475 conftest$ac_exeext conftest.$ac_ext
17479 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17480 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17481 if test "${ac_cv_huge_val_sanity+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17486 ac_cpp='$CXXCPP $CPPFLAGS'
17487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17491 ac_save_CXXFLAGS=$CXXFLAGS
17492 CXXFLAGS="$CXXFLAGS -pedantic"
17493 if test "$cross_compiling" = yes; then
17494 ac_cv_huge_val_sanity=yes
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17506 double x = HUGE_VAL; return x != x;
17511 rm -f conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_link") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ac_cv_huge_val_sanity=yes
17533 echo "$as_me: program exited with status $ac_status" >&5
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ( exit $ac_status )
17538 ac_cv_huge_val_sanity=no
17540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17544 CXXFLAGS=$ac_save_CXXFLAGS
17546 ac_cpp='$CPP $CPPFLAGS'
17547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17553 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17554 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17555 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17558 { echo "$as_me:$LINENO: checking for pid_t" >&5
17559 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17560 if test "${ac_cv_type_pid_t+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 $ac_includes_default
17570 typedef pid_t ac__type_new_;
17574 if ((ac__type_new_ *) 0)
17576 if (sizeof (ac__type_new_))
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_compile") 2>conftest.er1
17591 grep -v '^ *+' conftest.er1 >conftest.err
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
17596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17597 { (case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_try") 2>&5
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest.$ac_objext'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ac_cv_type_pid_t=yes
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_cv_type_pid_t=no
17624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17627 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17628 if test $ac_cv_type_pid_t = yes; then
17632 cat >>confdefs.h <<_ACEOF
17638 { echo "$as_me:$LINENO: checking for size_t" >&5
17639 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17640 if test "${ac_cv_type_size_t+set}" = set; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 $ac_includes_default
17650 typedef size_t ac__type_new_;
17654 if ((ac__type_new_ *) 0)
17656 if (sizeof (ac__type_new_))
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_compile") 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_type_size_t=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_type_size_t=no
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17708 if test $ac_cv_type_size_t = yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define size_t unsigned int
17719 cat >>confdefs.h <<_ACEOF
17720 #define RETSIGTYPE void
17723 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17724 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17725 if test "${ac_cv_struct_tm+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17734 #include <sys/types.h>
17740 struct tm *tp; tp->tm_sec;
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_compile") 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17760 { (case "(($ac_try" in
17761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762 *) ac_try_echo=$ac_try;;
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765 (eval "$ac_try") 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_cv_struct_tm=time.h
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17784 ac_cv_struct_tm=sys/time.h
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17790 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17791 if test $ac_cv_struct_tm = sys/time.h; then
17793 cat >>confdefs.h <<\_ACEOF
17794 #define TM_IN_SYS_TIME 1
17799 { echo "$as_me:$LINENO: checking for int64_t" >&5
17800 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17801 if test "${ac_cv_type_int64_t+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 $ac_includes_default
17811 typedef int64_t ac__type_new_;
17815 if ((ac__type_new_ *) 0)
17817 if (sizeof (ac__type_new_))
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } &&
17837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try='test -s conftest.$ac_objext'
17848 { (case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_try") 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_type_int64_t=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_type_int64_t=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17868 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17869 if test $ac_cv_type_int64_t = yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_INT64_T 1
17877 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17878 echo "$as_me: error: Type int64_t required but not found" >&2;}
17879 { (exit 1); exit 1; }; }
17882 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17883 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17884 if test "${ac_cv_type_uint64_t+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17894 typedef uint64_t ac__type_new_;
17898 if ((ac__type_new_ *) 0)
17900 if (sizeof (ac__type_new_))
17906 rm -f conftest.$ac_objext
17907 if { (ac_try="$ac_compile"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_compile") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
17920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17921 { (case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_try") 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_type_uint64_t=yes
17942 echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_cv_type_uint64_t=no
17948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17951 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17952 if test $ac_cv_type_uint64_t = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define HAVE_UINT64_T 1
17960 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17961 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17962 if test "${ac_cv_type_u_int64_t+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 typedef u_int64_t ac__type_new_;
17976 if ((ac__type_new_ *) 0)
17978 if (sizeof (ac__type_new_))
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_compile") 2>conftest.er1
17993 grep -v '^ *+' conftest.er1 >conftest.err
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; } &&
18008 { ac_try='test -s conftest.$ac_objext'
18009 { (case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_try") 2>&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 ac_cv_type_u_int64_t=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_cv_type_u_int64_t=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18029 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18030 if test $ac_cv_type_u_int64_t = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define HAVE_U_INT64_T 1
18038 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18039 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18040 { (exit 1); exit 1; }; }
18054 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18070 #define $ac_func innocuous_$ac_func
18072 /* System header to define __stub macros and hopefully few prototypes,
18073 which can conflict with char $ac_func (); below.
18074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18075 <limits.h> exists even on freestanding compilers. */
18078 # include <limits.h>
18080 # include <assert.h>
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18092 /* The GNU C library defines this for functions which it implements
18093 to always fail with ENOSYS. Some functions are actually named
18094 something starting with __ and the normal name is an alias. */
18095 #if defined __stub_$ac_func || defined __stub___$ac_func
18102 return $ac_func ();
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_link") 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } &&
18121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest$ac_exeext'
18132 { (case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_try") 2>&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; }; then
18141 eval "$as_ac_var=yes"
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 eval "$as_ac_var=no"
18149 rm -f core conftest.err conftest.$ac_objext \
18150 conftest$ac_exeext conftest.$ac_ext
18152 ac_res=`eval echo '${'$as_ac_var'}'`
18153 { echo "$as_me:$LINENO: result: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156 cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18167 for ac_func in powf fmodf strtof round
18169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183 #define $ac_func innocuous_$ac_func
18185 /* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char $ac_func (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18191 # include <limits.h>
18193 # include <assert.h>
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18205 /* The GNU C library defines this for functions which it implements
18206 to always fail with ENOSYS. Some functions are actually named
18207 something starting with __ and the normal name is an alias. */
18208 #if defined __stub_$ac_func || defined __stub___$ac_func
18215 return $ac_func ();
18220 rm -f conftest.$ac_objext conftest$ac_exeext
18221 if { (ac_try="$ac_link"
18222 case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
18245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 eval "$as_ac_var=yes"
18256 echo "$as_me: failed program was:" >&5
18257 sed 's/^/| /' conftest.$ac_ext >&5
18259 eval "$as_ac_var=no"
18262 rm -f core conftest.err conftest.$ac_objext \
18263 conftest$ac_exeext conftest.$ac_ext
18265 ac_res=`eval echo '${'$as_ac_var'}'`
18266 { echo "$as_me:$LINENO: result: $ac_res" >&5
18267 echo "${ECHO_T}$ac_res" >&6; }
18268 if test `eval echo '${'$as_ac_var'}'` = yes; then
18269 cat >>confdefs.h <<_ACEOF
18270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18281 for ac_func in log log2 log10 exp exp2
18283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18297 #define $ac_func innocuous_$ac_func
18299 /* System header to define __stub macros and hopefully few prototypes,
18300 which can conflict with char $ac_func (); below.
18301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18302 <limits.h> exists even on freestanding compilers. */
18305 # include <limits.h>
18307 # include <assert.h>
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18319 /* The GNU C library defines this for functions which it implements
18320 to always fail with ENOSYS. Some functions are actually named
18321 something starting with __ and the normal name is an alias. */
18322 #if defined __stub_$ac_func || defined __stub___$ac_func
18329 return $ac_func ();
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (ac_try="$ac_link"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_link") 2>conftest.er1
18343 grep -v '^ *+' conftest.er1 >conftest.err
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
18348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest$ac_exeext'
18359 { (case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_try") 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 eval "$as_ac_var=yes"
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18373 eval "$as_ac_var=no"
18376 rm -f core conftest.err conftest.$ac_objext \
18377 conftest$ac_exeext conftest.$ac_ext
18379 ac_res=`eval echo '${'$as_ac_var'}'`
18380 { echo "$as_me:$LINENO: result: $ac_res" >&5
18381 echo "${ECHO_T}$ac_res" >&6; }
18382 if test `eval echo '${'$as_ac_var'}'` = yes; then
18383 cat >>confdefs.h <<_ACEOF
18384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18395 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18411 #define $ac_func innocuous_$ac_func
18413 /* System header to define __stub macros and hopefully few prototypes,
18414 which can conflict with char $ac_func (); below.
18415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18416 <limits.h> exists even on freestanding compilers. */
18419 # include <limits.h>
18421 # include <assert.h>
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18433 /* The GNU C library defines this for functions which it implements
18434 to always fail with ENOSYS. Some functions are actually named
18435 something starting with __ and the normal name is an alias. */
18436 #if defined __stub_$ac_func || defined __stub___$ac_func
18443 return $ac_func ();
18448 rm -f conftest.$ac_objext conftest$ac_exeext
18449 if { (ac_try="$ac_link"
18450 case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_link") 2>conftest.er1
18457 grep -v '^ *+' conftest.er1 >conftest.err
18459 cat conftest.err >&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); } &&
18462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; } &&
18472 { ac_try='test -s conftest$ac_exeext'
18473 { (case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_try") 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 eval "$as_ac_var=yes"
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 eval "$as_ac_var=no"
18490 rm -f core conftest.err conftest.$ac_objext \
18491 conftest$ac_exeext conftest.$ac_ext
18493 ac_res=`eval echo '${'$as_ac_var'}'`
18494 { echo "$as_me:$LINENO: result: $ac_res" >&5
18495 echo "${ECHO_T}$ac_res" >&6; }
18496 if test `eval echo '${'$as_ac_var'}'` = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18507 for ac_func in isatty mkdtemp mkstemp
18509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18523 #define $ac_func innocuous_$ac_func
18525 /* System header to define __stub macros and hopefully few prototypes,
18526 which can conflict with char $ac_func (); below.
18527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18528 <limits.h> exists even on freestanding compilers. */
18531 # include <limits.h>
18533 # include <assert.h>
18538 /* Override any GCC internal prototype to avoid an error.
18539 Use char because int might match the return type of a GCC
18540 builtin and then its argument prototype would still apply. */
18545 /* The GNU C library defines this for functions which it implements
18546 to always fail with ENOSYS. Some functions are actually named
18547 something starting with __ and the normal name is an alias. */
18548 #if defined __stub_$ac_func || defined __stub___$ac_func
18555 return $ac_func ();
18560 rm -f conftest.$ac_objext conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_link") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } &&
18574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18575 { (case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_try") 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; } &&
18584 { ac_try='test -s conftest$ac_exeext'
18585 { (case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_try") 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 eval "$as_ac_var=yes"
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 eval "$as_ac_var=no"
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18605 ac_res=`eval echo '${'$as_ac_var'}'`
18606 { echo "$as_me:$LINENO: result: $ac_res" >&5
18607 echo "${ECHO_T}$ac_res" >&6; }
18608 if test `eval echo '${'$as_ac_var'}'` = yes; then
18609 cat >>confdefs.h <<_ACEOF
18610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18623 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
18625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 cat >conftest.$ac_ext <<_ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18639 #define $ac_func innocuous_$ac_func
18641 /* System header to define __stub macros and hopefully few prototypes,
18642 which can conflict with char $ac_func (); below.
18643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 <limits.h> exists even on freestanding compilers. */
18647 # include <limits.h>
18649 # include <assert.h>
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined __stub_$ac_func || defined __stub___$ac_func
18671 return $ac_func ();
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 eval "$as_ac_var=yes"
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 eval "$as_ac_var=no"
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18721 ac_res=`eval echo '${'$as_ac_var'}'`
18722 { echo "$as_me:$LINENO: result: $ac_res" >&5
18723 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_var'}'` = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18736 for ac_func in strerror strerror_r setenv arc4random
18738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func (); below.
18756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757 <limits.h> exists even on freestanding compilers. */
18760 # include <limits.h>
18762 # include <assert.h>
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18784 return $ac_func ();
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } &&
18803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18804 { (case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_try") 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; } &&
18813 { ac_try='test -s conftest$ac_exeext'
18814 { (case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_try") 2>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; }; then
18823 eval "$as_ac_var=yes"
18825 echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18828 eval "$as_ac_var=no"
18831 rm -f core conftest.err conftest.$ac_objext \
18832 conftest$ac_exeext conftest.$ac_ext
18834 ac_res=`eval echo '${'$as_ac_var'}'`
18835 { echo "$as_me:$LINENO: result: $ac_res" >&5
18836 echo "${ECHO_T}$ac_res" >&6; }
18837 if test `eval echo '${'$as_ac_var'}'` = yes; then
18838 cat >>confdefs.h <<_ACEOF
18839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18849 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18865 #define $ac_func innocuous_$ac_func
18867 /* System header to define __stub macros and hopefully few prototypes,
18868 which can conflict with char $ac_func (); below.
18869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18870 <limits.h> exists even on freestanding compilers. */
18873 # include <limits.h>
18875 # include <assert.h>
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18887 /* The GNU C library defines this for functions which it implements
18888 to always fail with ENOSYS. Some functions are actually named
18889 something starting with __ and the normal name is an alias. */
18890 #if defined __stub_$ac_func || defined __stub___$ac_func
18897 return $ac_func ();
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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 eval "$as_ac_var=yes"
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 eval "$as_ac_var=no"
18944 rm -f core conftest.err conftest.$ac_objext \
18945 conftest$ac_exeext conftest.$ac_ext
18947 ac_res=`eval echo '${'$as_ac_var'}'`
18948 { echo "$as_me:$LINENO: result: $ac_res" >&5
18949 echo "${ECHO_T}$ac_res" >&6; }
18950 if test `eval echo '${'$as_ac_var'}'` = yes; then
18951 cat >>confdefs.h <<_ACEOF
18952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18963 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18969 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18979 #define $ac_func innocuous_$ac_func
18981 /* System header to define __stub macros and hopefully few prototypes,
18982 which can conflict with char $ac_func (); below.
18983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984 <limits.h> exists even on freestanding compilers. */
18987 # include <limits.h>
18989 # include <assert.h>
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
19001 /* The GNU C library defines this for functions which it implements
19002 to always fail with ENOSYS. Some functions are actually named
19003 something starting with __ and the normal name is an alias. */
19004 #if defined __stub_$ac_func || defined __stub___$ac_func
19011 return $ac_func ();
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest$ac_exeext'
19041 { (case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_try") 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 eval "$as_ac_var=yes"
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 eval "$as_ac_var=no"
19058 rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19061 ac_res=`eval echo '${'$as_ac_var'}'`
19062 { echo "$as_me:$LINENO: result: $ac_res" >&5
19063 echo "${ECHO_T}$ac_res" >&6; }
19064 if test `eval echo '${'$as_ac_var'}'` = yes; then
19065 cat >>confdefs.h <<_ACEOF
19066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19074 for ac_func in futimes futimens
19076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19090 #define $ac_func innocuous_$ac_func
19092 /* System header to define __stub macros and hopefully few prototypes,
19093 which can conflict with char $ac_func (); below.
19094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19095 <limits.h> exists even on freestanding compilers. */
19098 # include <limits.h>
19100 # include <assert.h>
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19112 /* The GNU C library defines this for functions which it implements
19113 to always fail with ENOSYS. Some functions are actually named
19114 something starting with __ and the normal name is an alias. */
19115 #if defined __stub_$ac_func || defined __stub___$ac_func
19122 return $ac_func ();
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142 { (case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_try") 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_try") 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 eval "$as_ac_var=yes"
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 eval "$as_ac_var=no"
19169 rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19172 ac_res=`eval echo '${'$as_ac_var'}'`
19173 { echo "$as_me:$LINENO: result: $ac_res" >&5
19174 echo "${ECHO_T}$ac_res" >&6; }
19175 if test `eval echo '${'$as_ac_var'}'` = yes; then
19176 cat >>confdefs.h <<_ACEOF
19177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19183 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19184 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19185 if test "${llvm_cv_c_printf_a+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19194 if test "$cross_compiling" = yes; then
19195 llvmac_cv_c_printf_a=no
19197 cat >conftest.$ac_ext <<_ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h. */
19206 #include <stdlib.h>
19212 volatile double A, B;
19216 sprintf(Buffer, "%a", A);
19220 if (A != 0x1.999999999999ap-4)
19227 rm -f conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_link") 2>&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 llvm_cv_c_printf_a=yes
19249 echo "$as_me: program exited with status $ac_status" >&5
19250 echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ( exit $ac_status )
19254 llvmac_cv_c_printf_a=no
19256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19268 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19269 if test "$llvm_cv_c_printf_a" = "yes"; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define HAVE_PRINTF_A 1
19279 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19280 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19281 if test "${ac_cv_func_rand48+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 ac_cpp='$CXXCPP $CPPFLAGS'
19287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 #include <stdlib.h>
19301 srand48(0);lrand48();drand48();
19306 rm -f conftest.$ac_objext
19307 if { (ac_try="$ac_compile"
19308 case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_compile") 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19321 { (case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_try") 2>&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; } &&
19330 { ac_try='test -s conftest.$ac_objext'
19331 { (case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_try") 2>&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; }; then
19340 ac_cv_func_rand48=yes
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 ac_cv_func_rand48=no
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 ac_cpp='$CPP $CPPFLAGS'
19351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19358 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19360 if test "$ac_cv_func_rand48" = "yes" ; then
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_RAND48 1
19369 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19370 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19371 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 $ac_includes_default
19385 char *p = (char *) strerror_s;
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_compile") 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19408 { (case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_try") 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_have_decl_strerror_s=yes
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_have_decl_strerror_s=no
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19438 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19439 if test $ac_cv_have_decl_strerror_s = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442 #define HAVE_DECL_STRERROR_S 1
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_STRERROR_S 0
19456 if test "$llvm_cv_os_type" = "MingW" ; then
19457 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19458 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19459 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 ac_check_lib_save_LIBS=$LIBS
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19471 /* Override any GCC internal prototype to avoid an error.
19472 Use char because int might match the return type of a GCC
19473 builtin and then its argument prototype would still apply. */
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (ac_try="$ac_link"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_link") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest$ac_exeext'
19511 { (case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_try") 2>&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_lib_gcc__alloca=yes
19522 echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19525 ac_cv_lib_gcc__alloca=no
19528 rm -f core conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530 LIBS=$ac_check_lib_save_LIBS
19532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19533 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19534 if test $ac_cv_lib_gcc__alloca = yes; then
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE__ALLOCA 1
19542 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19543 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19544 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 ac_check_lib_save_LIBS=$LIBS
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19556 /* Override any GCC internal prototype to avoid an error.
19557 Use char because int might match the return type of a GCC
19558 builtin and then its argument prototype would still apply. */
19566 return __alloca ();
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19586 { (case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_try") 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest$ac_exeext'
19596 { (case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19601 (eval "$ac_try") 2>&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19605 ac_cv_lib_gcc___alloca=yes
19607 echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19610 ac_cv_lib_gcc___alloca=no
19613 rm -f core conftest.err conftest.$ac_objext \
19614 conftest$ac_exeext conftest.$ac_ext
19615 LIBS=$ac_check_lib_save_LIBS
19617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19618 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19619 if test $ac_cv_lib_gcc___alloca = yes; then
19621 cat >>confdefs.h <<\_ACEOF
19622 #define HAVE___ALLOCA 1
19627 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19628 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19629 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 ac_check_lib_save_LIBS=$LIBS
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19651 return __chkstk ();
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_link") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19671 { (case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_try") 2>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); }; } &&
19680 { ac_try='test -s conftest$ac_exeext'
19681 { (case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_try") 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_lib_gcc___chkstk=yes
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 ac_cv_lib_gcc___chkstk=no
19698 rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19703 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19704 if test $ac_cv_lib_gcc___chkstk = yes; then
19706 cat >>confdefs.h <<\_ACEOF
19707 #define HAVE___CHKSTK 1
19712 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19713 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 ac_check_lib_save_LIBS=$LIBS
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19736 return ___chkstk ();
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest$ac_exeext'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_cv_lib_gcc____chkstk=yes
19777 echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 ac_cv_lib_gcc____chkstk=no
19783 rm -f core conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19785 LIBS=$ac_check_lib_save_LIBS
19787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19788 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19789 if test $ac_cv_lib_gcc____chkstk = yes; then
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE____CHKSTK 1
19798 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19799 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19822 return __ashldi3 ();
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842 { (case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_try") 2>&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_lib_gcc___ashldi3=yes
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_cv_lib_gcc___ashldi3=no
19869 rm -f core conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19871 LIBS=$ac_check_lib_save_LIBS
19873 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19874 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19875 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE___ASHLDI3 1
19883 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19884 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19885 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19888 ac_check_lib_save_LIBS=$LIBS
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19907 return __ashrdi3 ();
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } &&
19926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19927 { (case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_try") 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest$ac_exeext'
19937 { (case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_try") 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_lib_gcc___ashrdi3=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_gcc___ashrdi3=no
19954 rm -f core conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19956 LIBS=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19959 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19960 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19962 cat >>confdefs.h <<\_ACEOF
19963 #define HAVE___ASHRDI3 1
19968 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19969 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19970 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19971 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 ac_check_lib_save_LIBS=$LIBS
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19982 /* Override any GCC internal prototype to avoid an error.
19983 Use char because int might match the return type of a GCC
19984 builtin and then its argument prototype would still apply. */
19992 return __divdi3 ();
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (ac_try="$ac_link"
19999 case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_link") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
20011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_try") 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest$ac_exeext'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_gcc___divdi3=yes
20033 echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20036 ac_cv_lib_gcc___divdi3=no
20039 rm -f core conftest.err conftest.$ac_objext \
20040 conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20043 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
20044 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
20045 if test $ac_cv_lib_gcc___divdi3 = yes; then
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE___DIVDI3 1
20053 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
20054 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
20055 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 ac_check_lib_save_LIBS=$LIBS
20060 cat >conftest.$ac_ext <<_ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20067 /* Override any GCC internal prototype to avoid an error.
20068 Use char because int might match the return type of a GCC
20069 builtin and then its argument prototype would still apply. */
20077 return __fixdfdi ();
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_link") 2>conftest.er1
20091 grep -v '^ *+' conftest.er1 >conftest.err
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest$ac_exeext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_lib_gcc___fixdfdi=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_lib_gcc___fixdfdi=no
20124 rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20129 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20130 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE___FIXDFDI 1
20138 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20139 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20140 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_check_lib_save_LIBS=$LIBS
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20152 /* Override any GCC internal prototype to avoid an error.
20153 Use char because int might match the return type of a GCC
20154 builtin and then its argument prototype would still apply. */
20162 return __fixsfdi ();
20167 rm -f conftest.$ac_objext conftest$ac_exeext
20168 if { (ac_try="$ac_link"
20169 case "(($ac_try" in
20170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171 *) ac_try_echo=$ac_try;;
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174 (eval "$ac_link") 2>conftest.er1
20176 grep -v '^ *+' conftest.er1 >conftest.err
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20182 { (case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_try") 2>&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest$ac_exeext'
20192 { (case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_try") 2>&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; }; then
20201 ac_cv_lib_gcc___fixsfdi=yes
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_lib_gcc___fixsfdi=no
20209 rm -f core conftest.err conftest.$ac_objext \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20214 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20215 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define HAVE___FIXSFDI 1
20223 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20224 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20225 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20228 ac_check_lib_save_LIBS=$LIBS
20230 cat >conftest.$ac_ext <<_ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h. */
20237 /* Override any GCC internal prototype to avoid an error.
20238 Use char because int might match the return type of a GCC
20239 builtin and then its argument prototype would still apply. */
20243 char __floatdidf ();
20247 return __floatdidf ();
20252 rm -f conftest.$ac_objext conftest$ac_exeext
20253 if { (ac_try="$ac_link"
20254 case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_link") 2>conftest.er1
20261 grep -v '^ *+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20267 { (case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_try") 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try='test -s conftest$ac_exeext'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_lib_gcc___floatdidf=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_cv_lib_gcc___floatdidf=no
20294 rm -f core conftest.err conftest.$ac_objext \
20295 conftest$ac_exeext conftest.$ac_ext
20296 LIBS=$ac_check_lib_save_LIBS
20298 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20299 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20300 if test $ac_cv_lib_gcc___floatdidf = yes; then
20302 cat >>confdefs.h <<\_ACEOF
20303 #define HAVE___FLOATDIDF 1
20308 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20309 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20310 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 ac_check_lib_save_LIBS=$LIBS
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20332 return __lshrdi3 ();
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } &&
20351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20352 { (case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_try") 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest$ac_exeext'
20362 { (case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20367 (eval "$ac_try") 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; }; then
20371 ac_cv_lib_gcc___lshrdi3=yes
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_cv_lib_gcc___lshrdi3=no
20379 rm -f core conftest.err conftest.$ac_objext \
20380 conftest$ac_exeext conftest.$ac_ext
20381 LIBS=$ac_check_lib_save_LIBS
20383 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20384 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20385 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define HAVE___LSHRDI3 1
20393 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20394 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20395 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 ac_check_lib_save_LIBS=$LIBS
20400 cat >conftest.$ac_ext <<_ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20407 /* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20417 return __moddi3 ();
20422 rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (ac_try="$ac_link"
20424 case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_link") 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20437 { (case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_try") 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; } &&
20446 { ac_try='test -s conftest$ac_exeext'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456 ac_cv_lib_gcc___moddi3=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_lib_gcc___moddi3=no
20464 rm -f core conftest.err conftest.$ac_objext \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20468 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20469 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20470 if test $ac_cv_lib_gcc___moddi3 = yes; then
20472 cat >>confdefs.h <<\_ACEOF
20473 #define HAVE___MODDI3 1
20478 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20479 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20480 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 ac_check_lib_save_LIBS=$LIBS
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20502 return __udivdi3 ();
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_link") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } &&
20521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20522 { (case "(($ac_try" in
20523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524 *) ac_try_echo=$ac_try;;
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527 (eval "$ac_try") 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest$ac_exeext'
20532 { (case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_try") 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
20541 ac_cv_lib_gcc___udivdi3=yes
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20546 ac_cv_lib_gcc___udivdi3=no
20549 rm -f core conftest.err conftest.$ac_objext \
20550 conftest$ac_exeext conftest.$ac_ext
20551 LIBS=$ac_check_lib_save_LIBS
20553 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20554 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20555 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20557 cat >>confdefs.h <<\_ACEOF
20558 #define HAVE___UDIVDI3 1
20563 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20564 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20565 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 ac_check_lib_save_LIBS=$LIBS
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20577 /* Override any GCC internal prototype to avoid an error.
20578 Use char because int might match the return type of a GCC
20579 builtin and then its argument prototype would still apply. */
20587 return __umoddi3 ();
20592 rm -f conftest.$ac_objext conftest$ac_exeext
20593 if { (ac_try="$ac_link"
20594 case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_link") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1 >conftest.err
20603 cat conftest.err >&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
20606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20607 { (case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_try") 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; } &&
20616 { ac_try='test -s conftest$ac_exeext'
20617 { (case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_try") 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; }; then
20626 ac_cv_lib_gcc___umoddi3=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_lib_gcc___umoddi3=no
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20639 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20640 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20642 cat >>confdefs.h <<\_ACEOF
20643 #define HAVE___UMODDI3 1
20649 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20650 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20651 if test "${ac_cv_lib_gcc___main+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 ac_check_lib_save_LIBS=$LIBS
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 /* Override any GCC internal prototype to avoid an error.
20664 Use char because int might match the return type of a GCC
20665 builtin and then its argument prototype would still apply. */
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_link") 2>conftest.er1
20687 grep -v '^ *+' conftest.er1 >conftest.err
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693 { (case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_try") 2>&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 ac_cv_lib_gcc___main=yes
20714 echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20717 ac_cv_lib_gcc___main=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722 LIBS=$ac_check_lib_save_LIBS
20724 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20725 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20726 if test $ac_cv_lib_gcc___main = yes; then
20728 cat >>confdefs.h <<\_ACEOF
20729 #define HAVE___MAIN 1
20734 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20735 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20736 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20737 echo $ECHO_N "(cached) $ECHO_C" >&6
20739 ac_check_lib_save_LIBS=$LIBS
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20748 /* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20758 return __cmpdi2 ();
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_link") 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20778 { (case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_try") 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try='test -s conftest$ac_exeext'
20788 { (case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_try") 2>&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); }; }; then
20797 ac_cv_lib_gcc___cmpdi2=yes
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ac_cv_lib_gcc___cmpdi2=no
20805 rm -f core conftest.err conftest.$ac_objext \
20806 conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20809 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20810 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20811 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20813 cat >>confdefs.h <<\_ACEOF
20814 #define HAVE___CMPDI2 1
20821 if test "$llvm_cv_os_type" = "MingW" ; then
20822 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20823 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20824 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20832 #include <windows.h>
20833 #include <imagehlp.h>
20834 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20835 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_compile") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
20853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20854 { (case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_try") 2>&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest.$ac_objext'
20864 { (case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_try") 2>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20874 { echo "$as_me:$LINENO: result: yes" >&5
20875 echo "${ECHO_T}yes" >&6; }
20876 llvm_cv_win32_elmcb_pcstr="PCSTR"
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20883 { echo "$as_me:$LINENO: result: no" >&5
20884 echo "${ECHO_T}no" >&6; }
20885 llvm_cv_win32_elmcb_pcstr="PSTR"
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 cat >>confdefs.h <<_ACEOF
20892 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20899 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20900 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20901 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 ac_cpp='$CXXCPP $CPPFLAGS'
20907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20926 rm -f conftest.$ac_objext
20927 if { (ac_try="$ac_compile"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_compile") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } &&
20940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; } &&
20950 { ac_try='test -s conftest.$ac_objext'
20951 { (case "(($ac_try" in
20952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953 *) ac_try_echo=$ac_try;;
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956 (eval "$ac_try") 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20960 ac_cv_func_isnan_in_math_h=yes
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_cv_func_isnan_in_math_h=no
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970 ac_cpp='$CPP $CPPFLAGS'
20971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20977 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20978 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20981 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define HAVE_ISNAN_IN_MATH_H 1
20990 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20991 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20992 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 ac_cpp='$CXXCPP $CPPFLAGS'
20998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21017 rm -f conftest.$ac_objext
21018 if { (ac_try="$ac_compile"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_compile") 2>conftest.er1
21026 grep -v '^ *+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } &&
21031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21032 { (case "(($ac_try" in
21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034 *) ac_try_echo=$ac_try;;
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037 (eval "$ac_try") 2>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest.$ac_objext'
21042 { (case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_try") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
21051 ac_cv_func_isnan_in_cmath=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_cv_func_isnan_in_cmath=no
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21068 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21069 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
21071 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
21073 cat >>confdefs.h <<\_ACEOF
21074 #define HAVE_ISNAN_IN_CMATH 1
21080 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21081 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21082 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 ac_cpp='$CXXCPP $CPPFLAGS'
21088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21092 cat >conftest.$ac_ext <<_ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21102 float f; std::isnan(f);
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_compile") 2>conftest.er1
21116 grep -v '^ *+' conftest.er1 >conftest.err
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } &&
21121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21122 { (case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_try") 2>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; } &&
21131 { ac_try='test -s conftest.$ac_objext'
21132 { (case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_try") 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_cv_func_std_isnan_in_cmath=yes
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_cv_func_std_isnan_in_cmath=no
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 ac_cpp='$CPP $CPPFLAGS'
21152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21158 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21159 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21161 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21163 cat >>confdefs.h <<\_ACEOF
21164 #define HAVE_STD_ISNAN_IN_CMATH 1
21172 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21173 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21174 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 ac_cpp='$CXXCPP $CPPFLAGS'
21180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_compile") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
21213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21214 { (case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_try") 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_func_isinf_in_math_h=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_func_isinf_in_math_h=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 ac_cpp='$CPP $CPPFLAGS'
21244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21250 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21251 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21253 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21255 cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_ISINF_IN_MATH_H 1
21262 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21263 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21264 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 ac_cpp='$CXXCPP $CPPFLAGS'
21270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } &&
21303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21304 { (case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_try") 2>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
21314 { (case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_try") 2>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_cv_func_isinf_in_cmath=yes
21325 echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ac_cv_func_isinf_in_cmath=no
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333 ac_cpp='$CPP $CPPFLAGS'
21334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21341 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21343 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_ISINF_IN_CMATH 1
21352 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21353 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21354 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 ac_cpp='$CXXCPP $CPPFLAGS'
21360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21374 float f; std::isinf(f);
21379 rm -f conftest.$ac_objext
21380 if { (ac_try="$ac_compile"
21381 case "(($ac_try" in
21382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21383 *) ac_try_echo=$ac_try;;
21385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21386 (eval "$ac_compile") 2>conftest.er1
21388 grep -v '^ *+' conftest.er1 >conftest.err
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21394 { (case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_try") 2>&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; } &&
21403 { ac_try='test -s conftest.$ac_objext'
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_try") 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_cv_func_std_isinf_in_cmath=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_func_std_isinf_in_cmath=no
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21430 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21431 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21433 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21435 cat >>confdefs.h <<\_ACEOF
21436 #define HAVE_STD_ISINF_IN_CMATH 1
21442 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21443 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21444 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21449 ac_cpp='$CXXCPP $CPPFLAGS'
21450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 #include <ieeefp.h>
21464 float f; finite(f);
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_compile") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
21483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21484 { (case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_try") 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest.$ac_objext'
21494 { (case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_try") 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_func_finite_in_ieeefp_h=yes
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_cv_func_finite_in_ieeefp_h=no
21511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513 ac_cpp='$CPP $CPPFLAGS'
21514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21521 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21523 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_FINITE_IN_IEEEFP_H 1
21533 if test "$llvm_cv_platform_type" = "Unix" ; then
21536 for ac_header in stdlib.h unistd.h
21538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21549 # Is the header compilable?
21550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21559 #include <$ac_header>
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21568 (eval "$ac_compile") 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21576 { (case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_try") 2>&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; } &&
21585 { ac_try='test -s conftest.$ac_objext'
21586 { (case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_try") 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_header_compiler=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_header_compiler=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <$ac_header>
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } >/dev/null; then
21631 if test -s conftest.err; then
21632 ac_cpp_err=$ac_c_preproc_warn_flag
21633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21640 if test -z "$ac_cpp_err"; then
21641 ac_header_preproc=yes
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ac_header_preproc=no
21649 rm -f conftest.err conftest.$ac_ext
21650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21651 echo "${ECHO_T}$ac_header_preproc" >&6; }
21653 # So? What about this header?
21654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21660 ac_header_preproc=yes
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21676 ## ------------------------------------ ##
21677 ## Report this to http://llvm.org/bugs/ ##
21678 ## ------------------------------------ ##
21680 ) | sed "s/^/$as_me: WARNING: /" >&2
21683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 eval "$as_ac_Header=\$ac_header_preproc"
21690 ac_res=`eval echo '${'$as_ac_Header'}'`
21691 { echo "$as_me:$LINENO: result: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21696 cat >>confdefs.h <<_ACEOF
21697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21705 for ac_func in getpagesize
21707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21721 #define $ac_func innocuous_$ac_func
21723 /* System header to define __stub macros and hopefully few prototypes,
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21729 # include <limits.h>
21731 # include <assert.h>
21736 /* Override any GCC internal prototype to avoid an error.
21737 Use char because int might match the return type of a GCC
21738 builtin and then its argument prototype would still apply. */
21743 /* The GNU C library defines this for functions which it implements
21744 to always fail with ENOSYS. Some functions are actually named
21745 something starting with __ and the normal name is an alias. */
21746 #if defined __stub_$ac_func || defined __stub___$ac_func
21753 return $ac_func ();
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21773 { (case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_try") 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest$ac_exeext'
21783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 eval "$as_ac_var=yes"
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 eval "$as_ac_var=no"
21800 rm -f core conftest.err conftest.$ac_objext \
21801 conftest$ac_exeext conftest.$ac_ext
21803 ac_res=`eval echo '${'$as_ac_var'}'`
21804 { echo "$as_me:$LINENO: result: $ac_res" >&5
21805 echo "${ECHO_T}$ac_res" >&6; }
21806 if test `eval echo '${'$as_ac_var'}'` = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21814 { echo "$as_me:$LINENO: checking for working mmap" >&5
21815 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21816 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 if test "$cross_compiling" = yes; then
21820 ac_cv_func_mmap_fixed_mapped=no
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21829 /* malloc might have been renamed as rpl_malloc. */
21832 /* Thanks to Mike Haertel and Jim Avera for this test.
21833 Here is a matrix of mmap possibilities:
21834 mmap private not fixed
21835 mmap private fixed at somewhere currently unmapped
21836 mmap private fixed at somewhere already mapped
21837 mmap shared not fixed
21838 mmap shared fixed at somewhere currently unmapped
21839 mmap shared fixed at somewhere already mapped
21840 For private mappings, we should verify that changes cannot be read()
21841 back from the file, nor mmap's back from the file at a different
21842 address. (There have been systems where private was not correctly
21843 implemented like the infamous i386 svr4.0, and systems where the
21844 VM page cache was not coherent with the file system buffer cache
21845 like early versions of FreeBSD and possibly contemporary NetBSD.)
21846 For shared mappings, we should conversely verify that changes get
21847 propagated back to all the places they're supposed to be.
21849 Grep wants private fixed already mapped.
21850 The main things grep needs to know about mmap are:
21851 * does it exist and is it safe to write into the mmap'd area
21852 * how to use it (BSD variants) */
21855 #include <sys/mman.h>
21857 #if !STDC_HEADERS && !HAVE_STDLIB_H
21861 /* This mess was copied from the GNU getpagesize.h. */
21862 #if !HAVE_GETPAGESIZE
21863 /* Assume that all systems that can run configure have sys/param.h. */
21864 # if !HAVE_SYS_PARAM_H
21865 # define HAVE_SYS_PARAM_H 1
21868 # ifdef _SC_PAGESIZE
21869 # define getpagesize() sysconf(_SC_PAGESIZE)
21870 # else /* no _SC_PAGESIZE */
21871 # if HAVE_SYS_PARAM_H
21872 # include <sys/param.h>
21873 # ifdef EXEC_PAGESIZE
21874 # define getpagesize() EXEC_PAGESIZE
21875 # else /* no EXEC_PAGESIZE */
21877 # define getpagesize() NBPG * CLSIZE
21880 # endif /* no CLSIZE */
21881 # else /* no NBPG */
21883 # define getpagesize() NBPC
21884 # else /* no NBPC */
21886 # define getpagesize() PAGESIZE
21887 # endif /* PAGESIZE */
21888 # endif /* no NBPC */
21889 # endif /* no NBPG */
21890 # endif /* no EXEC_PAGESIZE */
21891 # else /* no HAVE_SYS_PARAM_H */
21892 # define getpagesize() 8192 /* punt totally */
21893 # endif /* no HAVE_SYS_PARAM_H */
21894 # endif /* no _SC_PAGESIZE */
21896 #endif /* no HAVE_GETPAGESIZE */
21901 char *data, *data2, *data3;
21905 pagesize = getpagesize ();
21907 /* First, make a file with some known garbage in it. */
21908 data = (char *) malloc (pagesize);
21911 for (i = 0; i < pagesize; ++i)
21912 *(data + i) = rand ();
21914 fd = creat ("conftest.mmap", 0600);
21917 if (write (fd, data, pagesize) != pagesize)
21921 /* Next, try to mmap the file at a fixed address which already has
21922 something else allocated at it. If we can, also make sure that
21923 we see the same garbage. */
21924 fd = open ("conftest.mmap", O_RDWR);
21927 data2 = (char *) malloc (2 * pagesize);
21930 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21931 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21932 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21934 for (i = 0; i < pagesize; ++i)
21935 if (*(data + i) != *(data2 + i))
21938 /* Finally, make sure that changes to the mapped area do not
21939 percolate back to the file as seen by read(). (This is a bug on
21940 some variants of i386 svr4.0.) */
21941 for (i = 0; i < pagesize; ++i)
21942 *(data2 + i) = *(data2 + i) + 1;
21943 data3 = (char *) malloc (pagesize);
21946 if (read (fd, data3, pagesize) != pagesize)
21948 for (i = 0; i < pagesize; ++i)
21949 if (*(data + i) != *(data3 + i))
21955 rm -f conftest$ac_exeext
21956 if { (ac_try="$ac_link"
21957 case "(($ac_try" in
21958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21959 *) ac_try_echo=$ac_try;;
21961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21962 (eval "$ac_link") 2>&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21966 { (case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_try") 2>&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }; then
21975 ac_cv_func_mmap_fixed_mapped=yes
21977 echo "$as_me: program exited with status $ac_status" >&5
21978 echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ( exit $ac_status )
21982 ac_cv_func_mmap_fixed_mapped=no
21984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21989 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21990 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21991 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_MMAP 1
21998 rm -f conftest.mmap
22000 { echo "$as_me:$LINENO: checking for mmap of files" >&5
22001 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
22002 if test "${ac_cv_func_mmap_file+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 ac_cpp='$CPP $CPPFLAGS'
22007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011 if test "$cross_compiling" = yes; then
22012 ac_cv_func_mmap_file=no
22014 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22022 #include <sys/types.h>
22023 #include <sys/mman.h>
22031 fd = creat ("foo",0777);
22032 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
22034 return (fd != (int) MAP_FAILED);
22039 rm -f conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22050 { (case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_try") 2>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
22059 ac_cv_func_mmap_file=yes
22061 echo "$as_me: program exited with status $ac_status" >&5
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22065 ( exit $ac_status )
22066 ac_cv_func_mmap_file=no
22068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22073 ac_cpp='$CPP $CPPFLAGS'
22074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22080 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22081 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22082 if test "$ac_cv_func_mmap_file" = yes; then
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_MMAP_FILE
22092 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22093 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22094 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 if test "$llvm_cv_os_type" = "Interix" ; then
22098 ac_cv_need_dev_zero_for_mmap=yes
22100 ac_cv_need_dev_zero_for_mmap=no
22104 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22105 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22106 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define NEED_DEV_ZERO_FOR_MMAP 1
22114 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22116 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22117 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22119 if test "$ac_cv_func_mmap_file" = "no"
22121 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22122 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22126 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22127 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22129 ac_cpp='$CXXCPP $CPPFLAGS'
22130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22134 cat >conftest.$ac_ext <<_ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h. */
22143 volatile unsigned long val = 1;
22144 __sync_synchronize();
22145 __sync_val_compare_and_swap(&val, 1, 0);
22146 __sync_add_and_fetch(&val, 1);
22147 __sync_sub_and_fetch(&val, 1);
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_link") 2>conftest.er1
22162 grep -v '^ *+' conftest.er1 >conftest.err
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
22167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_try") 2>&5
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; } &&
22177 { ac_try='test -s conftest$ac_exeext'
22178 { (case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_try") 2>&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22188 { echo "$as_me:$LINENO: result: yes" >&5
22189 echo "${ECHO_T}yes" >&6; }
22191 cat >>confdefs.h <<\_ACEOF
22192 #define LLVM_HAS_ATOMICS 1
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22201 { echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6; }
22204 cat >>confdefs.h <<\_ACEOF
22205 #define LLVM_HAS_ATOMICS 0
22208 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22209 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22213 rm -f core conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
22216 ac_cpp='$CPP $CPPFLAGS'
22217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22223 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22224 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22225 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22226 if test "${llvm_cv_linux_mixed+set}" = set; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 ac_cpp='$CPP $CPPFLAGS'
22231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22242 error: Not x86-64 even if uname says so!
22253 rm -f conftest.$ac_objext
22254 if { (ac_try="$ac_compile"
22255 case "(($ac_try" in
22256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_compile") 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } &&
22267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest.$ac_objext'
22278 { (case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_try") 2>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
22287 llvm_cv_linux_mixed=no
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22292 llvm_cv_linux_mixed=yes
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22297 ac_cpp='$CPP $CPPFLAGS'
22298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22304 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22305 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22307 if test "$llvm_cv_linux_mixed" = "yes"; then
22308 llvm_cv_target_arch="x86"
22314 for ac_func in __dso_handle
22316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 cat >conftest.$ac_ext <<_ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h. */
22328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22330 #define $ac_func innocuous_$ac_func
22332 /* System header to define __stub macros and hopefully few prototypes,
22333 which can conflict with char $ac_func (); below.
22334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22335 <limits.h> exists even on freestanding compilers. */
22338 # include <limits.h>
22340 # include <assert.h>
22345 /* Override any GCC internal prototype to avoid an error.
22346 Use char because int might match the return type of a GCC
22347 builtin and then its argument prototype would still apply. */
22352 /* The GNU C library defines this for functions which it implements
22353 to always fail with ENOSYS. Some functions are actually named
22354 something starting with __ and the normal name is an alias. */
22355 #if defined __stub_$ac_func || defined __stub___$ac_func
22362 return $ac_func ();
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_link") 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } &&
22381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22382 { (case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_try") 2>&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; } &&
22391 { ac_try='test -s conftest$ac_exeext'
22392 { (case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_try") 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401 eval "$as_ac_var=yes"
22403 echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.$ac_ext >&5
22406 eval "$as_ac_var=no"
22409 rm -f core conftest.err conftest.$ac_objext \
22410 conftest$ac_exeext conftest.$ac_ext
22412 ac_res=`eval echo '${'$as_ac_var'}'`
22413 { echo "$as_me:$LINENO: result: $ac_res" >&5
22414 echo "${ECHO_T}$ac_res" >&6; }
22415 if test `eval echo '${'$as_ac_var'}'` = yes; then
22416 cat >>confdefs.h <<_ACEOF
22417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424 SHLIBEXT=$libltdl_cv_shlibext
22427 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22430 if test "${prefix}" = "NONE" ; then
22431 prefix="/usr/local"
22433 eval LLVM_PREFIX="${prefix}";
22434 eval LLVM_BINDIR="${prefix}/bin";
22435 eval LLVM_DATADIR="${prefix}/share/llvm";
22436 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22437 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22438 eval LLVM_INCLUDEDIR="${prefix}/include";
22439 eval LLVM_INFODIR="${prefix}/info";
22440 eval LLVM_MANDIR="${prefix}/man";
22441 LLVM_CONFIGTIME=`date`
22452 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22453 LLVM_CONFIGTIME="(timestamp not enabled)"
22457 cat >>confdefs.h <<_ACEOF
22458 #define LLVM_PREFIX "$LLVM_PREFIX"
22462 cat >>confdefs.h <<_ACEOF
22463 #define LLVM_BINDIR "$LLVM_BINDIR"
22467 cat >>confdefs.h <<_ACEOF
22468 #define LLVM_DATADIR "$LLVM_DATADIR"
22472 cat >>confdefs.h <<_ACEOF
22473 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22477 cat >>confdefs.h <<_ACEOF
22478 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22482 cat >>confdefs.h <<_ACEOF
22483 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22487 cat >>confdefs.h <<_ACEOF
22488 #define LLVM_INFODIR "$LLVM_INFODIR"
22492 cat >>confdefs.h <<_ACEOF
22493 #define LLVM_MANDIR "$LLVM_MANDIR"
22497 cat >>confdefs.h <<_ACEOF
22498 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22502 cat >>confdefs.h <<_ACEOF
22503 #define LLVM_HOST_TRIPLE "$host"
22507 cat >>confdefs.h <<_ACEOF
22508 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22512 if test "$BINDINGS_TO_BUILD" = auto ; then
22513 BINDINGS_TO_BUILD=""
22514 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22515 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22518 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22524 binding_prereqs_failed=0
22525 for a_binding in $BINDINGS_TO_BUILD ; do
22526 case "$a_binding" in
22528 if test "x$OCAMLC" = x ; then
22529 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22530 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22531 binding_prereqs_failed=1
22533 if test "x$OCAMLDEP" = x ; then
22534 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22535 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22536 binding_prereqs_failed=1
22538 if test "x$OCAMLOPT" = x ; then
22539 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22540 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22542 if test "x$with_ocaml_libdir" != xauto ; then
22543 OCAML_LIBDIR=$with_ocaml_libdir
22546 ocaml_stdlib="`"$OCAMLC" -where`"
22547 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22549 # ocaml stdlib is beneath our prefix; use stdlib
22550 OCAML_LIBDIR=$ocaml_stdlib
22553 # ocaml stdlib is outside our prefix; use libdir/ocaml
22554 OCAML_LIBDIR=${prefix}/lib/ocaml
22561 if test "$binding_prereqs_failed" = 1 ; then
22562 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22563 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22564 { (exit 1); exit 1; }; }
22567 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22568 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22569 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 ac_cpp='$CXXCPP $CPPFLAGS'
22574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22578 oldcxxflags="$CXXFLAGS"
22579 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22595 rm -f conftest.$ac_objext
22596 if { (ac_try="$ac_compile"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } &&
22609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22610 { (case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_try") 2>&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; } &&
22619 { ac_try='test -s conftest.$ac_objext'
22620 { (case "(($ac_try" in
22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval "$ac_try") 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; }; then
22629 llvm_cv_cxx_visibility_inlines_hidden=yes
22631 echo "$as_me: failed program was:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 llvm_cv_cxx_visibility_inlines_hidden=no
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22638 CXXFLAGS="$oldcxxflags"
22640 ac_cpp='$CPP $CPPFLAGS'
22641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22647 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22648 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22649 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22650 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22653 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22658 if test "$llvm_cv_link_use_r" = "yes" ; then
22665 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22666 RDYNAMIC="-Wl,-export-dynamic"
22673 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22680 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22682 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22684 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22686 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22688 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22691 ac_config_files="$ac_config_files Makefile.config"
22694 ac_config_files="$ac_config_files llvm.spec"
22697 ac_config_files="$ac_config_files docs/doxygen.cfg"
22700 if test "${clang_src_root}" = ""; then
22701 clang_src_root="$srcdir/tools/clang"
22703 if test -f ${clang_src_root}/README.txt; then
22704 configh="include/clang/Config/config.h"
22705 doxy="docs/doxygen.cfg"
22706 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22708 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22712 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22715 test "x$program_prefix" = "xNONE" && program_prefix=""
22719 ac_config_commands="$ac_config_commands setup"
22721 ac_config_commands="$ac_config_commands Makefile"
22724 ac_config_commands="$ac_config_commands Makefile.common"
22727 ac_config_commands="$ac_config_commands examples/Makefile"
22730 ac_config_commands="$ac_config_commands lib/Makefile"
22733 ac_config_commands="$ac_config_commands runtime/Makefile"
22736 ac_config_commands="$ac_config_commands test/Makefile"
22739 ac_config_commands="$ac_config_commands test/Makefile.tests"
22742 ac_config_commands="$ac_config_commands unittests/Makefile"
22745 ac_config_commands="$ac_config_commands tools/Makefile"
22748 ac_config_commands="$ac_config_commands utils/Makefile"
22751 ac_config_commands="$ac_config_commands projects/Makefile"
22754 ac_config_commands="$ac_config_commands bindings/Makefile"
22757 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22761 cat >confcache <<\_ACEOF
22762 # This file is a shell script that caches the results of configure
22763 # tests run on this system so they can be shared between configure
22764 # scripts and configure runs, see configure's option --config-cache.
22765 # It is not useful on other systems. If it contains results you don't
22766 # want to keep, you may remove or edit it.
22768 # config.status only pays attention to the cache file if you give it
22769 # the --recheck option to rerun configure.
22771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22773 # following values.
22777 # The following way of writing the cache mishandles newlines in values,
22778 # but we know of no workaround that is simple, portable, and efficient.
22779 # So, we kill variables containing newlines.
22780 # Ultrix sh set writes to stderr and can't be redirected directly,
22781 # and sets the high bit in the cache file unless we assign to the vars.
22783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22784 eval ac_val=\$$ac_var
22788 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22792 _ | IFS | as_nl) ;; #(
22793 *) $as_unset $ac_var ;;
22799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22800 *${as_nl}ac_space=\ *)
22801 # `set' does not quote correctly, so add quotes (double-quote
22802 # substitution turns \\\\ into \\, and sed turns \\ into \).
22805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22808 # `set' quotes correctly as required by POSIX, so do not add quotes.
22809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22823 if test -w "$cache_file"; then
22824 test "x$cache_file" != "x/dev/null" &&
22825 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22826 echo "$as_me: updating cache $cache_file" >&6;}
22827 cat confcache >$cache_file
22829 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22830 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22836 # Let make expand exec_prefix.
22837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22839 DEFS=-DHAVE_CONFIG_H
22843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22844 # 1. Remove the extension, and $U if already installed.
22845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22846 ac_i=`echo "$ac_i" | sed "$ac_script"`
22847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22848 # will be set to the directory where LIBOBJS objects are built.
22849 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22850 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22852 LIBOBJS=$ac_libobjs
22854 LTLIBOBJS=$ac_ltlibobjs
22857 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22858 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22859 Usually this means the macro was only invoked conditionally." >&5
22860 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22861 Usually this means the macro was only invoked conditionally." >&2;}
22862 { (exit 1); exit 1; }; }
22864 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22865 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22866 Usually this means the macro was only invoked conditionally." >&5
22867 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22868 Usually this means the macro was only invoked conditionally." >&2;}
22869 { (exit 1); exit 1; }; }
22872 : ${CONFIG_STATUS=./config.status}
22873 ac_clean_files_save=$ac_clean_files
22874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22875 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22876 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22877 cat >$CONFIG_STATUS <<_ACEOF
22879 # Generated by $as_me.
22880 # Run this file to recreate the current configuration.
22881 # Compiler output produced by configure, useful for debugging
22882 # configure, is in config.log if it exists.
22885 ac_cs_recheck=false
22887 SHELL=\${CONFIG_SHELL-$SHELL}
22890 cat >>$CONFIG_STATUS <<\_ACEOF
22891 ## --------------------- ##
22892 ## M4sh Initialization. ##
22893 ## --------------------- ##
22895 # Be Bourne compatible
22896 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22899 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22900 # is contrary to our usage. Disable this feature.
22901 alias -g '${1+"$@"}'='"$@"'
22902 setopt NO_GLOB_SUBST
22904 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22906 BIN_SH=xpg4; export BIN_SH # for Tru64
22907 DUALCASE=1; export DUALCASE # for MKS sh
22911 # Avoid depending upon Character Ranges.
22912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22915 as_cr_digits='0123456789'
22916 as_cr_alnum=$as_cr_Letters$as_cr_digits
22918 # The user is always right.
22919 if test "${PATH_SEPARATOR+set}" != set; then
22920 echo "#! /bin/sh" >conf$$.sh
22921 echo "exit 0" >>conf$$.sh
22923 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22931 # Support unset when possible.
22932 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22940 # We need space, tab and new line, in precisely that order. Quoting is
22941 # there to prevent editors from complaining about space-tab.
22942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22943 # splitting by setting IFS to empty value.)
22948 # Find who we are. Look in the path if we contain no directory separator.
22950 *[\\/]* ) as_myself=$0 ;;
22951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22952 for as_dir in $PATH
22955 test -z "$as_dir" && as_dir=.
22956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22962 # We did not find ourselves, most probably we were run as `sh COMMAND'
22963 # in which case we are not to be found in the path.
22964 if test "x$as_myself" = x; then
22967 if test ! -f "$as_myself"; then
22968 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22969 { (exit 1); exit 1; }
22972 # Work around bugs in pre-3.0 UWIN ksh.
22973 for as_var in ENV MAIL MAILPATH
22974 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22982 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22983 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22984 LC_TELEPHONE LC_TIME
22986 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22987 eval $as_var=C; export $as_var
22989 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22993 # Required to use basename.
22994 if expr a : '\(a\)' >/dev/null 2>&1 &&
22995 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23001 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23002 as_basename=basename
23008 # Name of the executable.
23009 as_me=`$as_basename -- "$0" ||
23010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23011 X"$0" : 'X\(//\)$' \| \
23012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23014 sed '/^.*\/\([^/][^/]*\)\/*$/{
23033 as_lineno_1=$LINENO
23034 as_lineno_2=$LINENO
23035 test "x$as_lineno_1" != "x$as_lineno_2" &&
23036 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23038 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23039 # uniformly replaced by the line number. The first 'sed' inserts a
23040 # line-number line after each line using $LINENO; the second 'sed'
23041 # does the real work. The second script uses 'N' to pair each
23042 # line-number line with the line containing $LINENO, and appends
23043 # trailing '-' during substitution so that $LINENO is not a special
23044 # case at line end.
23045 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23046 # scripts with optimization help from Paolo Bonzini. Blame Lee
23047 # E. McMahon (1931-1989) for sed's syntax. :-)
23059 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23062 ' >$as_me.lineno &&
23063 chmod +x "$as_me.lineno" ||
23064 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23065 { (exit 1); exit 1; }; }
23067 # Don't try to exec as it changes $[0], causing all sort of problems
23068 # (the dirname of $[0] is not the place where we might find the
23069 # original and so on. Autoconf is especially sensitive to this).
23070 . "./$as_me.lineno"
23071 # Exit status is that of the last command.
23076 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23082 ECHO_C= ECHO_N= ECHO_T=
23083 case `echo -n x` in
23085 case `echo 'x\c'` in
23086 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23093 if expr a : '\(a\)' >/dev/null 2>&1 &&
23094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23100 rm -f conf$$ conf$$.exe conf$$.file
23101 if test -d conf$$.dir; then
23102 rm -f conf$$.dir/conf$$.file
23108 if ln -s conf$$.file conf$$ 2>/dev/null; then
23110 # ... but there are two gotchas:
23111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23113 # In both cases, we have to default to `cp -p'.
23114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23116 elif ln conf$$.file conf$$ 2>/dev/null; then
23121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23122 rmdir conf$$.dir 2>/dev/null
23124 if mkdir -p . 2>/dev/null; then
23127 test -d ./-p && rmdir ./-p
23131 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23132 # systems may use methods other than mode bits to determine executability.
23133 cat >conf$$.file <<_ASEOF
23137 chmod +x conf$$.file
23138 if test -x conf$$.file >/dev/null 2>&1; then
23139 as_executable_p="test -x"
23145 # Sed expression to map a string onto a valid CPP name.
23146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23148 # Sed expression to map a string onto a valid variable name.
23149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23154 # Save the log message, to keep $[0] and so on meaningful, and to
23155 # report actual input values of CONFIG_FILES etc. instead of their
23156 # values after options handling.
23158 This file was extended by LLVM $as_me 3.4svn, which was
23159 generated by GNU Autoconf 2.60. Invocation command line was
23161 CONFIG_FILES = $CONFIG_FILES
23162 CONFIG_HEADERS = $CONFIG_HEADERS
23163 CONFIG_LINKS = $CONFIG_LINKS
23164 CONFIG_COMMANDS = $CONFIG_COMMANDS
23167 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23172 cat >>$CONFIG_STATUS <<_ACEOF
23173 # Files that config.status was made for.
23174 config_files="$ac_config_files"
23175 config_headers="$ac_config_headers"
23176 config_commands="$ac_config_commands"
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23182 \`$as_me' instantiates files from templates according to the
23183 current configuration.
23185 Usage: $0 [OPTIONS] [FILE]...
23187 -h, --help print this help, then exit
23188 -V, --version print version number, then exit
23189 -q, --quiet do not print progress messages
23190 -d, --debug don't remove temporary files
23191 --recheck update $as_me by reconfiguring in the same conditions
23192 --file=FILE[:TEMPLATE]
23193 instantiate the configuration file FILE
23194 --header=FILE[:TEMPLATE]
23195 instantiate the configuration header FILE
23197 Configuration files:
23200 Configuration headers:
23203 Configuration commands:
23206 Report bugs to <bug-autoconf@gnu.org>."
23209 cat >>$CONFIG_STATUS <<_ACEOF
23211 LLVM config.status 3.4svn
23212 configured by $0, generated by GNU Autoconf 2.60,
23213 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23215 Copyright (C) 2006 Free Software Foundation, Inc.
23216 This config.status script is free software; the Free Software Foundation
23217 gives unlimited permission to copy, distribute and modify it."
23224 cat >>$CONFIG_STATUS <<\_ACEOF
23225 # If no file are specified by the user, then we need to provide default
23226 # value. By we need to know if files were specified by the user.
23232 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23244 # Handling of the options.
23245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23247 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23248 echo "$ac_cs_version"; exit ;;
23249 --debug | --debu | --deb | --de | --d | -d )
23251 --file | --fil | --fi | --f )
23253 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23254 ac_need_defaults=false;;
23255 --header | --heade | --head | --hea )
23257 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23258 ac_need_defaults=false;;
23260 # Conflict between --help and --header
23261 { echo "$as_me: error: ambiguous option: $1
23262 Try \`$0 --help' for more information." >&2
23263 { (exit 1); exit 1; }; };;
23264 --help | --hel | -h )
23265 echo "$ac_cs_usage"; exit ;;
23266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23267 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23270 # This is an error.
23271 -*) { echo "$as_me: error: unrecognized option: $1
23272 Try \`$0 --help' for more information." >&2
23273 { (exit 1); exit 1; }; } ;;
23275 *) ac_config_targets="$ac_config_targets $1"
23276 ac_need_defaults=false ;;
23282 ac_configure_extra_args=
23284 if $ac_cs_silent; then
23286 ac_configure_extra_args="$ac_configure_extra_args --silent"
23290 cat >>$CONFIG_STATUS <<_ACEOF
23291 if \$ac_cs_recheck; then
23292 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23293 CONFIG_SHELL=$SHELL
23294 export CONFIG_SHELL
23295 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23299 cat >>$CONFIG_STATUS <<\_ACEOF
23303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23304 ## Running $as_me. ##
23310 cat >>$CONFIG_STATUS <<_ACEOF
23314 llvm_src="${srcdir}"
23318 cat >>$CONFIG_STATUS <<\_ACEOF
23320 # Handling of arguments.
23321 for ac_config_target in $ac_config_targets
23323 case $ac_config_target in
23324 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23325 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23326 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23327 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23328 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23329 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23330 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23331 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23332 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23333 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23334 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23335 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23336 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23337 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23338 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23339 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23340 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23341 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23342 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23343 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23344 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23345 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23346 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23347 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23348 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23349 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23350 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23354 { (exit 1); exit 1; }; };;
23359 # If the user did not use the arguments to specify the items to instantiate,
23360 # then the envvar interface is used. Set only those that are not.
23361 # We use the long form for the default assignment because of an extremely
23362 # bizarre bug on SunOS 4.1.3.
23363 if $ac_need_defaults; then
23364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23366 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23369 # Have a temporary directory for convenience. Make it in the build tree
23370 # simply because there is no reason against having it here, and in addition,
23371 # creating and moving files from /tmp can sometimes cause problems.
23372 # Hook for its removal unless debugging.
23373 # Note that there is a small window in which the directory will not be cleaned:
23374 # after its creation but before its name has been assigned to `$tmp'.
23378 trap 'exit_status=$?
23379 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23381 trap '{ (exit 1); exit 1; }' 1 2 13 15
23383 # Create a (secure) tmp directory for tmp files.
23386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23387 test -n "$tmp" && test -d "$tmp"
23390 tmp=./conf$$-$RANDOM
23391 (umask 077 && mkdir "$tmp")
23394 echo "$me: cannot create a temporary directory in ." >&2
23395 { (exit 1); exit 1; }
23399 # Set up the sed scripts for CONFIG_FILES section.
23402 # No need to generate the scripts if there are no CONFIG_FILES.
23403 # This happens for instance when ./config.status config.h
23404 if test -n "$CONFIG_FILES"; then
23411 for ac_last_try in false false false false false :; do
23412 cat >conf$$subs.sed <<_ACEOF
23413 SHELL!$SHELL$ac_delim
23414 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23415 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23416 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23417 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23418 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23419 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23420 exec_prefix!$exec_prefix$ac_delim
23421 prefix!$prefix$ac_delim
23422 program_transform_name!$program_transform_name$ac_delim
23423 bindir!$bindir$ac_delim
23424 sbindir!$sbindir$ac_delim
23425 libexecdir!$libexecdir$ac_delim
23426 datarootdir!$datarootdir$ac_delim
23427 datadir!$datadir$ac_delim
23428 sysconfdir!$sysconfdir$ac_delim
23429 sharedstatedir!$sharedstatedir$ac_delim
23430 localstatedir!$localstatedir$ac_delim
23431 includedir!$includedir$ac_delim
23432 oldincludedir!$oldincludedir$ac_delim
23433 docdir!$docdir$ac_delim
23434 infodir!$infodir$ac_delim
23435 htmldir!$htmldir$ac_delim
23436 dvidir!$dvidir$ac_delim
23437 pdfdir!$pdfdir$ac_delim
23438 psdir!$psdir$ac_delim
23439 libdir!$libdir$ac_delim
23440 localedir!$localedir$ac_delim
23441 mandir!$mandir$ac_delim
23442 DEFS!$DEFS$ac_delim
23443 ECHO_C!$ECHO_C$ac_delim
23444 ECHO_N!$ECHO_N$ac_delim
23445 ECHO_T!$ECHO_T$ac_delim
23446 LIBS!$LIBS$ac_delim
23447 build_alias!$build_alias$ac_delim
23448 host_alias!$host_alias$ac_delim
23449 target_alias!$target_alias$ac_delim
23450 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23452 CFLAGS!$CFLAGS$ac_delim
23453 LDFLAGS!$LDFLAGS$ac_delim
23454 CPPFLAGS!$CPPFLAGS$ac_delim
23455 ac_ct_CC!$ac_ct_CC$ac_delim
23456 EXEEXT!$EXEEXT$ac_delim
23457 OBJEXT!$OBJEXT$ac_delim
23459 CXXFLAGS!$CXXFLAGS$ac_delim
23460 ac_ct_CXX!$ac_ct_CXX$ac_delim
23462 subdirs!$subdirs$ac_delim
23463 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23464 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23465 build!$build$ac_delim
23466 build_cpu!$build_cpu$ac_delim
23467 build_vendor!$build_vendor$ac_delim
23468 build_os!$build_os$ac_delim
23469 host!$host$ac_delim
23470 host_cpu!$host_cpu$ac_delim
23471 host_vendor!$host_vendor$ac_delim
23472 host_os!$host_os$ac_delim
23473 target!$target$ac_delim
23474 target_cpu!$target_cpu$ac_delim
23475 target_vendor!$target_vendor$ac_delim
23476 target_os!$target_os$ac_delim
23478 HOST_OS!$HOST_OS$ac_delim
23479 TARGET_OS!$TARGET_OS$ac_delim
23480 LINKALL!$LINKALL$ac_delim
23481 NOLINKALL!$NOLINKALL$ac_delim
23482 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23483 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23484 ARCH!$ARCH$ac_delim
23485 HOST_ARCH!$HOST_ARCH$ac_delim
23486 ENDIAN!$ENDIAN$ac_delim
23487 GREP!$GREP$ac_delim
23488 EGREP!$EGREP$ac_delim
23489 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23490 BUILD_CC!$BUILD_CC$ac_delim
23491 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23492 BUILD_CXX!$BUILD_CXX$ac_delim
23493 CVSBUILD!$CVSBUILD$ac_delim
23494 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23495 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23496 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23497 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23498 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23499 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23500 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23501 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23502 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23503 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23504 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23505 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23506 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23507 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23508 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23512 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23514 elif $ac_last_try; then
23515 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23517 { (exit 1); exit 1; }; }
23519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23524 if test -n "$ac_eof"; then
23525 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23526 ac_eof=`expr $ac_eof + 1`
23529 cat >>$CONFIG_STATUS <<_ACEOF
23530 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23535 s/^/s,@/; s/!/@,|#_!!_#|/
23538 s/'"$ac_delim"'$/,g/; t
23540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23541 ' >>$CONFIG_STATUS <conf$$subs.sed
23542 rm -f conf$$subs.sed
23543 cat >>$CONFIG_STATUS <<_ACEOF
23549 for ac_last_try in false false false false false :; do
23550 cat >conf$$subs.sed <<_ACEOF
23551 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23552 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23553 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23554 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23555 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23556 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23557 ENABLE_PIC!$ENABLE_PIC$ac_delim
23558 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23559 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23560 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23561 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
23562 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23563 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23564 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23565 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23566 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23567 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23568 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23569 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23570 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23571 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23572 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23574 ifGNUmake!$ifGNUmake$ac_delim
23575 LN_S!$LN_S$ac_delim
23578 DATE!$DATE$ac_delim
23579 FIND!$FIND$ac_delim
23580 MKDIR!$MKDIR$ac_delim
23582 RANLIB!$RANLIB$ac_delim
23587 BINPWD!$BINPWD$ac_delim
23588 GRAPHVIZ!$GRAPHVIZ$ac_delim
23591 NEATO!$NEATO$ac_delim
23592 TWOPI!$TWOPI$ac_delim
23593 CIRCO!$CIRCO$ac_delim
23595 DOTTY!$DOTTY$ac_delim
23596 XDOT!$XDOT$ac_delim
23597 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23598 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23599 INSTALL_DATA!$INSTALL_DATA$ac_delim
23600 BZIP2!$BZIP2$ac_delim
23602 DOXYGEN!$DOXYGEN$ac_delim
23603 GROFF!$GROFF$ac_delim
23604 GZIPBIN!$GZIPBIN$ac_delim
23605 PDFROFF!$PDFROFF$ac_delim
23607 OCAMLC!$OCAMLC$ac_delim
23608 OCAMLOPT!$OCAMLOPT$ac_delim
23609 OCAMLDEP!$OCAMLDEP$ac_delim
23610 OCAMLDOC!$OCAMLDOC$ac_delim
23612 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23613 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23614 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23615 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23616 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23617 LIBADD_DL!$LIBADD_DL$ac_delim
23618 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23619 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23620 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23621 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23622 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23623 PYTHON!$PYTHON$ac_delim
23624 USE_UDIS86!$USE_UDIS86$ac_delim
23625 USE_OPROFILE!$USE_OPROFILE$ac_delim
23626 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23627 XML2CONFIG!$XML2CONFIG$ac_delim
23628 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23629 LIBXML2_INC!$LIBXML2_INC$ac_delim
23630 CXXCPP!$CXXCPP$ac_delim
23631 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23632 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23633 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23634 MMAP_FILE!$MMAP_FILE$ac_delim
23635 SHLIBEXT!$SHLIBEXT$ac_delim
23636 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23637 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23638 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23639 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23640 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23641 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23642 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23643 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23644 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23645 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23646 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23647 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23650 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23652 elif $ac_last_try; then
23653 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23655 { (exit 1); exit 1; }; }
23657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23662 if test -n "$ac_eof"; then
23663 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23664 ac_eof=`expr $ac_eof + 1`
23667 cat >>$CONFIG_STATUS <<_ACEOF
23668 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23673 s/^/s,@/; s/!/@,|#_!!_#|/
23676 s/'"$ac_delim"'$/,g/; t
23678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23679 ' >>$CONFIG_STATUS <conf$$subs.sed
23680 rm -f conf$$subs.sed
23681 cat >>$CONFIG_STATUS <<_ACEOF
23687 for ac_last_try in false false false false false :; do
23688 cat >conf$$subs.sed <<_ACEOF
23689 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23690 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23691 RPATH!$RPATH$ac_delim
23692 RDYNAMIC!$RDYNAMIC$ac_delim
23693 program_prefix!$program_prefix$ac_delim
23694 LIBOBJS!$LIBOBJS$ac_delim
23695 LTLIBOBJS!$LTLIBOBJS$ac_delim
23698 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
23700 elif $ac_last_try; then
23701 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23703 { (exit 1); exit 1; }; }
23705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23710 if test -n "$ac_eof"; then
23711 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23712 ac_eof=`expr $ac_eof + 1`
23715 cat >>$CONFIG_STATUS <<_ACEOF
23716 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23721 s/^/s,@/; s/!/@,|#_!!_#|/
23724 s/'"$ac_delim"'$/,g/; t
23726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23727 ' >>$CONFIG_STATUS <conf$$subs.sed
23728 rm -f conf$$subs.sed
23729 cat >>$CONFIG_STATUS <<_ACEOF
23736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23738 # trailing colons and then remove the whole line if VPATH becomes empty
23739 # (actually we leave an empty line to preserve line numbers).
23740 if test "x$srcdir" = x.; then
23741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23742 s/:*\$(srcdir):*/:/
23743 s/:*\${srcdir}:*/:/
23745 s/^\([^=]*=[ ]*\):*/\1/
23751 cat >>$CONFIG_STATUS <<\_ACEOF
23752 fi # test -n "$CONFIG_FILES"
23755 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23758 :[FHLC]) ac_mode=$ac_tag; continue;;
23760 case $ac_mode$ac_tag in
23762 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23764 { (exit 1); exit 1; }; };;
23765 :[FH]-) ac_tag=-:-;;
23766 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23783 -) ac_f="$tmp/stdin";;
23784 *) # Look for the file first in the build tree, then in the source tree
23785 # (if the path is not absolute). The absolute path cannot be DOS-style,
23786 # because $ac_f cannot contain `:'.
23790 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23792 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23794 { (exit 1); exit 1; }; };;
23796 ac_file_inputs="$ac_file_inputs $ac_f"
23799 # Let's still pretend it is `configure' which instantiates (i.e., don't
23800 # use $as_me), people would be surprised to read:
23801 # /* config.h. Generated by config.status. */
23802 configure_input="Generated from "`IFS=:
23803 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23804 if test x"$ac_file" != x-; then
23805 configure_input="$ac_file. $configure_input"
23806 { echo "$as_me:$LINENO: creating $ac_file" >&5
23807 echo "$as_me: creating $ac_file" >&6;}
23811 *:-:* | *:-) cat >"$tmp/stdin";;
23816 ac_dir=`$as_dirname -- "$ac_file" ||
23817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23818 X"$ac_file" : 'X\(//\)[^/]' \| \
23819 X"$ac_file" : 'X\(//\)$' \| \
23820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23826 /^X\(\/\/\)[^/].*/{
23841 -*) as_dir=./$as_dir;;
23843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23848 *) as_qdir=$as_dir;;
23850 as_dirs="'$as_qdir' $as_dirs"
23851 as_dir=`$as_dirname -- "$as_dir" ||
23852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23853 X"$as_dir" : 'X\(//\)[^/]' \| \
23854 X"$as_dir" : 'X\(//\)$' \| \
23855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23861 /^X\(\/\/\)[^/].*/{
23874 test -d "$as_dir" && break
23876 test -z "$as_dirs" || eval "mkdir $as_dirs"
23877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23879 { (exit 1); exit 1; }; }; }
23883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23886 # A ".." for each directory in $ac_dir_suffix.
23887 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23888 case $ac_top_builddir_sub in
23889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23893 ac_abs_top_builddir=$ac_pwd
23894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23895 # for backward compatibility:
23896 ac_top_builddir=$ac_top_build_prefix
23899 .) # We are building in place.
23901 ac_top_srcdir=$ac_top_builddir_sub
23902 ac_abs_top_srcdir=$ac_pwd ;;
23903 [\\/]* | ?:[\\/]* ) # Absolute name.
23904 ac_srcdir=$srcdir$ac_dir_suffix;
23905 ac_top_srcdir=$srcdir
23906 ac_abs_top_srcdir=$srcdir ;;
23907 *) # Relative name.
23908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23909 ac_top_srcdir=$ac_top_build_prefix$srcdir
23910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23927 cat >>$CONFIG_STATUS <<\_ACEOF
23928 # If the template does not know about datarootdir, expand it.
23929 # FIXME: This hack should be removed a few years after 2.60.
23930 ac_datarootdir_hack=; ac_datarootdir_seen=
23932 case `sed -n '/datarootdir/ {
23941 ' $ac_file_inputs` in
23942 *datarootdir*) ac_datarootdir_seen=yes;;
23943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23944 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23945 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23947 cat >>$CONFIG_STATUS <<_ACEOF
23948 ac_datarootdir_hack='
23949 s&@datadir@&$datadir&g
23950 s&@docdir@&$docdir&g
23951 s&@infodir@&$infodir&g
23952 s&@localedir@&$localedir&g
23953 s&@mandir@&$mandir&g
23954 s&\\\${datarootdir}&$datarootdir&g' ;;
23958 # Neutralize VPATH when `$srcdir' = `.'.
23959 # Shell code in configure.ac might set extrasub.
23960 # FIXME: do we really want to maintain this feature?
23961 cat >>$CONFIG_STATUS <<_ACEOF
23965 cat >>$CONFIG_STATUS <<\_ACEOF
23967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23968 s&@configure_input@&$configure_input&;t t
23969 s&@top_builddir@&$ac_top_builddir_sub&;t t
23970 s&@srcdir@&$ac_srcdir&;t t
23971 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23972 s&@top_srcdir@&$ac_top_srcdir&;t t
23973 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23974 s&@builddir@&$ac_builddir&;t t
23975 s&@abs_builddir@&$ac_abs_builddir&;t t
23976 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23977 s&@INSTALL@&$ac_INSTALL&;t t
23978 $ac_datarootdir_hack
23979 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23982 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23984 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23985 which seems to be undefined. Please make sure it is defined." >&5
23986 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23987 which seems to be undefined. Please make sure it is defined." >&2;}
23991 -) cat "$tmp/out"; rm -f "$tmp/out";;
23992 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24001 # Transform confdefs.h into a sed script `conftest.defines', that
24002 # substitutes the proper values into config.h.in to produce config.h.
24003 rm -f conftest.defines conftest.tail
24004 # First, append a space to every undef/define line, to ease matching.
24005 echo 's/$/ /' >conftest.defines
24006 # Then, protect against being on the right side of a sed subst, or in
24007 # an unquoted here document, in config.status. If some macros were
24008 # called several times there might be several #defines for the same
24009 # symbol, which is useless. But do not sort them, since the last
24010 # AC_DEFINE must be honored.
24011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24012 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24013 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24014 # PARAMS is the parameter list in the macro definition--in most cases, it's
24015 # just an empty string.
24016 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24017 ac_dB='\\)[ (].*,\\1define\\2'
24025 s/^[ ]*#[ ]*define[ ][ ]*//
24030 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24031 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24032 ' >>conftest.defines
24034 # Remove the space that was appended to ease matching.
24035 # Then replace #undef with comments. This is necessary, for
24036 # example, in the case of _POSIX_SOURCE, which is predefined and required
24037 # on some systems where configure will not decide to define it.
24038 # (The regexp can be short, since the line contains either #define or #undef.)
24040 s,^[ #]*u.*,/* & */,' >>conftest.defines
24042 # Break up conftest.defines:
24043 ac_max_sed_lines=50
24045 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24046 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24047 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24049 ac_in='$ac_file_inputs'
24050 ac_out='"$tmp/out1"'
24051 ac_nxt='"$tmp/out2"'
24055 # Write a here document:
24056 cat >>$CONFIG_STATUS <<_ACEOF
24057 # First, check the format of the line:
24058 cat >"\$tmp/defines.sed" <<\\CEOF
24059 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24060 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24064 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24066 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24067 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24068 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24069 grep . conftest.tail >/dev/null || break
24070 rm -f conftest.defines
24071 mv conftest.tail conftest.defines
24073 rm -f conftest.defines conftest.tail
24075 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24076 cat >>$CONFIG_STATUS <<\_ACEOF
24077 if test x"$ac_file" != x-; then
24078 echo "/* $configure_input */" >"$tmp/config.h"
24079 cat "$ac_result" >>"$tmp/config.h"
24080 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24081 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24082 echo "$as_me: $ac_file is unchanged" >&6;}
24085 mv "$tmp/config.h" $ac_file
24088 echo "/* $configure_input */"
24094 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24095 echo "$as_me: executing $ac_file commands" >&6;}
24100 case $ac_file$ac_mode in
24101 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24102 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24103 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24104 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24105 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24106 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24107 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24108 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24109 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24110 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
24111 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24112 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24113 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24114 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24115 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24116 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24117 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24118 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24119 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24120 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24121 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24122 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24123 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24124 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24125 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24126 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24132 { (exit 0); exit 0; }
24134 chmod +x $CONFIG_STATUS
24135 ac_clean_files=$ac_clean_files_save
24138 # configure is writing to config.log, and then calls config.status.
24139 # config.status does its own redirection, appending to config.log.
24140 # Unfortunately, on DOS this fails, as config.log is still kept open
24141 # by configure, so config.status won't be able to write to it; its
24142 # output is simply discarded. So we exec the FD to /dev/null,
24143 # effectively closing config.log, so it can be properly (re)opened and
24144 # appended to by config.status. When coming back to configure, we
24145 # need to make the FD available again.
24146 if test "$no_create" != yes; then
24148 ac_config_status_args=
24149 test "$silent" = yes &&
24150 ac_config_status_args="$ac_config_status_args --quiet"
24152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24155 # would make configure fail if this is the last instruction.
24156 $ac_cs_success || { (exit 1); exit 1; }
24160 # CONFIG_SUBDIRS section.
24162 if test "$no_recursion" != yes; then
24164 # Remove --cache-file and --srcdir arguments so they do not pile up.
24165 ac_sub_configure_args=
24167 eval "set x $ac_configure_args"
24171 if test -n "$ac_prev"; then
24176 -cache-file | --cache-file | --cache-fil | --cache-fi \
24177 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24178 ac_prev=cache_file ;;
24179 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24180 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24183 --config-cache | -C)
24185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24195 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24197 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24201 # Always prepend --prefix to ensure using the same prefix
24202 # in subdir configurations.
24203 ac_arg="--prefix=$prefix"
24205 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24207 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24210 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24212 # Do not complain, so a configure script can configure whichever
24213 # parts of a large source tree are present.
24214 test -d "$srcdir/$ac_dir" || continue
24216 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24217 echo "$as_me:$LINENO: $ac_msg" >&5
24221 -*) as_dir=./$as_dir;;
24223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24228 *) as_qdir=$as_dir;;
24230 as_dirs="'$as_qdir' $as_dirs"
24231 as_dir=`$as_dirname -- "$as_dir" ||
24232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24233 X"$as_dir" : 'X\(//\)[^/]' \| \
24234 X"$as_dir" : 'X\(//\)$' \| \
24235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24241 /^X\(\/\/\)[^/].*/{
24254 test -d "$as_dir" && break
24256 test -z "$as_dirs" || eval "mkdir $as_dirs"
24257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24259 { (exit 1); exit 1; }; }; }
24263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24265 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24266 # A ".." for each directory in $ac_dir_suffix.
24267 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24268 case $ac_top_builddir_sub in
24269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24273 ac_abs_top_builddir=$ac_pwd
24274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24275 # for backward compatibility:
24276 ac_top_builddir=$ac_top_build_prefix
24279 .) # We are building in place.
24281 ac_top_srcdir=$ac_top_builddir_sub
24282 ac_abs_top_srcdir=$ac_pwd ;;
24283 [\\/]* | ?:[\\/]* ) # Absolute name.
24284 ac_srcdir=$srcdir$ac_dir_suffix;
24285 ac_top_srcdir=$srcdir
24286 ac_abs_top_srcdir=$srcdir ;;
24287 *) # Relative name.
24288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24289 ac_top_srcdir=$ac_top_build_prefix$srcdir
24290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24297 # Check for guested configure; otherwise get Cygnus style configure.
24298 if test -f "$ac_srcdir/configure.gnu"; then
24299 ac_sub_configure=$ac_srcdir/configure.gnu
24300 elif test -f "$ac_srcdir/configure"; then
24301 ac_sub_configure=$ac_srcdir/configure
24302 elif test -f "$ac_srcdir/configure.in"; then
24303 # This should be Cygnus configure.
24304 ac_sub_configure=$ac_aux_dir/configure
24306 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24307 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24311 # The recursion is here.
24312 if test -n "$ac_sub_configure"; then
24313 # Make the cache file name correct relative to the subdirectory.
24314 case $cache_file in
24315 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24316 *) # Relative name.
24317 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24320 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24321 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24322 # The eval makes quoting arguments work.
24323 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24324 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24325 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24326 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24327 { (exit 1); exit 1; }; }