2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
5 # Report bugs to <http://llvm.org/bugs/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
761 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
816 ac_subdirs_all='projects/llvm-gcc
820 projects/llvm-poolalloc
823 projects/llvm-stacker
831 # Initialize some variables set by options.
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-libcpp Use libc++ if available (default is NO)
1406 --enable-cxx11 Use c++11 if available (default is NO)
1407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1416 --enable-werror Compile with -Werror enabled (default is NO)
1417 --enable-expensive-checks
1418 Compile with expensive debug checks enabled (default
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
1424 --enable-keep-symbols Do not strip installed executables)
1425 --enable-jit Enable Just In Time Compiling (default is YES)
1426 --enable-docs Build documents (default is YES)
1427 --enable-doxygen Build doxygen documentation (default is NO)
1428 --enable-threads Use threads if available (default is YES)
1429 --enable-pthreads Use pthreads if available (default is YES)
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, and cpp (default=all)
1444 --enable-experimental-targets
1445 Build experimental host targets: disable or
1446 target1,target2,... (default=disable)
1447 --enable-bindings Build specific language bindings:
1448 all,auto,none,{binding-name} (default=auto)
1449 --enable-libffi Check for the presence of libffi (default is NO)
1450 --enable-ltdl-install install libltdl
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1478 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 LLVM configure 3.3svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.3svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MAJOR 3
1931 cat >>confdefs.h <<\_ACEOF
1932 #define LLVM_VERSION_MINOR 3
1936 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945 for ac_dir in autoconf "$srcdir"/autoconf; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 if test ${srcdir} != "." ; then
1977 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980 { (exit 1); exit 1; }; }
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990 for ac_prog in clang llvm-gcc gcc
1992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1993 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 if test -n "$CC"; then
2000 ac_cv_prog_CC="$CC" # Let the user override the test.
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2009 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test -n "$CC"; then
2021 { echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6; }
2024 { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2029 test -n "$CC" && break
2032 if test -z "$CC"; then
2034 for ac_prog in clang llvm-gcc gcc
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_ac_ct_CC="$ac_prog"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2073 test -n "$ac_ct_CC" && break
2076 if test "x$ac_ct_CC" = x; then
2079 case $cross_compiling:$ac_tool_warned in
2081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2082 whose name does not start with the host triplet. If you think this
2083 configuration is useful to you, please write to autoconf@gnu.org." >&5
2084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2085 whose name does not start with the host triplet. If you think this
2086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2087 ac_tool_warned=yes ;;
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO: checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (ac_try="$ac_compiler --version >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler --version >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (ac_try="$ac_compiler -v >&5"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -v >&5") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123 { (ac_try="$ac_compiler -V >&5"
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2129 (eval "$ac_compiler -V >&5") 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }
2134 cat >conftest.$ac_ext <<_ACEOF
2137 cat confdefs.h >>conftest.$ac_ext
2138 cat >>conftest.$ac_ext <<_ACEOF
2139 /* end confdefs.h. */
2149 ac_clean_files_save=$ac_clean_files
2150 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151 # Try to create an executable without -o first, disregard a.out.
2152 # It will help us diagnose broken compilers, and finding out an intuition
2154 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2155 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2156 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158 # List of possible output files, starting from the most likely.
2159 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2160 # only as a last resort. b.out is created by i960 compilers.
2161 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2163 # The IRIX 6 linker writes into existing files which may not be
2164 # executable, retaining their permissions. Remove them first so a
2165 # subsequent execution test works.
2167 for ac_file in $ac_files
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2171 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2176 if { (ac_try="$ac_link_default"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_link_default") 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2187 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2188 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2189 # so that the user can short-circuit this test for compilers unknown to
2191 for ac_file in $ac_files
2193 test -f "$ac_file" || continue
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2198 # We found the default executable, but exeext='' is most
2202 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206 # We set ac_cv_exeext here because the later test for it is not
2207 # safe: cross compilers may not add the suffix if given an `-o'
2208 # argument, so we may need to know it at that point already.
2209 # Even if this section looks crufty: it has the advantage of
2216 test "$ac_cv_exeext" = no && ac_cv_exeext=
2219 echo "$as_me: failed program was:" >&5
2220 sed 's/^/| /' conftest.$ac_ext >&5
2222 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2223 See \`config.log' for more details." >&5
2224 echo "$as_me: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&2;}
2226 { (exit 77); exit 77; }; }
2229 ac_exeext=$ac_cv_exeext
2230 { echo "$as_me:$LINENO: result: $ac_file" >&5
2231 echo "${ECHO_T}$ac_file" >&6; }
2233 # Check that the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240 if { ac_try='./$ac_file'
2241 { (case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2246 (eval "$ac_try") 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 if test "$cross_compiling" = maybe; then
2255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check that the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6; }
2277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2279 if { (ac_try="$ac_link"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_link") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2291 # work properly (i.e., refer to `conftest.exe'), while it won't with
2293 for ac_file in conftest.exe conftest conftest.*; do
2294 test -f "$ac_file" || continue
2296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2310 rm -f conftest$ac_cv_exeext
2311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2319 if test "${ac_cv_objext+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.o conftest.obj
2338 if { (ac_try="$ac_compile"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compile") 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file in conftest.o conftest.obj conftest.*; do
2349 test -f "$ac_file" || continue;
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&2;}
2364 { (exit 1); exit 1; }; }
2367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2370 echo "${ECHO_T}$ac_cv_objext" >&6; }
2371 OBJEXT=$ac_cv_objext
2373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (ac_try="$ac_compile"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compile") 2>conftest.er1
2405 grep -v '^ *+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (case "(($ac_try" in
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_try") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2444 GCC=`test $ac_compiler_gnu = yes && echo yes`
2445 ac_test_CFLAGS=${CFLAGS+set}
2446 ac_save_CFLAGS=$CFLAGS
2447 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_cc_g+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 ac_save_c_werror_flag=$ac_c_werror_flag
2453 ac_c_werror_flag=yes
2456 cat >conftest.$ac_ext <<_ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compile") 2>conftest.er1
2480 grep -v '^ *+' conftest.er1 >conftest.err
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } &&
2485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; }; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_compile") 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_try") 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 ac_c_werror_flag=$ac_save_c_werror_flag
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>conftest.er1
2591 grep -v '^ *+' conftest.er1 >conftest.err
2593 cat conftest.err >&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); } &&
2596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2612 (eval "$ac_try") 2>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631 ac_c_werror_flag=$ac_save_c_werror_flag
2633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2635 if test "$ac_test_CFLAGS" = set; then
2636 CFLAGS=$ac_save_CFLAGS
2637 elif test $ac_cv_prog_cc_g = yes; then
2638 if test "$GCC" = yes; then
2644 if test "$GCC" = yes; then
2650 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2651 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_cc_c89+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 ac_cv_prog_cc_c89=no
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 #include <sys/types.h>
2666 #include <sys/stat.h>
2667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2668 struct buf { int x; };
2669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2670 static char *e (p, i)
2676 static char *f (char * (*g) (char **, int), char **p, ...)
2681 s = g (p, va_arg (v,int));
2686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2687 function prototypes and stuff, but not '\xHH' hex character constants.
2688 These don't provoke an error unfortunately, instead are silently treated
2689 as 'x'. The following induces an error, until -std is added to get
2690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2691 array size at least. It's necessary to write '\x00'==0 to get something
2692 that's true only with -std. */
2693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2696 inside strings and character constants. */
2698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2717 CC="$ac_save_CC $ac_arg"
2718 rm -f conftest.$ac_objext
2719 if { (ac_try="$ac_compile"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1 >conftest.err
2729 cat conftest.err >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; } &&
2742 { ac_try='test -s conftest.$ac_objext'
2743 { (case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_try") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 ac_cv_prog_cc_c89=$ac_arg
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f core conftest.err conftest.$ac_objext
2761 test "x$ac_cv_prog_cc_c89" != "xno" && break
2763 rm -f conftest.$ac_ext
2768 case "x$ac_cv_prog_cc_c89" in
2770 { echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6; } ;;
2773 { echo "$as_me:$LINENO: result: unsupported" >&5
2774 echo "${ECHO_T}unsupported" >&6; } ;;
2776 CC="$CC $ac_cv_prog_cc_c89"
2777 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2778 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2789 ac_cpp='$CXXCPP $CPPFLAGS'
2790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2793 if test -z "$CXX"; then
2794 if test -n "$CCC"; then
2797 if test -n "$ac_tool_prefix"; then
2798 for ac_prog in clang++ llvm-g++ g++
2800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2804 if test "${ac_cv_prog_CXX+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$CXX"; then
2808 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$CXX"; then
2829 { echo "$as_me:$LINENO: result: $CXX" >&5
2830 echo "${ECHO_T}$CXX" >&6; }
2832 { echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6; }
2837 test -n "$CXX" && break
2840 if test -z "$CXX"; then
2842 for ac_prog in clang++ llvm-g++ g++
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2848 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 if test -n "$ac_ct_CXX"; then
2852 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CXX="$ac_prog"
2862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2872 if test -n "$ac_ct_CXX"; then
2873 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2874 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2876 { echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6; }
2881 test -n "$ac_ct_CXX" && break
2884 if test "x$ac_ct_CXX" = x; then
2887 case $cross_compiling:$ac_tool_warned in
2889 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to autoconf@gnu.org." >&5
2892 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet. If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2895 ac_tool_warned=yes ;;
2903 # Provide some information about the compiler.
2904 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2905 ac_compiler=`set X $ac_compile; echo $2`
2906 { (ac_try="$ac_compiler --version >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler --version >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -v >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -V >&5"
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932 (eval "$ac_compiler -V >&5") 2>&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3006 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3008 GXX=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CXXFLAGS=${CXXFLAGS+set}
3010 ac_save_CXXFLAGS=$CXXFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3012 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cxx_g+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3017 ac_cxx_werror_flag=yes
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_cv_prog_cxx_g=yes
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_prog_cxx_g=yes
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3199 if test "$ac_test_CXXFLAGS" = set; then
3200 CXXFLAGS=$ac_save_CXXFLAGS
3201 elif test $ac_cv_prog_cxx_g = yes; then
3202 if test "$GXX" = yes; then
3208 if test "$GXX" = yes; then
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3226 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3227 # On Suns, sometimes $CPP names a directory.
3228 if test -n "$CPP" && test -d "$CPP"; then
3231 if test -z "$CPP"; then
3232 if test "${ac_cv_prog_CPP+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 # Double quotes because CPP needs to be expanded
3236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239 for ac_c_preproc_warn_flag in '' yes
3241 # Use a header file that comes with gcc, so configuring glibc
3242 # with a fresh cross-compiler works.
3243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3244 # <limits.h> exists even on freestanding compilers.
3245 # On the NeXT, cc -E runs the code through the compiler's parser,
3246 # not just through cpp. "Syntax error" is here to catch this case.
3247 cat >conftest.$ac_ext <<_ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 # include <limits.h>
3256 # include <assert.h>
3260 if { (ac_try="$ac_cpp conftest.$ac_ext"
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev/null; then
3273 if test -s conftest.err; then
3274 ac_cpp_err=$ac_c_preproc_warn_flag
3275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3282 if test -z "$ac_cpp_err"; then
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3288 # Broken: fails on valid input.
3292 rm -f conftest.err conftest.$ac_ext
3294 # OK, works on sane cases. Now check whether nonexistent headers
3295 # can be detected and how.
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3302 #include <ac_nonexistent.h>
3304 if { (ac_try="$ac_cpp conftest.$ac_ext"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3312 grep -v '^ *+' conftest.er1 >conftest.err
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } >/dev/null; then
3317 if test -s conftest.err; then
3318 ac_cpp_err=$ac_c_preproc_warn_flag
3319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326 if test -z "$ac_cpp_err"; then
3327 # Broken: success on invalid input.
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Passes both tests.
3338 rm -f conftest.err conftest.$ac_ext
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 # Broken: fails on valid input.
3411 rm -f conftest.err conftest.$ac_ext
3413 # OK, works on sane cases. Now check whether nonexistent headers
3414 # can be detected and how.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include <ac_nonexistent.h>
3423 if { (ac_try="$ac_cpp conftest.$ac_ext"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } >/dev/null; then
3436 if test -s conftest.err; then
3437 ac_cpp_err=$ac_c_preproc_warn_flag
3438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 if test -z "$ac_cpp_err"; then
3446 # Broken: success on invalid input.
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 # Passes both tests.
3457 rm -f conftest.err conftest.$ac_ext
3460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3461 rm -f conftest.err conftest.$ac_ext
3462 if $ac_preproc_ok; then
3465 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3466 See \`config.log' for more details." >&5
3467 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&2;}
3469 { (exit 1); exit 1; }; }
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 if test "$CXX" = "clang++" ; then
3480 { echo "$as_me:$LINENO: checking whether clang works" >&5
3481 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3483 ac_cpp='$CXXCPP $CPPFLAGS'
3484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3489 cat >conftest.$ac_ext <<_ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3496 #if __has_include (<cxxabi.h>)
3499 #if __has_include (<unwind.h>)
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compile") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } &&
3525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3526 { (case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_try") 2>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_try") 2>&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3546 { echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6; }
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3554 { echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6; }
3556 { { 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
3557 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;}
3558 { (exit 1); exit 1; }; }
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -d ${srcdir}/projects/llvm-gcc ; then
3574 subdirs="$subdirs projects/llvm-gcc"
3578 if test -d ${srcdir}/projects/test-suite ; then
3579 subdirs="$subdirs projects/test-suite"
3583 if test -d ${srcdir}/projects/llvm-test ; then
3584 subdirs="$subdirs projects/llvm-test"
3588 if test -d ${srcdir}/projects/poolalloc ; then
3589 subdirs="$subdirs projects/poolalloc"
3593 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3594 subdirs="$subdirs projects/llvm-poolalloc"
3598 for i in `ls ${srcdir}/projects`
3600 if test -d ${srcdir}/projects/${i} ; then
3602 sample) subdirs="$subdirs projects/sample"
3604 privbracket) subdirs="$subdirs projects/privbracket"
3606 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3608 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3610 llvm-java) subdirs="$subdirs projects/llvm-java"
3612 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3614 safecode) subdirs="$subdirs projects/safecode"
3616 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3625 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3626 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3632 # Check whether --enable-polly was given.
3633 if test "${enable_polly+set}" = set; then
3634 enableval=$enable_polly;
3639 case "$enableval" in
3644 default) ENABLE_POLLY=1
3646 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3647 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3648 { (exit 1); exit 1; }; } ;;
3652 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3655 subdirs="$subdirs tools/polly"
3660 # Make sure we can run config.sub.
3661 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3662 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3663 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3664 { (exit 1); exit 1; }; }
3666 { echo "$as_me:$LINENO: checking build system type" >&5
3667 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3668 if test "${ac_cv_build+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_build_alias=$build_alias
3672 test "x$ac_build_alias" = x &&
3673 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3674 test "x$ac_build_alias" = x &&
3675 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3676 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3677 { (exit 1); exit 1; }; }
3678 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3679 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3680 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3681 { (exit 1); exit 1; }; }
3684 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3685 echo "${ECHO_T}$ac_cv_build" >&6; }
3686 case $ac_cv_build in
3688 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3689 echo "$as_me: error: invalid value of canonical build" >&2;}
3690 { (exit 1); exit 1; }; };;
3693 ac_save_IFS=$IFS; IFS='-'
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706 { echo "$as_me:$LINENO: checking host system type" >&5
3707 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3708 if test "${ac_cv_host+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 if test "x$host_alias" = x; then
3712 ac_cv_host=$ac_cv_build
3714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3715 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3716 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3717 { (exit 1); exit 1; }; }
3721 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3722 echo "${ECHO_T}$ac_cv_host" >&6; }
3725 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3726 echo "$as_me: error: invalid value of canonical host" >&2;}
3727 { (exit 1); exit 1; }; };;
3730 ac_save_IFS=$IFS; IFS='-'
3736 # Remember, the first character of IFS is used to create $*,
3737 # except with old shells:
3740 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3743 { echo "$as_me:$LINENO: checking target system type" >&5
3744 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3745 if test "${ac_cv_target+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 if test "x$target_alias" = x; then
3749 ac_cv_target=$ac_cv_host
3751 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3752 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3753 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3754 { (exit 1); exit 1; }; }
3758 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3759 echo "${ECHO_T}$ac_cv_target" >&6; }
3760 case $ac_cv_target in
3762 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3763 echo "$as_me: error: invalid value of canonical target" >&2;}
3764 { (exit 1); exit 1; }; };;
3766 target=$ac_cv_target
3767 ac_save_IFS=$IFS; IFS='-'
3773 # Remember, the first character of IFS is used to create $*,
3774 # except with old shells:
3777 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3780 # The aliases save the names the user supplied, while $host etc.
3781 # will get canonicalized.
3782 test -n "$target_alias" &&
3783 test "$program_prefix$program_suffix$program_transform_name" = \
3785 program_prefix=${target_alias}-
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3788 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3789 if test "${llvm_cv_os_type+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 llvm_cv_link_all_option="-Wl,--whole-archive"
3795 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3796 llvm_cv_os_type="AIX"
3797 llvm_cv_platform_type="Unix" ;;
3799 llvm_cv_link_all_option="-Wl,--whole-archive"
3800 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3801 llvm_cv_os_type="IRIX"
3802 llvm_cv_platform_type="Unix" ;;
3804 llvm_cv_link_all_option="-Wl,--whole-archive"
3805 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3806 llvm_cv_os_type="Cygwin"
3807 llvm_cv_platform_type="Unix" ;;
3809 llvm_cv_link_all_option="-Wl,-all_load"
3810 llvm_cv_no_link_all_option="-Wl,-noall_load"
3811 llvm_cv_os_type="Darwin"
3812 llvm_cv_platform_type="Unix" ;;
3814 llvm_cv_link_all_option="-Wl,-all_load"
3815 llvm_cv_no_link_all_option="-Wl,-noall_load"
3816 llvm_cv_os_type="Minix"
3817 llvm_cv_platform_type="Unix" ;;
3818 *-*-freebsd* | *-*-kfreebsd-gnu)
3819 llvm_cv_link_all_option="-Wl,--whole-archive"
3820 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3821 llvm_cv_os_type="FreeBSD"
3822 llvm_cv_platform_type="Unix" ;;
3824 llvm_cv_link_all_option="-Wl,--whole-archive"
3825 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3826 llvm_cv_os_type="OpenBSD"
3827 llvm_cv_platform_type="Unix" ;;
3829 llvm_cv_link_all_option="-Wl,--whole-archive"
3830 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3831 llvm_cv_os_type="NetBSD"
3832 llvm_cv_platform_type="Unix" ;;
3834 llvm_cv_link_all_option="-Wl,--whole-archive"
3835 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3836 llvm_cv_os_type="DragonFly"
3837 llvm_cv_platform_type="Unix" ;;
3839 llvm_cv_link_all_option="-Wl,--whole-archive"
3840 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3841 llvm_cv_os_type="HP-UX"
3842 llvm_cv_platform_type="Unix" ;;
3844 llvm_cv_link_all_option="-Wl,--whole-archive"
3845 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3846 llvm_cv_os_type="Interix"
3847 llvm_cv_platform_type="Unix" ;;
3849 llvm_cv_link_all_option="-Wl,--whole-archive"
3850 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3851 llvm_cv_os_type="Linux"
3852 llvm_cv_platform_type="Unix" ;;
3854 llvm_cv_link_all_option="-Wl,--whole-archive"
3855 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3856 llvm_cv_os_type="GNU"
3857 llvm_cv_platform_type="Unix" ;;
3859 llvm_cv_link_all_option="-Wl,-z,allextract"
3860 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3861 llvm_cv_os_type="SunOS"
3862 llvm_cv_platform_type="Unix" ;;
3864 llvm_cv_link_all_option="-Wl,-z,allextract"
3865 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3866 llvm_cv_os_type="AuroraUX"
3867 llvm_cv_platform_type="Unix" ;;
3869 llvm_cv_link_all_option="-Wl,--whole-archive"
3870 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3871 llvm_cv_os_type="Win32"
3872 llvm_cv_platform_type="Win32" ;;
3874 llvm_cv_link_all_option="-Wl,--whole-archive"
3875 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3876 llvm_cv_os_type="MingW"
3877 llvm_cv_platform_type="Win32" ;;
3879 llvm_cv_link_all_option="-Wl,--whole-archive"
3880 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3881 llvm_cv_os_type="Haiku"
3882 llvm_cv_platform_type="Unix" ;;
3884 llvm_cv_link_all_option="-Wl,--whole-archive"
3885 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3886 llvm_cv_os_type="Freestanding"
3887 llvm_cv_platform_type="Unix" ;;
3889 llvm_cv_link_all_option="-Wl,--whole-archive"
3890 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3891 llvm_cv_os_type="Freestanding"
3892 llvm_cv_platform_type="Unix" ;;
3894 llvm_cv_link_all_option=""
3895 llvm_cv_no_link_all_option=""
3896 llvm_cv_os_type="Unknown"
3897 llvm_cv_platform_type="Unknown" ;;
3900 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3901 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3903 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3904 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3905 if test "${llvm_cv_target_os_type+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 llvm_cv_target_os_type="AIX" ;;
3912 llvm_cv_target_os_type="IRIX" ;;
3914 llvm_cv_target_os_type="Cygwin" ;;
3916 llvm_cv_target_os_type="Darwin" ;;
3918 llvm_cv_target_os_type="Minix" ;;
3919 *-*-freebsd* | *-*-kfreebsd-gnu)
3920 llvm_cv_target_os_type="FreeBSD" ;;
3922 llvm_cv_target_os_type="OpenBSD" ;;
3924 llvm_cv_target_os_type="NetBSD" ;;
3926 llvm_cv_target_os_type="DragonFly" ;;
3928 llvm_cv_target_os_type="HP-UX" ;;
3930 llvm_cv_target_os_type="Interix" ;;
3932 llvm_cv_target_os_type="Linux" ;;
3934 llvm_cv_target_os_type="GNU" ;;
3936 llvm_cv_target_os_type="SunOS" ;;
3938 llvm_cv_target_os_type="AuroraUX" ;;
3940 llvm_cv_target_os_type="Win32" ;;
3942 llvm_cv_target_os_type="MingW" ;;
3944 llvm_cv_target_os_type="Haiku" ;;
3946 llvm_cv_target_os_type="RTEMS" ;;
3948 llvm_cv_target_os_type="NativeClient" ;;
3950 llvm_cv_target_os_type="Freestanding" ;;
3952 llvm_cv_target_os_type="Unknown" ;;
3955 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3956 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3958 if test "$llvm_cv_os_type" = "Unknown" ; then
3959 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3960 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3961 { (exit 1); exit 1; }; }
3966 HOST_OS=$llvm_cv_os_type
3968 TARGET_OS=$llvm_cv_target_os_type
3971 LINKALL=$llvm_cv_link_all_option
3973 NOLINKALL=$llvm_cv_no_link_all_option
3976 case $llvm_cv_platform_type in
3979 cat >>confdefs.h <<\_ACEOF
3980 #define LLVM_ON_UNIX 1
3990 cat >>confdefs.h <<\_ACEOF
3991 #define LLVM_ON_WIN32 1
4001 { echo "$as_me:$LINENO: checking target architecture" >&5
4002 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4003 if test "${llvm_cv_target_arch+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 i?86-*) llvm_cv_target_arch="x86" ;;
4008 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4009 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4010 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4011 arm*-*) llvm_cv_target_arch="ARM" ;;
4012 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4013 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4014 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4015 xcore-*) llvm_cv_target_arch="XCore" ;;
4016 msp430-*) llvm_cv_target_arch="MSP430" ;;
4017 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4018 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4019 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4020 *) llvm_cv_target_arch="Unknown" ;;
4023 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4024 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4026 if test "$llvm_cv_target_arch" = "Unknown" ; then
4027 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4028 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4031 case "$llvm_cv_target_arch" in
4032 x86) LLVM_NATIVE_ARCH="X86" ;;
4033 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4034 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4037 ARCH=$llvm_cv_target_arch
4041 i?86-*) host_arch="x86" ;;
4042 amd64-* | x86_64-*) host_arch="x86_64" ;;
4043 sparc*-*) host_arch="Sparc" ;;
4044 powerpc*-*) host_arch="PowerPC" ;;
4045 arm*-*) host_arch="ARM" ;;
4046 aarch64*-*) host_arch="AArch64" ;;
4047 mips-* | mips64-*) host_arch="Mips" ;;
4048 mipsel-* | mips64el-*) host_arch="Mips" ;;
4049 xcore-*) host_arch="XCore" ;;
4050 msp430-*) host_arch="MSP430" ;;
4051 hexagon-*) host_arch="Hexagon" ;;
4052 mblaze-*) host_arch="MBlaze" ;;
4053 *) host_arch="Unknown" ;;
4056 if test "$host_arch" = "Unknown" ; then
4057 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4058 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4061 HOST_ARCH=$host_arch
4066 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4067 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4068 if test "${ac_cv_path_GREP+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 # Extract the first word of "grep ggrep" to use in msg output
4072 if test -z "$GREP"; then
4073 set dummy grep ggrep; ac_prog_name=$2
4074 if test "${ac_cv_path_GREP+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 ac_path_GREP_found=false
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083 test -z "$as_dir" && as_dir=.
4084 for ac_prog in grep ggrep; do
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4087 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4088 # Check for GNU ac_path_GREP and select it if it is found.
4089 # Check for GNU $ac_path_GREP
4090 case `"$ac_path_GREP" --version 2>&1` in
4092 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4098 cat "conftest.in" "conftest.in" >"conftest.tmp"
4099 mv "conftest.tmp" "conftest.in"
4100 cp "conftest.in" "conftest.nl"
4101 echo 'GREP' >> "conftest.nl"
4102 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104 ac_count=`expr $ac_count + 1`
4105 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4106 # Best one so far, save it but keep looking for a better one
4107 ac_cv_path_GREP="$ac_path_GREP"
4108 ac_path_GREP_max=$ac_count
4110 # 10*(2^10) chars as input seems more than enough
4111 test $ac_count -gt 10 && break
4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4117 $ac_path_GREP_found && break 3
4127 GREP="$ac_cv_path_GREP"
4128 if test -z "$GREP"; then
4129 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4130 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4131 { (exit 1); exit 1; }; }
4135 ac_cv_path_GREP=$GREP
4140 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4141 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4142 GREP="$ac_cv_path_GREP"
4145 { echo "$as_me:$LINENO: checking for egrep" >&5
4146 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4147 if test "${ac_cv_path_EGREP+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4151 then ac_cv_path_EGREP="$GREP -E"
4153 # Extract the first word of "egrep" to use in msg output
4154 if test -z "$EGREP"; then
4155 set dummy egrep; ac_prog_name=$2
4156 if test "${ac_cv_path_EGREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in egrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4170 # Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172 case `"$ac_path_EGREP" --version 2>&1` in
4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4177 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 ac_count=`expr $ac_count + 1`
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP="$ac_path_EGREP"
4190 ac_path_EGREP_max=$ac_count
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 $ac_path_EGREP_found && break 3
4209 EGREP="$ac_cv_path_EGREP"
4210 if test -z "$EGREP"; then
4211 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4212 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4213 { (exit 1); exit 1; }; }
4217 ac_cv_path_EGREP=$EGREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4225 EGREP="$ac_cv_path_EGREP"
4228 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4229 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4230 if test "${ac_cv_header_stdc+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4252 rm -f conftest.$ac_objext
4253 if { (ac_try="$ac_compile"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259 (eval "$ac_compile") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; }; then
4286 ac_cv_header_stdc=yes
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 ac_cv_header_stdc=no
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then
4311 ac_cv_header_stdc=no
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then
4332 ac_cv_header_stdc=no
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4374 rm -f conftest$ac_exeext
4375 if { (ac_try="$ac_link"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_link") 2>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4385 { (case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_try") 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; }; then
4396 echo "$as_me: program exited with status $ac_status" >&5
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4401 ac_cv_header_stdc=no
4403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4409 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4410 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4411 if test $ac_cv_header_stdc = yes; then
4413 cat >>confdefs.h <<\_ACEOF
4414 #define STDC_HEADERS 1
4419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4429 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4430 inttypes.h stdint.h unistd.h
4432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4446 #include <$ac_header>
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 eval "$as_ac_Header=yes"
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 eval "$as_ac_Header=no"
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_res=`eval echo '${'$as_ac_Header'}'`
4493 { echo "$as_me:$LINENO: result: $ac_res" >&5
4494 echo "${ECHO_T}$ac_res" >&6; }
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4505 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4507 if test "${ac_cv_c_bigendian+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 # See if sys/param.h defines the BYTE_ORDER macro.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <sys/types.h>
4518 #include <sys/param.h>
4523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_compile") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } &&
4545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_try") 2>&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4565 # It does; now see whether it defined to BIG_ENDIAN or not.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <sys/types.h>
4573 #include <sys/param.h>
4578 #if BYTE_ORDER != BIG_ENDIAN
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_compile") 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_c_bigendian=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_c_bigendian=no
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # It does not; compile a test program.
4634 if test "$cross_compiling" = yes; then
4635 # try to guess the endianness by grepping values into an object file
4636 ac_cv_c_bigendian=unknown
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4644 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4645 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4646 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4647 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4648 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4652 _ascii (); _ebcdic ();
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4672 { (case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_try") 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4692 ac_cv_c_bigendian=yes
4694 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4695 if test "$ac_cv_c_bigendian" = unknown; then
4696 ac_cv_c_bigendian=no
4698 # finding both strings is unlikely to happen, but who knows?
4699 ac_cv_c_bigendian=unknown
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 $ac_includes_default
4722 /* Are we little or big endian? From Harbison&Steele. */
4726 char c[sizeof (long int)];
4729 return u.c[sizeof (long int) - 1] == 1;
4735 rm -f conftest$ac_exeext
4736 if { (ac_try="$ac_link"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_link") 2>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4746 { (case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_try") 2>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_c_bigendian=no
4757 echo "$as_me: program exited with status $ac_status" >&5
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4762 ac_cv_c_bigendian=yes
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4773 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4774 case $ac_cv_c_bigendian in
4782 { { echo "$as_me:$LINENO: error: unknown endianness
4783 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4784 echo "$as_me: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4786 { (exit 1); exit 1; }; } ;;
4790 if test "$cross_compiling" = yes; then
4791 LLVM_CROSS_COMPILING=1
4794 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4795 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4796 if test "${ac_cv_build_exeext+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4800 ac_cv_build_exeext=.exe
4802 ac_build_prefix=${build_alias}-
4804 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4805 set dummy ${ac_build_prefix}gcc; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test -n "$BUILD_CC"; then
4812 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 BUILD_CC=$ac_cv_prog_BUILD_CC
4832 if test -n "$BUILD_CC"; then
4833 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4834 echo "${ECHO_T}$BUILD_CC" >&6; }
4836 { echo "$as_me:$LINENO: result: no" >&5
4837 echo "${ECHO_T}no" >&6; }
4841 if test -z "$BUILD_CC"; then
4842 # Extract the first word of "gcc", so it can be a program name with args.
4843 set dummy gcc; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$BUILD_CC"; then
4850 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_BUILD_CC="gcc"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 BUILD_CC=$ac_cv_prog_BUILD_CC
4870 if test -n "$BUILD_CC"; then
4871 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4872 echo "${ECHO_T}$BUILD_CC" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 if test -z "$BUILD_CC"; then
4880 # Extract the first word of "cc", so it can be a program name with args.
4881 set dummy cc; ac_word=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 if test -n "$BUILD_CC"; then
4888 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4899 ac_prog_rejected=yes
4902 ac_cv_prog_BUILD_CC="cc"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 if test $ac_prog_rejected = yes; then
4911 # We found a bogon in the path, so make sure we never use it.
4912 set dummy $ac_cv_prog_BUILD_CC
4914 if test $# != 0; then
4915 # We chose a different compiler from the bogus one.
4916 # However, it has the same basename, so the bogon will be chosen
4917 # first if we set BUILD_CC to just the basename; use the full file name.
4919 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4924 BUILD_CC=$ac_cv_prog_BUILD_CC
4925 if test -n "$BUILD_CC"; then
4926 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4927 echo "${ECHO_T}$BUILD_CC" >&6; }
4929 { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4936 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4937 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4938 { (exit 1); exit 1; }; }
4939 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4941 echo 'int main () { return 0; }' > conftest.$ac_ext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4944 (eval $ac_build_link) 2>&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; then
4948 for file in conftest.*; do
4950 *.c | *.o | *.obj | *.dSYM) ;;
4951 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4955 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4956 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4957 { (exit 1); exit 1; }; }
4960 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4965 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4966 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4967 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4968 ac_build_exeext=$BUILD_EXEEXT
4970 ac_build_prefix=${build_alias}-
4971 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4972 set dummy ${ac_build_prefix}g++; ac_word=$2
4973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4975 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test -n "$BUILD_CXX"; then
4979 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4999 if test -n "$BUILD_CXX"; then
5000 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5001 echo "${ECHO_T}$BUILD_CXX" >&6; }
5003 { echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6; }
5008 if test -z "$BUILD_CXX"; then
5009 # Extract the first word of "g++", so it can be a program name with args.
5010 set dummy g++; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$BUILD_CXX"; then
5017 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_BUILD_CXX="g++"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5037 if test -n "$BUILD_CXX"; then
5038 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5039 echo "${ECHO_T}$BUILD_CXX" >&6; }
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5046 if test -z "$BUILD_CXX"; then
5047 # Extract the first word of "c++", so it can be a program name with args.
5048 set dummy c++; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 if test -n "$BUILD_CXX"; then
5055 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5066 ac_prog_rejected=yes
5069 ac_cv_prog_BUILD_CXX="c++"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 if test $ac_prog_rejected = yes; then
5078 # We found a bogon in the path, so make sure we never use it.
5079 set dummy $ac_cv_prog_BUILD_CXX
5081 if test $# != 0; then
5082 # We chose a different compiler from the bogus one.
5083 # However, it has the same basename, so the bogon will be chosen
5084 # first if we set BUILD_CXX to just the basename; use the full file name.
5086 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5091 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5092 if test -n "$BUILD_CXX"; then
5093 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5094 echo "${ECHO_T}$BUILD_CXX" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5104 LLVM_CROSS_COMPILING=0
5108 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5119 # Check whether --enable-libcpp was given.
5120 if test "${enable_libcpp+set}" = set; then
5121 enableval=$enable_libcpp;
5126 case "$enableval" in
5127 yes) ENABLE_LIBCPP=1
5131 default) ENABLE_LIBCPP=0
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5134 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5138 # Check whether --enable-cxx11 was given.
5139 if test "${enable_cxx11+set}" = set; then
5140 enableval=$enable_cxx11;
5145 case "$enableval" in
5150 default) ENABLE_CXX11=0
5152 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5158 # Check whether --enable-clang-arcmt was given.
5159 if test "${enable_clang_arcmt+set}" = set; then
5160 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5165 case "$enableval" in
5166 yes) ENABLE_CLANG_ARCMT=1
5168 no) ENABLE_CLANG_ARCMT=0
5170 default) ENABLE_CLANG_ARCMT=1
5172 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5173 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5174 { (exit 1); exit 1; }; } ;;
5177 clang_static_analyzer="yes"
5178 # Check whether --enable-clang-static-analyzer was given.
5179 if test "${enable_clang_static_analyzer+set}" = set; then
5180 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5185 case "$enableval" in
5186 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5188 no) ENABLE_CLANG_STATIC_ANALYZER=0
5190 default) ENABLE_CLANG_STATIC_ANALYZER=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 # Check whether --enable-clang-rewriter was given.
5198 if test "${enable_clang_rewriter+set}" = set; then
5199 enableval=$enable_clang_rewriter;
5204 case "$enableval" in
5205 yes) ENABLE_CLANG_REWRITER=1
5208 if test ${clang_arcmt} != "no" ; then
5209 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5210 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5211 { (exit 1); exit 1; }; }
5213 if test ${clang_static_analyzer} != "no" ; then
5214 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5215 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5216 { (exit 1); exit 1; }; }
5218 ENABLE_CLANG_REWRITER=0
5221 default) ENABLE_CLANG_REWRITER=1
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 # Check whether --enable-optimized was given.
5229 if test "${enable_optimized+set}" = set; then
5230 enableval=$enable_optimized;
5235 if test ${enableval} = "no" ; then
5239 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5243 # Check whether --enable-profiling was given.
5244 if test "${enable_profiling+set}" = set; then
5245 enableval=$enable_profiling;
5250 if test ${enableval} = "no" ; then
5254 ENABLE_PROFILING=ENABLE_PROFILING=1
5258 # Check whether --enable-assertions was given.
5259 if test "${enable_assertions+set}" = set; then
5260 enableval=$enable_assertions;
5265 if test ${enableval} = "yes" ; then
5269 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5273 # Check whether --enable-werror was given.
5274 if test "${enable_werror+set}" = set; then
5275 enableval=$enable_werror;
5280 case "$enableval" in
5281 yes) ENABLE_WERROR=1
5285 default) ENABLE_WERROR=0
5287 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5288 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5289 { (exit 1); exit 1; }; } ;;
5292 # Check whether --enable-expensive-checks was given.
5293 if test "${enable_expensive_checks+set}" = set; then
5294 enableval=$enable_expensive_checks;
5299 if test ${enableval} = "yes" ; then
5300 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5302 EXPENSIVE_CHECKS=yes
5305 ENABLE_EXPENSIVE_CHECKS=
5311 # Check whether --enable-debug-runtime was given.
5312 if test "${enable_debug_runtime+set}" = set; then
5313 enableval=$enable_debug_runtime;
5318 if test ${enableval} = "no" ; then
5322 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5326 # Check whether --enable-debug-symbols was given.
5327 if test "${enable_debug_symbols+set}" = set; then
5328 enableval=$enable_debug_symbols;
5333 if test ${enableval} = "no" ; then
5337 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5341 # Check whether --enable-keep-symbols was given.
5342 if test "${enable_keep_symbols+set}" = set; then
5343 enableval=$enable_keep_symbols;
5348 if test ${enableval} = "no" ; then
5352 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5356 # Check whether --enable-jit was given.
5357 if test "${enable_jit+set}" = set; then
5358 enableval=$enable_jit;
5363 if test ${enableval} = "no"
5368 case "$llvm_cv_target_arch" in
5369 x86) TARGET_HAS_JIT=1
5371 Sparc) TARGET_HAS_JIT=0
5373 PowerPC) TARGET_HAS_JIT=1
5375 x86_64) TARGET_HAS_JIT=1
5377 ARM) TARGET_HAS_JIT=1
5379 AArch64) TARGET_HAS_JIT=0
5381 Mips) TARGET_HAS_JIT=1
5383 XCore) TARGET_HAS_JIT=0
5385 MSP430) TARGET_HAS_JIT=0
5387 Hexagon) TARGET_HAS_JIT=0
5389 MBlaze) TARGET_HAS_JIT=0
5391 NVPTX) TARGET_HAS_JIT=0
5398 # Check whether --enable-docs was given.
5399 if test "${enable_docs+set}" = set; then
5400 enableval=$enable_docs;
5405 case "$enableval" in
5410 default) ENABLE_DOCS=1
5412 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5413 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5414 { (exit 1); exit 1; }; } ;;
5417 # Check whether --enable-doxygen was given.
5418 if test "${enable_doxygen+set}" = set; then
5419 enableval=$enable_doxygen;
5424 case "$enableval" in
5425 yes) ENABLE_DOXYGEN=1
5427 no) ENABLE_DOXYGEN=0
5429 default) ENABLE_DOXYGEN=0
5431 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5433 { (exit 1); exit 1; }; } ;;
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438 enableval=$enable_threads;
5443 case "$enableval" in
5444 yes) LLVM_ENABLE_THREADS=1
5446 no) LLVM_ENABLE_THREADS=0
5448 default) LLVM_ENABLE_THREADS=1
5450 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462 enableval=$enable_pthreads;
5467 case "$enableval" in
5468 yes) ENABLE_PTHREADS=1
5470 no) ENABLE_PTHREADS=0
5472 default) ENABLE_PTHREADS=1
5474 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5479 # Check whether --enable-pic was given.
5480 if test "${enable_pic+set}" = set; then
5481 enableval=$enable_pic;
5486 case "$enableval" in
5491 default) ENABLE_PIC=1
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 cat >>confdefs.h <<_ACEOF
5499 #define ENABLE_PIC $ENABLE_PIC
5503 # Check whether --enable-shared was given.
5504 if test "${enable_shared+set}" = set; then
5505 enableval=$enable_shared;
5510 case "$enableval" in
5511 yes) ENABLE_SHARED=1
5515 default) ENABLE_SHARED=0
5517 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5519 { (exit 1); exit 1; }; } ;;
5522 # Check whether --enable-embed-stdcxx was given.
5523 if test "${enable_embed_stdcxx+set}" = set; then
5524 enableval=$enable_embed_stdcxx;
5529 case "$enableval" in
5530 yes) ENABLE_EMBED_STDCXX=1
5532 no) ENABLE_EMBED_STDCXX=0
5534 default) ENABLE_EMBED_STDCXX=0
5536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5537 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5538 { (exit 1); exit 1; }; } ;;
5541 # Check whether --enable-timestamps was given.
5542 if test "${enable_timestamps+set}" = set; then
5543 enableval=$enable_timestamps;
5548 case "$enableval" in
5549 yes) ENABLE_TIMESTAMPS=1
5551 no) ENABLE_TIMESTAMPS=0
5553 default) ENABLE_TIMESTAMPS=1
5555 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5556 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5557 { (exit 1); exit 1; }; } ;;
5560 cat >>confdefs.h <<_ACEOF
5561 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5566 # Check whether --enable-backtraces was given.
5567 if test "${enable_backtraces+set}" = set; then
5568 enableval=$enable_backtraces;
5573 case "$enableval" in
5574 yes) ENABLE_BACKTRACES=1
5576 no) ENABLE_BACKTRACES=0
5578 default) ENABLE_BACKTRACES=1
5580 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5581 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5585 cat >>confdefs.h <<_ACEOF
5586 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5591 # Check whether --enable-targets was given.
5592 if test "${enable_targets+set}" = set; then
5593 enableval=$enable_targets;
5598 if test "$enableval" = host-only ; then
5601 case "$enableval" in
5602 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5603 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5605 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5606 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5607 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5608 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5609 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5610 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5611 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5615 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5616 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5617 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5618 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5619 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5620 host) case "$llvm_cv_target_arch" in
5621 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5622 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5623 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5624 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5625 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5626 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5627 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5628 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5629 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5630 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5631 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5632 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5633 echo "$as_me: error: Can not set target to build" >&2;}
5634 { (exit 1); exit 1; }; } ;;
5636 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5637 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5638 { (exit 1); exit 1; }; } ;;
5644 # Check whether --enable-experimental-targets was given.
5645 if test "${enable_experimental_targets+set}" = set; then
5646 enableval=$enable_experimental_targets;
5652 if test ${enableval} != "disable"
5654 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5657 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5660 for a_target in $TARGETS_TO_BUILD; do
5661 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5663 cat >>confdefs.h <<_ACEOF
5664 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5667 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5668 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5669 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5670 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5671 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5672 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5674 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5675 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5678 cat >>confdefs.h <<_ACEOF
5679 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5683 cat >>confdefs.h <<_ACEOF
5684 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5688 cat >>confdefs.h <<_ACEOF
5689 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5693 cat >>confdefs.h <<_ACEOF
5694 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5697 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5699 cat >>confdefs.h <<_ACEOF
5700 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5704 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5714 LLVM_ENUM_TARGETS=""
5715 LLVM_ENUM_ASM_PRINTERS=""
5716 LLVM_ENUM_ASM_PARSERS=""
5717 LLVM_ENUM_DISASSEMBLERS=""
5718 for target_to_build in $TARGETS_TO_BUILD; do
5719 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5720 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5721 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5723 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5724 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5726 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5727 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5736 # Check whether --with-optimize-option was given.
5737 if test "${with_optimize_option+set}" = set; then
5738 withval=$with_optimize_option;
5743 { echo "$as_me:$LINENO: checking optimization flags" >&5
5744 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5747 case "$llvm_cv_os_type" in
5748 FreeBSD) optimize_option=-O2 ;;
5749 MingW) optimize_option=-O2 ;;
5750 *) optimize_option=-O3 ;;
5752 *) optimize_option="$withval" ;;
5754 OPTIMIZE_OPTION=$optimize_option
5756 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5757 echo "${ECHO_T}$optimize_option" >&6; }
5760 # Check whether --with-extra-options was given.
5761 if test "${with_extra_options+set}" = set; then
5762 withval=$with_extra_options;
5768 default) EXTRA_OPTIONS= ;;
5769 *) EXTRA_OPTIONS=$withval ;;
5771 EXTRA_OPTIONS=$EXTRA_OPTIONS
5775 # Check whether --with-extra-ld-options was given.
5776 if test "${with_extra_ld_options+set}" = set; then
5777 withval=$with_extra_ld_options;
5783 default) EXTRA_LD_OPTIONS= ;;
5784 *) EXTRA_LD_OPTIONS=$withval ;;
5786 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5789 # Check whether --enable-bindings was given.
5790 if test "${enable_bindings+set}" = set; then
5791 enableval=$enable_bindings;
5796 BINDINGS_TO_BUILD=""
5797 case "$enableval" in
5798 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5799 all ) BINDINGS_TO_BUILD="ocaml" ;;
5800 none | no) BINDINGS_TO_BUILD="" ;;
5801 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5802 case "$a_binding" in
5803 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5804 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5805 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5806 { (exit 1); exit 1; }; } ;;
5813 # Check whether --with-ocaml-libdir was given.
5814 if test "${with_ocaml_libdir+set}" = set; then
5815 withval=$with_ocaml_libdir;
5821 auto) with_ocaml_libdir="$withval" ;;
5822 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5823 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5824 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5825 { (exit 1); exit 1; }; } ;;
5829 # Check whether --with-clang-srcdir was given.
5830 if test "${with_clang_srcdir+set}" = set; then
5831 withval=$with_clang_srcdir;
5837 -) clang_src_root="" ;;
5838 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5839 *) clang_src_root="$ac_pwd/$withval" ;;
5841 CLANG_SRC_ROOT=$clang_src_root
5845 # Check whether --with-clang-resource-dir was given.
5846 if test "${with_clang_resource_dir+set}" = set; then
5847 withval=$with_clang_resource_dir;
5853 cat >>confdefs.h <<_ACEOF
5854 #define CLANG_RESOURCE_DIR "$withval"
5859 # Check whether --with-c-include-dirs was given.
5860 if test "${with_c_include_dirs+set}" = set; then
5861 withval=$with_c_include_dirs;
5867 cat >>confdefs.h <<_ACEOF
5868 #define C_INCLUDE_DIRS "$withval"
5872 # Clang normally uses the system c++ headers and libraries. With this option,
5873 # clang will use the ones provided by a gcc installation instead. This option should
5874 # be passed the same value that was used with --prefix when configuring gcc.
5876 # Check whether --with-gcc-toolchain was given.
5877 if test "${with_gcc_toolchain+set}" = set; then
5878 withval=$with_gcc_toolchain;
5884 cat >>confdefs.h <<_ACEOF
5885 #define GCC_INSTALL_PREFIX "$withval"
5890 # Check whether --with-default-sysroot was given.
5891 if test "${with_default_sysroot+set}" = set; then
5892 withval=$with_default_sysroot;
5898 cat >>confdefs.h <<_ACEOF
5899 #define DEFAULT_SYSROOT "$withval"
5904 # Check whether --with-binutils-include was given.
5905 if test "${with_binutils_include+set}" = set; then
5906 withval=$with_binutils_include;
5912 default) WITH_BINUTILS_INCDIR=default ;;
5913 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5914 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5915 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5916 { (exit 1); exit 1; }; } ;;
5918 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5919 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5921 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5922 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5923 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5924 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5925 { (exit 1); exit 1; }; };
5930 # Check whether --with-bug-report-url was given.
5931 if test "${with_bug_report_url+set}" = set; then
5932 withval=$with_bug_report_url;
5934 withval="http://llvm.org/bugs/"
5938 cat >>confdefs.h <<_ACEOF
5939 #define BUG_REPORT_URL "$withval"
5943 # Check whether --enable-libffi was given.
5944 if test "${enable_libffi+set}" = set; then
5945 enableval=$enable_libffi; case "$enableval" in
5946 yes) llvm_cv_enable_libffi="yes" ;;
5947 no) llvm_cv_enable_libffi="no" ;;
5948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5949 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5950 { (exit 1); exit 1; }; } ;;
5953 llvm_cv_enable_libffi=no
5958 # Check whether --with-internal-prefix was given.
5959 if test "${with_internal_prefix+set}" = set; then
5960 withval=$with_internal_prefix;
5965 INTERNAL_PREFIX=$withval
5969 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5970 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5971 if test "${lt_cv_path_NM+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$NM"; then
5975 # Let the user override the test.
5978 lt_nm_to_check="${ac_tool_prefix}nm"
5979 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5980 lt_nm_to_check="$lt_nm_to_check nm"
5982 for lt_tmp_nm in $lt_nm_to_check; do
5983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5984 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5986 test -z "$ac_dir" && ac_dir=.
5987 tmp_nm="$ac_dir/$lt_tmp_nm"
5988 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5989 # Check to see if the nm accepts a BSD-compat flag.
5990 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5991 # nm: unknown option "B" ignored
5992 # Tru64's nm complains that /dev/null is an invalid object file
5993 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5994 */dev/null* | *'Invalid file or object type'*)
5995 lt_cv_path_NM="$tmp_nm -B"
5999 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6001 lt_cv_path_NM="$tmp_nm -p"
6005 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6006 continue # so that we can try to find one that supports BSD flags
6015 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6018 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6019 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6024 { echo "$as_me:$LINENO: checking for GNU make" >&5
6025 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6026 if test "${llvm_cv_gnu_make_command+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 llvm_cv_gnu_make_command=''
6030 for a in "$MAKE" make gmake gnumake ; do
6031 if test -z "$a" ; then continue ; fi ;
6032 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6034 llvm_cv_gnu_make_command=$a ;
6039 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6040 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6041 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6045 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6046 echo "${ECHO_T}\"Not found\"" >&6; };
6050 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6053 if test "$LN_S" = "ln -s"; then
6054 { echo "$as_me:$LINENO: result: yes" >&5
6055 echo "${ECHO_T}yes" >&6; }
6057 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6058 echo "${ECHO_T}no, using $LN_S" >&6; }
6061 # Extract the first word of "cmp", so it can be a program name with args.
6062 set dummy cmp; ac_word=$2
6063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6065 if test "${ac_cv_path_CMP+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6080 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6093 if test -n "$CMP"; then
6094 { echo "$as_me:$LINENO: result: $CMP" >&5
6095 echo "${ECHO_T}$CMP" >&6; }
6097 { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6102 # Extract the first word of "cp", so it can be a program name with args.
6103 set dummy cp; ac_word=$2
6104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6106 if test "${ac_cv_path_CP+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6134 if test -n "$CP"; then
6135 { echo "$as_me:$LINENO: result: $CP" >&5
6136 echo "${ECHO_T}$CP" >&6; }
6138 { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6143 # Extract the first word of "date", so it can be a program name with args.
6144 set dummy date; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_path_DATE+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6174 DATE=$ac_cv_path_DATE
6175 if test -n "$DATE"; then
6176 { echo "$as_me:$LINENO: result: $DATE" >&5
6177 echo "${ECHO_T}$DATE" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6184 # Extract the first word of "find", so it can be a program name with args.
6185 set dummy find; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_FIND+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6215 FIND=$ac_cv_path_FIND
6216 if test -n "$FIND"; then
6217 { echo "$as_me:$LINENO: result: $FIND" >&5
6218 echo "${ECHO_T}$FIND" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 # Extract the first word of "grep", so it can be a program name with args.
6226 set dummy grep; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_GREP+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6256 GREP=$ac_cv_path_GREP
6257 if test -n "$GREP"; then
6258 { echo "$as_me:$LINENO: result: $GREP" >&5
6259 echo "${ECHO_T}$GREP" >&6; }
6261 { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6266 # Extract the first word of "mkdir", so it can be a program name with args.
6267 set dummy mkdir; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_MKDIR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6297 MKDIR=$ac_cv_path_MKDIR
6298 if test -n "$MKDIR"; then
6299 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6300 echo "${ECHO_T}$MKDIR" >&6; }
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6307 # Extract the first word of "mv", so it can be a program name with args.
6308 set dummy mv; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_MV+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6339 if test -n "$MV"; then
6340 { echo "$as_me:$LINENO: result: $MV" >&5
6341 echo "${ECHO_T}$MV" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 if test -n "$ac_tool_prefix"; then
6349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6350 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_RANLIB+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 if test -n "$RANLIB"; then
6357 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 RANLIB=$ac_cv_prog_RANLIB
6377 if test -n "$RANLIB"; then
6378 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6379 echo "${ECHO_T}$RANLIB" >&6; }
6381 { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6387 if test -z "$ac_cv_prog_RANLIB"; then
6388 ac_ct_RANLIB=$RANLIB
6389 # Extract the first word of "ranlib", so it can be a program name with args.
6390 set dummy ranlib; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 if test -n "$ac_ct_RANLIB"; then
6397 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_prog_ac_ct_RANLIB="ranlib"
6407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6417 if test -n "$ac_ct_RANLIB"; then
6418 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6419 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6425 if test "x$ac_ct_RANLIB" = x; then
6428 case $cross_compiling:$ac_tool_warned in
6430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet. If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&5
6433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6436 ac_tool_warned=yes ;;
6438 RANLIB=$ac_ct_RANLIB
6441 RANLIB="$ac_cv_prog_RANLIB"
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}ar; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_prog_AR+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 if test -n "$AR"; then
6453 ac_cv_prog_AR="$AR" # Let the user override the test.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_AR="${ac_tool_prefix}ar"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 if test -n "$AR"; then
6474 { echo "$as_me:$LINENO: result: $AR" >&5
6475 echo "${ECHO_T}$AR" >&6; }
6477 { echo "$as_me:$LINENO: result: no" >&5
6478 echo "${ECHO_T}no" >&6; }
6483 if test -z "$ac_cv_prog_AR"; then
6485 # Extract the first word of "ar", so it can be a program name with args.
6486 set dummy ar; ac_word=$2
6487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6489 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 if test -n "$ac_ct_AR"; then
6493 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_AR="ar"
6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6513 if test -n "$ac_ct_AR"; then
6514 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6515 echo "${ECHO_T}$ac_ct_AR" >&6; }
6517 { echo "$as_me:$LINENO: result: no" >&5
6518 echo "${ECHO_T}no" >&6; }
6521 if test "x$ac_ct_AR" = x; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6527 whose name does not start with the host triplet. If you think this
6528 configuration is useful to you, please write to autoconf@gnu.org." >&5
6529 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6532 ac_tool_warned=yes ;;
6540 # Extract the first word of "rm", so it can be a program name with args.
6541 set dummy rm; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_RM+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6549 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6572 if test -n "$RM"; then
6573 { echo "$as_me:$LINENO: result: $RM" >&5
6574 echo "${ECHO_T}$RM" >&6; }
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6581 # Extract the first word of "sed", so it can be a program name with args.
6582 set dummy sed; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_SED+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6613 if test -n "$SED"; then
6614 { echo "$as_me:$LINENO: result: $SED" >&5
6615 echo "${ECHO_T}$SED" >&6; }
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "tar", so it can be a program name with args.
6623 set dummy tar; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_TAR+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6654 if test -n "$TAR"; then
6655 { echo "$as_me:$LINENO: result: $TAR" >&5
6656 echo "${ECHO_T}$TAR" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "pwd", so it can be a program name with args.
6664 set dummy pwd; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_BINPWD+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6694 BINPWD=$ac_cv_path_BINPWD
6695 if test -n "$BINPWD"; then
6696 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6697 echo "${ECHO_T}$BINPWD" >&6; }
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6705 # Extract the first word of "Graphviz", so it can be a program name with args.
6706 set dummy Graphviz; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6736 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6737 if test -n "$GRAPHVIZ"; then
6738 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6739 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6741 { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6746 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_GRAPHVIZ 1
6752 if test "$llvm_cv_os_type" = "MingW" ; then
6753 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6756 cat >>confdefs.h <<_ACEOF
6757 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6761 # Extract the first word of "dot", so it can be a program name with args.
6762 set dummy dot; ac_word=$2
6763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6765 if test "${ac_cv_path_DOT+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6793 if test -n "$DOT"; then
6794 { echo "$as_me:$LINENO: result: $DOT" >&5
6795 echo "${ECHO_T}$DOT" >&6; }
6797 { echo "$as_me:$LINENO: result: no" >&5
6798 echo "${ECHO_T}no" >&6; }
6802 if test "$DOT" != "echo dot" ; then
6804 cat >>confdefs.h <<\_ACEOF
6808 if test "$llvm_cv_os_type" = "MingW" ; then
6809 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812 cat >>confdefs.h <<_ACEOF
6813 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6817 # Extract the first word of "fdp", so it can be a program name with args.
6818 set dummy fdp; ac_word=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_FDP+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6849 if test -n "$FDP"; then
6850 { echo "$as_me:$LINENO: result: $FDP" >&5
6851 echo "${ECHO_T}$FDP" >&6; }
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 if test "$FDP" != "echo fdp" ; then
6860 cat >>confdefs.h <<\_ACEOF
6864 if test "$llvm_cv_os_type" = "MingW" ; then
6865 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6868 cat >>confdefs.h <<_ACEOF
6869 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6873 # Extract the first word of "neato", so it can be a program name with args.
6874 set dummy neato; ac_word=$2
6875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877 if test "${ac_cv_path_NEATO+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6904 NEATO=$ac_cv_path_NEATO
6905 if test -n "$NEATO"; then
6906 { echo "$as_me:$LINENO: result: $NEATO" >&5
6907 echo "${ECHO_T}$NEATO" >&6; }
6909 { echo "$as_me:$LINENO: result: no" >&5
6910 echo "${ECHO_T}no" >&6; }
6914 if test "$NEATO" != "echo neato" ; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_NEATO 1
6920 if test "$llvm_cv_os_type" = "MingW" ; then
6921 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6924 cat >>confdefs.h <<_ACEOF
6925 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6929 # Extract the first word of "twopi", so it can be a program name with args.
6930 set dummy twopi; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_TWOPI+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6960 TWOPI=$ac_cv_path_TWOPI
6961 if test -n "$TWOPI"; then
6962 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6963 echo "${ECHO_T}$TWOPI" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 if test "$TWOPI" != "echo twopi" ; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define HAVE_TWOPI 1
6976 if test "$llvm_cv_os_type" = "MingW" ; then
6977 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6980 cat >>confdefs.h <<_ACEOF
6981 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6985 # Extract the first word of "circo", so it can be a program name with args.
6986 set dummy circo; ac_word=$2
6987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989 if test "${ac_cv_path_CIRCO+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7016 CIRCO=$ac_cv_path_CIRCO
7017 if test -n "$CIRCO"; then
7018 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7019 echo "${ECHO_T}$CIRCO" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7026 if test "$CIRCO" != "echo circo" ; then
7028 cat >>confdefs.h <<\_ACEOF
7029 #define HAVE_CIRCO 1
7032 if test "$llvm_cv_os_type" = "MingW" ; then
7033 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7036 cat >>confdefs.h <<_ACEOF
7037 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7041 for ac_prog in gv gsview32
7043 # Extract the first word of "$ac_prog", so it can be a program name with args.
7044 set dummy $ac_prog; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GV+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 if test -n "$GV"; then
7075 { echo "$as_me:$LINENO: result: $GV" >&5
7076 echo "${ECHO_T}$GV" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 test -n "$GV" && break
7085 test -n "$GV" || GV="echo gv"
7087 if test "$GV" != "echo gv" ; then
7089 cat >>confdefs.h <<\_ACEOF
7093 if test "$llvm_cv_os_type" = "MingW" ; then
7094 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7097 cat >>confdefs.h <<_ACEOF
7098 #define LLVM_PATH_GV "$GV${EXEEXT}"
7102 # Extract the first word of "dotty", so it can be a program name with args.
7103 set dummy dotty; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_DOTTY+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7133 DOTTY=$ac_cv_path_DOTTY
7134 if test -n "$DOTTY"; then
7135 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7136 echo "${ECHO_T}$DOTTY" >&6; }
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7143 if test "$DOTTY" != "echo dotty" ; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_DOTTY 1
7149 if test "$llvm_cv_os_type" = "MingW" ; then
7150 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7153 cat >>confdefs.h <<_ACEOF
7154 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7158 # Extract the first word of "xdot.py", so it can be a program name with args.
7159 set dummy xdot.py; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7189 XDOT_PY=$ac_cv_path_XDOT_PY
7190 if test -n "$XDOT_PY"; then
7191 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7192 echo "${ECHO_T}$XDOT_PY" >&6; }
7194 { echo "$as_me:$LINENO: result: no" >&5
7195 echo "${ECHO_T}no" >&6; }
7199 if test "$XDOT_PY" != "echo xdot.py" ; then
7201 cat >>confdefs.h <<\_ACEOF
7202 #define HAVE_XDOT_PY 1
7205 if test "$llvm_cv_os_type" = "MingW" ; then
7206 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7209 cat >>confdefs.h <<_ACEOF
7210 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7215 # Find a good install program. We prefer a C program (faster),
7216 # so one script is as good as another. But avoid the broken or
7217 # incompatible versions:
7218 # SysV /etc/install, /usr/sbin/install
7219 # SunOS /usr/etc/install
7220 # IRIX /sbin/install
7222 # AmigaOS /C/install, which installs bootblocks on floppy discs
7223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7226 # OS/2's system install, which has a completely different semantic
7227 # ./install, which can be erroneously created by make from ./install.sh.
7228 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7229 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7230 if test -z "$INSTALL"; then
7231 if test "${ac_cv_path_install+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 # Account for people who put trailing slashes in PATH elements.
7241 ./ | .// | /cC/* | \
7242 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7243 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7246 # OSF1 and SCO ODT 3.0 have their own names for install.
7247 # Don't use installbsd from OSF since it installs stuff as root
7249 for ac_prog in ginstall scoinst install; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7252 if test $ac_prog = install &&
7253 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7254 # AIX install. It has an incompatible calling convention.
7256 elif test $ac_prog = install &&
7257 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258 # program-specific install script used by HP pwplus--don't use.
7261 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7274 if test "${ac_cv_path_install+set}" = set; then
7275 INSTALL=$ac_cv_path_install
7277 # As a last resort, use the slow shell script. Don't cache a
7278 # value for INSTALL within a source directory, because that will
7279 # break other packages using the cache if that directory is
7280 # removed, or if the value is a relative name.
7281 INSTALL=$ac_install_sh
7284 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7285 echo "${ECHO_T}$INSTALL" >&6; }
7287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7288 # It thinks the first close brace ends the variable substitution.
7289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7296 [\\/$]* | ?:[\\/]* ) ;;
7297 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7300 # Extract the first word of "bzip2", so it can be a program name with args.
7301 set dummy bzip2; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_BZIP2+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 BZIP2=$ac_cv_path_BZIP2
7331 if test -n "$BZIP2"; then
7332 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7333 echo "${ECHO_T}$BZIP2" >&6; }
7335 { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7340 # Extract the first word of "cat", so it can be a program name with args.
7341 set dummy cat; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_CAT+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 if test -n "$CAT"; then
7372 { echo "$as_me:$LINENO: result: $CAT" >&5
7373 echo "${ECHO_T}$CAT" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7380 # Extract the first word of "doxygen", so it can be a program name with args.
7381 set dummy doxygen; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 DOXYGEN=$ac_cv_path_DOXYGEN
7411 if test -n "$DOXYGEN"; then
7412 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7413 echo "${ECHO_T}$DOXYGEN" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 # Extract the first word of "groff", so it can be a program name with args.
7421 set dummy groff; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_GROFF+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 GROFF=$ac_cv_path_GROFF
7451 if test -n "$GROFF"; then
7452 { echo "$as_me:$LINENO: result: $GROFF" >&5
7453 echo "${ECHO_T}$GROFF" >&6; }
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7460 # Extract the first word of "gzip", so it can be a program name with args.
7461 set dummy gzip; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 GZIPBIN=$ac_cv_path_GZIPBIN
7491 if test -n "$GZIPBIN"; then
7492 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7493 echo "${ECHO_T}$GZIPBIN" >&6; }
7495 { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7500 # Extract the first word of "pdfroff", so it can be a program name with args.
7501 set dummy pdfroff; ac_word=$2
7502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7504 if test "${ac_cv_path_PDFROFF+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 PDFROFF=$ac_cv_path_PDFROFF
7531 if test -n "$PDFROFF"; then
7532 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7533 echo "${ECHO_T}$PDFROFF" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7540 # Extract the first word of "zip", so it can be a program name with args.
7541 set dummy zip; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_ZIP+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 if test -n "$ZIP"; then
7572 { echo "$as_me:$LINENO: result: $ZIP" >&5
7573 echo "${ECHO_T}$ZIP" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7580 for ac_prog in ocamlc
7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586 if test "${ac_cv_path_OCAMLC+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 OCAMLC=$ac_cv_path_OCAMLC
7613 if test -n "$OCAMLC"; then
7614 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7615 echo "${ECHO_T}$OCAMLC" >&6; }
7617 { echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6; }
7622 test -n "$OCAMLC" && break
7625 for ac_prog in ocamlopt
7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
7628 set dummy $ac_prog; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 OCAMLOPT=$ac_cv_path_OCAMLOPT
7658 if test -n "$OCAMLOPT"; then
7659 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7660 echo "${ECHO_T}$OCAMLOPT" >&6; }
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7667 test -n "$OCAMLOPT" && break
7670 for ac_prog in ocamldep
7672 # Extract the first word of "$ac_prog", so it can be a program name with args.
7673 set dummy $ac_prog; ac_word=$2
7674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7676 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 OCAMLDEP=$ac_cv_path_OCAMLDEP
7703 if test -n "$OCAMLDEP"; then
7704 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7705 echo "${ECHO_T}$OCAMLDEP" >&6; }
7707 { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7712 test -n "$OCAMLDEP" && break
7715 for ac_prog in ocamldoc
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 OCAMLDOC=$ac_cv_path_OCAMLDOC
7748 if test -n "$OCAMLDOC"; then
7749 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7750 echo "${ECHO_T}$OCAMLDOC" >&6; }
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 test -n "$OCAMLDOC" && break
7760 for ac_prog in gas as
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_path_GAS+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 if test -n "$GAS"; then
7794 { echo "$as_me:$LINENO: result: $GAS" >&5
7795 echo "${ECHO_T}$GAS" >&6; }
7797 { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7802 test -n "$GAS" && break
7806 { echo "$as_me:$LINENO: checking for linker version" >&5
7807 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7808 if test "${llvm_cv_link_version+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 version_string="$(ld -v 2>&1 | head -1)"
7815 if (echo "$version_string" | grep -q "ld64"); then
7816 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7818 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7822 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7823 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7825 cat >>confdefs.h <<_ACEOF
7826 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_r+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 CFLAGS="$CFLAGS -Wl,-R."
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 llvm_cv_link_use_r=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 llvm_cv_link_use_r=no
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7905 ac_cpp='$CPP $CPPFLAGS'
7906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7913 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7914 if test "$llvm_cv_link_use_r" = yes ; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_LINK_R 1
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7951 rm -f conftest.$ac_objext conftest$ac_exeext
7952 if { (ac_try="$ac_link"
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_link") 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7966 { (case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_try") 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 llvm_cv_link_use_export_dynamic=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 llvm_cv_link_use_export_dynamic=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7997 ac_cpp='$CPP $CPPFLAGS'
7998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8005 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8006 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define HAVE_LINK_EXPORT_DYNAMIC 1
8015 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8016 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8017 if test "${llvm_cv_link_use_version_script+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028 # The following code is from the autoconf manual,
8029 # "11.13: Limitations of Usual Tools".
8030 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8031 # Use mktemp if possible; otherwise fall back on mkdir,
8032 # with $RANDOM to make collisions less likely.
8036 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8038 test -n "$tmp" && test -d "$tmp"
8040 tmp=$TMPDIR/foo$$-$RANDOM
8041 (umask 077 && mkdir "$tmp")
8044 echo "{" > "$tmp/export.map"
8045 echo " global: main;" >> "$tmp/export.map"
8046 echo " local: *;" >> "$tmp/export.map"
8047 echo "};" >> "$tmp/export.map"
8049 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8080 { (case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_try") 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_try") 2>&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 llvm_cv_link_use_version_script=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 llvm_cv_link_use_version_script=no
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 rm "$tmp/export.map"
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8121 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8122 if test "$llvm_cv_link_use_version_script" = yes ; then
8123 HAVE_LINK_VERSION_SCRIPT=1
8130 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8131 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8132 if test "${ac_cv_c_const+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8145 /* FIXME: Include the comments suggested by Paul. */
8147 /* Ultrix mips cc rejects this. */
8148 typedef int charset[2];
8150 /* SunOS 4.1.1 cc rejects this. */
8151 char const *const *ccp;
8153 /* NEC SVR4.0.2 mips cc rejects this. */
8154 struct point {int x, y;};
8155 static struct point const zero = {0,0};
8156 /* AIX XL C 1.02.0.0 rejects this.
8157 It does not let you subtract one const X* pointer from another in
8158 an arm of an if-expression whose if-part is not a constant
8160 const char *g = "string";
8161 ccp = &g + (g ? g-g : 0);
8162 /* HPUX 7.0 cc rejects these. */
8165 ccp = (char const *const *) p;
8166 { /* SCO 3.2v4 cc rejects this. */
8168 char const *s = 0 ? (char *) 0 : (char const *) 0;
8173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8175 const int *foo = &x[0];
8178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8179 typedef const int *iptr;
8183 { /* AIX XL C 1.02.0.0 rejects this saying
8184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8185 struct s { int j; const int *ap[3]; };
8186 struct s *b; b->j = 5;
8188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8192 return !x[0] && !zero.x;
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8244 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8245 if test $ac_cv_c_const = no; then
8247 cat >>confdefs.h <<\_ACEOF
8259 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8260 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8261 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8262 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 #include <sys/types.h>
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_try") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 eval "$as_ac_Header=yes"
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8323 eval "$as_ac_Header=no"
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8336 ac_header_dirent=$ac_hdr; break
8340 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8341 if test $ac_header_dirent = dirent.h; then
8342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8344 if test "${ac_cv_search_opendir+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 ac_func_search_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8355 /* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8370 for ac_lib in '' dir; do
8371 if test -z "$ac_lib"; then
8372 ac_res="none required"
8375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_link") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392 { (case "(($ac_try" in
8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397 (eval "$ac_try") 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_try") 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_search_opendir=$ac_res
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8419 rm -f core conftest.err conftest.$ac_objext \
8421 if test "${ac_cv_search_opendir+set}" = set; then
8425 if test "${ac_cv_search_opendir+set}" = set; then
8428 ac_cv_search_opendir=no
8431 LIBS=$ac_func_search_save_LIBS
8433 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8434 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8435 ac_res=$ac_cv_search_opendir
8436 if test "$ac_res" != no; then
8437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8442 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8443 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8444 if test "${ac_cv_search_opendir+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 ac_func_search_save_LIBS=$LIBS
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 /* Override any GCC internal prototype to avoid an error.
8456 Use char because int might match the return type of a GCC
8457 builtin and then its argument prototype would still apply. */
8470 for ac_lib in '' x; do
8471 if test -z "$ac_lib"; then
8472 ac_res="none required"
8475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_link") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest$ac_exeext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_cv_search_opendir=$ac_res
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8519 rm -f core conftest.err conftest.$ac_objext \
8521 if test "${ac_cv_search_opendir+set}" = set; then
8525 if test "${ac_cv_search_opendir+set}" = set; then
8528 ac_cv_search_opendir=no
8531 LIBS=$ac_func_search_save_LIBS
8533 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8534 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8535 ac_res=$ac_cv_search_opendir
8536 if test "$ac_res" != no; then
8537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544 for ac_header in dlfcn.h
8546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_res=`eval echo '${'$as_ac_Header'}'`
8554 { echo "$as_me:$LINENO: result: $ac_res" >&5
8555 echo "${ECHO_T}$ac_res" >&6; }
8557 # Is the header compilable?
8558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 #include <$ac_header>
8569 rm -f conftest.$ac_objext
8570 if { (ac_try="$ac_compile"
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8584 { (case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_try") 2>&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest.$ac_objext'
8594 { (case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_try") 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 ac_header_compiler=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_header_compiler=no
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613 echo "${ECHO_T}$ac_header_compiler" >&6; }
8615 # Is the header present?
8616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 #include <$ac_header>
8626 if { (ac_try="$ac_cpp conftest.$ac_ext"
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } >/dev/null; then
8639 if test -s conftest.err; then
8640 ac_cpp_err=$ac_c_preproc_warn_flag
8641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 if test -z "$ac_cpp_err"; then
8649 ac_header_preproc=yes
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_header_preproc=no
8657 rm -f conftest.err conftest.$ac_ext
8658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8659 echo "${ECHO_T}$ac_header_preproc" >&6; }
8661 # So? What about this header?
8662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8668 ac_header_preproc=yes
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8684 ## ------------------------------------ ##
8685 ## Report this to http://llvm.org/bugs/ ##
8686 ## ------------------------------------ ##
8688 ) | sed "s/^/$as_me: WARNING: /" >&2
8691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 eval "$as_ac_Header=\$ac_header_preproc"
8698 ac_res=`eval echo '${'$as_ac_Header'}'`
8699 { echo "$as_me:$LINENO: result: $ac_res" >&5
8700 echo "${ECHO_T}$ac_res" >&6; }
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704 cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 # Check whether --enable-ltdl-install was given.
8713 if test "${enable_ltdl_install+set}" = set; then
8714 enableval=$enable_ltdl_install;
8720 if test x"${enable_ltdl_install-no}" != xno; then
8722 INSTALL_LTDL_FALSE='#'
8724 INSTALL_LTDL_TRUE='#'
8730 if test x"${enable_ltdl_convenience-no}" != xno; then
8731 CONVENIENCE_LTDL_TRUE=
8732 CONVENIENCE_LTDL_FALSE='#'
8734 CONVENIENCE_LTDL_TRUE='#'
8735 CONVENIENCE_LTDL_FALSE=
8739 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8740 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8742 libname_spec='lib$name'
8750 shlibpath_overrides_runpath=unknown
8752 dynamic_linker="$host_os ld.so"
8753 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8754 if test "$GCC" = yes; then
8755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8757 # if the path contains ";" then we assume it to be the separator
8758 # otherwise default to the standard path separator (i.e. ":") - it is
8759 # assumed that no part of a normal pathname contains ";" but that should
8760 # okay in the real world where ";" in dirpaths is itself problematic.
8761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8768 need_lib_prefix=unknown
8769 hardcode_into_libs=no
8771 # when you set need_version to no, make sure it does not cause -set_version
8772 # flags to be left without arguments
8773 need_version=unknown
8778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8779 shlibpath_var=LIBPATH
8781 # AIX 3 has no versioning support, so we append a major version to the name.
8782 soname_spec='${libname}${release}${shared_ext}$major'
8789 hardcode_into_libs=yes
8790 if test "$host_cpu" = ia64; then
8791 # AIX 5 supports IA64
8792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8793 shlibpath_var=LD_LIBRARY_PATH
8795 # With GCC up to 2.95.x, collect2 would create an import file
8796 # for dependence libraries. The import file would start with
8797 # the line `#! .'. This would cause the generated library to
8798 # depend on `.', always an invalid library. This was fixed in
8799 # development snapshots of GCC prior to 3.0.
8801 aix4 | aix4.[01] | aix4.[01].*)
8802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8812 # soname into executable. Probably we can add versioning support to
8813 # collect2, so additional links can be useful in future.
8814 if test "$aix_use_runtimelinking" = yes; then
8815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8816 # instead of lib<name>.a to let people know that these are not
8817 # typical AIX shared libraries.
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 # We preserve .a as extension for shared libraries through AIX4.2
8821 # and later when we are not doing run time linking.
8822 library_names_spec='${libname}${release}.a $libname.a'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LIBPATH
8830 library_names_spec='$libname.ixlibrary $libname.a'
8831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8832 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'
8836 library_names_spec='${libname}${shared_ext}'
8837 dynamic_linker="$host_os ld.so"
8838 shlibpath_var=LIBRARY_PATH
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8847 shlibpath_var=LD_LIBRARY_PATH
8848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8850 # the default ld.so.conf also contains /usr/contrib/lib and
8851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8852 # libtool to hard-code these into programs
8855 cygwin* | mingw* | pw32*)
8856 version_type=windows
8861 case $GCC,$host_os in
8862 yes,cygwin* | yes,mingw* | yes,pw32*)
8863 library_names_spec='$libname.dll.a'
8864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8865 postinstall_cmds='base_file=`basename \${file}`~
8866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8867 dldir=$destdir/`dirname \$dlpath`~
8868 test -d \$dldir || mkdir -p \$dldir~
8869 $install_prog $dir/$dlname \$dldir/$dlname~
8870 chmod a+x \$dldir/$dlname'
8871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8872 dlpath=$dir/\$dldll~
8874 shlibpath_overrides_runpath=yes
8878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8880 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8883 # MinGW DLLs use traditional 'lib' prefix
8884 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8886 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8887 # It is most probably a Windows format PATH printed by
8888 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8889 # path with ; separators, and with drive letters. We can handle the
8890 # drive letters (cygwin fileutils understands them), so leave them,
8891 # especially as we might pass files found there to a mingw objdump,
8892 # which wouldn't understand a cygwinified path. Ahh.
8893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8899 # pw32 DLLs use 'pw' prefix rather than 'lib'
8900 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8909 dynamic_linker='Win32 ld.exe'
8910 # FIXME: first we should search . and the directory the executable is in
8914 darwin* | rhapsody*)
8915 dynamic_linker="$host_os dyld"
8919 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8920 soname_spec='${libname}${release}${major}$shared_ext'
8921 shlibpath_overrides_runpath=yes
8922 shlibpath_var=DYLD_LIBRARY_PATH
8923 shrext_cmds='.dylib'
8924 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8925 if test "$GCC" = yes; then
8926 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"`
8928 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 shlibpath_var=LD_LIBRARY_PATH
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 dynamic_linker='GNU ld.so'
8958 freebsd* | dragonfly*)
8959 # DragonFly does not have aout. When/if they implement a new
8960 # versioning mechanism, adjust this.
8961 if test -x /usr/bin/objformat; then
8962 objformat=`/usr/bin/objformat`
8965 freebsd[123].*) objformat=aout ;;
8969 version_type=freebsd-$objformat
8970 case $version_type in
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8981 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=yes
8986 freebsd3.[01]* | freebsdelf3.[01]*)
8987 shlibpath_overrides_runpath=yes
8988 hardcode_into_libs=yes
8990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8992 shlibpath_overrides_runpath=no
8993 hardcode_into_libs=yes
8995 freebsd*) # from 4.6 on
8996 shlibpath_overrides_runpath=yes
8997 hardcode_into_libs=yes
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 hardcode_into_libs=yes
9012 hpux9* | hpux10* | hpux11*)
9013 # Give a soname corresponding to the major version so that dld.sl refuses to
9014 # link against other versions.
9021 hardcode_into_libs=yes
9022 dynamic_linker="$host_os dld.so"
9023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036 hardcode_into_libs=yes
9037 dynamic_linker="$host_os dld.sl"
9038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047 dynamic_linker="$host_os dld.sl"
9048 shlibpath_var=SHLIB_PATH
9049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9055 postinstall_cmds='chmod 555 $lib'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=no
9067 hardcode_into_libs=yes
9070 irix5* | irix6* | nonstopux*)
9072 nonstopux*) version_type=nonstopux ;;
9074 if test "$lt_cv_prog_gnu_ld" = yes; then
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 irix5* | nonstopux*)
9089 case $LD in # libtool.m4 will add one of these switches to LD
9090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9091 libsuff= shlibsuff= libmagic=32-bit;;
9092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9093 libsuff=32 shlibsuff=N32 libmagic=N32;;
9094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9096 *) libsuff= shlibsuff= libmagic=never-match;;
9100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9101 shlibpath_overrides_runpath=no
9102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9104 hardcode_into_libs=yes
9107 # No shared lib support for Linux oldld, aout, or coff.
9108 linux*oldld* | linux*aout* | linux*coff*)
9112 # This must be Linux ELF.
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9120 shlibpath_var=LD_LIBRARY_PATH
9121 shlibpath_overrides_runpath=no
9122 # This implies no fast_install, which is unacceptable.
9123 # Some rework will be needed to allow for fast_install
9124 # before this can be enabled.
9125 hardcode_into_libs=yes
9127 # Append ld.so.conf contents to the search path
9128 if test -f /etc/ld.so.conf; then
9129 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' ' '`
9130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9133 # We used to test for /lib/ld.so.1 and disable shared libraries on
9134 # powerpc, because MkLinux only supported shared libraries with the
9135 # GNU dynamic linker. Since this was broken with cross compilers,
9136 # most powerpc-linux boxes support dynamic linking these days and
9137 # people can always --disable-shared, the test was removed, and we
9138 # assume the GNU/Linux dynamic linker is in use.
9139 dynamic_linker='GNU/Linux ld.so'
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9147 soname_spec='${libname}${release}${shared_ext}$major'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=no
9150 hardcode_into_libs=yes
9151 dynamic_linker='GNU ld.so'
9158 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9161 dynamic_linker='NetBSD (a.out) ld.so'
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9164 soname_spec='${libname}${release}${shared_ext}$major'
9165 dynamic_linker='NetBSD ld.elf_so'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 hardcode_into_libs=yes
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 shlibpath_overrides_runpath=yes
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=yes
9191 sys_lib_dlsearch_path_spec="/usr/lib"
9193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9196 *) need_version=no ;;
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9203 openbsd2.[89] | openbsd2.[89].*)
9204 shlibpath_overrides_runpath=no
9207 shlibpath_overrides_runpath=yes
9211 shlibpath_overrides_runpath=yes
9216 libname_spec='$name'
9219 library_names_spec='$libname${shared_ext} $libname.a'
9220 dynamic_linker='OS/2 ld.exe'
9221 shlibpath_var=LIBPATH
9224 osf3* | osf4* | osf5*)
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 shlibpath_overrides_runpath=yes
9243 hardcode_into_libs=yes
9244 # ldd complains unless libraries are executable
9245 postinstall_cmds='chmod +x $lib'
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
9253 shlibpath_overrides_runpath=yes
9254 if test "$with_gnu_ld" = yes; then
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 soname_spec='${libname}${release}${shared_ext}$major'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 case $host_vendor in
9267 shlibpath_overrides_runpath=no
9269 export_dynamic_flag_spec='${wl}-Blargedynsym'
9270 runpath_var=LD_RUN_PATH
9278 shlibpath_overrides_runpath=no
9279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9285 if test -d /usr/nec ;then
9287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9288 soname_spec='$libname${shared_ext}.$major'
9289 shlibpath_var=LD_LIBRARY_PATH
9293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9294 version_type=freebsd-elf
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 hardcode_into_libs=yes
9301 if test "$with_gnu_ld" = yes; then
9302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9303 shlibpath_overrides_runpath=no
9305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9306 shlibpath_overrides_runpath=yes
9309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9313 sys_lib_dlsearch_path_spec='/usr/lib'
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9327 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9328 echo "${ECHO_T}$dynamic_linker" >&6; }
9329 test "$dynamic_linker" = no && can_build_shared=no
9331 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9332 if test "$GCC" = yes; then
9333 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9337 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9338 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9339 if test "${libltdl_cv_shlibext+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9344 eval libltdl_cv_shlibext=$shrext_cmds
9347 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9348 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9349 if test -n "$libltdl_cv_shlibext"; then
9351 cat >>confdefs.h <<_ACEOF
9352 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9358 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9359 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9360 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 libltdl_cv_shlibpath_var="$shlibpath_var"
9365 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9366 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9367 if test -n "$libltdl_cv_shlibpath_var"; then
9369 cat >>confdefs.h <<_ACEOF
9370 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9376 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9377 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9378 if test "${libltdl_cv_sys_search_path+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9383 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9384 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9385 if test -n "$libltdl_cv_sys_search_path"; then
9387 for dir in $libltdl_cv_sys_search_path; do
9388 if test -z "$sys_search_path"; then
9389 sys_search_path="$dir"
9391 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9395 cat >>confdefs.h <<_ACEOF
9396 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9401 { echo "$as_me:$LINENO: checking for objdir" >&5
9402 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9403 if test "${libltdl_cv_objdir+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 libltdl_cv_objdir="$objdir"
9407 if test -n "$objdir"; then
9410 rm -f .libs 2>/dev/null
9411 mkdir .libs 2>/dev/null
9412 if test -d .libs; then
9413 libltdl_cv_objdir=.libs
9415 # MS-DOS does not allow filenames that begin with a dot.
9416 libltdl_cv_objdir=_libs
9418 rmdir .libs 2>/dev/null
9422 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9423 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9425 cat >>confdefs.h <<_ACEOF
9426 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9434 # Check for command to grab the raw symbol name followed by C symbol from nm.
9435 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9436 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9437 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 # These are sane defaults that work on at least a few old systems.
9442 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9444 # Character class describing NM global symbol codes.
9445 symcode='[BCDEGRST]'
9447 # Regexp to match symbols that can be accessed directly from C.
9448 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9450 # Transform an extracted symbol line into a proper C declaration
9451 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9453 # Transform an extracted symbol line into symbol name and symbol address
9454 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'"
9456 # Define system-specific variables.
9461 cygwin* | mingw* | pw32*)
9462 symcode='[ABCDGISTW]'
9464 hpux*) # Its linker distinguishes data from code symbols
9465 if test "$host_cpu" = ia64; then
9466 symcode='[ABCDEGRST]'
9468 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9469 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'"
9472 if test "$host_cpu" = ia64; then
9473 symcode='[ABCDGIRSTW]'
9474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475 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'"
9479 symcode='[BCDEGRST]'
9482 symcode='[BCDEGQRST]'
9493 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9501 # Handle CRLF in mingw tool chain
9505 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9509 # If we're using GNU nm, then use its standard symbol codes.
9510 case `$NM -V 2>&1` in
9511 *GNU* | *'with BFD'*)
9512 symcode='[ABCDGIRSTW]' ;;
9515 # Try without a prefix undercore, then with it.
9516 for ac_symprfx in "" "_"; do
9518 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9519 symxfrm="\\1 $ac_symprfx\\2 \\2"
9521 # Write the raw and C identifiers.
9522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9524 # Check to see that the pipe works correctly.
9528 cat > conftest.$ac_ext <<EOF
9533 void nm_test_func(){}
9537 int main(){nm_test_var='a';nm_test_func();return(0);}
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); }; then
9545 # Now try to grab the symbols.
9547 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && test -s "$nlist"; then
9552 # Try sorting and uniquifying the output.
9553 if sort "$nlist" | uniq > "$nlist"T; then
9554 mv -f "$nlist"T "$nlist"
9559 # Make sure that we snagged all the symbols we need.
9560 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9561 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9562 cat <<EOF > conftest.$ac_ext
9568 # Now generate the symbol file.
9569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9571 cat <<EOF >> conftest.$ac_ext
9572 #if defined (__STDC__) && __STDC__
9573 # define lt_ptr_t void *
9575 # define lt_ptr_t char *
9579 /* The mapping between symbol names and symbols. */
9584 lt_preloaded_symbols[] =
9587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9588 cat <<\EOF >> conftest.$ac_ext
9596 # Now try linking the two files.
9597 mv conftest.$ac_objext conftstm.$ac_objext
9598 lt_save_LIBS="$LIBS"
9599 lt_save_CFLAGS="$CFLAGS"
9600 LIBS="conftstm.$ac_objext"
9601 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9609 LIBS="$lt_save_LIBS"
9610 CFLAGS="$lt_save_CFLAGS"
9612 echo "cannot find nm_test_func in $nlist" >&5
9615 echo "cannot find nm_test_var in $nlist" >&5
9618 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9621 echo "$progname: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9624 rm -f conftest* conftst*
9626 # Do not use the global_symbol_pipe unless it works.
9627 if test "$pipe_works" = yes; then
9630 lt_cv_sys_global_symbol_pipe=
9636 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9637 lt_cv_sys_global_symbol_to_cdecl=
9639 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9640 { echo "$as_me:$LINENO: result: failed" >&5
9641 echo "${ECHO_T}failed" >&6; }
9643 { echo "$as_me:$LINENO: result: ok" >&5
9644 echo "${ECHO_T}ok" >&6; }
9648 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9649 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9650 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9654 libltdl_cv_preloaded_symbols=yes
9656 libltdl_cv_preloaded_symbols=no
9660 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9661 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9662 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_PRELOADED_SYMBOLS 1
9673 ac_cpp='$CPP $CPPFLAGS'
9674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9679 { echo "$as_me:$LINENO: checking for shl_load" >&5
9680 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9681 if test "${ac_cv_func_shl_load+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h. */
9690 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9692 #define shl_load innocuous_shl_load
9694 /* System header to define __stub macros and hopefully few prototypes,
9695 which can conflict with char shl_load (); below.
9696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9697 <limits.h> exists even on freestanding compilers. */
9700 # include <limits.h>
9702 # include <assert.h>
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9714 /* The GNU C library defines this for functions which it implements
9715 to always fail with ENOSYS. Some functions are actually named
9716 something starting with __ and the normal name is an alias. */
9717 #if defined __stub_shl_load || defined __stub___shl_load
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (ac_try="$ac_link"
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9733 *) ac_try_echo=$ac_try;;
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9736 (eval "$ac_link") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9744 { (case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_try") 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest$ac_exeext'
9754 { (case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_try") 2>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_func_shl_load=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_shl_load=no
9771 rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9774 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9775 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9776 if test $ac_cv_func_shl_load = yes; then
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_SHL_LOAD 1
9783 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9784 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9785 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 ac_check_lib_save_LIBS=$LIBS
9790 cat >conftest.$ac_ext <<_ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1 >conftest.err
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_lib_dld_shl_load=yes
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_cv_lib_dld_shl_load=no
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9858 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9860 if test $ac_cv_lib_dld_shl_load = yes; then
9862 cat >>confdefs.h <<\_ACEOF
9863 #define HAVE_SHL_LOAD 1
9866 LIBADD_DL="$LIBADD_DL -ldld"
9868 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9869 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 ac_check_lib_save_LIBS=$LIBS
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9882 /* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (ac_try="$ac_link"
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_lib_dl_dlopen=yes
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 ac_cv_lib_dl_dlopen=no
9939 rm -f core conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_check_lib_save_LIBS
9943 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9944 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9945 if test $ac_cv_lib_dl_dlopen = yes; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_LIBDL 1
9951 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } &&
9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; } &&
9995 { ac_try='test -s conftest$ac_exeext'
9996 { (case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_try") 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_LIBDL 1
10009 libltdl_cv_func_dlopen="yes"
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-lsvld $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_svld_dlopen=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_svld_dlopen=no
10085 rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10089 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10090 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10091 if test $ac_cv_lib_svld_dlopen = yes; then
10093 cat >>confdefs.h <<\_ACEOF
10094 #define HAVE_LIBDL 1
10097 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10099 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 ac_check_lib_save_LIBS=$LIBS
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10123 return dld_link ();
10128 rm -f conftest.$ac_objext conftest$ac_exeext
10129 if { (ac_try="$ac_link"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_link") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10143 { (case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_try") 2>&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_lib_dld_dld_link=yes
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_lib_dld_dld_link=no
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LIBS=$ac_check_lib_save_LIBS
10174 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10175 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10176 if test $ac_cv_lib_dld_dld_link = yes; then
10178 cat >>confdefs.h <<\_ACEOF
10182 LIBADD_DL="$LIBADD_DL -ldld"
10184 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10185 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10186 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 cat >conftest.$ac_ext <<_ACEOF
10192 cat confdefs.h >>conftest.$ac_ext
10193 cat >>conftest.$ac_ext <<_ACEOF
10194 /* end confdefs.h. */
10195 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10197 #define _dyld_func_lookup innocuous__dyld_func_lookup
10199 /* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char _dyld_func_lookup (); below.
10201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10202 <limits.h> exists even on freestanding compilers. */
10205 # include <limits.h>
10207 # include <assert.h>
10210 #undef _dyld_func_lookup
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10218 char _dyld_func_lookup ();
10219 /* The GNU C library defines this for functions which it implements
10220 to always fail with ENOSYS. Some functions are actually named
10221 something starting with __ and the normal name is an alias. */
10222 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10229 return _dyld_func_lookup ();
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (ac_try="$ac_link"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10249 { (case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_try") 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; } &&
10258 { ac_try='test -s conftest$ac_exeext'
10259 { (case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_try") 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_func__dyld_func_lookup=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 ac_cv_func__dyld_func_lookup=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10279 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10280 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10281 if test $ac_cv_func__dyld_func_lookup = yes; then
10283 cat >>confdefs.h <<\_ACEOF
10284 #define HAVE_DYLD 1
10298 rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
10310 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10312 lt_save_LIBS="$LIBS"
10313 LIBS="$LIBS $LIBADD_DL"
10315 for ac_func in dlerror
10317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 cat >conftest.$ac_ext <<_ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331 #define $ac_func innocuous_$ac_func
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char $ac_func (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10339 # include <limits.h>
10341 # include <assert.h>
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10353 /* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356 #if defined __stub_$ac_func || defined __stub___$ac_func
10363 return $ac_func ();
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 eval "$as_ac_var=yes"
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 eval "$as_ac_var=no"
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10413 ac_res=`eval echo '${'$as_ac_var'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10416 if test `eval echo '${'$as_ac_var'}'` = yes; then
10417 cat >>confdefs.h <<_ACEOF
10418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10424 LIBS="$lt_save_LIBS"
10427 ac_cpp='$CPP $CPPFLAGS'
10428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10435 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10436 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 ac_cv_sys_symbol_underscore=no
10440 cat > conftest.$ac_ext <<EOF
10441 void nm_test_func(){}
10442 int main(){nm_test_func;return 0;}
10444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10445 (eval $ac_compile) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; then
10449 # Now try to grab the symbols.
10450 ac_nlist=conftest.nm
10451 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10452 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && test -s "$ac_nlist"; then
10456 # See whether the symbols have a leading underscore.
10457 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10458 ac_cv_sys_symbol_underscore=yes
10460 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10463 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10467 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10470 echo "configure: failed program was:" >&5
10476 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10477 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10480 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10481 if test x"$libltdl_cv_func_dlopen" = xyes ||
10482 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10483 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10484 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10485 if test "${libltdl_cv_need_uscore+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 libltdl_cv_need_uscore=unknown
10490 LIBS="$LIBS $LIBADD_DL"
10491 if test "$cross_compiling" = yes; then :
10492 libltdl_cv_need_uscore=cross
10494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10495 lt_status=$lt_dlunknown
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10496 "configure"
10498 #include "confdefs.h"
10507 # define LT_DLGLOBAL RTLD_GLOBAL
10510 # define LT_DLGLOBAL DL_GLOBAL
10512 # define LT_DLGLOBAL 0
10516 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10517 find out it does not work in some platform. */
10518 #ifndef LT_DLLAZY_OR_NOW
10520 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10523 # define LT_DLLAZY_OR_NOW DL_LAZY
10526 # define LT_DLLAZY_OR_NOW RTLD_NOW
10529 # define LT_DLLAZY_OR_NOW DL_NOW
10531 # define LT_DLLAZY_OR_NOW 0
10539 extern "C" void exit (int);
10542 void fnord() { int i=42;}
10545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10546 int status = $lt_dlunknown;
10550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10552 /* dlclose (self); */
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10565 (./conftest; exit; ) >&5 2>/dev/null
10567 case x$lt_status in
10568 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10569 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10570 x$lt_dlunknown|x*) ;;
10573 # compilation failed
10582 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10583 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10587 if test x"$libltdl_cv_need_uscore" = xyes; then
10589 cat >>confdefs.h <<\_ACEOF
10590 #define NEED_USCORE 1
10596 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10597 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10598 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 # PORTME does your system automatically load deplibs for dlopen?
10602 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10603 # For now, we just catch OSes we know something about -- in the
10604 # future, we'll try test this programmatically.
10605 libltdl_cv_sys_dlopen_deplibs=unknown
10607 aix3*|aix4.1.*|aix4.2.*)
10608 # Unknown whether this is true for these versions of AIX, but
10609 # we want this `case' here to explicitly catch those versions.
10610 libltdl_cv_sys_dlopen_deplibs=unknown
10613 libltdl_cv_sys_dlopen_deplibs=yes
10616 # Assuming the user has installed a libdl from somewhere, this is true
10617 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10618 libltdl_cv_sys_dlopen_deplibs=yes
10620 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10621 # GNU and its variants, using gnu ld.so (Glibc)
10622 libltdl_cv_sys_dlopen_deplibs=yes
10625 libltdl_cv_sys_dlopen_deplibs=yes
10628 libltdl_cv_sys_dlopen_deplibs=yes
10630 irix[12345]*|irix6.[01]*)
10631 # Catch all versions of IRIX before 6.2, and indicate that we don't
10632 # know how it worked for any of those versions.
10633 libltdl_cv_sys_dlopen_deplibs=unknown
10636 # The case above catches anything before 6.2, and it's known that
10637 # at 6.2 and later dlopen does load deplibs.
10638 libltdl_cv_sys_dlopen_deplibs=yes
10641 libltdl_cv_sys_dlopen_deplibs=yes
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10648 # it did *not* use an RPATH in a shared library to find objects the
10649 # library depends on, so we explicitly say `no'.
10650 libltdl_cv_sys_dlopen_deplibs=no
10652 osf5.0|osf5.0a|osf5.1)
10653 # dlopen *does* load deplibs and with the right loader patch applied
10654 # it even uses RPATH in a shared library to search for shared objects
10655 # that the library depends on, but there's no easy way to know if that
10656 # patch is installed. Since this is the case, all we can really
10657 # say is unknown -- it depends on the patch being installed. If
10658 # it is, this changes to `yes'. Without it, it would be `no'.
10659 libltdl_cv_sys_dlopen_deplibs=unknown
10662 # the two cases above should catch all versions of osf <= 5.1. Read
10663 # the comments above for what we know about them.
10664 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10665 # is used to find them so we can finally say `yes'.
10666 libltdl_cv_sys_dlopen_deplibs=yes
10669 libltdl_cv_sys_dlopen_deplibs=yes
10671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10672 libltdl_cv_sys_dlopen_deplibs=yes
10677 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10678 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10679 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10681 cat >>confdefs.h <<\_ACEOF
10682 #define LTDL_DLOPEN_DEPLIBS 1
10688 for ac_header in argz.h
10690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 ac_res=`eval echo '${'$as_ac_Header'}'`
10698 { echo "$as_me:$LINENO: result: $ac_res" >&5
10699 echo "${ECHO_T}$ac_res" >&6; }
10701 # Is the header compilable?
10702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10704 cat >conftest.$ac_ext <<_ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 $ac_includes_default
10711 #include <$ac_header>
10713 rm -f conftest.$ac_objext
10714 if { (ac_try="$ac_compile"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_compile") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_try") 2>&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 ac_header_compiler=yes
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10752 ac_header_compiler=no
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10757 echo "${ECHO_T}$ac_header_compiler" >&6; }
10759 # Is the header present?
10760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10762 cat >conftest.$ac_ext <<_ACEOF
10765 cat confdefs.h >>conftest.$ac_ext
10766 cat >>conftest.$ac_ext <<_ACEOF
10767 /* end confdefs.h. */
10768 #include <$ac_header>
10770 if { (ac_try="$ac_cpp conftest.$ac_ext"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10778 grep -v '^ *+' conftest.er1 >conftest.err
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null; then
10783 if test -s conftest.err; then
10784 ac_cpp_err=$ac_c_preproc_warn_flag
10785 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792 if test -z "$ac_cpp_err"; then
10793 ac_header_preproc=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_header_preproc=no
10801 rm -f conftest.err conftest.$ac_ext
10802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10803 echo "${ECHO_T}$ac_header_preproc" >&6; }
10805 # So? What about this header?
10806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10812 ac_header_preproc=yes
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10828 ## ------------------------------------ ##
10829 ## Report this to http://llvm.org/bugs/ ##
10830 ## ------------------------------------ ##
10832 ) | sed "s/^/$as_me: WARNING: /" >&2
10835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10840 eval "$as_ac_Header=\$ac_header_preproc"
10842 ac_res=`eval echo '${'$as_ac_Header'}'`
10843 { echo "$as_me:$LINENO: result: $ac_res" >&5
10844 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10857 { echo "$as_me:$LINENO: checking for error_t" >&5
10858 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10859 if test "${ac_cv_type_error_t+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10872 typedef error_t ac__type_new_;
10876 if ((ac__type_new_ *) 0)
10878 if (sizeof (ac__type_new_))
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1 >conftest.err
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
10909 { (case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_type_error_t=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_type_error_t=no
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10929 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10930 if test $ac_cv_type_error_t = yes; then
10932 cat >>confdefs.h <<_ACEOF
10933 #define HAVE_ERROR_T 1
10939 cat >>confdefs.h <<\_ACEOF
10940 #define error_t int
10951 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10967 #define $ac_func innocuous_$ac_func
10969 /* System header to define __stub macros and hopefully few prototypes,
10970 which can conflict with char $ac_func (); below.
10971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972 <limits.h> exists even on freestanding compilers. */
10975 # include <limits.h>
10977 # include <assert.h>
10982 /* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10989 /* The GNU C library defines this for functions which it implements
10990 to always fail with ENOSYS. Some functions are actually named
10991 something starting with __ and the normal name is an alias. */
10992 #if defined __stub_$ac_func || defined __stub___$ac_func
10999 return $ac_func ();
11004 rm -f conftest.$ac_objext conftest$ac_exeext
11005 if { (ac_try="$ac_link"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_link") 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest$ac_exeext'
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 eval "$as_ac_var=yes"
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11043 eval "$as_ac_var=no"
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11049 ac_res=`eval echo '${'$as_ac_var'}'`
11050 { echo "$as_me:$LINENO: result: $ac_res" >&5
11051 echo "${ECHO_T}$ac_res" >&6; }
11052 if test `eval echo '${'$as_ac_var'}'` = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11087 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 ac_res=`eval echo '${'$as_ac_Header'}'`
11098 { echo "$as_me:$LINENO: result: $ac_res" >&5
11099 echo "${ECHO_T}$ac_res" >&6; }
11101 # Is the header compilable?
11102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 $ac_includes_default
11111 #include <$ac_header>
11113 rm -f conftest.$ac_objext
11114 if { (ac_try="$ac_compile"
11115 case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_compile") 2>conftest.er1
11122 grep -v '^ *+' conftest.er1 >conftest.err
11124 cat conftest.err >&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11128 { (case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_try") 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_try") 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_header_compiler=yes
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11152 ac_header_compiler=no
11155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11157 echo "${ECHO_T}$ac_header_compiler" >&6; }
11159 # Is the header present?
11160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <$ac_header>
11170 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11183 if test -s conftest.err; then
11184 ac_cpp_err=$ac_c_preproc_warn_flag
11185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192 if test -z "$ac_cpp_err"; then
11193 ac_header_preproc=yes
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 ac_header_preproc=no
11201 rm -f conftest.err conftest.$ac_ext
11202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11203 echo "${ECHO_T}$ac_header_preproc" >&6; }
11205 # So? What about this header?
11206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11212 ac_header_preproc=yes
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11228 ## ------------------------------------ ##
11229 ## Report this to http://llvm.org/bugs/ ##
11230 ## ------------------------------------ ##
11232 ) | sed "s/^/$as_me: WARNING: /" >&2
11235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 eval "$as_ac_Header=\$ac_header_preproc"
11242 ac_res=`eval echo '${'$as_ac_Header'}'`
11243 { echo "$as_me:$LINENO: result: $ac_res" >&5
11244 echo "${ECHO_T}$ac_res" >&6; }
11247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11248 cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11260 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11273 # Is the header compilable?
11274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 #include <$ac_header>
11285 rm -f conftest.$ac_objext
11286 if { (ac_try="$ac_compile"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_header_compiler=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_compiler=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <$ac_header>
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_header_preproc=no
11373 rm -f conftest.err conftest.$ac_ext
11374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375 echo "${ECHO_T}$ac_header_preproc" >&6; }
11377 # So? What about this header?
11378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400 ## ------------------------------------ ##
11401 ## Report this to http://llvm.org/bugs/ ##
11402 ## ------------------------------------ ##
11404 ) | sed "s/^/$as_me: WARNING: /" >&2
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 eval "$as_ac_Header=\$ac_header_preproc"
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 for ac_header in string.h strings.h
11432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 ac_res=`eval echo '${'$as_ac_Header'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11443 # Is the header compilable?
11444 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11446 cat >conftest.$ac_ext <<_ACEOF
11449 cat confdefs.h >>conftest.$ac_ext
11450 cat >>conftest.$ac_ext <<_ACEOF
11451 /* end confdefs.h. */
11452 $ac_includes_default
11453 #include <$ac_header>
11455 rm -f conftest.$ac_objext
11456 if { (ac_try="$ac_compile"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_compile") 2>conftest.er1
11464 grep -v '^ *+' conftest.er1 >conftest.err
11466 cat conftest.err >&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; } &&
11479 { ac_try='test -s conftest.$ac_objext'
11480 { (case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_try") 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 ac_header_compiler=yes
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_compiler=no
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499 echo "${ECHO_T}$ac_header_compiler" >&6; }
11501 # Is the header present?
11502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11512 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11525 if test -s conftest.err; then
11526 ac_cpp_err=$ac_c_preproc_warn_flag
11527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534 if test -z "$ac_cpp_err"; then
11535 ac_header_preproc=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 ac_header_preproc=no
11543 rm -f conftest.err conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11545 echo "${ECHO_T}$ac_header_preproc" >&6; }
11547 # So? What about this header?
11548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11554 ac_header_preproc=yes
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11570 ## ------------------------------------ ##
11571 ## Report this to http://llvm.org/bugs/ ##
11572 ## ------------------------------------ ##
11574 ) | sed "s/^/$as_me: WARNING: /" >&2
11577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 eval "$as_ac_Header=\$ac_header_preproc"
11584 ac_res=`eval echo '${'$as_ac_Header'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11590 cat >>confdefs.h <<_ACEOF
11591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11601 for ac_func in strchr index
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617 #define $ac_func innocuous_$ac_func
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11625 # include <limits.h>
11627 # include <assert.h>
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 return $ac_func ();
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest$ac_exeext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "$as_ac_var=yes"
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 eval "$as_ac_var=no"
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11699 ac_res=`eval echo '${'$as_ac_var'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701 echo "${ECHO_T}$ac_res" >&6; }
11702 if test `eval echo '${'$as_ac_var'}'` = yes; then
11703 cat >>confdefs.h <<_ACEOF
11704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11712 for ac_func in strrchr rindex
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11728 #define $ac_func innocuous_$ac_func
11730 /* System header to define __stub macros and hopefully few prototypes,
11731 which can conflict with char $ac_func (); below.
11732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11733 <limits.h> exists even on freestanding compilers. */
11736 # include <limits.h>
11738 # include <assert.h>
11743 /* Override any GCC internal prototype to avoid an error.
11744 Use char because int might match the return type of a GCC
11745 builtin and then its argument prototype would still apply. */
11750 /* The GNU C library defines this for functions which it implements
11751 to always fail with ENOSYS. Some functions are actually named
11752 something starting with __ and the normal name is an alias. */
11753 #if defined __stub_$ac_func || defined __stub___$ac_func
11760 return $ac_func ();
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (ac_try="$ac_link"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_link") 2>conftest.er1
11774 grep -v '^ *+' conftest.er1 >conftest.err
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest$ac_exeext'
11790 { (case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_try") 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 eval "$as_ac_var=yes"
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 eval "$as_ac_var=no"
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 ac_res=`eval echo '${'$as_ac_var'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812 echo "${ECHO_T}$ac_res" >&6; }
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11814 cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11823 for ac_func in memcpy bcopy
11825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11839 #define $ac_func innocuous_$ac_func
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char $ac_func (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11847 # include <limits.h>
11849 # include <assert.h>
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11861 /* The GNU C library defines this for functions which it implements
11862 to always fail with ENOSYS. Some functions are actually named
11863 something starting with __ and the normal name is an alias. */
11864 #if defined __stub_$ac_func || defined __stub___$ac_func
11871 return $ac_func ();
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (ac_try="$ac_link"
11878 case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_link") 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11891 { (case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_try") 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try='test -s conftest$ac_exeext'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 eval "$as_ac_var=yes"
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11915 eval "$as_ac_var=no"
11918 rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11921 ac_res=`eval echo '${'$as_ac_var'}'`
11922 { echo "$as_me:$LINENO: result: $ac_res" >&5
11923 echo "${ECHO_T}$ac_res" >&6; }
11924 if test `eval echo '${'$as_ac_var'}'` = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11934 for ac_func in memmove strcmp
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11958 # include <limits.h>
11960 # include <assert.h>
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 return $ac_func ();
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 eval "$as_ac_var=no"
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033 { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12046 for ac_func in closedir opendir readdir
12048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12062 #define $ac_func innocuous_$ac_func
12064 /* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char $ac_func (); below.
12066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 <limits.h> exists even on freestanding compilers. */
12070 # include <limits.h>
12072 # include <assert.h>
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined __stub_$ac_func || defined __stub___$ac_func
12094 return $ac_func ();
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12108 grep -v '^ *+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12114 { (case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_try") 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; } &&
12123 { ac_try='test -s conftest$ac_exeext'
12124 { (case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_try") 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 eval "$as_ac_var=yes"
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 eval "$as_ac_var=no"
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12144 ac_res=`eval echo '${'$as_ac_var'}'`
12145 { echo "$as_me:$LINENO: result: $ac_res" >&5
12146 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_var'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12157 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12158 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12171 if test "$GCC" != "yes" && test "$ICC" != "yes"
12173 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12174 echo "$as_me: error: gcc|icc required but not found" >&2;}
12175 { (exit 1); exit 1; }; }
12178 if test "$GXX" != "yes" && test "$IXX" != "yes"
12180 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12181 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12182 { (exit 1); exit 1; }; }
12185 if test "$GCC" = "yes"
12187 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12195 #if !defined(__GNUC__) || __GNUC__ < 3
12196 #error Unsupported GCC version
12201 rm -f conftest.$ac_objext
12202 if { (ac_try="$ac_compile"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_compile") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1 >conftest.err
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12241 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12242 { (exit 1); exit 1; }; }
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12248 if test -z "$llvm_cv_gnu_make_command"
12250 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12251 echo "$as_me: error: GNU Make required but not found" >&2;}
12252 { (exit 1); exit 1; }; }
12255 { echo "$as_me:$LINENO: result: ok" >&5
12256 echo "${ECHO_T}ok" >&6; }
12258 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12259 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12260 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12262 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12264 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wno-nested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12266 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12268 if test "$GXX" = "yes"
12270 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12272 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12274 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12277 gxx_version=`$CXX -dumpversion`
12278 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12279 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12280 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12282 if test "$gxx_version_major" -ge "4" \
12283 && test "$gxx_version_minor" -ge "7"; then
12286 NO_MAYBE_UNINITIALIZED=
12287 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12293 NO_MAYBE_UNINITIALIZED=
12295 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12296 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12299 # Check whether --with-python was given.
12300 if test "${with_python+set}" = set; then
12301 withval=$with_python; PYTHON="$withval"
12305 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12306 { echo "$as_me:$LINENO: checking for python" >&5
12307 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12308 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12309 echo "${ECHO_T}user defined: $with_python" >&6; }
12311 if test -n "$PYTHON" ; then
12312 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12313 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12316 # Extract the first word of "python python2 python26", so it can be a program name with args.
12317 set dummy python python2 python26; ac_word=$2
12318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12320 if test "${ac_cv_path_PYTHON+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12344 echo "${ECHO_T}not found" >&6; }
12345 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12346 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12347 { (exit 1); exit 1; }; }"
12351 PYTHON=$ac_cv_path_PYTHON
12352 if test -n "$PYTHON"; then
12353 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12354 echo "${ECHO_T}$PYTHON" >&6; }
12356 { echo "$as_me:$LINENO: result: no" >&5
12357 echo "${ECHO_T}no" >&6; }
12363 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12364 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12365 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12366 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12367 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12368 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12369 if test "$ac_python_version_major" -eq "2" \
12370 && test "$ac_python_version_minor" -ge "5" ; then
12371 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12372 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12374 { echo "$as_me:$LINENO: result: not found" >&5
12375 echo "${ECHO_T}not found" >&6; }
12376 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12377 See \`config.log' for more details." >&5
12378 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12379 See \`config.log' for more details." >&2;}
12380 { (exit 1); exit 1; }; }
12385 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12386 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12387 if test "${ac_cv_lib_m_sin+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 ac_check_lib_save_LIBS=$LIBS
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (ac_try="$ac_link"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 ac_cv_lib_m_sin=yes
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12461 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12462 if test $ac_cv_lib_m_sin = yes; then
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_LIBM 1
12471 if test "$llvm_cv_os_type" = "MingW" ; then
12473 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12474 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12475 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-limagehlp $LIBS"
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12496 rm -f conftest.$ac_objext conftest$ac_exeext
12497 if { (ac_try="$ac_link"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_link") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_lib_imagehlp_main=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_cv_lib_imagehlp_main=no
12538 rm -f core conftest.err conftest.$ac_objext \
12539 conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12542 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12543 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12544 if test $ac_cv_lib_imagehlp_main = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define HAVE_LIBIMAGEHLP 1
12549 LIBS="-limagehlp $LIBS"
12554 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12555 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12556 if test "${ac_cv_lib_psapi_main+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lpsapi $LIBS"
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_link") 2>conftest.er1
12586 grep -v '^ *+' conftest.er1 >conftest.err
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 ac_cv_lib_psapi_main=yes
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_cv_lib_psapi_main=no
12619 rm -f core conftest.err conftest.$ac_objext \
12620 conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12623 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12624 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12625 if test $ac_cv_lib_psapi_main = yes; then
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_LIBPSAPI 1
12630 LIBS="-lpsapi $LIBS"
12636 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12637 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12638 if test "${ac_cv_search_dlopen+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 ac_func_search_save_LIBS=$LIBS
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12664 for ac_lib in '' dl; do
12665 if test -z "$ac_lib"; then
12666 ac_res="none required"
12669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12671 rm -f conftest.$ac_objext conftest$ac_exeext
12672 if { (ac_try="$ac_link"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_link") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12701 (eval "$ac_try") 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_search_dlopen=$ac_res
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12713 rm -f core conftest.err conftest.$ac_objext \
12715 if test "${ac_cv_search_dlopen+set}" = set; then
12719 if test "${ac_cv_search_dlopen+set}" = set; then
12722 ac_cv_search_dlopen=no
12724 rm conftest.$ac_ext
12725 LIBS=$ac_func_search_save_LIBS
12727 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12728 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12729 ac_res=$ac_cv_search_dlopen
12730 if test "$ac_res" != no; then
12731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12733 cat >>confdefs.h <<\_ACEOF
12734 #define HAVE_DLOPEN 1
12738 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12739 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12743 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12744 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_clock_gettime+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12756 /* Override any GCC internal prototype to avoid an error.
12757 Use char because int might match the return type of a GCC
12758 builtin and then its argument prototype would still apply. */
12762 char clock_gettime ();
12766 return clock_gettime ();
12771 for ac_lib in '' rt; do
12772 if test -z "$ac_lib"; then
12773 ac_res="none required"
12776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest$ac_exeext'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_search_clock_gettime=$ac_res
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12820 rm -f core conftest.err conftest.$ac_objext \
12822 if test "${ac_cv_search_clock_gettime+set}" = set; then
12826 if test "${ac_cv_search_clock_gettime+set}" = set; then
12829 ac_cv_search_clock_gettime=no
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12835 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12836 ac_res=$ac_cv_search_clock_gettime
12837 if test "$ac_res" != no; then
12838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12843 if test "$llvm_cv_enable_libffi" = "yes" ; then
12844 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12845 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12846 if test "${ac_cv_search_ffi_call+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_func_search_save_LIBS=$LIBS
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12867 return ffi_call ();
12872 for ac_lib in '' ffi; do
12873 if test -z "$ac_lib"; then
12874 ac_res="none required"
12877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12879 rm -f conftest.$ac_objext conftest$ac_exeext
12880 if { (ac_try="$ac_link"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_link") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_try") 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_search_ffi_call=$ac_res
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12921 rm -f core conftest.err conftest.$ac_objext \
12923 if test "${ac_cv_search_ffi_call+set}" = set; then
12927 if test "${ac_cv_search_ffi_call+set}" = set; then
12930 ac_cv_search_ffi_call=no
12932 rm conftest.$ac_ext
12933 LIBS=$ac_func_search_save_LIBS
12935 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12936 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12937 ac_res=$ac_cv_search_ffi_call
12938 if test "$ac_res" != no; then
12939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12941 cat >>confdefs.h <<\_ACEOF
12942 #define HAVE_FFI_CALL 1
12946 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12947 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12948 { (exit 1); exit 1; }; }
12953 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12954 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12955 if test "${ac_cv_search_mallinfo+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 ac_func_search_save_LIBS=$LIBS
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12976 return mallinfo ();
12981 for ac_lib in '' malloc; do
12982 if test -z "$ac_lib"; then
12983 ac_res="none required"
12986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1 >conftest.err
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 ac_cv_search_mallinfo=$ac_res
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13030 rm -f core conftest.err conftest.$ac_objext \
13032 if test "${ac_cv_search_mallinfo+set}" = set; then
13036 if test "${ac_cv_search_mallinfo+set}" = set; then
13039 ac_cv_search_mallinfo=no
13041 rm conftest.$ac_ext
13042 LIBS=$ac_func_search_save_LIBS
13044 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13045 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13046 ac_res=$ac_cv_search_mallinfo
13047 if test "$ac_res" != no; then
13048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_MALLINFO 1
13057 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13059 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13060 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13061 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 ac_check_lib_save_LIBS=$LIBS
13065 LIBS="-lpthread $LIBS"
13066 cat >conftest.$ac_ext <<_ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13079 char pthread_mutex_init ();
13083 return pthread_mutex_init ();
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (ac_try="$ac_link"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13097 grep -v '^ *+' conftest.er1 >conftest.err
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_lib_pthread_pthread_mutex_init=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_pthread_pthread_mutex_init=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13135 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13136 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_LIBPTHREAD 1
13141 LIBS="-lpthread $LIBS"
13145 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13146 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13147 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 ac_func_search_save_LIBS=$LIBS
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13164 char pthread_mutex_lock ();
13168 return pthread_mutex_lock ();
13173 for ac_lib in '' pthread; do
13174 if test -z "$ac_lib"; then
13175 ac_res="none required"
13178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13180 rm -f conftest.$ac_objext conftest$ac_exeext
13181 if { (ac_try="$ac_link"
13182 case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_link") 2>conftest.er1
13189 grep -v '^ *+' conftest.er1 >conftest.err
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; } &&
13204 { ac_try='test -s conftest$ac_exeext'
13205 { (case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_try") 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_search_pthread_mutex_lock=$ac_res
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13222 rm -f core conftest.err conftest.$ac_objext \
13224 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13228 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13231 ac_cv_search_pthread_mutex_lock=no
13233 rm conftest.$ac_ext
13234 LIBS=$ac_func_search_save_LIBS
13236 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13237 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13238 ac_res=$ac_cv_search_pthread_mutex_lock
13239 if test "$ac_res" != no; then
13240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13242 cat >>confdefs.h <<\_ACEOF
13243 #define HAVE_PTHREAD_MUTEX_LOCK 1
13248 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13249 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13250 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 ac_func_search_save_LIBS=$LIBS
13254 cat >conftest.$ac_ext <<_ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13267 char pthread_rwlock_init ();
13271 return pthread_rwlock_init ();
13276 for ac_lib in '' pthread; do
13277 if test -z "$ac_lib"; then
13278 ac_res="none required"
13281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13283 rm -f conftest.$ac_objext conftest$ac_exeext
13284 if { (ac_try="$ac_link"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_link") 2>conftest.er1
13292 grep -v '^ *+' conftest.er1 >conftest.err
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; } &&
13307 { ac_try='test -s conftest$ac_exeext'
13308 { (case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_try") 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_search_pthread_rwlock_init=$ac_res
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13325 rm -f core conftest.err conftest.$ac_objext \
13327 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13331 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13334 ac_cv_search_pthread_rwlock_init=no
13336 rm conftest.$ac_ext
13337 LIBS=$ac_func_search_save_LIBS
13339 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13340 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13341 ac_res=$ac_cv_search_pthread_rwlock_init
13342 if test "$ac_res" != no; then
13343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13345 cat >>confdefs.h <<\_ACEOF
13346 #define HAVE_PTHREAD_RWLOCK_INIT 1
13351 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13352 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13353 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 ac_func_search_save_LIBS=$LIBS
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13370 char pthread_getspecific ();
13374 return pthread_getspecific ();
13379 for ac_lib in '' pthread; do
13380 if test -z "$ac_lib"; then
13381 ac_res="none required"
13384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_search_pthread_getspecific=$ac_res
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13428 rm -f core conftest.err conftest.$ac_objext \
13430 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13434 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13437 ac_cv_search_pthread_getspecific=no
13439 rm conftest.$ac_ext
13440 LIBS=$ac_func_search_save_LIBS
13442 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13443 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13444 ac_res=$ac_cv_search_pthread_getspecific
13445 if test "$ac_res" != no; then
13446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13448 cat >>confdefs.h <<\_ACEOF
13449 #define HAVE_PTHREAD_GETSPECIFIC 1
13457 # Check whether --with-udis86 was given.
13458 if test "${with_udis86+set}" = set; then
13459 withval=$with_udis86;
13464 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13467 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13468 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13469 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13472 ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-ludis86 $LIBS"
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_link") 2>conftest.er1
13505 grep -v '^ *+' conftest.er1 >conftest.err
13507 cat conftest.err >&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_try") 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_lib_udis86_ud_init=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13535 ac_cv_lib_udis86_ud_init=no
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 LIBS=$ac_check_lib_save_LIBS
13542 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13543 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13544 if test $ac_cv_lib_udis86_ud_init = yes; then
13545 cat >>confdefs.h <<_ACEOF
13546 #define HAVE_LIBUDIS86 1
13549 LIBS="-ludis86 $LIBS"
13553 echo "Error! You need to have libudis86 around."
13565 cat >>confdefs.h <<_ACEOF
13566 #define USE_UDIS86 $USE_UDIS86
13571 # Check whether --with-oprofile was given.
13572 if test "${with_oprofile+set}" = set; then
13573 withval=$with_oprofile;
13577 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13578 no) llvm_cv_oppath=
13581 *) llvm_cv_oppath="${withval}/lib/oprofile"
13582 CPPFLAGS="-I${withval}/include";;
13584 case $llvm_cv_os_type in
13586 if test -n "$llvm_cv_oppath" ; then
13587 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13588 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13589 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13590 if test "${ac_cv_search_bfd_init+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 ac_func_search_save_LIBS=$LIBS
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13611 return bfd_init ();
13616 for ac_lib in '' bfd; do
13617 if test -z "$ac_lib"; then
13618 ac_res="none required"
13621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest$ac_exeext'
13648 { (case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_try") 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_cv_search_bfd_init=$ac_res
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13665 rm -f core conftest.err conftest.$ac_objext \
13667 if test "${ac_cv_search_bfd_init+set}" = set; then
13671 if test "${ac_cv_search_bfd_init+set}" = set; then
13674 ac_cv_search_bfd_init=no
13676 rm conftest.$ac_ext
13677 LIBS=$ac_func_search_save_LIBS
13679 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13680 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13681 ac_res=$ac_cv_search_bfd_init
13682 if test "$ac_res" != no; then
13683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13687 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13688 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13689 if test "${ac_cv_search_op_open_agent+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 ac_func_search_save_LIBS=$LIBS
13693 cat >conftest.$ac_ext <<_ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13706 char op_open_agent ();
13710 return op_open_agent ();
13715 for ac_lib in '' opagent; do
13716 if test -z "$ac_lib"; then
13717 ac_res="none required"
13720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13722 rm -f conftest.$ac_objext conftest$ac_exeext
13723 if { (ac_try="$ac_link"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_link") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } &&
13736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_try") 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_search_op_open_agent=$ac_res
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13764 rm -f core conftest.err conftest.$ac_objext \
13766 if test "${ac_cv_search_op_open_agent+set}" = set; then
13770 if test "${ac_cv_search_op_open_agent+set}" = set; then
13773 ac_cv_search_op_open_agent=no
13775 rm conftest.$ac_ext
13776 LIBS=$ac_func_search_save_LIBS
13778 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13779 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13780 ac_res=$ac_cv_search_op_open_agent
13781 if test "$ac_res" != no; then
13782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13786 echo "Error! You need to have libopagent around."
13791 if test "${ac_cv_header_opagent_h+set}" = set; then
13792 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13793 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13794 if test "${ac_cv_header_opagent_h+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13798 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13800 # Is the header compilable?
13801 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13802 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13810 #include <opagent.h>
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_compile") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; }; then
13846 ac_header_compiler=yes
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13851 ac_header_compiler=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856 echo "${ECHO_T}$ac_header_compiler" >&6; }
13858 # Is the header present?
13859 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13860 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <opagent.h>
13869 if { (ac_try="$ac_cpp conftest.$ac_ext"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } >/dev/null; then
13882 if test -s conftest.err; then
13883 ac_cpp_err=$ac_c_preproc_warn_flag
13884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13891 if test -z "$ac_cpp_err"; then
13892 ac_header_preproc=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_header_preproc=no
13900 rm -f conftest.err conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13902 echo "${ECHO_T}$ac_header_preproc" >&6; }
13904 # So? What about this header?
13905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13907 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13908 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13910 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13911 ac_header_preproc=yes
13914 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13915 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13917 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13919 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13921 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13923 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13925 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13927 ## ------------------------------------ ##
13928 ## Report this to http://llvm.org/bugs/ ##
13929 ## ------------------------------------ ##
13931 ) | sed "s/^/$as_me: WARNING: /" >&2
13934 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13935 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13936 if test "${ac_cv_header_opagent_h+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 ac_cv_header_opagent_h=$ac_header_preproc
13941 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13942 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13945 if test $ac_cv_header_opagent_h = yes; then
13949 echo "Error! You need to have opagent.h around."
13957 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13958 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13959 { (exit 1); exit 1; }; } ;;
13970 cat >>confdefs.h <<_ACEOF
13971 #define LLVM_USE_OPROFILE $USE_OPROFILE
13976 # Check whether --with-intel-jitevents was given.
13977 if test "${with_intel_jitevents+set}" = set; then
13978 withval=$with_intel_jitevents;
13980 yes) USE_INTEL_JITEVENTS=1
13982 no) USE_INTEL_JITEVENTS=0
13984 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13985 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13986 { (exit 1); exit 1; }; };;
13989 case $llvm_cv_os_type in
13990 Linux|Win32|Cygwin|MingW) ;;
13991 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13992 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13993 { (exit 1); exit 1; }; };;
13996 case "$llvm_cv_target_arch" in
13998 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13999 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
14000 { (exit 1); exit 1; }; };;
14005 USE_INTEL_JITEVENTS=0
14011 cat >>confdefs.h <<_ACEOF
14012 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14016 for ac_prog in xml2-config
14018 # Extract the first word of "$ac_prog", so it can be a program name with args.
14019 set dummy $ac_prog; ac_word=$2
14020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14022 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 if test -n "$XML2CONFIG"; then
14026 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029 for as_dir in $PATH
14032 test -z "$as_dir" && as_dir=.
14033 for ac_exec_ext in '' $ac_executable_extensions; do
14034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14035 ac_cv_prog_XML2CONFIG="$ac_prog"
14036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14046 if test -n "$XML2CONFIG"; then
14047 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14048 echo "${ECHO_T}$XML2CONFIG" >&6; }
14050 { echo "$as_me:$LINENO: result: no" >&5
14051 echo "${ECHO_T}no" >&6; }
14055 test -n "$XML2CONFIG" && break
14059 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14060 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14061 if test "x$XML2CONFIG" = "x"; then
14062 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14063 echo "${ECHO_T}xml2-config not found" >&6; }
14065 LIBXML2_INC=`$XML2CONFIG --cflags`
14066 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14067 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14068 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14069 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14070 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 ac_check_lib_save_LIBS=$LIBS
14074 LIBS="-lxml2 $LIBS"
14075 cat >conftest.$ac_ext <<_ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 /* Override any GCC internal prototype to avoid an error.
14083 Use char because int might match the return type of a GCC
14084 builtin and then its argument prototype would still apply. */
14088 char xmlReadFile ();
14092 return xmlReadFile ();
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (ac_try="$ac_link"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_link") 2>conftest.er1
14106 grep -v '^ *+' conftest.er1 >conftest.err
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_try") 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; } &&
14121 { ac_try='test -s conftest$ac_exeext'
14122 { (case "(($ac_try" in
14123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124 *) ac_try_echo=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_try") 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_lib_xml2_xmlReadFile=yes
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_cv_lib_xml2_xmlReadFile=no
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14143 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14144 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14145 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define CLANG_HAVE_LIBXML 1
14151 LIBXML2_LIBS="-lxml2"
14164 ac_header_dirent=no
14165 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14166 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14167 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14168 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <sys/types.h>
14190 rm -f conftest.$ac_objext
14191 if { (ac_try="$ac_compile"
14192 case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_compile") 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } &&
14204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; } &&
14214 { ac_try='test -s conftest.$ac_objext'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 eval "$as_ac_Header=yes"
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 eval "$as_ac_Header=no"
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 ac_res=`eval echo '${'$as_ac_Header'}'`
14235 { echo "$as_me:$LINENO: result: $ac_res" >&5
14236 echo "${ECHO_T}$ac_res" >&6; }
14237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14238 cat >>confdefs.h <<_ACEOF
14239 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14242 ac_header_dirent=$ac_hdr; break
14246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14247 if test $ac_header_dirent = dirent.h; then
14248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14250 if test "${ac_cv_search_opendir+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 ac_func_search_save_LIBS=$LIBS
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14276 for ac_lib in '' dir; do
14277 if test -z "$ac_lib"; then
14278 ac_res="none required"
14281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (ac_try="$ac_link"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_link") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1 >conftest.err
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest$ac_exeext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_cv_search_opendir=$ac_res
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14325 rm -f core conftest.err conftest.$ac_objext \
14327 if test "${ac_cv_search_opendir+set}" = set; then
14331 if test "${ac_cv_search_opendir+set}" = set; then
14334 ac_cv_search_opendir=no
14336 rm conftest.$ac_ext
14337 LIBS=$ac_func_search_save_LIBS
14339 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14340 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14341 ac_res=$ac_cv_search_opendir
14342 if test "$ac_res" != no; then
14343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14350 if test "${ac_cv_search_opendir+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14353 ac_func_search_save_LIBS=$LIBS
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14376 for ac_lib in '' x; do
14377 if test -z "$ac_lib"; then
14378 ac_res="none required"
14381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14383 rm -f conftest.$ac_objext conftest$ac_exeext
14384 if { (ac_try="$ac_link"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_link") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_search_opendir=$ac_res
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14425 rm -f core conftest.err conftest.$ac_objext \
14427 if test "${ac_cv_search_opendir+set}" = set; then
14431 if test "${ac_cv_search_opendir+set}" = set; then
14434 ac_cv_search_opendir=no
14436 rm conftest.$ac_ext
14437 LIBS=$ac_func_search_save_LIBS
14439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14441 ac_res=$ac_cv_search_opendir
14442 if test "$ac_res" != no; then
14443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14449 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14450 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_mmap_anon+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_cpp='$CPP $CPPFLAGS'
14456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 #include <sys/mman.h>
14467 #include <unistd.h>
14472 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } &&
14491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_try") 2>&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 ac_cv_header_mmap_anon=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_cv_header_mmap_anon=no
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 ac_cpp='$CPP $CPPFLAGS'
14522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14528 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14529 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14530 if test "$ac_cv_header_mmap_anon" = yes; then
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_MMAP_ANONYMOUS 1
14538 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14540 if test "${ac_cv_header_stat_broken+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h. */
14549 #include <sys/types.h>
14550 #include <sys/stat.h>
14552 #if defined S_ISBLK && defined S_IFDIR
14553 # if S_ISBLK (S_IFDIR)
14558 #if defined S_ISBLK && defined S_IFCHR
14559 # if S_ISBLK (S_IFCHR)
14564 #if defined S_ISLNK && defined S_IFREG
14565 # if S_ISLNK (S_IFREG)
14570 #if defined S_ISSOCK && defined S_IFREG
14571 # if S_ISSOCK (S_IFREG)
14577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14578 $EGREP "You lose" >/dev/null 2>&1; then
14579 ac_cv_header_stat_broken=yes
14581 ac_cv_header_stat_broken=no
14586 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14587 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14588 if test $ac_cv_header_stat_broken = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define STAT_MACROS_BROKEN 1
14596 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14597 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14598 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 #include <sys/types.h>
14608 #include <sys/wait.h>
14609 #ifndef WEXITSTATUS
14610 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14613 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14621 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_cv_header_sys_wait_h=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14665 ac_cv_header_sys_wait_h=no
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14671 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14672 if test $ac_cv_header_sys_wait_h = yes; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_SYS_WAIT_H 1
14680 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14681 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14682 if test "${ac_cv_header_time+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <sys/types.h>
14692 #include <sys/time.h>
14698 if ((struct tm *) 0)
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14719 { (case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_try") 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try='test -s conftest.$ac_objext'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_cv_header_time=yes
14740 echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_cv_header_time=no
14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14749 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14750 if test $ac_cv_header_time = yes; then
14752 cat >>confdefs.h <<\_ACEOF
14753 #define TIME_WITH_SYS_TIME 1
14765 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 ac_res=`eval echo '${'$as_ac_Header'}'`
14775 { echo "$as_me:$LINENO: result: $ac_res" >&5
14776 echo "${ECHO_T}$ac_res" >&6; }
14778 # Is the header compilable?
14779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14781 cat >conftest.$ac_ext <<_ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 #include <$ac_header>
14790 rm -f conftest.$ac_objext
14791 if { (ac_try="$ac_compile"
14792 case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_compile") 2>conftest.er1
14799 grep -v '^ *+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; }; then
14824 ac_header_compiler=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_compiler=no
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14834 echo "${ECHO_T}$ac_header_compiler" >&6; }
14836 # Is the header present?
14837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14839 cat >conftest.$ac_ext <<_ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #include <$ac_header>
14847 if { (ac_try="$ac_cpp conftest.$ac_ext"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } >/dev/null; then
14860 if test -s conftest.err; then
14861 ac_cpp_err=$ac_c_preproc_warn_flag
14862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14869 if test -z "$ac_cpp_err"; then
14870 ac_header_preproc=yes
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_header_preproc=no
14878 rm -f conftest.err conftest.$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14880 echo "${ECHO_T}$ac_header_preproc" >&6; }
14882 # So? What about this header?
14883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14889 ac_header_preproc=yes
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14896 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14898 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14899 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14905 ## ------------------------------------ ##
14906 ## Report this to http://llvm.org/bugs/ ##
14907 ## ------------------------------------ ##
14909 ) | sed "s/^/$as_me: WARNING: /" >&2
14912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 eval "$as_ac_Header=\$ac_header_preproc"
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920 { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14925 cat >>confdefs.h <<_ACEOF
14926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14939 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_res=`eval echo '${'$as_ac_Header'}'`
14949 { echo "$as_me:$LINENO: result: $ac_res" >&5
14950 echo "${ECHO_T}$ac_res" >&6; }
14952 # Is the header compilable?
14953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 $ac_includes_default
14962 #include <$ac_header>
14964 rm -f conftest.$ac_objext
14965 if { (ac_try="$ac_compile"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_compile") 2>conftest.er1
14973 grep -v '^ *+' conftest.er1 >conftest.err
14975 cat conftest.err >&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14979 { (case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_try") 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest.$ac_objext'
14989 { (case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_try") 2>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 ac_header_compiler=yes
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_header_compiler=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008 echo "${ECHO_T}$ac_header_compiler" >&6; }
15010 # Is the header present?
15011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <$ac_header>
15021 if { (ac_try="$ac_cpp conftest.$ac_ext"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } >/dev/null; then
15034 if test -s conftest.err; then
15035 ac_cpp_err=$ac_c_preproc_warn_flag
15036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15043 if test -z "$ac_cpp_err"; then
15044 ac_header_preproc=yes
15046 echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15049 ac_header_preproc=no
15052 rm -f conftest.err conftest.$ac_ext
15053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15054 echo "${ECHO_T}$ac_header_preproc" >&6; }
15056 # So? What about this header?
15057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15063 ac_header_preproc=yes
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15079 ## ------------------------------------ ##
15080 ## Report this to http://llvm.org/bugs/ ##
15081 ## ------------------------------------ ##
15083 ) | sed "s/^/$as_me: WARNING: /" >&2
15086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 eval "$as_ac_Header=\$ac_header_preproc"
15093 ac_res=`eval echo '${'$as_ac_Header'}'`
15094 { echo "$as_me:$LINENO: result: $ac_res" >&5
15095 echo "${ECHO_T}$ac_res" >&6; }
15098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15099 cat >>confdefs.h <<_ACEOF
15100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15109 for ac_header in utime.h windows.h
15111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 ac_res=`eval echo '${'$as_ac_Header'}'`
15119 { echo "$as_me:$LINENO: result: $ac_res" >&5
15120 echo "${ECHO_T}$ac_res" >&6; }
15122 # Is the header compilable?
15123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15131 $ac_includes_default
15132 #include <$ac_header>
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_compile") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15168 ac_header_compiler=yes
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15173 ac_header_compiler=no
15176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15178 echo "${ECHO_T}$ac_header_compiler" >&6; }
15180 # Is the header present?
15181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 #include <$ac_header>
15191 if { (ac_try="$ac_cpp conftest.$ac_ext"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } >/dev/null; then
15204 if test -s conftest.err; then
15205 ac_cpp_err=$ac_c_preproc_warn_flag
15206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15213 if test -z "$ac_cpp_err"; then
15214 ac_header_preproc=yes
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_header_preproc=no
15222 rm -f conftest.err conftest.$ac_ext
15223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15224 echo "${ECHO_T}$ac_header_preproc" >&6; }
15226 # So? What about this header?
15227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15233 ac_header_preproc=yes
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15249 ## ------------------------------------ ##
15250 ## Report this to http://llvm.org/bugs/ ##
15251 ## ------------------------------------ ##
15253 ) | sed "s/^/$as_me: WARNING: /" >&2
15256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 eval "$as_ac_Header=\$ac_header_preproc"
15263 ac_res=`eval echo '${'$as_ac_Header'}'`
15264 { echo "$as_me:$LINENO: result: $ac_res" >&5
15265 echo "${ECHO_T}$ac_res" >&6; }
15268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15269 cat >>confdefs.h <<_ACEOF
15270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15282 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 ac_res=`eval echo '${'$as_ac_Header'}'`
15292 { echo "$as_me:$LINENO: result: $ac_res" >&5
15293 echo "${ECHO_T}$ac_res" >&6; }
15295 # Is the header compilable?
15296 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15298 cat >conftest.$ac_ext <<_ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 $ac_includes_default
15305 #include <$ac_header>
15307 rm -f conftest.$ac_objext
15308 if { (ac_try="$ac_compile"
15309 case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_compile") 2>conftest.er1
15316 grep -v '^ *+' conftest.er1 >conftest.err
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; } &&
15331 { ac_try='test -s conftest.$ac_objext'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_header_compiler=yes
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_header_compiler=no
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15351 echo "${ECHO_T}$ac_header_compiler" >&6; }
15353 # Is the header present?
15354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15356 cat >conftest.$ac_ext <<_ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <$ac_header>
15364 if { (ac_try="$ac_cpp conftest.$ac_ext"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15372 grep -v '^ *+' conftest.er1 >conftest.err
15374 cat conftest.err >&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } >/dev/null; then
15377 if test -s conftest.err; then
15378 ac_cpp_err=$ac_c_preproc_warn_flag
15379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15386 if test -z "$ac_cpp_err"; then
15387 ac_header_preproc=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_preproc=no
15395 rm -f conftest.err conftest.$ac_ext
15396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6; }
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc=yes
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15422 ## ------------------------------------ ##
15423 ## Report this to http://llvm.org/bugs/ ##
15424 ## ------------------------------------ ##
15426 ) | sed "s/^/$as_me: WARNING: /" >&2
15429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 eval "$as_ac_Header=\$ac_header_preproc"
15436 ac_res=`eval echo '${'$as_ac_Header'}'`
15437 { echo "$as_me:$LINENO: result: $ac_res" >&5
15438 echo "${ECHO_T}$ac_res" >&6; }
15441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15454 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 ac_res=`eval echo '${'$as_ac_Header'}'`
15464 { echo "$as_me:$LINENO: result: $ac_res" >&5
15465 echo "${ECHO_T}$ac_res" >&6; }
15467 # Is the header compilable?
15468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_compile") 2>conftest.er1
15488 grep -v '^ *+' conftest.er1 >conftest.err
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_header_compiler=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_header_compiler=no
15521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15523 echo "${ECHO_T}$ac_header_compiler" >&6; }
15525 # Is the header present?
15526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 #include <$ac_header>
15536 if { (ac_try="$ac_cpp conftest.$ac_ext"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15544 grep -v '^ *+' conftest.er1 >conftest.err
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } >/dev/null; then
15549 if test -s conftest.err; then
15550 ac_cpp_err=$ac_c_preproc_warn_flag
15551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15558 if test -z "$ac_cpp_err"; then
15559 ac_header_preproc=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15564 ac_header_preproc=no
15567 rm -f conftest.err conftest.$ac_ext
15568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15569 echo "${ECHO_T}$ac_header_preproc" >&6; }
15571 # So? What about this header?
15572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15578 ac_header_preproc=yes
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15594 ## ------------------------------------ ##
15595 ## Report this to http://llvm.org/bugs/ ##
15596 ## ------------------------------------ ##
15598 ) | sed "s/^/$as_me: WARNING: /" >&2
15601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 eval "$as_ac_Header=\$ac_header_preproc"
15608 ac_res=`eval echo '${'$as_ac_Header'}'`
15609 { echo "$as_me:$LINENO: result: $ac_res" >&5
15610 echo "${ECHO_T}$ac_res" >&6; }
15613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15623 for ac_header in valgrind/valgrind.h
15625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 ac_res=`eval echo '${'$as_ac_Header'}'`
15633 { echo "$as_me:$LINENO: result: $ac_res" >&5
15634 echo "${ECHO_T}$ac_res" >&6; }
15636 # Is the header compilable?
15637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 $ac_includes_default
15646 #include <$ac_header>
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_try") 2>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682 ac_header_compiler=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.$ac_ext >&5
15687 ac_header_compiler=no
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15692 echo "${ECHO_T}$ac_header_compiler" >&6; }
15694 # Is the header present?
15695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15697 cat >conftest.$ac_ext <<_ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 #include <$ac_header>
15705 if { (ac_try="$ac_cpp conftest.$ac_ext"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } >/dev/null; then
15718 if test -s conftest.err; then
15719 ac_cpp_err=$ac_c_preproc_warn_flag
15720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15727 if test -z "$ac_cpp_err"; then
15728 ac_header_preproc=yes
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_preproc=no
15736 rm -f conftest.err conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15738 echo "${ECHO_T}$ac_header_preproc" >&6; }
15740 # So? What about this header?
15741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15747 ac_header_preproc=yes
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15763 ## ------------------------------------ ##
15764 ## Report this to http://llvm.org/bugs/ ##
15765 ## ------------------------------------ ##
15767 ) | sed "s/^/$as_me: WARNING: /" >&2
15770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 eval "$as_ac_Header=\$ac_header_preproc"
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792 for ac_header in fenv.h
15794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 ac_res=`eval echo '${'$as_ac_Header'}'`
15802 { echo "$as_me:$LINENO: result: $ac_res" >&5
15803 echo "${ECHO_T}$ac_res" >&6; }
15805 # Is the header compilable?
15806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 $ac_includes_default
15815 #include <$ac_header>
15817 rm -f conftest.$ac_objext
15818 if { (ac_try="$ac_compile"
15819 case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_compile") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_try") 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (case "(($ac_try" in
15843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_try") 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851 ac_header_compiler=yes
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_header_compiler=no
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15861 echo "${ECHO_T}$ac_header_compiler" >&6; }
15863 # Is the header present?
15864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15866 cat >conftest.$ac_ext <<_ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 #include <$ac_header>
15874 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
15887 if test -s conftest.err; then
15888 ac_cpp_err=$ac_c_preproc_warn_flag
15889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15896 if test -z "$ac_cpp_err"; then
15897 ac_header_preproc=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_header_preproc=no
15905 rm -f conftest.err conftest.$ac_ext
15906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15907 echo "${ECHO_T}$ac_header_preproc" >&6; }
15909 # So? What about this header?
15910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15916 ac_header_preproc=yes
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15932 ## ------------------------------------ ##
15933 ## Report this to http://llvm.org/bugs/ ##
15934 ## ------------------------------------ ##
15936 ) | sed "s/^/$as_me: WARNING: /" >&2
15939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 eval "$as_ac_Header=\$ac_header_preproc"
15946 ac_res=`eval echo '${'$as_ac_Header'}'`
15947 { echo "$as_me:$LINENO: result: $ac_res" >&5
15948 echo "${ECHO_T}$ac_res" >&6; }
15951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15960 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15962 for ac_header in pthread.h
15964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15971 ac_res=`eval echo '${'$as_ac_Header'}'`
15972 { echo "$as_me:$LINENO: result: $ac_res" >&5
15973 echo "${ECHO_T}$ac_res" >&6; }
15975 # Is the header compilable?
15976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 $ac_includes_default
15985 #include <$ac_header>
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_compile") 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest.$ac_objext'
16012 { (case "(($ac_try" in
16013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014 *) ac_try_echo=$ac_try;;
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017 (eval "$ac_try") 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_header_compiler=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_header_compiler=no
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16031 echo "${ECHO_T}$ac_header_compiler" >&6; }
16033 # Is the header present?
16034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16035 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
16044 if { (ac_try="$ac_cpp conftest.$ac_ext"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16052 grep -v '^ *+' conftest.er1 >conftest.err
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } >/dev/null; then
16057 if test -s conftest.err; then
16058 ac_cpp_err=$ac_c_preproc_warn_flag
16059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16066 if test -z "$ac_cpp_err"; then
16067 ac_header_preproc=yes
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_preproc=no
16075 rm -f conftest.err conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16077 echo "${ECHO_T}$ac_header_preproc" >&6; }
16079 # So? What about this header?
16080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16086 ac_header_preproc=yes
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16102 ## ------------------------------------ ##
16103 ## Report this to http://llvm.org/bugs/ ##
16104 ## ------------------------------------ ##
16106 ) | sed "s/^/$as_me: WARNING: /" >&2
16109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 eval "$as_ac_Header=\$ac_header_preproc"
16116 ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16122 cat >>confdefs.h <<_ACEOF
16123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16139 if test "$llvm_cv_enable_libffi" = "yes" ; then
16142 for ac_header in ffi.h ffi/ffi.h
16144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152 { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16155 # Is the header compilable?
16156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16164 $ac_includes_default
16165 #include <$ac_header>
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_header_compiler=yes
16203 echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_header_compiler=no
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16211 echo "${ECHO_T}$ac_header_compiler" >&6; }
16213 # Is the header present?
16214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 #include <$ac_header>
16224 if { (ac_try="$ac_cpp conftest.$ac_ext"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } >/dev/null; then
16237 if test -s conftest.err; then
16238 ac_cpp_err=$ac_c_preproc_warn_flag
16239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16246 if test -z "$ac_cpp_err"; then
16247 ac_header_preproc=yes
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ac_header_preproc=no
16255 rm -f conftest.err conftest.$ac_ext
16256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16257 echo "${ECHO_T}$ac_header_preproc" >&6; }
16259 # So? What about this header?
16260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16266 ac_header_preproc=yes
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16282 ## ------------------------------------ ##
16283 ## Report this to http://llvm.org/bugs/ ##
16284 ## ------------------------------------ ##
16286 ) | sed "s/^/$as_me: WARNING: /" >&2
16289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 eval "$as_ac_Header=\$ac_header_preproc"
16296 ac_res=`eval echo '${'$as_ac_Header'}'`
16297 { echo "$as_me:$LINENO: result: $ac_res" >&5
16298 echo "${ECHO_T}$ac_res" >&6; }
16301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16313 for ac_header in CrashReporterClient.h
16315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 ac_res=`eval echo '${'$as_ac_Header'}'`
16323 { echo "$as_me:$LINENO: result: $ac_res" >&5
16324 echo "${ECHO_T}$ac_res" >&6; }
16326 # Is the header compilable?
16327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16329 cat >conftest.$ac_ext <<_ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335 $ac_includes_default
16336 #include <$ac_header>
16338 rm -f conftest.$ac_objext
16339 if { (ac_try="$ac_compile"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_compile") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } &&
16352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
16363 { (case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_try") 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_header_compiler=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_header_compiler=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16382 echo "${ECHO_T}$ac_header_compiler" >&6; }
16384 # Is the header present?
16385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16387 cat >conftest.$ac_ext <<_ACEOF
16390 cat confdefs.h >>conftest.$ac_ext
16391 cat >>conftest.$ac_ext <<_ACEOF
16392 /* end confdefs.h. */
16393 #include <$ac_header>
16395 if { (ac_try="$ac_cpp conftest.$ac_ext"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16403 grep -v '^ *+' conftest.er1 >conftest.err
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } >/dev/null; then
16408 if test -s conftest.err; then
16409 ac_cpp_err=$ac_c_preproc_warn_flag
16410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16417 if test -z "$ac_cpp_err"; then
16418 ac_header_preproc=yes
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_header_preproc=no
16426 rm -f conftest.err conftest.$ac_ext
16427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16428 echo "${ECHO_T}$ac_header_preproc" >&6; }
16430 # So? What about this header?
16431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16437 ac_header_preproc=yes
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16453 ## ------------------------------------ ##
16454 ## Report this to http://llvm.org/bugs/ ##
16455 ## ------------------------------------ ##
16457 ) | sed "s/^/$as_me: WARNING: /" >&2
16460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 eval "$as_ac_Header=\$ac_header_preproc"
16467 ac_res=`eval echo '${'$as_ac_Header'}'`
16468 { echo "$as_me:$LINENO: result: $ac_res" >&5
16469 echo "${ECHO_T}$ac_res" >&6; }
16472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16473 cat >>confdefs.h <<_ACEOF
16474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16482 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16483 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16484 cat >conftest.$ac_ext <<_ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h. */
16492 extern const char *__crashreporter_info__;
16494 __crashreporter_info__ = "test";
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } &&
16514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16535 { echo "$as_me:$LINENO: result: yes" >&5
16536 echo "${ECHO_T}yes" >&6; }
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_CRASHREPORTER_INFO 1
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16548 { echo "$as_me:$LINENO: result: no" >&5
16549 echo "${ECHO_T}no" >&6; }
16551 cat >>confdefs.h <<\_ACEOF
16552 #define HAVE_CRASHREPORTER_INFO 0
16558 rm -f core conftest.err conftest.$ac_objext \
16559 conftest$ac_exeext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16564 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16565 if test "${ac_cv_huge_val_sanity+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cpp='$CXXCPP $CPPFLAGS'
16571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16575 ac_save_CXXFLAGS=$CXXFLAGS
16576 CXXFLAGS="$CXXFLAGS -pedantic"
16577 if test "$cross_compiling" = yes; then
16578 ac_cv_huge_val_sanity=yes
16580 cat >conftest.$ac_ext <<_ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16590 double x = HUGE_VAL; return x != x;
16595 rm -f conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_link") 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_huge_val_sanity=yes
16617 echo "$as_me: program exited with status $ac_status" >&5
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ( exit $ac_status )
16622 ac_cv_huge_val_sanity=no
16624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16628 CXXFLAGS=$ac_save_CXXFLAGS
16630 ac_cpp='$CPP $CPPFLAGS'
16631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16637 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16638 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16639 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16642 { echo "$as_me:$LINENO: checking for pid_t" >&5
16643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16644 if test "${ac_cv_type_pid_t+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 $ac_includes_default
16654 typedef pid_t ac__type_new_;
16658 if ((ac__type_new_ *) 0)
16660 if (sizeof (ac__type_new_))
16666 rm -f conftest.$ac_objext
16667 if { (ac_try="$ac_compile"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_compile") 2>conftest.er1
16675 grep -v '^ *+' conftest.er1 >conftest.err
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
16691 { (case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_try") 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ac_cv_type_pid_t=yes
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_type_pid_t=no
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16711 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16712 if test $ac_cv_type_pid_t = yes; then
16716 cat >>confdefs.h <<_ACEOF
16722 { echo "$as_me:$LINENO: checking for size_t" >&5
16723 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16724 if test "${ac_cv_type_size_t+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 typedef size_t ac__type_new_;
16738 if ((ac__type_new_ *) 0)
16740 if (sizeof (ac__type_new_))
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_type_size_t=yes
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16785 ac_cv_type_size_t=no
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16791 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16792 if test $ac_cv_type_size_t = yes; then
16796 cat >>confdefs.h <<_ACEOF
16797 #define size_t unsigned int
16803 cat >>confdefs.h <<_ACEOF
16804 #define RETSIGTYPE void
16807 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16808 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16809 if test "${ac_cv_struct_tm+set}" = set; then
16810 echo $ECHO_N "(cached) $ECHO_C" >&6
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 #include <sys/types.h>
16824 struct tm *tp; tp->tm_sec;
16829 rm -f conftest.$ac_objext
16830 if { (ac_try="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16838 grep -v '^ *+' conftest.er1 >conftest.err
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_struct_tm=time.h
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_cv_struct_tm=sys/time.h
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16874 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16875 if test $ac_cv_struct_tm = sys/time.h; then
16877 cat >>confdefs.h <<\_ACEOF
16878 #define TM_IN_SYS_TIME 1
16883 { echo "$as_me:$LINENO: checking for int64_t" >&5
16884 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16885 if test "${ac_cv_type_int64_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 $ac_includes_default
16895 typedef int64_t ac__type_new_;
16899 if ((ac__type_new_ *) 0)
16901 if (sizeof (ac__type_new_))
16907 rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_int64_t=yes
16943 echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_cv_type_int64_t=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16952 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16953 if test $ac_cv_type_int64_t = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define HAVE_INT64_T 1
16961 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16962 echo "$as_me: error: Type int64_t required but not found" >&2;}
16963 { (exit 1); exit 1; }; }
16966 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16967 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16968 if test "${ac_cv_type_uint64_t+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 cat >conftest.$ac_ext <<_ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 typedef uint64_t ac__type_new_;
16982 if ((ac__type_new_ *) 0)
16984 if (sizeof (ac__type_new_))
16990 rm -f conftest.$ac_objext
16991 if { (ac_try="$ac_compile"
16992 case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_compile") 2>conftest.er1
16999 grep -v '^ *+' conftest.er1 >conftest.err
17001 cat conftest.err >&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; } &&
17014 { ac_try='test -s conftest.$ac_objext'
17015 { (case "(($ac_try" in
17016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17017 *) ac_try_echo=$ac_try;;
17019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17020 (eval "$ac_try") 2>&5
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; }; then
17024 ac_cv_type_uint64_t=yes
17026 echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17029 ac_cv_type_uint64_t=no
17032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17035 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17036 if test $ac_cv_type_uint64_t = yes; then
17038 cat >>confdefs.h <<_ACEOF
17039 #define HAVE_UINT64_T 1
17044 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17045 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17046 if test "${ac_cv_type_u_int64_t+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 $ac_includes_default
17056 typedef u_int64_t ac__type_new_;
17060 if ((ac__type_new_ *) 0)
17062 if (sizeof (ac__type_new_))
17068 rm -f conftest.$ac_objext
17069 if { (ac_try="$ac_compile"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_compile") 2>conftest.er1
17077 grep -v '^ *+' conftest.er1 >conftest.err
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; } &&
17092 { ac_try='test -s conftest.$ac_objext'
17093 { (case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_try") 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_type_u_int64_t=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_type_u_int64_t=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17113 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17114 if test $ac_cv_type_u_int64_t = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_U_INT64_T 1
17122 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17123 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17124 { (exit 1); exit 1; }; }
17138 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17154 #define $ac_func innocuous_$ac_func
17156 /* System header to define __stub macros and hopefully few prototypes,
17157 which can conflict with char $ac_func (); below.
17158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17159 <limits.h> exists even on freestanding compilers. */
17162 # include <limits.h>
17164 # include <assert.h>
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17176 /* The GNU C library defines this for functions which it implements
17177 to always fail with ENOSYS. Some functions are actually named
17178 something starting with __ and the normal name is an alias. */
17179 #if defined __stub_$ac_func || defined __stub___$ac_func
17186 return $ac_func ();
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_link") 2>conftest.er1
17200 grep -v '^ *+' conftest.er1 >conftest.err
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; } &&
17215 { ac_try='test -s conftest$ac_exeext'
17216 { (case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_try") 2>&5
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 eval "$as_ac_var=yes"
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 eval "$as_ac_var=no"
17233 rm -f core conftest.err conftest.$ac_objext \
17234 conftest$ac_exeext conftest.$ac_ext
17236 ac_res=`eval echo '${'$as_ac_var'}'`
17237 { echo "$as_me:$LINENO: result: $ac_res" >&5
17238 echo "${ECHO_T}$ac_res" >&6; }
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17251 for ac_func in powf fmodf strtof round
17253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17257 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267 #define $ac_func innocuous_$ac_func
17269 /* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17275 # include <limits.h>
17277 # include <assert.h>
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined __stub_$ac_func || defined __stub___$ac_func
17299 return $ac_func ();
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_try") 2>&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 eval "$as_ac_var=yes"
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no"
17346 rm -f core conftest.err conftest.$ac_objext \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17365 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17381 #define $ac_func innocuous_$ac_func
17383 /* System header to define __stub macros and hopefully few prototypes,
17384 which can conflict with char $ac_func (); below.
17385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386 <limits.h> exists even on freestanding compilers. */
17389 # include <limits.h>
17391 # include <assert.h>
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17403 /* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
17406 #if defined __stub_$ac_func || defined __stub___$ac_func
17413 return $ac_func ();
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest$ac_exeext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 eval "$as_ac_var=yes"
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 eval "$as_ac_var=no"
17460 rm -f core conftest.err conftest.$ac_objext \
17461 conftest$ac_exeext conftest.$ac_ext
17463 ac_res=`eval echo '${'$as_ac_var'}'`
17464 { echo "$as_me:$LINENO: result: $ac_res" >&5
17465 echo "${ECHO_T}$ac_res" >&6; }
17466 if test `eval echo '${'$as_ac_var'}'` = yes; then
17467 cat >>confdefs.h <<_ACEOF
17468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17477 for ac_func in isatty mkdtemp mkstemp
17479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17483 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 cat >conftest.$ac_ext <<_ACEOF
17488 cat confdefs.h >>conftest.$ac_ext
17489 cat >>conftest.$ac_ext <<_ACEOF
17490 /* end confdefs.h. */
17491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17493 #define $ac_func innocuous_$ac_func
17495 /* System header to define __stub macros and hopefully few prototypes,
17496 which can conflict with char $ac_func (); below.
17497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17498 <limits.h> exists even on freestanding compilers. */
17501 # include <limits.h>
17503 # include <assert.h>
17508 /* Override any GCC internal prototype to avoid an error.
17509 Use char because int might match the return type of a GCC
17510 builtin and then its argument prototype would still apply. */
17515 /* The GNU C library defines this for functions which it implements
17516 to always fail with ENOSYS. Some functions are actually named
17517 something starting with __ and the normal name is an alias. */
17518 #if defined __stub_$ac_func || defined __stub___$ac_func
17525 return $ac_func ();
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_link") 2>conftest.er1
17539 grep -v '^ *+' conftest.er1 >conftest.err
17541 cat conftest.err >&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } &&
17544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest$ac_exeext'
17555 { (case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_try") 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 eval "$as_ac_var=no"
17572 rm -f core conftest.err conftest.$ac_objext \
17573 conftest$ac_exeext conftest.$ac_ext
17575 ac_res=`eval echo '${'$as_ac_var'}'`
17576 { echo "$as_me:$LINENO: result: $ac_res" >&5
17577 echo "${ECHO_T}$ac_res" >&6; }
17578 if test `eval echo '${'$as_ac_var'}'` = yes; then
17579 cat >>confdefs.h <<_ACEOF
17580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17609 #define $ac_func innocuous_$ac_func
17611 /* System header to define __stub macros and hopefully few prototypes,
17612 which can conflict with char $ac_func (); below.
17613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17614 <limits.h> exists even on freestanding compilers. */
17617 # include <limits.h>
17619 # include <assert.h>
17624 /* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17631 /* The GNU C library defines this for functions which it implements
17632 to always fail with ENOSYS. Some functions are actually named
17633 something starting with __ and the normal name is an alias. */
17634 #if defined __stub_$ac_func || defined __stub___$ac_func
17641 return $ac_func ();
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_link") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17661 { (case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_try") 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 eval "$as_ac_var=yes"
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 eval "$as_ac_var=no"
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17691 ac_res=`eval echo '${'$as_ac_var'}'`
17692 { echo "$as_me:$LINENO: result: $ac_res" >&5
17693 echo "${ECHO_T}$ac_res" >&6; }
17694 if test `eval echo '${'$as_ac_var'}'` = yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17706 for ac_func in strerror strerror_r setenv arc4random
17708 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17712 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17722 #define $ac_func innocuous_$ac_func
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func (); below.
17726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17727 <limits.h> exists even on freestanding compilers. */
17730 # include <limits.h>
17732 # include <assert.h>
17737 /* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
17744 /* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
17747 #if defined __stub_$ac_func || defined __stub___$ac_func
17754 return $ac_func ();
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_link") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } &&
17773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17774 { (case "(($ac_try" in
17775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17776 *) ac_try_echo=$ac_try;;
17778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17779 (eval "$ac_try") 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try='test -s conftest$ac_exeext'
17784 { (case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_try") 2>&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; }; then
17793 eval "$as_ac_var=yes"
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 eval "$as_ac_var=no"
17801 rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17804 ac_res=`eval echo '${'$as_ac_var'}'`
17805 { echo "$as_me:$LINENO: result: $ac_res" >&5
17806 echo "${ECHO_T}$ac_res" >&6; }
17807 if test `eval echo '${'$as_ac_var'}'` = yes; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17819 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 cat >conftest.$ac_ext <<_ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17835 #define $ac_func innocuous_$ac_func
17837 /* System header to define __stub macros and hopefully few prototypes,
17838 which can conflict with char $ac_func (); below.
17839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17840 <limits.h> exists even on freestanding compilers. */
17843 # include <limits.h>
17845 # include <assert.h>
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17857 /* The GNU C library defines this for functions which it implements
17858 to always fail with ENOSYS. Some functions are actually named
17859 something starting with __ and the normal name is an alias. */
17860 #if defined __stub_$ac_func || defined __stub___$ac_func
17867 return $ac_func ();
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_link") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 eval "$as_ac_var=yes"
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 eval "$as_ac_var=no"
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17917 ac_res=`eval echo '${'$as_ac_var'}'`
17918 { echo "$as_me:$LINENO: result: $ac_res" >&5
17919 echo "${ECHO_T}$ac_res" >&6; }
17920 if test `eval echo '${'$as_ac_var'}'` = yes; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17933 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17949 #define $ac_func innocuous_$ac_func
17951 /* System header to define __stub macros and hopefully few prototypes,
17952 which can conflict with char $ac_func (); below.
17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954 <limits.h> exists even on freestanding compilers. */
17957 # include <limits.h>
17959 # include <assert.h>
17964 /* Override any GCC internal prototype to avoid an error.
17965 Use char because int might match the return type of a GCC
17966 builtin and then its argument prototype would still apply. */
17971 /* The GNU C library defines this for functions which it implements
17972 to always fail with ENOSYS. Some functions are actually named
17973 something starting with __ and the normal name is an alias. */
17974 #if defined __stub_$ac_func || defined __stub___$ac_func
17981 return $ac_func ();
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_link") 2>conftest.er1
17995 grep -v '^ *+' conftest.er1 >conftest.err
17997 cat conftest.err >&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } &&
18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 eval "$as_ac_var=yes"
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 eval "$as_ac_var=no"
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18031 ac_res=`eval echo '${'$as_ac_var'}'`
18032 { echo "$as_me:$LINENO: result: $ac_res" >&5
18033 echo "${ECHO_T}$ac_res" >&6; }
18034 if test `eval echo '${'$as_ac_var'}'` = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18042 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18043 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18044 if test "${llvm_cv_c_printf_a+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_cpp='$CPP $CPPFLAGS'
18049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18053 if test "$cross_compiling" = yes; then
18054 llvmac_cv_c_printf_a=no
18056 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18065 #include <stdlib.h>
18071 volatile double A, B;
18075 sprintf(Buffer, "%a", A);
18079 if (A != 0x1.999999999999ap-4)
18086 rm -f conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 llvm_cv_c_printf_a=yes
18108 echo "$as_me: program exited with status $ac_status" >&5
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ( exit $ac_status )
18113 llvmac_cv_c_printf_a=no
18115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18120 ac_cpp='$CPP $CPPFLAGS'
18121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18126 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18127 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18128 if test "$llvm_cv_c_printf_a" = "yes"; then
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE_PRINTF_A 1
18138 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18139 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18140 if test "${ac_cv_func_rand48+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 ac_cpp='$CXXCPP $CPPFLAGS'
18146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18156 #include <stdlib.h>
18160 srand48(0);lrand48();drand48();
18165 rm -f conftest.$ac_objext
18166 if { (ac_try="$ac_compile"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_compile") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest.$ac_objext'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_func_rand48=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_cv_func_rand48=no
18207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 ac_cpp='$CPP $CPPFLAGS'
18210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18216 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18217 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18219 if test "$ac_cv_func_rand48" = "yes" ; then
18221 cat >>confdefs.h <<\_ACEOF
18222 #define HAVE_RAND48 1
18228 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18229 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18230 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 $ac_includes_default
18244 char *p = (char *) strerror_s;
18252 rm -f conftest.$ac_objext
18253 if { (ac_try="$ac_compile"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_compile") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18267 { (case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_try") 2>&5
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; } &&
18276 { ac_try='test -s conftest.$ac_objext'
18277 { (case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_try") 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 ac_cv_have_decl_strerror_s=yes
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 ac_cv_have_decl_strerror_s=no
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18297 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18298 if test $ac_cv_have_decl_strerror_s = yes; then
18300 cat >>confdefs.h <<_ACEOF
18301 #define HAVE_DECL_STRERROR_S 1
18306 cat >>confdefs.h <<_ACEOF
18307 #define HAVE_DECL_STRERROR_S 0
18315 if test "$llvm_cv_os_type" = "MingW" ; then
18316 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18317 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18318 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 ac_check_lib_save_LIBS=$LIBS
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18345 rm -f conftest.$ac_objext conftest$ac_exeext
18346 if { (ac_try="$ac_link"
18347 case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_link") 2>conftest.er1
18354 grep -v '^ *+' conftest.er1 >conftest.err
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
18359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest$ac_exeext'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_lib_gcc__alloca=yes
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_cv_lib_gcc__alloca=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18392 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18393 if test $ac_cv_lib_gcc__alloca = yes; then
18395 cat >>confdefs.h <<\_ACEOF
18396 #define HAVE__ALLOCA 1
18401 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18402 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18403 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 ac_check_lib_save_LIBS=$LIBS
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18415 /* Override any GCC internal prototype to avoid an error.
18416 Use char because int might match the return type of a GCC
18417 builtin and then its argument prototype would still apply. */
18425 return __alloca ();
18430 rm -f conftest.$ac_objext conftest$ac_exeext
18431 if { (ac_try="$ac_link"
18432 case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_link") 2>conftest.er1
18439 grep -v '^ *+' conftest.er1 >conftest.err
18441 cat conftest.err >&5
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } &&
18444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18445 { (case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_try") 2>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; } &&
18454 { ac_try='test -s conftest$ac_exeext'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_lib_gcc___alloca=yes
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_cv_lib_gcc___alloca=no
18472 rm -f core conftest.err conftest.$ac_objext \
18473 conftest$ac_exeext conftest.$ac_ext
18474 LIBS=$ac_check_lib_save_LIBS
18476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18477 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18478 if test $ac_cv_lib_gcc___alloca = yes; then
18480 cat >>confdefs.h <<\_ACEOF
18481 #define HAVE___ALLOCA 1
18486 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18487 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18488 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 ac_check_lib_save_LIBS=$LIBS
18493 cat >conftest.$ac_ext <<_ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 /* Override any GCC internal prototype to avoid an error.
18501 Use char because int might match the return type of a GCC
18502 builtin and then its argument prototype would still apply. */
18510 return __chkstk ();
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (ac_try="$ac_link"
18517 case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_link") 2>conftest.er1
18524 grep -v '^ *+' conftest.er1 >conftest.err
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
18529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 ac_cv_lib_gcc___chkstk=yes
18551 echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 ac_cv_lib_gcc___chkstk=no
18557 rm -f core conftest.err conftest.$ac_objext \
18558 conftest$ac_exeext conftest.$ac_ext
18559 LIBS=$ac_check_lib_save_LIBS
18561 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18562 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18563 if test $ac_cv_lib_gcc___chkstk = yes; then
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE___CHKSTK 1
18571 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18572 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18573 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 ac_check_lib_save_LIBS=$LIBS
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18595 return ___chkstk ();
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18609 grep -v '^ *+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
18614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
18625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18634 ac_cv_lib_gcc____chkstk=yes
18636 echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_lib_gcc____chkstk=no
18642 rm -f core conftest.err conftest.$ac_objext \
18643 conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18646 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18647 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18648 if test $ac_cv_lib_gcc____chkstk = yes; then
18650 cat >>confdefs.h <<\_ACEOF
18651 #define HAVE____CHKSTK 1
18657 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18658 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18659 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18662 ac_check_lib_save_LIBS=$LIBS
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18681 return __ashldi3 ();
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18710 { ac_try='test -s conftest$ac_exeext'
18711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_lib_gcc___ashldi3=yes
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 ac_cv_lib_gcc___ashldi3=no
18728 rm -f core conftest.err conftest.$ac_objext \
18729 conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18732 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18733 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18734 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18736 cat >>confdefs.h <<\_ACEOF
18737 #define HAVE___ASHLDI3 1
18742 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18743 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18744 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_check_lib_save_LIBS=$LIBS
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18756 /* Override any GCC internal prototype to avoid an error.
18757 Use char because int might match the return type of a GCC
18758 builtin and then its argument prototype would still apply. */
18766 return __ashrdi3 ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_cv_lib_gcc___ashrdi3=yes
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_cv_lib_gcc___ashrdi3=no
18813 rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18817 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18818 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18819 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18821 cat >>confdefs.h <<\_ACEOF
18822 #define HAVE___ASHRDI3 1
18827 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18828 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18829 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 ac_check_lib_save_LIBS=$LIBS
18834 cat >conftest.$ac_ext <<_ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h. */
18841 /* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18851 return __divdi3 ();
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>conftest.er1
18865 grep -v '^ *+' conftest.er1 >conftest.err
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } &&
18880 { ac_try='test -s conftest$ac_exeext'
18881 { (case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_try") 2>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_lib_gcc___divdi3=yes
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18895 ac_cv_lib_gcc___divdi3=no
18898 rm -f core conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18902 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18903 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18904 if test $ac_cv_lib_gcc___divdi3 = yes; then
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE___DIVDI3 1
18912 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18913 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18914 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 ac_check_lib_save_LIBS=$LIBS
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18936 return __fixdfdi ();
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest$ac_exeext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_lib_gcc___fixdfdi=yes
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_lib_gcc___fixdfdi=no
18983 rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985 LIBS=$ac_check_lib_save_LIBS
18987 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18988 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18989 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18991 cat >>confdefs.h <<\_ACEOF
18992 #define HAVE___FIXDFDI 1
18997 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18998 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18999 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 ac_check_lib_save_LIBS=$LIBS
19004 cat >conftest.$ac_ext <<_ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h. */
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19021 return __fixsfdi ();
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (ac_try="$ac_link"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_link") 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
19040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
19050 { ac_try='test -s conftest$ac_exeext'
19051 { (case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_try") 2>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060 ac_cv_lib_gcc___fixsfdi=yes
19062 echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19065 ac_cv_lib_gcc___fixsfdi=no
19068 rm -f core conftest.err conftest.$ac_objext \
19069 conftest$ac_exeext conftest.$ac_ext
19070 LIBS=$ac_check_lib_save_LIBS
19072 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19073 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19074 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19076 cat >>confdefs.h <<\_ACEOF
19077 #define HAVE___FIXSFDI 1
19082 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19083 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19084 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 ac_check_lib_save_LIBS=$LIBS
19089 cat >conftest.$ac_ext <<_ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19096 /* Override any GCC internal prototype to avoid an error.
19097 Use char because int might match the return type of a GCC
19098 builtin and then its argument prototype would still apply. */
19102 char __floatdidf ();
19106 return __floatdidf ();
19111 rm -f conftest.$ac_objext conftest$ac_exeext
19112 if { (ac_try="$ac_link"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_link") 2>conftest.er1
19120 grep -v '^ *+' conftest.er1 >conftest.err
19122 cat conftest.err >&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } &&
19125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; } &&
19135 { ac_try='test -s conftest$ac_exeext'
19136 { (case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_try") 2>&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_cv_lib_gcc___floatdidf=yes
19147 echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19150 ac_cv_lib_gcc___floatdidf=no
19153 rm -f core conftest.err conftest.$ac_objext \
19154 conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19157 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19158 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19159 if test $ac_cv_lib_gcc___floatdidf = yes; then
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE___FLOATDIDF 1
19167 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19168 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19169 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 ac_check_lib_save_LIBS=$LIBS
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19191 return __lshrdi3 ();
19196 rm -f conftest.$ac_objext conftest$ac_exeext
19197 if { (ac_try="$ac_link"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_link") 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
19210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19211 { (case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_try") 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest$ac_exeext'
19221 { (case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_try") 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19230 ac_cv_lib_gcc___lshrdi3=yes
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_cv_lib_gcc___lshrdi3=no
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19240 LIBS=$ac_check_lib_save_LIBS
19242 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19243 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19244 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19246 cat >>confdefs.h <<\_ACEOF
19247 #define HAVE___LSHRDI3 1
19252 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19253 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19254 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 ac_check_lib_save_LIBS=$LIBS
19259 cat >conftest.$ac_ext <<_ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19266 /* Override any GCC internal prototype to avoid an error.
19267 Use char because int might match the return type of a GCC
19268 builtin and then its argument prototype would still apply. */
19276 return __moddi3 ();
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
19295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19296 { (case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301 (eval "$ac_try") 2>&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest$ac_exeext'
19306 { (case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_try") 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 ac_cv_lib_gcc___moddi3=yes
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19320 ac_cv_lib_gcc___moddi3=no
19323 rm -f core conftest.err conftest.$ac_objext \
19324 conftest$ac_exeext conftest.$ac_ext
19325 LIBS=$ac_check_lib_save_LIBS
19327 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19328 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19329 if test $ac_cv_lib_gcc___moddi3 = yes; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE___MODDI3 1
19337 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19338 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19339 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 ac_check_lib_save_LIBS=$LIBS
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19361 return __udivdi3 ();
19366 rm -f conftest.$ac_objext conftest$ac_exeext
19367 if { (ac_try="$ac_link"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_link") 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_cv_lib_gcc___udivdi3=yes
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_cv_lib_gcc___udivdi3=no
19408 rm -f core conftest.err conftest.$ac_objext \
19409 conftest$ac_exeext conftest.$ac_ext
19410 LIBS=$ac_check_lib_save_LIBS
19412 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19413 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19414 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19416 cat >>confdefs.h <<\_ACEOF
19417 #define HAVE___UDIVDI3 1
19422 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19423 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19424 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 ac_check_lib_save_LIBS=$LIBS
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19446 return __umoddi3 ();
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } &&
19465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19466 { (case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_try") 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_try") 2>&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_cv_lib_gcc___umoddi3=yes
19487 echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19490 ac_cv_lib_gcc___umoddi3=no
19493 rm -f core conftest.err conftest.$ac_objext \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LIBS=$ac_check_lib_save_LIBS
19497 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19498 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19499 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE___UMODDI3 1
19508 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19509 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_gcc___main+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_check_lib_save_LIBS=$LIBS
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; } &&
19561 { ac_try='test -s conftest$ac_exeext'
19562 { (case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_try") 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_cv_lib_gcc___main=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 ac_cv_lib_gcc___main=no
19579 rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19584 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19585 if test $ac_cv_lib_gcc___main = yes; then
19587 cat >>confdefs.h <<\_ACEOF
19588 #define HAVE___MAIN 1
19593 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19594 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19595 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 ac_check_lib_save_LIBS=$LIBS
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19617 return __cmpdi2 ();
19622 rm -f conftest.$ac_objext conftest$ac_exeext
19623 if { (ac_try="$ac_link"
19624 case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_link") 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } &&
19636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19637 { (case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_try") 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest$ac_exeext'
19647 { (case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_try") 2>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_cv_lib_gcc___cmpdi2=yes
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19661 ac_cv_lib_gcc___cmpdi2=no
19664 rm -f core conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19668 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19669 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19670 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE___CMPDI2 1
19680 if test "$llvm_cv_os_type" = "MingW" ; then
19681 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19682 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19683 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19691 #include <windows.h>
19692 #include <imagehlp.h>
19693 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19694 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_compile") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19713 { (case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19718 (eval "$ac_try") 2>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try='test -s conftest.$ac_objext'
19723 { (case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_try") 2>&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19733 { echo "$as_me:$LINENO: result: yes" >&5
19734 echo "${ECHO_T}yes" >&6; }
19735 llvm_cv_win32_elmcb_pcstr="PCSTR"
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19742 { echo "$as_me:$LINENO: result: no" >&5
19743 echo "${ECHO_T}no" >&6; }
19744 llvm_cv_win32_elmcb_pcstr="PSTR"
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 cat >>confdefs.h <<_ACEOF
19751 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19758 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19759 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19760 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19765 ac_cpp='$CXXCPP $CPPFLAGS'
19766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19770 cat >conftest.$ac_ext <<_ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19800 { (case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_try") 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_try") 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_func_isnan_in_math_h=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_cv_func_isnan_in_math_h=no
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 ac_cpp='$CPP $CPPFLAGS'
19830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19837 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19840 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19842 cat >>confdefs.h <<\_ACEOF
19843 #define HAVE_ISNAN_IN_MATH_H 1
19849 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19850 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19851 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 ac_cpp='$CXXCPP $CPPFLAGS'
19857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19861 cat >conftest.$ac_ext <<_ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19876 rm -f conftest.$ac_objext
19877 if { (ac_try="$ac_compile"
19878 case "(($ac_try" in
19879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_compile") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; } &&
19900 { ac_try='test -s conftest.$ac_objext'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; }; then
19910 ac_cv_func_isnan_in_cmath=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19915 ac_cv_func_isnan_in_cmath=no
19918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920 ac_cpp='$CPP $CPPFLAGS'
19921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19928 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19930 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_ISNAN_IN_CMATH 1
19939 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19940 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19941 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 ac_cpp='$CXXCPP $CPPFLAGS'
19947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951 cat >conftest.$ac_ext <<_ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19961 float f; std::isnan(f);
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973 (eval "$ac_compile") 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19981 { (case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19986 (eval "$ac_try") 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; } &&
19990 { ac_try='test -s conftest.$ac_objext'
19991 { (case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_try") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_cv_func_std_isnan_in_cmath=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_func_std_isnan_in_cmath=no
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 ac_cpp='$CPP $CPPFLAGS'
20011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20018 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20020 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20022 cat >>confdefs.h <<\_ACEOF
20023 #define HAVE_STD_ISNAN_IN_CMATH 1
20031 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20032 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20033 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 ac_cpp='$CXXCPP $CPPFLAGS'
20039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } &&
20072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20073 { (case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_try") 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; } &&
20082 { ac_try='test -s conftest.$ac_objext'
20083 { (case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_try") 2>&5
20090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091 (exit $ac_status); }; }; then
20092 ac_cv_func_isinf_in_math_h=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 ac_cv_func_isinf_in_math_h=no
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 ac_cpp='$CPP $CPPFLAGS'
20103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20110 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20112 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20114 cat >>confdefs.h <<\_ACEOF
20115 #define HAVE_ISINF_IN_MATH_H 1
20121 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20122 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20123 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20128 ac_cpp='$CXXCPP $CPPFLAGS'
20129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20148 rm -f conftest.$ac_objext
20149 if { (ac_try="$ac_compile"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_compile") 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20163 { (case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20168 (eval "$ac_try") 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_try") 2>&5
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_cv_func_isinf_in_cmath=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_cv_func_isinf_in_cmath=no
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20192 ac_cpp='$CPP $CPPFLAGS'
20193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20199 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20200 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20202 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20204 cat >>confdefs.h <<\_ACEOF
20205 #define HAVE_ISINF_IN_CMATH 1
20211 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20212 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20213 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 ac_cpp='$CXXCPP $CPPFLAGS'
20219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20223 cat >conftest.$ac_ext <<_ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h. */
20233 float f; std::isinf(f);
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_compile") 2>conftest.er1
20247 grep -v '^ *+' conftest.er1 >conftest.err
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } &&
20262 { ac_try='test -s conftest.$ac_objext'
20263 { (case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_try") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_cv_func_std_isinf_in_cmath=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_func_std_isinf_in_cmath=no
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 ac_cpp='$CPP $CPPFLAGS'
20283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20289 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20290 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20292 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_STD_ISINF_IN_CMATH 1
20301 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20302 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20303 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 ac_cpp='$CXXCPP $CPPFLAGS'
20309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20319 #include <ieeefp.h>
20323 float f; finite(f);
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_func_finite_in_ieeefp_h=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_func_finite_in_ieeefp_h=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 ac_cpp='$CPP $CPPFLAGS'
20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20380 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20382 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_FINITE_IN_IEEEFP_H 1
20392 if test "$llvm_cv_platform_type" = "Unix" ; then
20395 for ac_header in stdlib.h unistd.h
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 ac_res=`eval echo '${'$as_ac_Header'}'`
20405 { echo "$as_me:$LINENO: result: $ac_res" >&5
20406 echo "${ECHO_T}$ac_res" >&6; }
20408 # Is the header compilable?
20409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 $ac_includes_default
20418 #include <$ac_header>
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20429 grep -v '^ *+' conftest.er1 >conftest.err
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } &&
20434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20435 { (case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_try") 2>&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; } &&
20444 { ac_try='test -s conftest.$ac_objext'
20445 { (case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_try") 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_header_compiler=yes
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_header_compiler=no
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20464 echo "${ECHO_T}$ac_header_compiler" >&6; }
20466 # Is the header present?
20467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 #include <$ac_header>
20477 if { (ac_try="$ac_cpp conftest.$ac_ext"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } >/dev/null; then
20490 if test -s conftest.err; then
20491 ac_cpp_err=$ac_c_preproc_warn_flag
20492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20499 if test -z "$ac_cpp_err"; then
20500 ac_header_preproc=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 ac_header_preproc=no
20508 rm -f conftest.err conftest.$ac_ext
20509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20510 echo "${ECHO_T}$ac_header_preproc" >&6; }
20512 # So? What about this header?
20513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20519 ac_header_preproc=yes
20522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20535 ## ------------------------------------ ##
20536 ## Report this to http://llvm.org/bugs/ ##
20537 ## ------------------------------------ ##
20539 ) | sed "s/^/$as_me: WARNING: /" >&2
20542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20547 eval "$as_ac_Header=\$ac_header_preproc"
20549 ac_res=`eval echo '${'$as_ac_Header'}'`
20550 { echo "$as_me:$LINENO: result: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20564 for ac_func in getpagesize
20566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20580 #define $ac_func innocuous_$ac_func
20582 /* System header to define __stub macros and hopefully few prototypes,
20583 which can conflict with char $ac_func (); below.
20584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20585 <limits.h> exists even on freestanding compilers. */
20588 # include <limits.h>
20590 # include <assert.h>
20595 /* Override any GCC internal prototype to avoid an error.
20596 Use char because int might match the return type of a GCC
20597 builtin and then its argument prototype would still apply. */
20602 /* The GNU C library defines this for functions which it implements
20603 to always fail with ENOSYS. Some functions are actually named
20604 something starting with __ and the normal name is an alias. */
20605 #if defined __stub_$ac_func || defined __stub___$ac_func
20612 return $ac_func ();
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (ac_try="$ac_link"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624 (eval "$ac_link") 2>conftest.er1
20626 grep -v '^ *+' conftest.er1 >conftest.err
20628 cat conftest.err >&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
20631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20632 { (case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_try") 2>&5
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; } &&
20641 { ac_try='test -s conftest$ac_exeext'
20642 { (case "(($ac_try" in
20643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647 (eval "$ac_try") 2>&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651 eval "$as_ac_var=yes"
20653 echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20656 eval "$as_ac_var=no"
20659 rm -f core conftest.err conftest.$ac_objext \
20660 conftest$ac_exeext conftest.$ac_ext
20662 ac_res=`eval echo '${'$as_ac_var'}'`
20663 { echo "$as_me:$LINENO: result: $ac_res" >&5
20664 echo "${ECHO_T}$ac_res" >&6; }
20665 if test `eval echo '${'$as_ac_var'}'` = yes; then
20666 cat >>confdefs.h <<_ACEOF
20667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20673 { echo "$as_me:$LINENO: checking for working mmap" >&5
20674 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20675 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 if test "$cross_compiling" = yes; then
20679 ac_cv_func_mmap_fixed_mapped=no
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687 $ac_includes_default
20688 /* malloc might have been renamed as rpl_malloc. */
20691 /* Thanks to Mike Haertel and Jim Avera for this test.
20692 Here is a matrix of mmap possibilities:
20693 mmap private not fixed
20694 mmap private fixed at somewhere currently unmapped
20695 mmap private fixed at somewhere already mapped
20696 mmap shared not fixed
20697 mmap shared fixed at somewhere currently unmapped
20698 mmap shared fixed at somewhere already mapped
20699 For private mappings, we should verify that changes cannot be read()
20700 back from the file, nor mmap's back from the file at a different
20701 address. (There have been systems where private was not correctly
20702 implemented like the infamous i386 svr4.0, and systems where the
20703 VM page cache was not coherent with the file system buffer cache
20704 like early versions of FreeBSD and possibly contemporary NetBSD.)
20705 For shared mappings, we should conversely verify that changes get
20706 propagated back to all the places they're supposed to be.
20708 Grep wants private fixed already mapped.
20709 The main things grep needs to know about mmap are:
20710 * does it exist and is it safe to write into the mmap'd area
20711 * how to use it (BSD variants) */
20714 #include <sys/mman.h>
20716 #if !STDC_HEADERS && !HAVE_STDLIB_H
20720 /* This mess was copied from the GNU getpagesize.h. */
20721 #if !HAVE_GETPAGESIZE
20722 /* Assume that all systems that can run configure have sys/param.h. */
20723 # if !HAVE_SYS_PARAM_H
20724 # define HAVE_SYS_PARAM_H 1
20727 # ifdef _SC_PAGESIZE
20728 # define getpagesize() sysconf(_SC_PAGESIZE)
20729 # else /* no _SC_PAGESIZE */
20730 # if HAVE_SYS_PARAM_H
20731 # include <sys/param.h>
20732 # ifdef EXEC_PAGESIZE
20733 # define getpagesize() EXEC_PAGESIZE
20734 # else /* no EXEC_PAGESIZE */
20736 # define getpagesize() NBPG * CLSIZE
20739 # endif /* no CLSIZE */
20740 # else /* no NBPG */
20742 # define getpagesize() NBPC
20743 # else /* no NBPC */
20745 # define getpagesize() PAGESIZE
20746 # endif /* PAGESIZE */
20747 # endif /* no NBPC */
20748 # endif /* no NBPG */
20749 # endif /* no EXEC_PAGESIZE */
20750 # else /* no HAVE_SYS_PARAM_H */
20751 # define getpagesize() 8192 /* punt totally */
20752 # endif /* no HAVE_SYS_PARAM_H */
20753 # endif /* no _SC_PAGESIZE */
20755 #endif /* no HAVE_GETPAGESIZE */
20760 char *data, *data2, *data3;
20764 pagesize = getpagesize ();
20766 /* First, make a file with some known garbage in it. */
20767 data = (char *) malloc (pagesize);
20770 for (i = 0; i < pagesize; ++i)
20771 *(data + i) = rand ();
20773 fd = creat ("conftest.mmap", 0600);
20776 if (write (fd, data, pagesize) != pagesize)
20780 /* Next, try to mmap the file at a fixed address which already has
20781 something else allocated at it. If we can, also make sure that
20782 we see the same garbage. */
20783 fd = open ("conftest.mmap", O_RDWR);
20786 data2 = (char *) malloc (2 * pagesize);
20789 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20790 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20791 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20793 for (i = 0; i < pagesize; ++i)
20794 if (*(data + i) != *(data2 + i))
20797 /* Finally, make sure that changes to the mapped area do not
20798 percolate back to the file as seen by read(). (This is a bug on
20799 some variants of i386 svr4.0.) */
20800 for (i = 0; i < pagesize; ++i)
20801 *(data2 + i) = *(data2 + i) + 1;
20802 data3 = (char *) malloc (pagesize);
20805 if (read (fd, data3, pagesize) != pagesize)
20807 for (i = 0; i < pagesize; ++i)
20808 if (*(data + i) != *(data3 + i))
20814 rm -f conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20825 { (case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_try") 2>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; }; then
20834 ac_cv_func_mmap_fixed_mapped=yes
20836 echo "$as_me: program exited with status $ac_status" >&5
20837 echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840 ( exit $ac_status )
20841 ac_cv_func_mmap_fixed_mapped=no
20843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20848 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20849 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20850 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20852 cat >>confdefs.h <<\_ACEOF
20853 #define HAVE_MMAP 1
20857 rm -f conftest.mmap
20859 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20860 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20861 if test "${ac_cv_func_mmap_file+set}" = set; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 ac_cpp='$CPP $CPPFLAGS'
20866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20870 if test "$cross_compiling" = yes; then
20871 ac_cv_func_mmap_file=no
20873 cat >conftest.$ac_ext <<_ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20881 #include <sys/types.h>
20882 #include <sys/mman.h>
20890 fd = creat ("foo",0777);
20891 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20893 return (fd != (int) MAP_FAILED);
20898 rm -f conftest$ac_exeext
20899 if { (ac_try="$ac_link"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_link") 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20909 { (case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_try") 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 ac_cv_func_mmap_file=yes
20920 echo "$as_me: program exited with status $ac_status" >&5
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ( exit $ac_status )
20925 ac_cv_func_mmap_file=no
20927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20932 ac_cpp='$CPP $CPPFLAGS'
20933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20939 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20940 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20941 if test "$ac_cv_func_mmap_file" = yes; then
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_MMAP_FILE
20951 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20952 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20953 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 if test "$llvm_cv_os_type" = "Interix" ; then
20957 ac_cv_need_dev_zero_for_mmap=yes
20959 ac_cv_need_dev_zero_for_mmap=no
20963 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20964 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20965 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20967 cat >>confdefs.h <<\_ACEOF
20968 #define NEED_DEV_ZERO_FOR_MMAP 1
20973 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20975 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20976 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20978 if test "$ac_cv_func_mmap_file" = "no"
20980 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20981 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20985 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20986 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20988 ac_cpp='$CXXCPP $CPPFLAGS'
20989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21002 volatile unsigned long val = 1;
21003 __sync_synchronize();
21004 __sync_val_compare_and_swap(&val, 1, 0);
21005 __sync_add_and_fetch(&val, 1);
21006 __sync_sub_and_fetch(&val, 1);
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (ac_try="$ac_link"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_link") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21027 { (case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032 (eval "$ac_try") 2>&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest$ac_exeext'
21037 { (case "(($ac_try" in
21038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039 *) ac_try_echo=$ac_try;;
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042 (eval "$ac_try") 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; }; then
21047 { echo "$as_me:$LINENO: result: yes" >&5
21048 echo "${ECHO_T}yes" >&6; }
21050 cat >>confdefs.h <<\_ACEOF
21051 #define LLVM_HAS_ATOMICS 1
21056 echo "$as_me: failed program was:" >&5
21057 sed 's/^/| /' conftest.$ac_ext >&5
21060 { echo "$as_me:$LINENO: result: no" >&5
21061 echo "${ECHO_T}no" >&6; }
21063 cat >>confdefs.h <<\_ACEOF
21064 #define LLVM_HAS_ATOMICS 0
21067 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21068 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21072 rm -f core conftest.err conftest.$ac_objext \
21073 conftest$ac_exeext conftest.$ac_ext
21075 ac_cpp='$CPP $CPPFLAGS'
21076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21082 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21083 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21084 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21085 if test "${llvm_cv_linux_mixed+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21089 ac_cpp='$CPP $CPPFLAGS'
21090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21094 cat >conftest.$ac_ext <<_ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21101 error: Not x86-64 even if uname says so!
21112 rm -f conftest.$ac_objext
21113 if { (ac_try="$ac_compile"
21114 case "(($ac_try" in
21115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116 *) ac_try_echo=$ac_try;;
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119 (eval "$ac_compile") 2>conftest.er1
21121 grep -v '^ *+' conftest.er1 >conftest.err
21123 cat conftest.err >&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); } &&
21126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21127 { (case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21132 (eval "$ac_try") 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; } &&
21136 { ac_try='test -s conftest.$ac_objext'
21137 { (case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_try") 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 llvm_cv_linux_mixed=no
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 llvm_cv_linux_mixed=yes
21154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21164 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21166 if test "$llvm_cv_linux_mixed" = "yes"; then
21167 llvm_cv_target_arch="x86"
21173 for ac_func in __dso_handle
21175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define $ac_func innocuous_$ac_func
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char $ac_func (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21197 # include <limits.h>
21199 # include <assert.h>
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_$ac_func || defined __stub___$ac_func
21221 return $ac_func ();
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_link") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } &&
21240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21241 { (case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_try") 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; } &&
21250 { ac_try='test -s conftest$ac_exeext'
21251 { (case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_try") 2>&5
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 eval "$as_ac_var=yes"
21262 echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21265 eval "$as_ac_var=no"
21268 rm -f core conftest.err conftest.$ac_objext \
21269 conftest$ac_exeext conftest.$ac_ext
21271 ac_res=`eval echo '${'$as_ac_var'}'`
21272 { echo "$as_me:$LINENO: result: $ac_res" >&5
21273 echo "${ECHO_T}$ac_res" >&6; }
21274 if test `eval echo '${'$as_ac_var'}'` = yes; then
21275 cat >>confdefs.h <<_ACEOF
21276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21283 SHLIBEXT=$libltdl_cv_shlibext
21286 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21289 if test "${prefix}" = "NONE" ; then
21290 prefix="/usr/local"
21292 eval LLVM_PREFIX="${prefix}";
21293 eval LLVM_BINDIR="${prefix}/bin";
21294 eval LLVM_LIBDIR="${prefix}/lib";
21295 eval LLVM_DATADIR="${prefix}/share/llvm";
21296 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21297 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21298 eval LLVM_INCLUDEDIR="${prefix}/include";
21299 eval LLVM_INFODIR="${prefix}/info";
21300 eval LLVM_MANDIR="${prefix}/man";
21301 LLVM_CONFIGTIME=`date`
21313 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21314 LLVM_CONFIGTIME="(timestamp not enabled)"
21318 cat >>confdefs.h <<_ACEOF
21319 #define LLVM_PREFIX "$LLVM_PREFIX"
21323 cat >>confdefs.h <<_ACEOF
21324 #define LLVM_BINDIR "$LLVM_BINDIR"
21328 cat >>confdefs.h <<_ACEOF
21329 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21333 cat >>confdefs.h <<_ACEOF
21334 #define LLVM_DATADIR "$LLVM_DATADIR"
21338 cat >>confdefs.h <<_ACEOF
21339 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21343 cat >>confdefs.h <<_ACEOF
21344 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21348 cat >>confdefs.h <<_ACEOF
21349 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21353 cat >>confdefs.h <<_ACEOF
21354 #define LLVM_INFODIR "$LLVM_INFODIR"
21358 cat >>confdefs.h <<_ACEOF
21359 #define LLVM_MANDIR "$LLVM_MANDIR"
21363 cat >>confdefs.h <<_ACEOF
21364 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21368 cat >>confdefs.h <<_ACEOF
21369 #define LLVM_HOSTTRIPLE "$host"
21373 cat >>confdefs.h <<_ACEOF
21374 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21378 if test "$BINDINGS_TO_BUILD" = auto ; then
21379 BINDINGS_TO_BUILD=""
21380 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21381 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21384 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21390 binding_prereqs_failed=0
21391 for a_binding in $BINDINGS_TO_BUILD ; do
21392 case "$a_binding" in
21394 if test "x$OCAMLC" = x ; then
21395 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21396 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21397 binding_prereqs_failed=1
21399 if test "x$OCAMLDEP" = x ; then
21400 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21401 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21402 binding_prereqs_failed=1
21404 if test "x$OCAMLOPT" = x ; then
21405 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21406 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21408 if test "x$with_ocaml_libdir" != xauto ; then
21409 OCAML_LIBDIR=$with_ocaml_libdir
21412 ocaml_stdlib="`"$OCAMLC" -where`"
21413 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21415 # ocaml stdlib is beneath our prefix; use stdlib
21416 OCAML_LIBDIR=$ocaml_stdlib
21419 # ocaml stdlib is outside our prefix; use libdir/ocaml
21420 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21427 if test "$binding_prereqs_failed" = 1 ; then
21428 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21429 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21430 { (exit 1); exit 1; }; }
21433 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21434 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21435 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 ac_cpp='$CXXCPP $CPPFLAGS'
21440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21444 oldcxxflags="$CXXFLAGS"
21445 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21446 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21452 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21476 { (case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_try") 2>&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest.$ac_objext'
21486 { (case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_try") 2>&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 llvm_cv_cxx_visibility_inlines_hidden=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 llvm_cv_cxx_visibility_inlines_hidden=no
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 CXXFLAGS="$oldcxxflags"
21506 ac_cpp='$CPP $CPPFLAGS'
21507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21513 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21514 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21515 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21516 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21519 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21524 if test "$llvm_cv_link_use_r" = "yes" ; then
21531 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21532 RDYNAMIC="-Wl,-export-dynamic"
21539 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21546 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21548 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21550 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21552 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21554 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21557 ac_config_files="$ac_config_files Makefile.config"
21560 ac_config_files="$ac_config_files llvm.spec"
21563 ac_config_files="$ac_config_files docs/doxygen.cfg"
21566 if test "${clang_src_root}" = ""; then
21567 clang_src_root="$srcdir/tools/clang"
21569 if test -f ${clang_src_root}/README.txt; then
21570 configh="include/clang/Config/config.h"
21571 doxy="docs/doxygen.cfg"
21572 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21574 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21578 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21581 test "x$program_prefix" = "xNONE" && program_prefix=""
21585 ac_config_commands="$ac_config_commands setup"
21587 ac_config_commands="$ac_config_commands Makefile"
21590 ac_config_commands="$ac_config_commands Makefile.common"
21593 ac_config_commands="$ac_config_commands examples/Makefile"
21596 ac_config_commands="$ac_config_commands lib/Makefile"
21599 ac_config_commands="$ac_config_commands runtime/Makefile"
21602 ac_config_commands="$ac_config_commands test/Makefile"
21605 ac_config_commands="$ac_config_commands test/Makefile.tests"
21608 ac_config_commands="$ac_config_commands unittests/Makefile"
21611 ac_config_commands="$ac_config_commands tools/Makefile"
21614 ac_config_commands="$ac_config_commands utils/Makefile"
21617 ac_config_commands="$ac_config_commands projects/Makefile"
21620 ac_config_commands="$ac_config_commands bindings/Makefile"
21623 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21627 cat >confcache <<\_ACEOF
21628 # This file is a shell script that caches the results of configure
21629 # tests run on this system so they can be shared between configure
21630 # scripts and configure runs, see configure's option --config-cache.
21631 # It is not useful on other systems. If it contains results you don't
21632 # want to keep, you may remove or edit it.
21634 # config.status only pays attention to the cache file if you give it
21635 # the --recheck option to rerun configure.
21637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21639 # following values.
21643 # The following way of writing the cache mishandles newlines in values,
21644 # but we know of no workaround that is simple, portable, and efficient.
21645 # So, we kill variables containing newlines.
21646 # Ultrix sh set writes to stderr and can't be redirected directly,
21647 # and sets the high bit in the cache file unless we assign to the vars.
21649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21650 eval ac_val=\$$ac_var
21654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21658 _ | IFS | as_nl) ;; #(
21659 *) $as_unset $ac_var ;;
21665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21666 *${as_nl}ac_space=\ *)
21667 # `set' does not quote correctly, so add quotes (double-quote
21668 # substitution turns \\\\ into \\, and sed turns \\ into \).
21671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21674 # `set' quotes correctly as required by POSIX, so do not add quotes.
21675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21689 if test -w "$cache_file"; then
21690 test "x$cache_file" != "x/dev/null" &&
21691 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21692 echo "$as_me: updating cache $cache_file" >&6;}
21693 cat confcache >$cache_file
21695 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21696 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21702 # Let make expand exec_prefix.
21703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21705 DEFS=-DHAVE_CONFIG_H
21709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21710 # 1. Remove the extension, and $U if already installed.
21711 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21712 ac_i=`echo "$ac_i" | sed "$ac_script"`
21713 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21714 # will be set to the directory where LIBOBJS objects are built.
21715 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21716 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21718 LIBOBJS=$ac_libobjs
21720 LTLIBOBJS=$ac_ltlibobjs
21723 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21724 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21725 Usually this means the macro was only invoked conditionally." >&5
21726 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&2;}
21728 { (exit 1); exit 1; }; }
21730 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21731 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21732 Usually this means the macro was only invoked conditionally." >&5
21733 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21734 Usually this means the macro was only invoked conditionally." >&2;}
21735 { (exit 1); exit 1; }; }
21738 : ${CONFIG_STATUS=./config.status}
21739 ac_clean_files_save=$ac_clean_files
21740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21741 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21742 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21743 cat >$CONFIG_STATUS <<_ACEOF
21745 # Generated by $as_me.
21746 # Run this file to recreate the current configuration.
21747 # Compiler output produced by configure, useful for debugging
21748 # configure, is in config.log if it exists.
21751 ac_cs_recheck=false
21753 SHELL=\${CONFIG_SHELL-$SHELL}
21756 cat >>$CONFIG_STATUS <<\_ACEOF
21757 ## --------------------- ##
21758 ## M4sh Initialization. ##
21759 ## --------------------- ##
21761 # Be Bourne compatible
21762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21765 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21766 # is contrary to our usage. Disable this feature.
21767 alias -g '${1+"$@"}'='"$@"'
21768 setopt NO_GLOB_SUBST
21770 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21772 BIN_SH=xpg4; export BIN_SH # for Tru64
21773 DUALCASE=1; export DUALCASE # for MKS sh
21777 # Avoid depending upon Character Ranges.
21778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21781 as_cr_digits='0123456789'
21782 as_cr_alnum=$as_cr_Letters$as_cr_digits
21784 # The user is always right.
21785 if test "${PATH_SEPARATOR+set}" != set; then
21786 echo "#! /bin/sh" >conf$$.sh
21787 echo "exit 0" >>conf$$.sh
21789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21797 # Support unset when possible.
21798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21806 # We need space, tab and new line, in precisely that order. Quoting is
21807 # there to prevent editors from complaining about space-tab.
21808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21809 # splitting by setting IFS to empty value.)
21814 # Find who we are. Look in the path if we contain no directory separator.
21816 *[\\/]* ) as_myself=$0 ;;
21817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21818 for as_dir in $PATH
21821 test -z "$as_dir" && as_dir=.
21822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21828 # We did not find ourselves, most probably we were run as `sh COMMAND'
21829 # in which case we are not to be found in the path.
21830 if test "x$as_myself" = x; then
21833 if test ! -f "$as_myself"; then
21834 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21835 { (exit 1); exit 1; }
21838 # Work around bugs in pre-3.0 UWIN ksh.
21839 for as_var in ENV MAIL MAILPATH
21840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21848 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21849 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21850 LC_TELEPHONE LC_TIME
21852 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21853 eval $as_var=C; export $as_var
21855 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21859 # Required to use basename.
21860 if expr a : '\(a\)' >/dev/null 2>&1 &&
21861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21868 as_basename=basename
21874 # Name of the executable.
21875 as_me=`$as_basename -- "$0" ||
21876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21877 X"$0" : 'X\(//\)$' \| \
21878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21880 sed '/^.*\/\([^/][^/]*\)\/*$/{
21899 as_lineno_1=$LINENO
21900 as_lineno_2=$LINENO
21901 test "x$as_lineno_1" != "x$as_lineno_2" &&
21902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21905 # uniformly replaced by the line number. The first 'sed' inserts a
21906 # line-number line after each line using $LINENO; the second 'sed'
21907 # does the real work. The second script uses 'N' to pair each
21908 # line-number line with the line containing $LINENO, and appends
21909 # trailing '-' during substitution so that $LINENO is not a special
21910 # case at line end.
21911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21912 # scripts with optimization help from Paolo Bonzini. Blame Lee
21913 # E. McMahon (1931-1989) for sed's syntax. :-)
21925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21928 ' >$as_me.lineno &&
21929 chmod +x "$as_me.lineno" ||
21930 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21931 { (exit 1); exit 1; }; }
21933 # Don't try to exec as it changes $[0], causing all sort of problems
21934 # (the dirname of $[0] is not the place where we might find the
21935 # original and so on. Autoconf is especially sensitive to this).
21936 . "./$as_me.lineno"
21937 # Exit status is that of the last command.
21942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21948 ECHO_C= ECHO_N= ECHO_T=
21949 case `echo -n x` in
21951 case `echo 'x\c'` in
21952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21959 if expr a : '\(a\)' >/dev/null 2>&1 &&
21960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21966 rm -f conf$$ conf$$.exe conf$$.file
21967 if test -d conf$$.dir; then
21968 rm -f conf$$.dir/conf$$.file
21974 if ln -s conf$$.file conf$$ 2>/dev/null; then
21976 # ... but there are two gotchas:
21977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21979 # In both cases, we have to default to `cp -p'.
21980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21982 elif ln conf$$.file conf$$ 2>/dev/null; then
21987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21988 rmdir conf$$.dir 2>/dev/null
21990 if mkdir -p . 2>/dev/null; then
21993 test -d ./-p && rmdir ./-p
21997 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21998 # systems may use methods other than mode bits to determine executability.
21999 cat >conf$$.file <<_ASEOF
22003 chmod +x conf$$.file
22004 if test -x conf$$.file >/dev/null 2>&1; then
22005 as_executable_p="test -x"
22011 # Sed expression to map a string onto a valid CPP name.
22012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22014 # Sed expression to map a string onto a valid variable name.
22015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22020 # Save the log message, to keep $[0] and so on meaningful, and to
22021 # report actual input values of CONFIG_FILES etc. instead of their
22022 # values after options handling.
22024 This file was extended by LLVM $as_me 3.3svn, which was
22025 generated by GNU Autoconf 2.60. Invocation command line was
22027 CONFIG_FILES = $CONFIG_FILES
22028 CONFIG_HEADERS = $CONFIG_HEADERS
22029 CONFIG_LINKS = $CONFIG_LINKS
22030 CONFIG_COMMANDS = $CONFIG_COMMANDS
22033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22038 cat >>$CONFIG_STATUS <<_ACEOF
22039 # Files that config.status was made for.
22040 config_files="$ac_config_files"
22041 config_headers="$ac_config_headers"
22042 config_commands="$ac_config_commands"
22046 cat >>$CONFIG_STATUS <<\_ACEOF
22048 \`$as_me' instantiates files from templates according to the
22049 current configuration.
22051 Usage: $0 [OPTIONS] [FILE]...
22053 -h, --help print this help, then exit
22054 -V, --version print version number, then exit
22055 -q, --quiet do not print progress messages
22056 -d, --debug don't remove temporary files
22057 --recheck update $as_me by reconfiguring in the same conditions
22058 --file=FILE[:TEMPLATE]
22059 instantiate the configuration file FILE
22060 --header=FILE[:TEMPLATE]
22061 instantiate the configuration header FILE
22063 Configuration files:
22066 Configuration headers:
22069 Configuration commands:
22072 Report bugs to <bug-autoconf@gnu.org>."
22075 cat >>$CONFIG_STATUS <<_ACEOF
22077 LLVM config.status 3.3svn
22078 configured by $0, generated by GNU Autoconf 2.60,
22079 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22081 Copyright (C) 2006 Free Software Foundation, Inc.
22082 This config.status script is free software; the Free Software Foundation
22083 gives unlimited permission to copy, distribute and modify it."
22090 cat >>$CONFIG_STATUS <<\_ACEOF
22091 # If no file are specified by the user, then we need to provide default
22092 # value. By we need to know if files were specified by the user.
22098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22110 # Handling of the options.
22111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22114 echo "$ac_cs_version"; exit ;;
22115 --debug | --debu | --deb | --de | --d | -d )
22117 --file | --fil | --fi | --f )
22119 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22120 ac_need_defaults=false;;
22121 --header | --heade | --head | --hea )
22123 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22124 ac_need_defaults=false;;
22126 # Conflict between --help and --header
22127 { echo "$as_me: error: ambiguous option: $1
22128 Try \`$0 --help' for more information." >&2
22129 { (exit 1); exit 1; }; };;
22130 --help | --hel | -h )
22131 echo "$ac_cs_usage"; exit ;;
22132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22136 # This is an error.
22137 -*) { echo "$as_me: error: unrecognized option: $1
22138 Try \`$0 --help' for more information." >&2
22139 { (exit 1); exit 1; }; } ;;
22141 *) ac_config_targets="$ac_config_targets $1"
22142 ac_need_defaults=false ;;
22148 ac_configure_extra_args=
22150 if $ac_cs_silent; then
22152 ac_configure_extra_args="$ac_configure_extra_args --silent"
22156 cat >>$CONFIG_STATUS <<_ACEOF
22157 if \$ac_cs_recheck; then
22158 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22159 CONFIG_SHELL=$SHELL
22160 export CONFIG_SHELL
22161 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22165 cat >>$CONFIG_STATUS <<\_ACEOF
22169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22170 ## Running $as_me. ##
22176 cat >>$CONFIG_STATUS <<_ACEOF
22180 llvm_src="${srcdir}"
22184 cat >>$CONFIG_STATUS <<\_ACEOF
22186 # Handling of arguments.
22187 for ac_config_target in $ac_config_targets
22189 case $ac_config_target in
22190 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22191 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22192 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22193 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22194 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22195 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22196 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22197 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22198 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22199 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22200 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22201 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22202 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22203 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22204 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22205 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22206 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22207 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22208 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22209 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22210 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22211 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22212 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22213 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22214 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22215 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22216 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22218 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22220 { (exit 1); exit 1; }; };;
22225 # If the user did not use the arguments to specify the items to instantiate,
22226 # then the envvar interface is used. Set only those that are not.
22227 # We use the long form for the default assignment because of an extremely
22228 # bizarre bug on SunOS 4.1.3.
22229 if $ac_need_defaults; then
22230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22235 # Have a temporary directory for convenience. Make it in the build tree
22236 # simply because there is no reason against having it here, and in addition,
22237 # creating and moving files from /tmp can sometimes cause problems.
22238 # Hook for its removal unless debugging.
22239 # Note that there is a small window in which the directory will not be cleaned:
22240 # after its creation but before its name has been assigned to `$tmp'.
22244 trap 'exit_status=$?
22245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22247 trap '{ (exit 1); exit 1; }' 1 2 13 15
22249 # Create a (secure) tmp directory for tmp files.
22252 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22253 test -n "$tmp" && test -d "$tmp"
22256 tmp=./conf$$-$RANDOM
22257 (umask 077 && mkdir "$tmp")
22260 echo "$me: cannot create a temporary directory in ." >&2
22261 { (exit 1); exit 1; }
22265 # Set up the sed scripts for CONFIG_FILES section.
22268 # No need to generate the scripts if there are no CONFIG_FILES.
22269 # This happens for instance when ./config.status config.h
22270 if test -n "$CONFIG_FILES"; then
22277 for ac_last_try in false false false false false :; do
22278 cat >conf$$subs.sed <<_ACEOF
22279 SHELL!$SHELL$ac_delim
22280 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22281 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22282 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22283 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22284 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22285 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22286 exec_prefix!$exec_prefix$ac_delim
22287 prefix!$prefix$ac_delim
22288 program_transform_name!$program_transform_name$ac_delim
22289 bindir!$bindir$ac_delim
22290 sbindir!$sbindir$ac_delim
22291 libexecdir!$libexecdir$ac_delim
22292 datarootdir!$datarootdir$ac_delim
22293 datadir!$datadir$ac_delim
22294 sysconfdir!$sysconfdir$ac_delim
22295 sharedstatedir!$sharedstatedir$ac_delim
22296 localstatedir!$localstatedir$ac_delim
22297 includedir!$includedir$ac_delim
22298 oldincludedir!$oldincludedir$ac_delim
22299 docdir!$docdir$ac_delim
22300 infodir!$infodir$ac_delim
22301 htmldir!$htmldir$ac_delim
22302 dvidir!$dvidir$ac_delim
22303 pdfdir!$pdfdir$ac_delim
22304 psdir!$psdir$ac_delim
22305 libdir!$libdir$ac_delim
22306 localedir!$localedir$ac_delim
22307 mandir!$mandir$ac_delim
22308 DEFS!$DEFS$ac_delim
22309 ECHO_C!$ECHO_C$ac_delim
22310 ECHO_N!$ECHO_N$ac_delim
22311 ECHO_T!$ECHO_T$ac_delim
22312 LIBS!$LIBS$ac_delim
22313 build_alias!$build_alias$ac_delim
22314 host_alias!$host_alias$ac_delim
22315 target_alias!$target_alias$ac_delim
22316 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22318 CFLAGS!$CFLAGS$ac_delim
22319 LDFLAGS!$LDFLAGS$ac_delim
22320 CPPFLAGS!$CPPFLAGS$ac_delim
22321 ac_ct_CC!$ac_ct_CC$ac_delim
22322 EXEEXT!$EXEEXT$ac_delim
22323 OBJEXT!$OBJEXT$ac_delim
22325 CXXFLAGS!$CXXFLAGS$ac_delim
22326 ac_ct_CXX!$ac_ct_CXX$ac_delim
22328 subdirs!$subdirs$ac_delim
22329 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22330 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22331 build!$build$ac_delim
22332 build_cpu!$build_cpu$ac_delim
22333 build_vendor!$build_vendor$ac_delim
22334 build_os!$build_os$ac_delim
22335 host!$host$ac_delim
22336 host_cpu!$host_cpu$ac_delim
22337 host_vendor!$host_vendor$ac_delim
22338 host_os!$host_os$ac_delim
22339 target!$target$ac_delim
22340 target_cpu!$target_cpu$ac_delim
22341 target_vendor!$target_vendor$ac_delim
22342 target_os!$target_os$ac_delim
22344 HOST_OS!$HOST_OS$ac_delim
22345 TARGET_OS!$TARGET_OS$ac_delim
22346 LINKALL!$LINKALL$ac_delim
22347 NOLINKALL!$NOLINKALL$ac_delim
22348 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22349 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22350 ARCH!$ARCH$ac_delim
22351 HOST_ARCH!$HOST_ARCH$ac_delim
22352 ENDIAN!$ENDIAN$ac_delim
22353 GREP!$GREP$ac_delim
22354 EGREP!$EGREP$ac_delim
22355 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22356 BUILD_CC!$BUILD_CC$ac_delim
22357 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22358 BUILD_CXX!$BUILD_CXX$ac_delim
22359 CVSBUILD!$CVSBUILD$ac_delim
22360 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22361 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22362 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22363 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22364 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22365 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22366 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22367 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22368 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22369 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22370 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22371 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22372 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22373 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22375 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22378 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22380 elif $ac_last_try; then
22381 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22382 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22383 { (exit 1); exit 1; }; }
22385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22389 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22390 if test -n "$ac_eof"; then
22391 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22392 ac_eof=`expr $ac_eof + 1`
22395 cat >>$CONFIG_STATUS <<_ACEOF
22396 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22400 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22401 s/^/s,@/; s/!/@,|#_!!_#|/
22404 s/'"$ac_delim"'$/,g/; t
22406 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22407 ' >>$CONFIG_STATUS <conf$$subs.sed
22408 rm -f conf$$subs.sed
22409 cat >>$CONFIG_STATUS <<_ACEOF
22415 for ac_last_try in false false false false false :; do
22416 cat >conf$$subs.sed <<_ACEOF
22417 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22418 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22419 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22420 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22421 ENABLE_PIC!$ENABLE_PIC$ac_delim
22422 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22423 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22424 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22425 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22426 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22427 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22428 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22429 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22430 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22431 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22432 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22433 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22434 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22435 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22436 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22438 ifGNUmake!$ifGNUmake$ac_delim
22439 LN_S!$LN_S$ac_delim
22442 DATE!$DATE$ac_delim
22443 FIND!$FIND$ac_delim
22444 MKDIR!$MKDIR$ac_delim
22446 RANLIB!$RANLIB$ac_delim
22451 BINPWD!$BINPWD$ac_delim
22452 GRAPHVIZ!$GRAPHVIZ$ac_delim
22455 NEATO!$NEATO$ac_delim
22456 TWOPI!$TWOPI$ac_delim
22457 CIRCO!$CIRCO$ac_delim
22459 DOTTY!$DOTTY$ac_delim
22460 XDOT_PY!$XDOT_PY$ac_delim
22461 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22462 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22463 INSTALL_DATA!$INSTALL_DATA$ac_delim
22464 BZIP2!$BZIP2$ac_delim
22466 DOXYGEN!$DOXYGEN$ac_delim
22467 GROFF!$GROFF$ac_delim
22468 GZIPBIN!$GZIPBIN$ac_delim
22469 PDFROFF!$PDFROFF$ac_delim
22471 OCAMLC!$OCAMLC$ac_delim
22472 OCAMLOPT!$OCAMLOPT$ac_delim
22473 OCAMLDEP!$OCAMLDEP$ac_delim
22474 OCAMLDOC!$OCAMLDOC$ac_delim
22476 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22477 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22478 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22479 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22480 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22481 LIBADD_DL!$LIBADD_DL$ac_delim
22482 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22483 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22484 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
22485 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22486 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22487 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22488 PYTHON!$PYTHON$ac_delim
22489 USE_UDIS86!$USE_UDIS86$ac_delim
22490 USE_OPROFILE!$USE_OPROFILE$ac_delim
22491 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22492 XML2CONFIG!$XML2CONFIG$ac_delim
22493 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22494 LIBXML2_INC!$LIBXML2_INC$ac_delim
22495 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22496 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22497 MMAP_FILE!$MMAP_FILE$ac_delim
22498 SHLIBEXT!$SHLIBEXT$ac_delim
22499 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22500 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22501 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22502 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22503 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22504 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22505 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22506 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22507 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22508 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22509 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22510 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22511 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22512 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22513 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22514 RPATH!$RPATH$ac_delim
22517 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22519 elif $ac_last_try; then
22520 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22522 { (exit 1); exit 1; }; }
22524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22529 if test -n "$ac_eof"; then
22530 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22531 ac_eof=`expr $ac_eof + 1`
22534 cat >>$CONFIG_STATUS <<_ACEOF
22535 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22540 s/^/s,@/; s/!/@,|#_!!_#|/
22543 s/'"$ac_delim"'$/,g/; t
22545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22546 ' >>$CONFIG_STATUS <conf$$subs.sed
22547 rm -f conf$$subs.sed
22548 cat >>$CONFIG_STATUS <<_ACEOF
22554 for ac_last_try in false false false false false :; do
22555 cat >conf$$subs.sed <<_ACEOF
22556 RDYNAMIC!$RDYNAMIC$ac_delim
22557 program_prefix!$program_prefix$ac_delim
22558 LIBOBJS!$LIBOBJS$ac_delim
22559 LTLIBOBJS!$LTLIBOBJS$ac_delim
22562 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22564 elif $ac_last_try; then
22565 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22566 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22567 { (exit 1); exit 1; }; }
22569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22573 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22574 if test -n "$ac_eof"; then
22575 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22576 ac_eof=`expr $ac_eof + 1`
22579 cat >>$CONFIG_STATUS <<_ACEOF
22580 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22584 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22585 s/^/s,@/; s/!/@,|#_!!_#|/
22588 s/'"$ac_delim"'$/,g/; t
22590 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22591 ' >>$CONFIG_STATUS <conf$$subs.sed
22592 rm -f conf$$subs.sed
22593 cat >>$CONFIG_STATUS <<_ACEOF
22600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22602 # trailing colons and then remove the whole line if VPATH becomes empty
22603 # (actually we leave an empty line to preserve line numbers).
22604 if test "x$srcdir" = x.; then
22605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22606 s/:*\$(srcdir):*/:/
22607 s/:*\${srcdir}:*/:/
22609 s/^\([^=]*=[ ]*\):*/\1/
22615 cat >>$CONFIG_STATUS <<\_ACEOF
22616 fi # test -n "$CONFIG_FILES"
22619 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22622 :[FHLC]) ac_mode=$ac_tag; continue;;
22624 case $ac_mode$ac_tag in
22626 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22627 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22628 { (exit 1); exit 1; }; };;
22629 :[FH]-) ac_tag=-:-;;
22630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22647 -) ac_f="$tmp/stdin";;
22648 *) # Look for the file first in the build tree, then in the source tree
22649 # (if the path is not absolute). The absolute path cannot be DOS-style,
22650 # because $ac_f cannot contain `:'.
22654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22656 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22657 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22658 { (exit 1); exit 1; }; };;
22660 ac_file_inputs="$ac_file_inputs $ac_f"
22663 # Let's still pretend it is `configure' which instantiates (i.e., don't
22664 # use $as_me), people would be surprised to read:
22665 # /* config.h. Generated by config.status. */
22666 configure_input="Generated from "`IFS=:
22667 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22668 if test x"$ac_file" != x-; then
22669 configure_input="$ac_file. $configure_input"
22670 { echo "$as_me:$LINENO: creating $ac_file" >&5
22671 echo "$as_me: creating $ac_file" >&6;}
22675 *:-:* | *:-) cat >"$tmp/stdin";;
22680 ac_dir=`$as_dirname -- "$ac_file" ||
22681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22682 X"$ac_file" : 'X\(//\)[^/]' \| \
22683 X"$ac_file" : 'X\(//\)$' \| \
22684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22690 /^X\(\/\/\)[^/].*/{
22705 -*) as_dir=./$as_dir;;
22707 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22711 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22712 *) as_qdir=$as_dir;;
22714 as_dirs="'$as_qdir' $as_dirs"
22715 as_dir=`$as_dirname -- "$as_dir" ||
22716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22717 X"$as_dir" : 'X\(//\)[^/]' \| \
22718 X"$as_dir" : 'X\(//\)$' \| \
22719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22725 /^X\(\/\/\)[^/].*/{
22738 test -d "$as_dir" && break
22740 test -z "$as_dirs" || eval "mkdir $as_dirs"
22741 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22742 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22743 { (exit 1); exit 1; }; }; }
22747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22749 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22750 # A ".." for each directory in $ac_dir_suffix.
22751 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22752 case $ac_top_builddir_sub in
22753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22757 ac_abs_top_builddir=$ac_pwd
22758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22759 # for backward compatibility:
22760 ac_top_builddir=$ac_top_build_prefix
22763 .) # We are building in place.
22765 ac_top_srcdir=$ac_top_builddir_sub
22766 ac_abs_top_srcdir=$ac_pwd ;;
22767 [\\/]* | ?:[\\/]* ) # Absolute name.
22768 ac_srcdir=$srcdir$ac_dir_suffix;
22769 ac_top_srcdir=$srcdir
22770 ac_abs_top_srcdir=$srcdir ;;
22771 *) # Relative name.
22772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22773 ac_top_srcdir=$ac_top_build_prefix$srcdir
22774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22791 cat >>$CONFIG_STATUS <<\_ACEOF
22792 # If the template does not know about datarootdir, expand it.
22793 # FIXME: This hack should be removed a few years after 2.60.
22794 ac_datarootdir_hack=; ac_datarootdir_seen=
22796 case `sed -n '/datarootdir/ {
22805 ' $ac_file_inputs` in
22806 *datarootdir*) ac_datarootdir_seen=yes;;
22807 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22808 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22809 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22811 cat >>$CONFIG_STATUS <<_ACEOF
22812 ac_datarootdir_hack='
22813 s&@datadir@&$datadir&g
22814 s&@docdir@&$docdir&g
22815 s&@infodir@&$infodir&g
22816 s&@localedir@&$localedir&g
22817 s&@mandir@&$mandir&g
22818 s&\\\${datarootdir}&$datarootdir&g' ;;
22822 # Neutralize VPATH when `$srcdir' = `.'.
22823 # Shell code in configure.ac might set extrasub.
22824 # FIXME: do we really want to maintain this feature?
22825 cat >>$CONFIG_STATUS <<_ACEOF
22829 cat >>$CONFIG_STATUS <<\_ACEOF
22831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22832 s&@configure_input@&$configure_input&;t t
22833 s&@top_builddir@&$ac_top_builddir_sub&;t t
22834 s&@srcdir@&$ac_srcdir&;t t
22835 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22836 s&@top_srcdir@&$ac_top_srcdir&;t t
22837 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22838 s&@builddir@&$ac_builddir&;t t
22839 s&@abs_builddir@&$ac_abs_builddir&;t t
22840 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22841 s&@INSTALL@&$ac_INSTALL&;t t
22842 $ac_datarootdir_hack
22843 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22845 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22846 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22847 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22848 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22849 which seems to be undefined. Please make sure it is defined." >&5
22850 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22851 which seems to be undefined. Please make sure it is defined." >&2;}
22855 -) cat "$tmp/out"; rm -f "$tmp/out";;
22856 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22865 # Transform confdefs.h into a sed script `conftest.defines', that
22866 # substitutes the proper values into config.h.in to produce config.h.
22867 rm -f conftest.defines conftest.tail
22868 # First, append a space to every undef/define line, to ease matching.
22869 echo 's/$/ /' >conftest.defines
22870 # Then, protect against being on the right side of a sed subst, or in
22871 # an unquoted here document, in config.status. If some macros were
22872 # called several times there might be several #defines for the same
22873 # symbol, which is useless. But do not sort them, since the last
22874 # AC_DEFINE must be honored.
22875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22876 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22877 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22878 # PARAMS is the parameter list in the macro definition--in most cases, it's
22879 # just an empty string.
22880 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22881 ac_dB='\\)[ (].*,\\1define\\2'
22889 s/^[ ]*#[ ]*define[ ][ ]*//
22894 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22895 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22896 ' >>conftest.defines
22898 # Remove the space that was appended to ease matching.
22899 # Then replace #undef with comments. This is necessary, for
22900 # example, in the case of _POSIX_SOURCE, which is predefined and required
22901 # on some systems where configure will not decide to define it.
22902 # (The regexp can be short, since the line contains either #define or #undef.)
22904 s,^[ #]*u.*,/* & */,' >>conftest.defines
22906 # Break up conftest.defines:
22907 ac_max_sed_lines=50
22909 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22910 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22911 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22913 ac_in='$ac_file_inputs'
22914 ac_out='"$tmp/out1"'
22915 ac_nxt='"$tmp/out2"'
22919 # Write a here document:
22920 cat >>$CONFIG_STATUS <<_ACEOF
22921 # First, check the format of the line:
22922 cat >"\$tmp/defines.sed" <<\\CEOF
22923 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22924 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22928 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22930 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22931 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22932 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22933 grep . conftest.tail >/dev/null || break
22934 rm -f conftest.defines
22935 mv conftest.tail conftest.defines
22937 rm -f conftest.defines conftest.tail
22939 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22940 cat >>$CONFIG_STATUS <<\_ACEOF
22941 if test x"$ac_file" != x-; then
22942 echo "/* $configure_input */" >"$tmp/config.h"
22943 cat "$ac_result" >>"$tmp/config.h"
22944 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22945 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22946 echo "$as_me: $ac_file is unchanged" >&6;}
22949 mv "$tmp/config.h" $ac_file
22952 echo "/* $configure_input */"
22958 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22959 echo "$as_me: executing $ac_file commands" >&6;}
22964 case $ac_file$ac_mode in
22965 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22966 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22967 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22968 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22969 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22971 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22973 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22975 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22977 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22979 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22981 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22983 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22985 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22986 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22987 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22988 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22989 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22990 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22996 { (exit 0); exit 0; }
22998 chmod +x $CONFIG_STATUS
22999 ac_clean_files=$ac_clean_files_save
23002 # configure is writing to config.log, and then calls config.status.
23003 # config.status does its own redirection, appending to config.log.
23004 # Unfortunately, on DOS this fails, as config.log is still kept open
23005 # by configure, so config.status won't be able to write to it; its
23006 # output is simply discarded. So we exec the FD to /dev/null,
23007 # effectively closing config.log, so it can be properly (re)opened and
23008 # appended to by config.status. When coming back to configure, we
23009 # need to make the FD available again.
23010 if test "$no_create" != yes; then
23012 ac_config_status_args=
23013 test "$silent" = yes &&
23014 ac_config_status_args="$ac_config_status_args --quiet"
23016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23019 # would make configure fail if this is the last instruction.
23020 $ac_cs_success || { (exit 1); exit 1; }
23024 # CONFIG_SUBDIRS section.
23026 if test "$no_recursion" != yes; then
23028 # Remove --cache-file and --srcdir arguments so they do not pile up.
23029 ac_sub_configure_args=
23031 eval "set x $ac_configure_args"
23035 if test -n "$ac_prev"; then
23040 -cache-file | --cache-file | --cache-fil | --cache-fi \
23041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23042 ac_prev=cache_file ;;
23043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23047 --config-cache | -C)
23049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23059 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23061 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23065 # Always prepend --prefix to ensure using the same prefix
23066 # in subdir configurations.
23067 ac_arg="--prefix=$prefix"
23069 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23071 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23074 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23076 # Do not complain, so a configure script can configure whichever
23077 # parts of a large source tree are present.
23078 test -d "$srcdir/$ac_dir" || continue
23080 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23081 echo "$as_me:$LINENO: $ac_msg" >&5
23085 -*) as_dir=./$as_dir;;
23087 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23091 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23092 *) as_qdir=$as_dir;;
23094 as_dirs="'$as_qdir' $as_dirs"
23095 as_dir=`$as_dirname -- "$as_dir" ||
23096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$as_dir" : 'X\(//\)[^/]' \| \
23098 X"$as_dir" : 'X\(//\)$' \| \
23099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23105 /^X\(\/\/\)[^/].*/{
23118 test -d "$as_dir" && break
23120 test -z "$as_dirs" || eval "mkdir $as_dirs"
23121 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23122 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23123 { (exit 1); exit 1; }; }; }
23127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23130 # A ".." for each directory in $ac_dir_suffix.
23131 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23132 case $ac_top_builddir_sub in
23133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23137 ac_abs_top_builddir=$ac_pwd
23138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23139 # for backward compatibility:
23140 ac_top_builddir=$ac_top_build_prefix
23143 .) # We are building in place.
23145 ac_top_srcdir=$ac_top_builddir_sub
23146 ac_abs_top_srcdir=$ac_pwd ;;
23147 [\\/]* | ?:[\\/]* ) # Absolute name.
23148 ac_srcdir=$srcdir$ac_dir_suffix;
23149 ac_top_srcdir=$srcdir
23150 ac_abs_top_srcdir=$srcdir ;;
23151 *) # Relative name.
23152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23153 ac_top_srcdir=$ac_top_build_prefix$srcdir
23154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23161 # Check for guested configure; otherwise get Cygnus style configure.
23162 if test -f "$ac_srcdir/configure.gnu"; then
23163 ac_sub_configure=$ac_srcdir/configure.gnu
23164 elif test -f "$ac_srcdir/configure"; then
23165 ac_sub_configure=$ac_srcdir/configure
23166 elif test -f "$ac_srcdir/configure.in"; then
23167 # This should be Cygnus configure.
23168 ac_sub_configure=$ac_aux_dir/configure
23170 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23175 # The recursion is here.
23176 if test -n "$ac_sub_configure"; then
23177 # Make the cache file name correct relative to the subdirectory.
23178 case $cache_file in
23179 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23180 *) # Relative name.
23181 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23184 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23185 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23186 # The eval makes quoting arguments work.
23187 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23188 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23189 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23190 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23191 { (exit 1); exit 1; }; }