2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
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
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
693 ENABLE_EXPENSIVE_CHECKS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/test-suite
820 projects/llvm-poolalloc
826 # Initialize some variables set by options.
828 ac_init_version=false
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name=s,x,x,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
930 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931 { (exit 1); exit 1; }; }
932 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
933 eval enable_$ac_feature=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 -enable-* | --enable-*)
946 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
952 eval enable_$ac_feature=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package| sed 's/-/_/g'`
1149 eval with_$ac_package=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package | sed 's/-/_/g'`
1158 eval with_$ac_package=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) { echo "$as_me: error: unrecognized option: $ac_option
1179 Try \`$0 --help' for more information." >&2
1180 { (exit 1); exit 1; }; }
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1188 { (exit 1); exit 1; }; }
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 { echo "$as_me: error: missing argument to $ac_option" >&2
1206 { (exit 1); exit 1; }; }
1209 # Be sure to have absolute directory names.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221 { (exit 1); exit 1; }; }
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 { echo "$as_me: error: Working directory cannot be determined" >&2
1252 { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 { echo "$as_me: error: pwd does not report name of working directory" >&2
1255 { (exit 1); exit 1; }; }
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$0" ||
1263 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$0" : 'X\(//\)[^/]' \| \
1265 X"$0" : 'X\(//\)$' \| \
1266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295 { (exit 1); exit 1; }; }
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1300 { (exit 1); exit 1; }; }
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-compiler-version-checks
1400 Check the version of the host compiler (default is
1402 --enable-polly Use polly if available (default is YES)
1403 --enable-libcpp Use libc++ if available (default is NO)
1404 --enable-cxx11 Use c++11 if available (default is NO)
1405 --enable-split-dwarf Use split-dwarf if available (default is NO)
1406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1407 --enable-clang-static-analyzer
1408 Enable building of clang Static Analyzer (default is
1410 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411 --enable-optimized Compile with optimizations enabled (default is NO)
1412 --enable-profiling Compile with profiling enabled (default is NO)
1413 --enable-assertions Compile with assertion checks enabled (default is
1415 --enable-werror Compile with -Werror enabled (default is NO)
1416 --enable-expensive-checks
1417 Compile with expensive debug checks enabled (default
1419 --enable-debug-runtime Build runtime libs with debug symbols (default is
1421 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1422 optimization is on and YES if it's off)
1423 --enable-keep-symbols Do not strip installed executables)
1424 --enable-jit Enable Just In Time Compiling (default is YES)
1425 --enable-docs Build documents (default is YES)
1426 --enable-doxygen Build doxygen documentation (default is NO)
1427 --enable-threads Use threads if available (default is YES)
1428 --enable-pthreads Use pthreads if available (default is YES)
1429 --enable-zlib Use zlib for compression/decompression if available
1431 --enable-pic Build LLVM with Position Independent Code (default
1433 --enable-shared Build a shared library and link tools against it
1435 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1436 Win32 DLL (default is NO)
1437 --enable-timestamps Enable embedding timestamp information in build
1439 --enable-backtraces Enable embedding backtraces on crash (default is
1441 --enable-crash-overrides
1442 Enable crash handling overrides (default is YES)
1443 --enable-targets Build specific host targets: all or
1444 target1,target2,... Valid targets are: host, x86,
1445 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1446 xcore, msp430, nvptx, systemz, r600, and cpp
1448 --enable-experimental-targets
1449 Build experimental host targets: disable or
1450 target1,target2,... (default=disable)
1451 --enable-bindings Build specific language bindings:
1452 all,auto,none,{binding-name} (default=auto)
1453 --enable-terminfo Query the terminfo database if available (default is
1455 --enable-libffi Check for the presence of libffi (default is NO)
1456 --enable-ltdl-install install libltdl
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-optimize-option Select the compiler options to use for optimized
1463 --with-extra-options Specify additional options to compile LLVM with
1464 --with-extra-ld-options Specify additional options to link LLVM with
1465 --with-ocaml-libdir Specify install location for ocaml bindings (default
1467 --with-clang-srcdir Directory to the out-of-tree Clang source
1468 --with-clang-resource-dir
1469 Relative directory from the Clang binary for
1471 --with-c-include-dirs Colon separated list of directories clang will
1473 --with-gcc-toolchain Directory where gcc is installed.
1474 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1475 --with-binutils-include Specify path to binutils/include/ containing
1476 plugin-api.h file for gold plugin.
1477 --with-bug-report-url Specify the URL where bug reports should be
1478 submitted (default=http://llvm.org/bugs/)
1479 --with-internal-prefix Installation directory for internal files
1480 --with-python path to python
1481 --with-udis86=<path> Use udis86 external x86 disassembler library
1482 --with-oprofile=<prefix>
1483 Tell OProfile >= 0.9.4 how to symbolize JIT output
1484 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1502 Report bugs to <http://llvm.org/bugs/>.
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" || continue
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 LLVM configure 3.5svn
1564 generated by GNU Autoconf 2.60
1566 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1567 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1571 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1579 It was created by LLVM $as_me 3.5svn, which was
1580 generated by GNU Autoconf 2.60. Invocation command line was
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1601 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1602 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1605 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1606 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1607 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir=.
1616 echo "PATH: $as_dir"
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_must_keep_next=false
1646 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1656 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657 if test $ac_must_keep_next = true; then
1658 ac_must_keep_next=false # Got value, back to normal.
1661 *=* | --config-cache | -C | -disable-* | --disable-* \
1662 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664 | -with-* | --with-* | -without-* | --without-* | --x)
1665 case "$ac_configure_args0 " in
1666 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 -* ) ac_must_keep_next=true ;;
1672 ac_configure_args="$ac_configure_args '$ac_arg'"
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log. We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686 # Save into config.log some information that might help in debugging.
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1696 # The following way of writing the cache mishandles newlines in values,
1698 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699 eval ac_val=\$$ac_var
1703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 _ | IFS | as_nl) ;; #(
1708 *) $as_unset $ac_var ;;
1713 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714 *${as_nl}ac_space=\ *)
1716 "s/'\''/'\''\\\\'\'''\''/g;
1717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1733 for ac_var in $ac_subst_vars
1735 eval ac_val=\$$ac_var
1737 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 echo "$ac_var='\''$ac_val'\''"
1743 if test -n "$ac_subst_files"; then
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1750 for ac_var in $ac_subst_files
1752 eval ac_val=\$$ac_var
1754 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 echo "$ac_var='\''$ac_val'\''"
1761 if test -s confdefs.h; then
1771 test "$ac_signal" != 0 &&
1772 echo "$as_me: caught signal $ac_signal"
1773 echo "$as_me: exit $exit_status"
1775 rm -f core *.core core.conftest.* &&
1776 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779 for ac_signal in 1 2 13 15; do
1780 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1787 # Predefined preprocessor variables.
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817 set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 set x "$ac_default_prefix/share/config.site" \
1822 "$ac_default_prefix/etc/config.site"
1827 if test -r "$ac_site_file"; then
1828 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830 sed 's/^/| /' "$ac_site_file" >&5
1835 if test -r "$cache_file"; then
1836 # Some versions of bash will fail to source /dev/null (special
1837 # files actually), so we avoid doing that.
1838 if test -f "$cache_file"; then
1839 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1842 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843 *) . "./$cache_file";;
1847 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1852 # Check that the precious variables saved in the cache have kept the same
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857 eval ac_new_set=\$ac_env_${ac_var}_set
1858 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859 eval ac_new_val=\$ac_env_${ac_var}_value
1860 case $ac_old_set,$ac_new_set in
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1871 if test "x$ac_old_val" != "x$ac_new_val"; then
1872 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1875 echo "$as_me: former value: $ac_old_val" >&2;}
1876 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1877 echo "$as_me: current value: $ac_new_val" >&2;}
1878 ac_cache_corrupted=:
1881 # Pass precious variables to config.status.
1882 if test "$ac_new_set" = set; then
1884 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 *) ac_arg=$ac_var=$ac_new_val ;;
1887 case " $ac_configure_args " in
1888 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1889 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 if $ac_cache_corrupted; then
1894 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898 { (exit 1); exit 1; }; }
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 cat >>confdefs.h <<\_ACEOF
1934 #define LLVM_VERSION_MAJOR 3
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LLVM_VERSION_MINOR 5
1943 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1952 for ac_dir in autoconf "$srcdir"/autoconf; do
1953 if test -f "$ac_dir/install-sh"; then
1955 ac_install_sh="$ac_aux_dir/install-sh -c"
1957 elif test -f "$ac_dir/install.sh"; then
1959 ac_install_sh="$ac_aux_dir/install.sh -c"
1961 elif test -f "$ac_dir/shtool"; then
1963 ac_install_sh="$ac_aux_dir/shtool install -c"
1967 if test -z "$ac_aux_dir"; then
1968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1969 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1970 { (exit 1); exit 1; }; }
1973 # These three variables are undocumented and unsupported,
1974 # and are intended to be withdrawn in a future Autoconf release.
1975 # They can cause serious problems if a builder's source tree is in a directory
1976 # whose full name contains unusual characters.
1977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983 if test ${srcdir} != "." ; then
1984 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1985 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1986 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1987 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999 if test -n "$ac_tool_prefix"; then
2000 for ac_prog in clang gcc
2002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2006 if test "${ac_cv_prog_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$CC"; then
2010 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir=.
2017 for ac_exec_ext in '' $ac_executable_extensions; do
2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 if test -n "$CC"; then
2031 { echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6; }
2034 { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2039 test -n "$CC" && break
2042 if test -z "$CC"; then
2044 for ac_prog in clang gcc
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy $ac_prog; ac_word=$2
2048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6; }
2078 { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2083 test -n "$ac_ct_CC" && break
2086 if test "x$ac_ct_CC" = x; then
2089 case $cross_compiling:$ac_tool_warned in
2091 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet. If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&5
2094 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2097 ac_tool_warned=yes ;;
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO: checking for C compiler version" >&5
2112 ac_compiler=`set X $ac_compile; echo $2`
2113 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2133 { (ac_try="$ac_compiler -V >&5"
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2139 (eval "$ac_compiler -V >&5") 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2159 ac_clean_files_save=$ac_clean_files
2160 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2161 # Try to create an executable without -o first, disregard a.out.
2162 # It will help us diagnose broken compilers, and finding out an intuition
2164 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2165 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2166 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 # List of possible output files, starting from the most likely.
2169 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2170 # only as a last resort. b.out is created by i960 compilers.
2171 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2173 # The IRIX 6 linker writes into existing files which may not be
2174 # executable, retaining their permissions. Remove them first so a
2175 # subsequent execution test works.
2177 for ac_file in $ac_files
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2186 if { (ac_try="$ac_link_default"
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192 (eval "$ac_link_default") 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; then
2196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2199 # so that the user can short-circuit this test for compilers unknown to
2201 for ac_file in $ac_files
2203 test -f "$ac_file" || continue
2205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2208 # We found the default executable, but exeext='' is most
2212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # We set ac_cv_exeext here because the later test for it is not
2217 # safe: cross compilers may not add the suffix if given an `-o'
2218 # argument, so we may need to know it at that point already.
2219 # Even if this section looks crufty: it has the advantage of
2226 test "$ac_cv_exeext" = no && ac_cv_exeext=
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: C compiler cannot create executables
2235 See \`config.log' for more details." >&2;}
2236 { (exit 77); exit 77; }; }
2239 ac_exeext=$ac_cv_exeext
2240 { echo "$as_me:$LINENO: result: $ac_file" >&5
2241 echo "${ECHO_T}$ac_file" >&6; }
2243 # Check that the compiler produces executables we can run. If not, either
2244 # the compiler is broken, or we cross compile.
2245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2248 # If not cross compiling, check that we can run a simple program.
2249 if test "$cross_compiling" != yes; then
2250 if { ac_try='./$ac_file'
2251 { (case "(($ac_try" in
2252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253 *) ac_try_echo=$ac_try;;
2255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2256 (eval "$ac_try") 2>&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 if test "$cross_compiling" = maybe; then
2265 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&2;}
2271 { (exit 1); exit 1; }; }
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2279 ac_clean_files=$ac_clean_files_save
2280 # Check that the compiler produces executables we can run. If not, either
2281 # the compiler is broken, or we cross compile.
2282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2285 echo "${ECHO_T}$cross_compiling" >&6; }
2287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2289 if { (ac_try="$ac_link"
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295 (eval "$ac_link") 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2301 # work properly (i.e., refer to `conftest.exe'), while it won't with
2303 for ac_file in conftest.exe conftest conftest.*; do
2304 test -f "$ac_file" || continue
2306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2320 rm -f conftest$ac_cv_exeext
2321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.o conftest.obj
2348 if { (ac_try="$ac_compile"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compile") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 for ac_file in conftest.o conftest.obj conftest.*; do
2359 test -f "$ac_file" || continue;
2361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2371 See \`config.log' for more details." >&5
2372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2373 See \`config.log' for more details." >&2;}
2374 { (exit 1); exit 1; }; }
2377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2380 echo "${ECHO_T}$ac_cv_objext" >&6; }
2381 OBJEXT=$ac_cv_objext
2383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.$ac_ext <<_ACEOF
2391 cat confdefs.h >>conftest.$ac_ext
2392 cat >>conftest.$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2406 rm -f conftest.$ac_objext
2407 if { (ac_try="$ac_compile"
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_compile") 2>conftest.er1
2415 grep -v '^ *+' conftest.er1 >conftest.err
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436 (eval "$ac_try") 2>&5
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2452 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2453 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2454 GCC=`test $ac_compiler_gnu = yes && echo yes`
2455 ac_test_CFLAGS=${CFLAGS+set}
2456 ac_save_CFLAGS=$CFLAGS
2457 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2458 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_cc_g+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 ac_save_c_werror_flag=$ac_c_werror_flag
2463 ac_c_werror_flag=yes
2466 cat >conftest.$ac_ext <<_ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2481 rm -f conftest.$ac_objext
2482 if { (ac_try="$ac_compile"
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_compile") 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_try") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543 (eval "$ac_compile") 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_try") 2>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_c_werror_flag=$ac_save_c_werror_flag
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2592 rm -f conftest.$ac_objext
2593 if { (ac_try="$ac_compile"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_try") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_c_werror_flag=$ac_save_c_werror_flag
2643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2644 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2645 if test "$ac_test_CFLAGS" = set; then
2646 CFLAGS=$ac_save_CFLAGS
2647 elif test $ac_cv_prog_cc_g = yes; then
2648 if test "$GCC" = yes; then
2654 if test "$GCC" = yes; then
2660 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2661 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2662 if test "${ac_cv_prog_cc_c89+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_cv_prog_cc_c89=no
2667 cat >conftest.$ac_ext <<_ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2675 #include <sys/types.h>
2676 #include <sys/stat.h>
2677 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2678 struct buf { int x; };
2679 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2680 static char *e (p, i)
2686 static char *f (char * (*g) (char **, int), char **p, ...)
2691 s = g (p, va_arg (v,int));
2696 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2697 function prototypes and stuff, but not '\xHH' hex character constants.
2698 These don't provoke an error unfortunately, instead are silently treated
2699 as 'x'. The following induces an error, until -std is added to get
2700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2701 array size at least. It's necessary to write '\x00'==0 to get something
2702 that's true only with -std. */
2703 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2705 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2706 inside strings and character constants. */
2708 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2710 int test (int i, double x);
2711 struct s1 {int (*f) (int a);};
2712 struct s2 {int (*f) (double a);};
2713 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2727 CC="$ac_save_CC $ac_arg"
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2737 grep -v '^ *+' conftest.er1 >conftest.err
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } &&
2742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2752 { ac_try='test -s conftest.$ac_objext'
2753 { (case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_try") 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_prog_cc_c89=$ac_arg
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f core conftest.err conftest.$ac_objext
2771 test "x$ac_cv_prog_cc_c89" != "xno" && break
2773 rm -f conftest.$ac_ext
2778 case "x$ac_cv_prog_cc_c89" in
2780 { echo "$as_me:$LINENO: result: none needed" >&5
2781 echo "${ECHO_T}none needed" >&6; } ;;
2783 { echo "$as_me:$LINENO: result: unsupported" >&5
2784 echo "${ECHO_T}unsupported" >&6; } ;;
2786 CC="$CC $ac_cv_prog_cc_c89"
2787 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799 ac_cpp='$CXXCPP $CPPFLAGS'
2800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2803 if test -z "$CXX"; then
2804 if test -n "$CCC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 for ac_prog in clang++ g++
2810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CXX+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CXX"; then
2818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CXX"; then
2839 { echo "$as_me:$LINENO: result: $CXX" >&5
2840 echo "${ECHO_T}$CXX" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$CXX" && break
2850 if test -z "$CXX"; then
2852 for ac_prog in clang++ g++
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$ac_ct_CXX"; then
2862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_CXX="$ac_prog"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2882 if test -n "$ac_ct_CXX"; then
2883 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2884 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2886 { echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6; }
2891 test -n "$ac_ct_CXX" && break
2894 if test "x$ac_ct_CXX" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&5
2902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2905 ac_tool_warned=yes ;;
2913 # Provide some information about the compiler.
2914 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2915 ac_compiler=`set X $ac_compile; echo $2`
2916 { (ac_try="$ac_compiler --version >&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 --version >&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); }
2936 { (ac_try="$ac_compiler -V >&5"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compiler -V >&5") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext
2971 if { (ac_try="$ac_compile"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } &&
2984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_try") 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3017 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3018 GXX=`test $ac_compiler_gnu = yes && echo yes`
3019 ac_test_CXXFLAGS=${CXXFLAGS+set}
3020 ac_save_CXXFLAGS=$CXXFLAGS
3021 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3022 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_cxx_g+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3027 ac_cxx_werror_flag=yes
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 rm -f conftest.$ac_objext
3046 if { (ac_try="$ac_compile"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } &&
3059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 ac_cv_prog_cxx_g=yes
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3109 grep -v '^ *+' conftest.er1 >conftest.err
3111 cat conftest.err >&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3124 { ac_try='test -s conftest.$ac_objext'
3125 { (case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_try") 2>&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; }; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163 (eval "$ac_compile") 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3180 { ac_try='test -s conftest.$ac_objext'
3181 { (case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_try") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_prog_cxx_g=yes
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3218 if test "$GXX" = yes; then
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3236 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3237 # On Suns, sometimes $CPP names a directory.
3238 if test -n "$CPP" && test -d "$CPP"; then
3241 if test -z "$CPP"; then
3242 if test "${ac_cv_prog_CPP+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 # Double quotes because CPP needs to be expanded
3246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3249 for ac_c_preproc_warn_flag in '' yes
3251 # Use a header file that comes with gcc, so configuring glibc
3252 # with a fresh cross-compiler works.
3253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3254 # <limits.h> exists even on freestanding compilers.
3255 # On the NeXT, cc -E runs the code through the compiler's parser,
3256 # not just through cpp. "Syntax error" is here to catch this case.
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 # include <limits.h>
3266 # include <assert.h>
3270 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3302 rm -f conftest.err conftest.$ac_ext
3304 # OK, works on sane cases. Now check whether nonexistent headers
3305 # can be detected and how.
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ac_nonexistent.h>
3314 if { (ac_try="$ac_cpp conftest.$ac_ext"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } >/dev/null; then
3327 if test -s conftest.err; then
3328 ac_cpp_err=$ac_c_preproc_warn_flag
3329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336 if test -z "$ac_cpp_err"; then
3337 # Broken: success on invalid input.
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 # Passes both tests.
3348 rm -f conftest.err conftest.$ac_ext
3351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3352 rm -f conftest.err conftest.$ac_ext
3353 if $ac_preproc_ok; then
3365 { echo "$as_me:$LINENO: result: $CPP" >&5
3366 echo "${ECHO_T}$CPP" >&6; }
3368 for ac_c_preproc_warn_flag in '' yes
3370 # Use a header file that comes with gcc, so configuring glibc
3371 # with a fresh cross-compiler works.
3372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3373 # <limits.h> exists even on freestanding compilers.
3374 # On the NeXT, cc -E runs the code through the compiler's parser,
3375 # not just through cpp. "Syntax error" is here to catch this case.
3376 cat >conftest.$ac_ext <<_ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3383 # include <limits.h>
3385 # include <assert.h>
3389 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 grep -v '^ *+' conftest.er1 >conftest.err
3399 cat conftest.err >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); } >/dev/null; then
3402 if test -s conftest.err; then
3403 ac_cpp_err=$ac_c_preproc_warn_flag
3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 if test -z "$ac_cpp_err"; then
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 # Broken: fails on valid input.
3421 rm -f conftest.err conftest.$ac_ext
3423 # OK, works on sane cases. Now check whether nonexistent headers
3424 # can be detected and how.
3425 cat >conftest.$ac_ext <<_ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include <ac_nonexistent.h>
3433 if { (ac_try="$ac_cpp conftest.$ac_ext"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 if test -z "$ac_cpp_err"; then
3456 # Broken: success on invalid input.
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3467 rm -f conftest.err conftest.$ac_ext
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3475 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3478 See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 if test "$CXX" = "clang++" ; then
3490 { echo "$as_me:$LINENO: checking whether clang works" >&5
3491 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3493 ac_cpp='$CXXCPP $CPPFLAGS'
3494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 #if __has_include (<cxxabi.h>)
3509 #if __has_include (<unwind.h>)
3521 rm -f conftest.$ac_objext
3522 if { (ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_try") 2>&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3556 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566 { { 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
3567 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;}
3568 { (exit 1); exit 1; }; }
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3582 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3584 ac_cpp='$CXXCPP $CPPFLAGS'
3585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3589 llvm_cv_cxx_compiler=unknown
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3623 { (case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_try") 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_try") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 llvm_cv_cxx_compiler=clang
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 cat >conftest.$ac_ext <<_ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_compile") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3680 { (case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_try") 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 llvm_cv_cxx_compiler=gcc
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3718 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3720 # Check whether --enable-compiler-version-checks was given.
3721 if test "${enable_compiler_version_checks+set}" = set; then
3722 enableval=$enable_compiler_version_checks;
3727 case "$enableval" in
3732 ac_cpp='$CXXCPP $CPPFLAGS'
3733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3737 case "$llvm_cv_cxx_compiler" in
3739 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3740 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3748 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3749 #error This version of Clang is too old to build LLVM
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3775 { (case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_try") 2>&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; } &&
3784 { ac_try='test -s conftest.$ac_objext'
3785 { (case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_try") 2>&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 { echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6; }
3797 echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802 { { echo "$as_me:$LINENO: error:
3803 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3804 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3805 bypass these sanity checks." >&5
3806 echo "$as_me: error:
3807 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3808 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3809 bypass these sanity checks." >&2;}
3810 { (exit 1); exit 1; }; }
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3817 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3825 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3826 #error This version of GCC is too old to build LLVM
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 { echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6; }
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3877 { echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6; }
3879 { { echo "$as_me:$LINENO: error:
3880 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3881 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3882 bypass these sanity checks." >&5
3883 echo "$as_me: error:
3884 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3885 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3886 bypass these sanity checks." >&2;}
3887 { (exit 1); exit 1; }; }
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3904 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3905 { (exit 1); exit 1; }; }
3911 if test -d ${srcdir}/projects/test-suite ; then
3912 subdirs="$subdirs projects/test-suite"
3916 if test -d ${srcdir}/projects/llvm-test ; then
3917 subdirs="$subdirs projects/llvm-test"
3921 if test -d ${srcdir}/projects/poolalloc ; then
3922 subdirs="$subdirs projects/poolalloc"
3926 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3927 subdirs="$subdirs projects/llvm-poolalloc"
3931 for i in `ls ${srcdir}/projects`
3933 if test -d ${srcdir}/projects/${i} ; then
3935 sample) subdirs="$subdirs projects/sample"
3937 privbracket) subdirs="$subdirs projects/privbracket"
3939 safecode) subdirs="$subdirs projects/safecode"
3947 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3948 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3954 # Check whether --enable-polly was given.
3955 if test "${enable_polly+set}" = set; then
3956 enableval=$enable_polly;
3961 case "$enableval" in
3966 default) ENABLE_POLLY=1
3968 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3969 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3970 { (exit 1); exit 1; }; } ;;
3974 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3977 subdirs="$subdirs tools/polly"
3982 # Make sure we can run config.sub.
3983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3984 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3985 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3986 { (exit 1); exit 1; }; }
3988 { echo "$as_me:$LINENO: checking build system type" >&5
3989 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3990 if test "${ac_cv_build+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 ac_build_alias=$build_alias
3994 test "x$ac_build_alias" = x &&
3995 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3996 test "x$ac_build_alias" = x &&
3997 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3999 { (exit 1); exit 1; }; }
4000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4003 { (exit 1); exit 1; }; }
4006 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4007 echo "${ECHO_T}$ac_cv_build" >&6; }
4008 case $ac_cv_build in
4010 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4011 echo "$as_me: error: invalid value of canonical build" >&2;}
4012 { (exit 1); exit 1; }; };;
4015 ac_save_IFS=$IFS; IFS='-'
4021 # Remember, the first character of IFS is used to create $*,
4022 # except with old shells:
4025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4028 { echo "$as_me:$LINENO: checking host system type" >&5
4029 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4030 if test "${ac_cv_host+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 if test "x$host_alias" = x; then
4034 ac_cv_host=$ac_cv_build
4036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4037 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4038 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4039 { (exit 1); exit 1; }; }
4043 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4044 echo "${ECHO_T}$ac_cv_host" >&6; }
4047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4048 echo "$as_me: error: invalid value of canonical host" >&2;}
4049 { (exit 1); exit 1; }; };;
4052 ac_save_IFS=$IFS; IFS='-'
4058 # Remember, the first character of IFS is used to create $*,
4059 # except with old shells:
4062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4065 { echo "$as_me:$LINENO: checking target system type" >&5
4066 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4067 if test "${ac_cv_target+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 if test "x$target_alias" = x; then
4071 ac_cv_target=$ac_cv_host
4073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4076 { (exit 1); exit 1; }; }
4080 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4081 echo "${ECHO_T}$ac_cv_target" >&6; }
4082 case $ac_cv_target in
4084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4085 echo "$as_me: error: invalid value of canonical target" >&2;}
4086 { (exit 1); exit 1; }; };;
4088 target=$ac_cv_target
4089 ac_save_IFS=$IFS; IFS='-'
4095 # Remember, the first character of IFS is used to create $*,
4096 # except with old shells:
4099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4102 # The aliases save the names the user supplied, while $host etc.
4103 # will get canonicalized.
4104 test -n "$target_alias" &&
4105 test "$program_prefix$program_suffix$program_transform_name" = \
4107 program_prefix=${target_alias}-
4109 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4110 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4111 if test "${llvm_cv_os_type+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 llvm_cv_link_all_option="-Wl,--whole-archive"
4117 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4118 llvm_cv_os_type="AIX"
4119 llvm_cv_platform_type="Unix" ;;
4121 llvm_cv_link_all_option="-Wl,--whole-archive"
4122 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4123 llvm_cv_os_type="IRIX"
4124 llvm_cv_platform_type="Unix" ;;
4126 llvm_cv_link_all_option="-Wl,--whole-archive"
4127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4128 llvm_cv_os_type="Cygwin"
4129 llvm_cv_platform_type="Unix" ;;
4131 llvm_cv_link_all_option="-Wl,-all_load"
4132 llvm_cv_no_link_all_option="-Wl,-noall_load"
4133 llvm_cv_os_type="Darwin"
4134 llvm_cv_platform_type="Unix" ;;
4136 llvm_cv_link_all_option="-Wl,-all_load"
4137 llvm_cv_no_link_all_option="-Wl,-noall_load"
4138 llvm_cv_os_type="Minix"
4139 llvm_cv_platform_type="Unix" ;;
4141 llvm_cv_link_all_option="-Wl,--whole-archive"
4142 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4143 llvm_cv_os_type="FreeBSD"
4144 llvm_cv_platform_type="Unix" ;;
4146 llvm_cv_link_all_option="-Wl,--whole-archive"
4147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4148 llvm_cv_os_type="GNU/kFreeBSD"
4149 llvm_cv_platform_type="Unix" ;;
4151 llvm_cv_link_all_option="-Wl,--whole-archive"
4152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4153 llvm_cv_os_type="OpenBSD"
4154 llvm_cv_platform_type="Unix" ;;
4156 llvm_cv_link_all_option="-Wl,--whole-archive"
4157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4158 llvm_cv_os_type="NetBSD"
4159 llvm_cv_platform_type="Unix" ;;
4161 llvm_cv_link_all_option="-Wl,--whole-archive"
4162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4163 llvm_cv_os_type="DragonFly"
4164 llvm_cv_platform_type="Unix" ;;
4166 llvm_cv_link_all_option="-Wl,--whole-archive"
4167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4168 llvm_cv_os_type="HP-UX"
4169 llvm_cv_platform_type="Unix" ;;
4171 llvm_cv_link_all_option="-Wl,--whole-archive"
4172 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4173 llvm_cv_os_type="Interix"
4174 llvm_cv_platform_type="Unix" ;;
4176 llvm_cv_link_all_option="-Wl,--whole-archive"
4177 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4178 llvm_cv_os_type="Linux"
4179 llvm_cv_platform_type="Unix" ;;
4181 llvm_cv_link_all_option="-Wl,--whole-archive"
4182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4183 llvm_cv_os_type="GNU"
4184 llvm_cv_platform_type="Unix" ;;
4186 llvm_cv_link_all_option="-Wl,-z,allextract"
4187 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4188 llvm_cv_os_type="SunOS"
4189 llvm_cv_platform_type="Unix" ;;
4191 llvm_cv_link_all_option="-Wl,-z,allextract"
4192 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4193 llvm_cv_os_type="AuroraUX"
4194 llvm_cv_platform_type="Unix" ;;
4196 llvm_cv_link_all_option="-Wl,--whole-archive"
4197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4198 llvm_cv_os_type="Win32"
4199 llvm_cv_platform_type="Win32" ;;
4201 llvm_cv_link_all_option="-Wl,--whole-archive"
4202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4203 llvm_cv_os_type="MingW"
4204 llvm_cv_platform_type="Win32" ;;
4206 llvm_cv_link_all_option="-Wl,--whole-archive"
4207 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4208 llvm_cv_os_type="Haiku"
4209 llvm_cv_platform_type="Unix" ;;
4211 llvm_cv_link_all_option="-Wl,--whole-archive"
4212 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4213 llvm_cv_os_type="Freestanding"
4214 llvm_cv_platform_type="Unix" ;;
4216 llvm_cv_link_all_option="-Wl,--whole-archive"
4217 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4218 llvm_cv_os_type="Freestanding"
4219 llvm_cv_platform_type="Unix" ;;
4221 llvm_cv_link_all_option=""
4222 llvm_cv_no_link_all_option=""
4223 llvm_cv_os_type="Unknown"
4224 llvm_cv_platform_type="Unknown" ;;
4227 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4228 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4230 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4231 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4232 if test "${llvm_cv_target_os_type+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 llvm_cv_target_os_type="AIX" ;;
4239 llvm_cv_target_os_type="IRIX" ;;
4241 llvm_cv_target_os_type="Cygwin" ;;
4243 llvm_cv_target_os_type="Darwin" ;;
4245 llvm_cv_target_os_type="Minix" ;;
4247 llvm_cv_target_os_type="FreeBSD" ;;
4249 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4251 llvm_cv_target_os_type="OpenBSD" ;;
4253 llvm_cv_target_os_type="NetBSD" ;;
4255 llvm_cv_target_os_type="DragonFly" ;;
4257 llvm_cv_target_os_type="HP-UX" ;;
4259 llvm_cv_target_os_type="Interix" ;;
4261 llvm_cv_target_os_type="Linux" ;;
4263 llvm_cv_target_os_type="GNU" ;;
4265 llvm_cv_target_os_type="SunOS" ;;
4267 llvm_cv_target_os_type="AuroraUX" ;;
4269 llvm_cv_target_os_type="Win32" ;;
4271 llvm_cv_target_os_type="MingW" ;;
4273 llvm_cv_target_os_type="Haiku" ;;
4275 llvm_cv_target_os_type="RTEMS" ;;
4277 llvm_cv_target_os_type="NativeClient" ;;
4279 llvm_cv_target_os_type="Freestanding" ;;
4281 llvm_cv_target_os_type="Unknown" ;;
4284 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4285 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4287 if test "$llvm_cv_os_type" = "Unknown" ; then
4288 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4289 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4290 { (exit 1); exit 1; }; }
4295 HOST_OS=$llvm_cv_os_type
4297 TARGET_OS=$llvm_cv_target_os_type
4300 LINKALL=$llvm_cv_link_all_option
4302 NOLINKALL=$llvm_cv_no_link_all_option
4305 case $llvm_cv_platform_type in
4308 cat >>confdefs.h <<\_ACEOF
4309 #define LLVM_ON_UNIX 1
4319 cat >>confdefs.h <<\_ACEOF
4320 #define LLVM_ON_WIN32 1
4330 { echo "$as_me:$LINENO: checking target architecture" >&5
4331 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4332 if test "${llvm_cv_target_arch+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 i?86-*) llvm_cv_target_arch="x86" ;;
4337 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4338 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4339 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4340 arm*-*) llvm_cv_target_arch="ARM" ;;
4341 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4342 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4343 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4344 xcore-*) llvm_cv_target_arch="XCore" ;;
4345 msp430-*) llvm_cv_target_arch="MSP430" ;;
4346 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4347 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4348 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4349 *) llvm_cv_target_arch="Unknown" ;;
4352 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4353 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4355 if test "$llvm_cv_target_arch" = "Unknown" ; then
4356 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4357 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4360 case "$llvm_cv_target_arch" in
4361 x86) LLVM_NATIVE_ARCH="X86" ;;
4362 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4363 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4366 ARCH=$llvm_cv_target_arch
4370 i?86-*) host_arch="x86" ;;
4371 amd64-* | x86_64-*) host_arch="x86_64" ;;
4372 sparc*-*) host_arch="Sparc" ;;
4373 powerpc*-*) host_arch="PowerPC" ;;
4374 arm*-*) host_arch="ARM" ;;
4375 aarch64*-*) host_arch="AArch64" ;;
4376 mips-* | mips64-*) host_arch="Mips" ;;
4377 mipsel-* | mips64el-*) host_arch="Mips" ;;
4378 xcore-*) host_arch="XCore" ;;
4379 msp430-*) host_arch="MSP430" ;;
4380 hexagon-*) host_arch="Hexagon" ;;
4381 s390x-*) host_arch="SystemZ" ;;
4382 *) host_arch="Unknown" ;;
4385 if test "$host_arch" = "Unknown" ; then
4386 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4387 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4390 HOST_ARCH=$host_arch
4393 if test "$cross_compiling" = yes; then
4394 LLVM_CROSS_COMPILING=1
4397 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4398 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4399 if test "${ac_cv_build_exeext+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4403 ac_cv_build_exeext=.exe
4405 ac_build_prefix=${build_alias}-
4407 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_build_prefix}gcc; ac_word=$2
4409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 if test -n "$BUILD_CC"; then
4415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 BUILD_CC=$ac_cv_prog_BUILD_CC
4435 if test -n "$BUILD_CC"; then
4436 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4437 echo "${ECHO_T}$BUILD_CC" >&6; }
4439 { echo "$as_me:$LINENO: result: no" >&5
4440 echo "${ECHO_T}no" >&6; }
4444 if test -z "$BUILD_CC"; then
4445 # Extract the first word of "gcc", so it can be a program name with args.
4446 set dummy gcc; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 if test -n "$BUILD_CC"; then
4453 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 ac_cv_prog_BUILD_CC="gcc"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 BUILD_CC=$ac_cv_prog_BUILD_CC
4473 if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4482 if test -z "$BUILD_CC"; then
4483 # Extract the first word of "cc", so it can be a program name with args.
4484 set dummy cc; ac_word=$2
4485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$BUILD_CC"; then
4491 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502 ac_prog_rejected=yes
4505 ac_cv_prog_BUILD_CC="cc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 if test $ac_prog_rejected = yes; then
4514 # We found a bogon in the path, so make sure we never use it.
4515 set dummy $ac_cv_prog_BUILD_CC
4517 if test $# != 0; then
4518 # We chose a different compiler from the bogus one.
4519 # However, it has the same basename, so the bogon will be chosen
4520 # first if we set BUILD_CC to just the basename; use the full file name.
4522 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4527 BUILD_CC=$ac_cv_prog_BUILD_CC
4528 if test -n "$BUILD_CC"; then
4529 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4530 echo "${ECHO_T}$BUILD_CC" >&6; }
4532 { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4539 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4540 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4541 { (exit 1); exit 1; }; }
4542 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4544 echo 'int main () { return 0; }' > conftest.$ac_ext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4547 (eval $ac_build_link) 2>&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; then
4551 for file in conftest.*; do
4553 *.c | *.o | *.obj | *.dSYM) ;;
4554 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4558 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4559 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4560 { (exit 1); exit 1; }; }
4563 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4568 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4569 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4570 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4571 ac_build_exeext=$BUILD_EXEEXT
4573 ac_build_prefix=${build_alias}-
4574 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4575 set dummy ${ac_build_prefix}g++; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 if test -n "$BUILD_CXX"; then
4582 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4602 if test -n "$BUILD_CXX"; then
4603 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4604 echo "${ECHO_T}$BUILD_CXX" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 if test -z "$BUILD_CXX"; then
4612 # Extract the first word of "g++", so it can be a program name with args.
4613 set dummy g++; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$BUILD_CXX"; then
4620 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CXX="g++"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640 if test -n "$BUILD_CXX"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642 echo "${ECHO_T}$BUILD_CXX" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 if test -z "$BUILD_CXX"; then
4650 # Extract the first word of "c++", so it can be a program name with args.
4651 set dummy c++; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$BUILD_CXX"; then
4658 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4669 ac_prog_rejected=yes
4672 ac_cv_prog_BUILD_CXX="c++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 if test $ac_prog_rejected = yes; then
4681 # We found a bogon in the path, so make sure we never use it.
4682 set dummy $ac_cv_prog_BUILD_CXX
4684 if test $# != 0; then
4685 # We chose a different compiler from the bogus one.
4686 # However, it has the same basename, so the bogon will be chosen
4687 # first if we set BUILD_CXX to just the basename; use the full file name.
4689 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4694 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4695 if test -n "$BUILD_CXX"; then
4696 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4697 echo "${ECHO_T}$BUILD_CXX" >&6; }
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4707 LLVM_CROSS_COMPILING=0
4711 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4722 # Check whether --enable-libcpp was given.
4723 if test "${enable_libcpp+set}" = set; then
4724 enableval=$enable_libcpp;
4729 case "$enableval" in
4730 yes) ENABLE_LIBCPP=1
4734 default) ENABLE_LIBCPP=0
4736 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4737 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4741 # Check whether --enable-cxx11 was given.
4742 if test "${enable_cxx11+set}" = set; then
4743 enableval=$enable_cxx11;
4748 case "$enableval" in
4753 default) ENABLE_CXX11=0
4755 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4756 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4757 { (exit 1); exit 1; }; } ;;
4760 # Check whether --enable-split-dwarf was given.
4761 if test "${enable_split_dwarf+set}" = set; then
4762 enableval=$enable_split_dwarf;
4767 case "$enableval" in
4768 yes) ENABLE_SPLIT_DWARF=1
4770 no) ENABLE_SPLIT_DWARF=0
4772 default) ENABLE_SPLIT_DWARF=0
4774 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4775 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4776 { (exit 1); exit 1; }; } ;;
4780 # Check whether --enable-clang-arcmt was given.
4781 if test "${enable_clang_arcmt+set}" = set; then
4782 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4787 case "$enableval" in
4788 yes) ENABLE_CLANG_ARCMT=1
4790 no) ENABLE_CLANG_ARCMT=0
4792 default) ENABLE_CLANG_ARCMT=1
4794 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4796 { (exit 1); exit 1; }; } ;;
4799 clang_static_analyzer="yes"
4800 # Check whether --enable-clang-static-analyzer was given.
4801 if test "${enable_clang_static_analyzer+set}" = set; then
4802 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4807 case "$enableval" in
4808 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4811 if test ${clang_arcmt} != "no" ; then
4812 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4813 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4814 { (exit 1); exit 1; }; }
4816 ENABLE_CLANG_STATIC_ANALYZER=0
4819 default) ENABLE_CLANG_STATIC_ANALYZER=1
4821 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4822 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4826 # Check whether --enable-clang-rewriter was given.
4827 if test "${enable_clang_rewriter+set}" = set; then
4828 enableval=$enable_clang_rewriter;
4833 case "$enableval" in
4834 yes) ENABLE_CLANG_REWRITER=1
4837 if test ${clang_arcmt} != "no" ; then
4838 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4839 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4840 { (exit 1); exit 1; }; }
4842 if test ${clang_static_analyzer} != "no" ; then
4843 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4844 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4845 { (exit 1); exit 1; }; }
4847 ENABLE_CLANG_REWRITER=0
4850 default) ENABLE_CLANG_REWRITER=1
4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4854 { (exit 1); exit 1; }; } ;;
4857 # Check whether --enable-optimized was given.
4858 if test "${enable_optimized+set}" = set; then
4859 enableval=$enable_optimized;
4864 if test ${enableval} = "no" ; then
4868 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4872 # Check whether --enable-profiling was given.
4873 if test "${enable_profiling+set}" = set; then
4874 enableval=$enable_profiling;
4879 if test ${enableval} = "no" ; then
4883 ENABLE_PROFILING=ENABLE_PROFILING=1
4887 # Check whether --enable-assertions was given.
4888 if test "${enable_assertions+set}" = set; then
4889 enableval=$enable_assertions;
4894 if test ${enableval} = "yes" ; then
4898 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4902 # Check whether --enable-werror was given.
4903 if test "${enable_werror+set}" = set; then
4904 enableval=$enable_werror;
4909 case "$enableval" in
4910 yes) ENABLE_WERROR=1
4914 default) ENABLE_WERROR=0
4916 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4921 # Check whether --enable-expensive-checks was given.
4922 if test "${enable_expensive_checks+set}" = set; then
4923 enableval=$enable_expensive_checks;
4928 if test ${enableval} = "yes" ; then
4929 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4931 EXPENSIVE_CHECKS=yes
4934 ENABLE_EXPENSIVE_CHECKS=
4940 # Check whether --enable-debug-runtime was given.
4941 if test "${enable_debug_runtime+set}" = set; then
4942 enableval=$enable_debug_runtime;
4947 if test ${enableval} = "no" ; then
4951 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4955 # Check whether --enable-debug-symbols was given.
4956 if test "${enable_debug_symbols+set}" = set; then
4957 enableval=$enable_debug_symbols;
4962 if test ${enableval} = "no" ; then
4966 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4970 # Check whether --enable-keep-symbols was given.
4971 if test "${enable_keep_symbols+set}" = set; then
4972 enableval=$enable_keep_symbols;
4977 if test ${enableval} = "no" ; then
4981 KEEP_SYMBOLS=KEEP_SYMBOLS=1
4985 # Check whether --enable-jit was given.
4986 if test "${enable_jit+set}" = set; then
4987 enableval=$enable_jit;
4992 if test ${enableval} = "no"
4997 case "$llvm_cv_target_arch" in
4998 x86) TARGET_HAS_JIT=1
5000 Sparc) TARGET_HAS_JIT=0
5002 PowerPC) TARGET_HAS_JIT=1
5004 x86_64) TARGET_HAS_JIT=1
5006 ARM) TARGET_HAS_JIT=1
5008 AArch64) TARGET_HAS_JIT=0
5010 Mips) TARGET_HAS_JIT=1
5012 XCore) TARGET_HAS_JIT=0
5014 MSP430) TARGET_HAS_JIT=0
5016 Hexagon) TARGET_HAS_JIT=0
5018 NVPTX) TARGET_HAS_JIT=0
5020 SystemZ) TARGET_HAS_JIT=1
5027 # Check whether --enable-docs was given.
5028 if test "${enable_docs+set}" = set; then
5029 enableval=$enable_docs;
5034 case "$enableval" in
5039 default) ENABLE_DOCS=1
5041 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5042 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5043 { (exit 1); exit 1; }; } ;;
5046 # Check whether --enable-doxygen was given.
5047 if test "${enable_doxygen+set}" = set; then
5048 enableval=$enable_doxygen;
5053 case "$enableval" in
5054 yes) ENABLE_DOXYGEN=1
5056 no) ENABLE_DOXYGEN=0
5058 default) ENABLE_DOXYGEN=0
5060 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5061 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5062 { (exit 1); exit 1; }; } ;;
5065 # Check whether --enable-threads was given.
5066 if test "${enable_threads+set}" = set; then
5067 enableval=$enable_threads;
5072 case "$enableval" in
5073 yes) LLVM_ENABLE_THREADS=1
5075 no) LLVM_ENABLE_THREADS=0
5077 default) LLVM_ENABLE_THREADS=1
5079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5080 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5081 { (exit 1); exit 1; }; } ;;
5084 cat >>confdefs.h <<_ACEOF
5085 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5089 # Check whether --enable-pthreads was given.
5090 if test "${enable_pthreads+set}" = set; then
5091 enableval=$enable_pthreads;
5096 case "$enableval" in
5097 yes) ENABLE_PTHREADS=1
5099 no) ENABLE_PTHREADS=0
5101 default) ENABLE_PTHREADS=1
5103 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5104 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5105 { (exit 1); exit 1; }; } ;;
5108 # Check whether --enable-zlib was given.
5109 if test "${enable_zlib+set}" = set; then
5110 enableval=$enable_zlib;
5115 case "$enableval" in
5116 yes) LLVM_ENABLE_ZLIB=1
5118 no) LLVM_ENABLE_ZLIB=0
5120 default) LLVM_ENABLE_ZLIB=1
5122 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5123 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5127 cat >>confdefs.h <<_ACEOF
5128 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5132 # Check whether --enable-pic was given.
5133 if test "${enable_pic+set}" = set; then
5134 enableval=$enable_pic;
5139 case "$enableval" in
5144 default) ENABLE_PIC=1
5146 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5147 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5151 cat >>confdefs.h <<_ACEOF
5152 #define ENABLE_PIC $ENABLE_PIC
5156 # Check whether --enable-shared was given.
5157 if test "${enable_shared+set}" = set; then
5158 enableval=$enable_shared;
5163 case "$enableval" in
5164 yes) ENABLE_SHARED=1
5168 default) ENABLE_SHARED=0
5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5171 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5172 { (exit 1); exit 1; }; } ;;
5175 # Check whether --enable-embed-stdcxx was given.
5176 if test "${enable_embed_stdcxx+set}" = set; then
5177 enableval=$enable_embed_stdcxx;
5182 case "$enableval" in
5183 yes) ENABLE_EMBED_STDCXX=1
5185 no) ENABLE_EMBED_STDCXX=0
5187 default) ENABLE_EMBED_STDCXX=0
5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5190 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5191 { (exit 1); exit 1; }; } ;;
5194 # Check whether --enable-timestamps was given.
5195 if test "${enable_timestamps+set}" = set; then
5196 enableval=$enable_timestamps;
5201 case "$enableval" in
5202 yes) ENABLE_TIMESTAMPS=1
5204 no) ENABLE_TIMESTAMPS=0
5206 default) ENABLE_TIMESTAMPS=1
5208 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5209 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5213 cat >>confdefs.h <<_ACEOF
5214 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5218 # Check whether --enable-backtraces was given.
5219 if test "${enable_backtraces+set}" = set; then
5220 enableval=$enable_backtraces; case "$enableval" in
5221 yes) llvm_cv_enable_backtraces="yes" ;;
5222 no) llvm_cv_enable_backtraces="no" ;;
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 llvm_cv_enable_backtraces="yes"
5231 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5233 cat >>confdefs.h <<\_ACEOF
5234 #define ENABLE_BACKTRACES 1
5239 # Check whether --enable-crash-overrides was given.
5240 if test "${enable_crash_overrides+set}" = set; then
5241 enableval=$enable_crash_overrides; case "$enableval" in
5242 yes) llvm_cv_enable_crash_overrides="yes" ;;
5243 no) llvm_cv_enable_crash_overrides="no" ;;
5244 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5245 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5246 { (exit 1); exit 1; }; } ;;
5249 llvm_cv_enable_crash_overrides="yes"
5252 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5254 cat >>confdefs.h <<\_ACEOF
5255 #define ENABLE_CRASH_OVERRIDES 1
5261 # Check whether --enable-targets was given.
5262 if test "${enable_targets+set}" = set; then
5263 enableval=$enable_targets;
5268 if test "$enableval" = host-only ; then
5271 case "$enableval" in
5272 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5273 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5275 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5276 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5277 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5278 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5279 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5280 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5281 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5282 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5283 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5284 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5285 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5286 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5287 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5288 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5289 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5290 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5291 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5292 host) case "$llvm_cv_target_arch" in
5293 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5294 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5296 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5297 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5298 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5299 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5300 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5301 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5302 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5303 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5304 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5305 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5306 echo "$as_me: error: Can not set target to build" >&2;}
5307 { (exit 1); exit 1; }; } ;;
5309 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5310 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5311 { (exit 1); exit 1; }; } ;;
5317 # Check whether --enable-experimental-targets was given.
5318 if test "${enable_experimental_targets+set}" = set; then
5319 enableval=$enable_experimental_targets;
5325 if test ${enableval} != "disable"
5327 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5330 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5333 for a_target in $TARGETS_TO_BUILD; do
5334 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5340 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5341 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5342 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5343 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5344 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5345 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5347 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5348 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5366 cat >>confdefs.h <<_ACEOF
5367 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5370 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5377 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5387 LLVM_ENUM_TARGETS=""
5388 LLVM_ENUM_ASM_PRINTERS=""
5389 LLVM_ENUM_ASM_PARSERS=""
5390 LLVM_ENUM_DISASSEMBLERS=""
5391 for target_to_build in $TARGETS_TO_BUILD; do
5392 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5393 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5394 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5396 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5397 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5399 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5400 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5409 # Check whether --with-optimize-option was given.
5410 if test "${with_optimize_option+set}" = set; then
5411 withval=$with_optimize_option;
5416 { echo "$as_me:$LINENO: checking optimization flags" >&5
5417 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5420 case "$llvm_cv_os_type" in
5421 FreeBSD) optimize_option=-O2 ;;
5422 MingW) optimize_option=-O2 ;;
5423 *) optimize_option=-O3 ;;
5425 *) optimize_option="$withval" ;;
5427 OPTIMIZE_OPTION=$optimize_option
5429 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5430 echo "${ECHO_T}$optimize_option" >&6; }
5433 # Check whether --with-extra-options was given.
5434 if test "${with_extra_options+set}" = set; then
5435 withval=$with_extra_options;
5441 default) EXTRA_OPTIONS= ;;
5442 *) EXTRA_OPTIONS=$withval ;;
5444 EXTRA_OPTIONS=$EXTRA_OPTIONS
5448 # Check whether --with-extra-ld-options was given.
5449 if test "${with_extra_ld_options+set}" = set; then
5450 withval=$with_extra_ld_options;
5456 default) EXTRA_LD_OPTIONS= ;;
5457 *) EXTRA_LD_OPTIONS=$withval ;;
5459 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5462 # Check whether --enable-bindings was given.
5463 if test "${enable_bindings+set}" = set; then
5464 enableval=$enable_bindings;
5469 BINDINGS_TO_BUILD=""
5470 case "$enableval" in
5471 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5472 all ) BINDINGS_TO_BUILD="ocaml" ;;
5473 none | no) BINDINGS_TO_BUILD="" ;;
5474 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5475 case "$a_binding" in
5476 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5477 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5478 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5479 { (exit 1); exit 1; }; } ;;
5486 # Check whether --with-ocaml-libdir was given.
5487 if test "${with_ocaml_libdir+set}" = set; then
5488 withval=$with_ocaml_libdir;
5494 auto) with_ocaml_libdir="$withval" ;;
5495 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5496 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5497 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5498 { (exit 1); exit 1; }; } ;;
5502 # Check whether --with-clang-srcdir was given.
5503 if test "${with_clang_srcdir+set}" = set; then
5504 withval=$with_clang_srcdir;
5510 -) clang_src_root="" ;;
5511 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5512 *) clang_src_root="$ac_pwd/$withval" ;;
5514 CLANG_SRC_ROOT=$clang_src_root
5518 # Check whether --with-clang-resource-dir was given.
5519 if test "${with_clang_resource_dir+set}" = set; then
5520 withval=$with_clang_resource_dir;
5526 cat >>confdefs.h <<_ACEOF
5527 #define CLANG_RESOURCE_DIR "$withval"
5532 # Check whether --with-c-include-dirs was given.
5533 if test "${with_c_include_dirs+set}" = set; then
5534 withval=$with_c_include_dirs;
5540 cat >>confdefs.h <<_ACEOF
5541 #define C_INCLUDE_DIRS "$withval"
5545 # Clang normally uses the system c++ headers and libraries. With this option,
5546 # clang will use the ones provided by a gcc installation instead. This option should
5547 # be passed the same value that was used with --prefix when configuring gcc.
5549 # Check whether --with-gcc-toolchain was given.
5550 if test "${with_gcc_toolchain+set}" = set; then
5551 withval=$with_gcc_toolchain;
5557 cat >>confdefs.h <<_ACEOF
5558 #define GCC_INSTALL_PREFIX "$withval"
5563 # Check whether --with-default-sysroot was given.
5564 if test "${with_default_sysroot+set}" = set; then
5565 withval=$with_default_sysroot;
5571 cat >>confdefs.h <<_ACEOF
5572 #define DEFAULT_SYSROOT "$withval"
5577 # Check whether --with-binutils-include was given.
5578 if test "${with_binutils_include+set}" = set; then
5579 withval=$with_binutils_include;
5585 default) WITH_BINUTILS_INCDIR=default ;;
5586 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5587 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5588 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5589 { (exit 1); exit 1; }; } ;;
5591 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5592 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5594 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5595 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5596 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5597 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5598 { (exit 1); exit 1; }; };
5603 # Check whether --with-bug-report-url was given.
5604 if test "${with_bug_report_url+set}" = set; then
5605 withval=$with_bug_report_url;
5607 withval="http://llvm.org/bugs/"
5611 cat >>confdefs.h <<_ACEOF
5612 #define BUG_REPORT_URL "$withval"
5616 # Check whether --enable-terminfo was given.
5617 if test "${enable_terminfo+set}" = set; then
5618 enableval=$enable_terminfo; case "$enableval" in
5619 yes) llvm_cv_enable_terminfo="yes" ;;
5620 no) llvm_cv_enable_terminfo="no" ;;
5621 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5622 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5623 { (exit 1); exit 1; }; } ;;
5626 llvm_cv_enable_terminfo="yes"
5630 # Check whether --enable-libffi was given.
5631 if test "${enable_libffi+set}" = set; then
5632 enableval=$enable_libffi; case "$enableval" in
5633 yes) llvm_cv_enable_libffi="yes" ;;
5634 no) llvm_cv_enable_libffi="no" ;;
5635 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5636 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5640 llvm_cv_enable_libffi=no
5645 # Check whether --with-internal-prefix was given.
5646 if test "${with_internal_prefix+set}" = set; then
5647 withval=$with_internal_prefix;
5652 INTERNAL_PREFIX=$withval
5656 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5657 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5658 if test "${lt_cv_path_NM+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 if test -n "$NM"; then
5662 # Let the user override the test.
5665 lt_nm_to_check="${ac_tool_prefix}nm"
5666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5667 lt_nm_to_check="$lt_nm_to_check nm"
5669 for lt_tmp_nm in $lt_nm_to_check; do
5670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5673 test -z "$ac_dir" && ac_dir=.
5674 tmp_nm="$ac_dir/$lt_tmp_nm"
5675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5676 # Check to see if the nm accepts a BSD-compat flag.
5677 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5678 # nm: unknown option "B" ignored
5679 # Tru64's nm complains that /dev/null is an invalid object file
5680 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5681 */dev/null* | *'Invalid file or object type'*)
5682 lt_cv_path_NM="$tmp_nm -B"
5686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5688 lt_cv_path_NM="$tmp_nm -p"
5692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5693 continue # so that we can try to find one that supports BSD flags
5702 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5705 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5706 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5711 { echo "$as_me:$LINENO: checking for GNU make" >&5
5712 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5713 if test "${llvm_cv_gnu_make_command+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 llvm_cv_gnu_make_command=''
5717 for a in "$MAKE" make gmake gnumake ; do
5718 if test -z "$a" ; then continue ; fi ;
5719 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5721 llvm_cv_gnu_make_command=$a ;
5726 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5727 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5728 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5732 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5733 echo "${ECHO_T}\"Not found\"" >&6; };
5737 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5740 if test "$LN_S" = "ln -s"; then
5741 { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5744 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5745 echo "${ECHO_T}no, using $LN_S" >&6; }
5748 # Extract the first word of "cmp", so it can be a program name with args.
5749 set dummy cmp; ac_word=$2
5750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5752 if test "${ac_cv_path_CMP+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5780 if test -n "$CMP"; then
5781 { echo "$as_me:$LINENO: result: $CMP" >&5
5782 echo "${ECHO_T}$CMP" >&6; }
5784 { echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6; }
5789 # Extract the first word of "cp", so it can be a program name with args.
5790 set dummy cp; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_path_CP+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5821 if test -n "$CP"; then
5822 { echo "$as_me:$LINENO: result: $CP" >&5
5823 echo "${ECHO_T}$CP" >&6; }
5825 { echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6; }
5830 # Extract the first word of "date", so it can be a program name with args.
5831 set dummy date; ac_word=$2
5832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834 if test "${ac_cv_path_DATE+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5861 DATE=$ac_cv_path_DATE
5862 if test -n "$DATE"; then
5863 { echo "$as_me:$LINENO: result: $DATE" >&5
5864 echo "${ECHO_T}$DATE" >&6; }
5866 { echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6; }
5871 # Extract the first word of "find", so it can be a program name with args.
5872 set dummy find; ac_word=$2
5873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5875 if test "${ac_cv_path_FIND+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5902 FIND=$ac_cv_path_FIND
5903 if test -n "$FIND"; then
5904 { echo "$as_me:$LINENO: result: $FIND" >&5
5905 echo "${ECHO_T}$FIND" >&6; }
5907 { echo "$as_me:$LINENO: result: no" >&5
5908 echo "${ECHO_T}no" >&6; }
5912 # Extract the first word of "grep", so it can be a program name with args.
5913 set dummy grep; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_GREP+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5943 GREP=$ac_cv_path_GREP
5944 if test -n "$GREP"; then
5945 { echo "$as_me:$LINENO: result: $GREP" >&5
5946 echo "${ECHO_T}$GREP" >&6; }
5948 { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5953 # Extract the first word of "mkdir", so it can be a program name with args.
5954 set dummy mkdir; ac_word=$2
5955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5957 if test "${ac_cv_path_MKDIR+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5984 MKDIR=$ac_cv_path_MKDIR
5985 if test -n "$MKDIR"; then
5986 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5987 echo "${ECHO_T}$MKDIR" >&6; }
5989 { echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6; }
5994 # Extract the first word of "mv", so it can be a program name with args.
5995 set dummy mv; ac_word=$2
5996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998 if test "${ac_cv_path_MV+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6026 if test -n "$MV"; then
6027 { echo "$as_me:$LINENO: result: $MV" >&5
6028 echo "${ECHO_T}$MV" >&6; }
6030 { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040 if test "${ac_cv_prog_RANLIB+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -n "$RANLIB"; then
6044 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 RANLIB=$ac_cv_prog_RANLIB
6064 if test -n "$RANLIB"; then
6065 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6066 echo "${ECHO_T}$RANLIB" >&6; }
6068 { echo "$as_me:$LINENO: result: no" >&5
6069 echo "${ECHO_T}no" >&6; }
6074 if test -z "$ac_cv_prog_RANLIB"; then
6075 ac_ct_RANLIB=$RANLIB
6076 # Extract the first word of "ranlib", so it can be a program name with args.
6077 set dummy ranlib; ac_word=$2
6078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 if test -n "$ac_ct_RANLIB"; then
6084 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_RANLIB="ranlib"
6094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6104 if test -n "$ac_ct_RANLIB"; then
6105 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6106 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6108 { echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6; }
6112 if test "x$ac_ct_RANLIB" = x; then
6115 case $cross_compiling:$ac_tool_warned in
6117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet. If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&5
6120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6123 ac_tool_warned=yes ;;
6125 RANLIB=$ac_ct_RANLIB
6128 RANLIB="$ac_cv_prog_RANLIB"
6131 if test -n "$ac_tool_prefix"; then
6132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6133 set dummy ${ac_tool_prefix}ar; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_AR+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 if test -n "$AR"; then
6140 ac_cv_prog_AR="$AR" # Let the user override the test.
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_AR="${ac_tool_prefix}ar"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 if test -n "$AR"; then
6161 { echo "$as_me:$LINENO: result: $AR" >&5
6162 echo "${ECHO_T}$AR" >&6; }
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6170 if test -z "$ac_cv_prog_AR"; then
6172 # Extract the first word of "ar", so it can be a program name with args.
6173 set dummy ar; ac_word=$2
6174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 if test -n "$ac_ct_AR"; then
6180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_ac_ct_AR="ar"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6200 if test -n "$ac_ct_AR"; then
6201 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6202 echo "${ECHO_T}$ac_ct_AR" >&6; }
6204 { echo "$as_me:$LINENO: result: no" >&5
6205 echo "${ECHO_T}no" >&6; }
6208 if test "x$ac_ct_AR" = x; then
6211 case $cross_compiling:$ac_tool_warned in
6213 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet. If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&5
6216 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet. If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6219 ac_tool_warned=yes ;;
6227 # Extract the first word of "rm", so it can be a program name with args.
6228 set dummy rm; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_RM+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6259 if test -n "$RM"; then
6260 { echo "$as_me:$LINENO: result: $RM" >&5
6261 echo "${ECHO_T}$RM" >&6; }
6263 { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6268 # Extract the first word of "sed", so it can be a program name with args.
6269 set dummy sed; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_SED+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6300 if test -n "$SED"; then
6301 { echo "$as_me:$LINENO: result: $SED" >&5
6302 echo "${ECHO_T}$SED" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6309 # Extract the first word of "tar", so it can be a program name with args.
6310 set dummy tar; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_TAR+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6341 if test -n "$TAR"; then
6342 { echo "$as_me:$LINENO: result: $TAR" >&5
6343 echo "${ECHO_T}$TAR" >&6; }
6345 { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6350 # Extract the first word of "pwd", so it can be a program name with args.
6351 set dummy pwd; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_path_BINPWD+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6381 BINPWD=$ac_cv_path_BINPWD
6382 if test -n "$BINPWD"; then
6383 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6384 echo "${ECHO_T}$BINPWD" >&6; }
6386 { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6392 # Extract the first word of "Graphviz", so it can be a program name with args.
6393 set dummy Graphviz; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6423 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6424 if test -n "$GRAPHVIZ"; then
6425 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6426 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6428 { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6433 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6435 cat >>confdefs.h <<\_ACEOF
6436 #define HAVE_GRAPHVIZ 1
6439 if test "$llvm_cv_os_type" = "MingW" ; then
6440 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6443 cat >>confdefs.h <<_ACEOF
6444 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6448 # Extract the first word of "dot", so it can be a program name with args.
6449 set dummy dot; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_path_DOT+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6480 if test -n "$DOT"; then
6481 { echo "$as_me:$LINENO: result: $DOT" >&5
6482 echo "${ECHO_T}$DOT" >&6; }
6484 { echo "$as_me:$LINENO: result: no" >&5
6485 echo "${ECHO_T}no" >&6; }
6489 if test "$DOT" != "echo dot" ; then
6491 cat >>confdefs.h <<\_ACEOF
6495 if test "$llvm_cv_os_type" = "MingW" ; then
6496 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6499 cat >>confdefs.h <<_ACEOF
6500 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6504 # Extract the first word of "fdp", so it can be a program name with args.
6505 set dummy fdp; ac_word=$2
6506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508 if test "${ac_cv_path_FDP+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6536 if test -n "$FDP"; then
6537 { echo "$as_me:$LINENO: result: $FDP" >&5
6538 echo "${ECHO_T}$FDP" >&6; }
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6545 if test "$FDP" != "echo fdp" ; then
6547 cat >>confdefs.h <<\_ACEOF
6551 if test "$llvm_cv_os_type" = "MingW" ; then
6552 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6555 cat >>confdefs.h <<_ACEOF
6556 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6560 # Extract the first word of "neato", so it can be a program name with args.
6561 set dummy neato; ac_word=$2
6562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6564 if test "${ac_cv_path_NEATO+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6591 NEATO=$ac_cv_path_NEATO
6592 if test -n "$NEATO"; then
6593 { echo "$as_me:$LINENO: result: $NEATO" >&5
6594 echo "${ECHO_T}$NEATO" >&6; }
6596 { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6601 if test "$NEATO" != "echo neato" ; then
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_NEATO 1
6607 if test "$llvm_cv_os_type" = "MingW" ; then
6608 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6611 cat >>confdefs.h <<_ACEOF
6612 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6616 # Extract the first word of "twopi", so it can be a program name with args.
6617 set dummy twopi; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_TWOPI+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6647 TWOPI=$ac_cv_path_TWOPI
6648 if test -n "$TWOPI"; then
6649 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6650 echo "${ECHO_T}$TWOPI" >&6; }
6652 { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6657 if test "$TWOPI" != "echo twopi" ; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_TWOPI 1
6663 if test "$llvm_cv_os_type" = "MingW" ; then
6664 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6667 cat >>confdefs.h <<_ACEOF
6668 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6672 # Extract the first word of "circo", so it can be a program name with args.
6673 set dummy circo; ac_word=$2
6674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6676 if test "${ac_cv_path_CIRCO+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6703 CIRCO=$ac_cv_path_CIRCO
6704 if test -n "$CIRCO"; then
6705 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6706 echo "${ECHO_T}$CIRCO" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6713 if test "$CIRCO" != "echo circo" ; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_CIRCO 1
6719 if test "$llvm_cv_os_type" = "MingW" ; then
6720 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6723 cat >>confdefs.h <<_ACEOF
6724 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6728 for ac_prog in gv gsview32
6730 # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_GV+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 if test -n "$GV"; then
6762 { echo "$as_me:$LINENO: result: $GV" >&5
6763 echo "${ECHO_T}$GV" >&6; }
6765 { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6770 test -n "$GV" && break
6772 test -n "$GV" || GV="echo gv"
6774 if test "$GV" != "echo gv" ; then
6776 cat >>confdefs.h <<\_ACEOF
6780 if test "$llvm_cv_os_type" = "MingW" ; then
6781 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6784 cat >>confdefs.h <<_ACEOF
6785 #define LLVM_PATH_GV "$GV${EXEEXT}"
6789 # Extract the first word of "dotty", so it can be a program name with args.
6790 set dummy dotty; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_DOTTY+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6820 DOTTY=$ac_cv_path_DOTTY
6821 if test -n "$DOTTY"; then
6822 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6823 echo "${ECHO_T}$DOTTY" >&6; }
6825 { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6830 if test "$DOTTY" != "echo dotty" ; then
6832 cat >>confdefs.h <<\_ACEOF
6833 #define HAVE_DOTTY 1
6836 if test "$llvm_cv_os_type" = "MingW" ; then
6837 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6840 cat >>confdefs.h <<_ACEOF
6841 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6845 for ac_prog in xdot xdot.py
6847 # Extract the first word of "$ac_prog", so it can be a program name with args.
6848 set dummy $ac_prog; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_XDOT+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 XDOT=$ac_cv_path_XDOT
6878 if test -n "$XDOT"; then
6879 { echo "$as_me:$LINENO: result: $XDOT" >&5
6880 echo "${ECHO_T}$XDOT" >&6; }
6882 { echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6; }
6887 test -n "$XDOT" && break
6889 test -n "$XDOT" || XDOT="echo xdot"
6891 if test "$XDOT" != "echo xdot" ; then
6893 cat >>confdefs.h <<\_ACEOF
6897 if test "$llvm_cv_os_type" = "MingW" ; then
6898 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6901 cat >>confdefs.h <<_ACEOF
6902 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6907 # Find a good install program. We prefer a C program (faster),
6908 # so one script is as good as another. But avoid the broken or
6909 # incompatible versions:
6910 # SysV /etc/install, /usr/sbin/install
6911 # SunOS /usr/etc/install
6912 # IRIX /sbin/install
6914 # AmigaOS /C/install, which installs bootblocks on floppy discs
6915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6918 # OS/2's system install, which has a completely different semantic
6919 # ./install, which can be erroneously created by make from ./install.sh.
6920 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6921 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6922 if test -z "$INSTALL"; then
6923 if test "${ac_cv_path_install+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$as_dir" && as_dir=.
6931 # Account for people who put trailing slashes in PATH elements.
6933 ./ | .// | /cC/* | \
6934 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6935 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6938 # OSF1 and SCO ODT 3.0 have their own names for install.
6939 # Don't use installbsd from OSF since it installs stuff as root
6941 for ac_prog in ginstall scoinst install; do
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6944 if test $ac_prog = install &&
6945 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6946 # AIX install. It has an incompatible calling convention.
6948 elif test $ac_prog = install &&
6949 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6950 # program-specific install script used by HP pwplus--don't use.
6953 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6966 if test "${ac_cv_path_install+set}" = set; then
6967 INSTALL=$ac_cv_path_install
6969 # As a last resort, use the slow shell script. Don't cache a
6970 # value for INSTALL within a source directory, because that will
6971 # break other packages using the cache if that directory is
6972 # removed, or if the value is a relative name.
6973 INSTALL=$ac_install_sh
6976 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6977 echo "${ECHO_T}$INSTALL" >&6; }
6979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6980 # It thinks the first close brace ends the variable substitution.
6981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6988 [\\/$]* | ?:[\\/]* ) ;;
6989 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6992 # Extract the first word of "bzip2", so it can be a program name with args.
6993 set dummy bzip2; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_BZIP2+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 BZIP2=$ac_cv_path_BZIP2
7023 if test -n "$BZIP2"; then
7024 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7025 echo "${ECHO_T}$BZIP2" >&6; }
7027 { echo "$as_me:$LINENO: result: no" >&5
7028 echo "${ECHO_T}no" >&6; }
7032 # Extract the first word of "cat", so it can be a program name with args.
7033 set dummy cat; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_path_CAT+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 if test -n "$CAT"; then
7064 { echo "$as_me:$LINENO: result: $CAT" >&5
7065 echo "${ECHO_T}$CAT" >&6; }
7067 { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7072 # Extract the first word of "doxygen", so it can be a program name with args.
7073 set dummy doxygen; ac_word=$2
7074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 DOXYGEN=$ac_cv_path_DOXYGEN
7103 if test -n "$DOXYGEN"; then
7104 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7105 echo "${ECHO_T}$DOXYGEN" >&6; }
7107 { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7112 # Extract the first word of "groff", so it can be a program name with args.
7113 set dummy groff; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_GROFF+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 GROFF=$ac_cv_path_GROFF
7143 if test -n "$GROFF"; then
7144 { echo "$as_me:$LINENO: result: $GROFF" >&5
7145 echo "${ECHO_T}$GROFF" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7152 # Extract the first word of "gzip", so it can be a program name with args.
7153 set dummy gzip; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 GZIPBIN=$ac_cv_path_GZIPBIN
7183 if test -n "$GZIPBIN"; then
7184 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7185 echo "${ECHO_T}$GZIPBIN" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7192 # Extract the first word of "pdfroff", so it can be a program name with args.
7193 set dummy pdfroff; ac_word=$2
7194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7196 if test "${ac_cv_path_PDFROFF+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 PDFROFF=$ac_cv_path_PDFROFF
7223 if test -n "$PDFROFF"; then
7224 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7225 echo "${ECHO_T}$PDFROFF" >&6; }
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7232 # Extract the first word of "zip", so it can be a program name with args.
7233 set dummy zip; ac_word=$2
7234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7236 if test "${ac_cv_path_ZIP+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7251 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 if test -n "$ZIP"; then
7264 { echo "$as_me:$LINENO: result: $ZIP" >&5
7265 echo "${ECHO_T}$ZIP" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7272 for ac_prog in ocamlc
7274 # Extract the first word of "$ac_prog", so it can be a program name with args.
7275 set dummy $ac_prog; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_path_OCAMLC+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 OCAMLC=$ac_cv_path_OCAMLC
7305 if test -n "$OCAMLC"; then
7306 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7307 echo "${ECHO_T}$OCAMLC" >&6; }
7309 { echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6; }
7314 test -n "$OCAMLC" && break
7317 for ac_prog in ocamlopt
7319 # Extract the first word of "$ac_prog", so it can be a program name with args.
7320 set dummy $ac_prog; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 OCAMLOPT=$ac_cv_path_OCAMLOPT
7350 if test -n "$OCAMLOPT"; then
7351 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7352 echo "${ECHO_T}$OCAMLOPT" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 test -n "$OCAMLOPT" && break
7362 for ac_prog in ocamldep
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 OCAMLDEP=$ac_cv_path_OCAMLDEP
7395 if test -n "$OCAMLDEP"; then
7396 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7397 echo "${ECHO_T}$OCAMLDEP" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 test -n "$OCAMLDEP" && break
7407 for ac_prog in ocamldoc
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 OCAMLDOC=$ac_cv_path_OCAMLDOC
7440 if test -n "$OCAMLDOC"; then
7441 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7442 echo "${ECHO_T}$OCAMLDOC" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7449 test -n "$OCAMLDOC" && break
7452 for ac_prog in gas as
7454 # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_GAS+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 if test -n "$GAS"; then
7486 { echo "$as_me:$LINENO: result: $GAS" >&5
7487 echo "${ECHO_T}$GAS" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7494 test -n "$GAS" && break
7498 { echo "$as_me:$LINENO: checking for linker version" >&5
7499 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7500 if test "${llvm_cv_link_version+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 version_string="$(ld -v 2>&1 | head -1)"
7507 if (echo "$version_string" | grep -q "ld64"); then
7508 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7510 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7514 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7515 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7517 cat >>confdefs.h <<_ACEOF
7518 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7524 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7525 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7526 if test "${llvm_cv_link_use_r+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536 CFLAGS="$CFLAGS -Wl,-R."
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_link") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567 { (case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_try") 2>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_try") 2>&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 llvm_cv_link_use_r=yes
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 llvm_cv_link_use_r=no
7594 rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7606 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7607 if test "$llvm_cv_link_use_r" = yes ; then
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_LINK_R 1
7616 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7617 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7618 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 CFLAGS="$CFLAGS -rdynamic"
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (ac_try="$ac_link"
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_link") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1 >conftest.err
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7659 { (case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_try") 2>&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; } &&
7668 { ac_try='test -s conftest$ac_exeext'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 llvm_cv_link_use_export_dynamic=yes
7680 echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 llvm_cv_link_use_export_dynamic=no
7686 rm -f core conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7698 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7699 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_LINK_EXPORT_DYNAMIC 1
7708 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7709 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7710 if test "${llvm_cv_link_use_version_script+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 # The following code is from the autoconf manual,
7722 # "11.13: Limitations of Usual Tools".
7723 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7724 # Use mktemp if possible; otherwise fall back on mkdir,
7725 # with $RANDOM to make collisions less likely.
7729 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7731 test -n "$tmp" && test -d "$tmp"
7733 tmp=$TMPDIR/foo$$-$RANDOM
7734 (umask 077 && mkdir "$tmp")
7737 echo "{" > "$tmp/export.map"
7738 echo " global: main;" >> "$tmp/export.map"
7739 echo " local: *;" >> "$tmp/export.map"
7740 echo "};" >> "$tmp/export.map"
7742 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_link") 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_try") 2>&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest$ac_exeext'
7783 { (case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_try") 2>&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 llvm_cv_link_use_version_script=yes
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7797 llvm_cv_link_use_version_script=no
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 rm "$tmp/export.map"
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7814 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7815 if test "$llvm_cv_link_use_version_script" = yes ; then
7816 HAVE_LINK_VERSION_SCRIPT=1
7823 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7825 if test "${ac_cv_c_const+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7838 /* FIXME: Include the comments suggested by Paul. */
7840 /* Ultrix mips cc rejects this. */
7841 typedef int charset[2];
7843 /* SunOS 4.1.1 cc rejects this. */
7844 char const *const *ccp;
7846 /* NEC SVR4.0.2 mips cc rejects this. */
7847 struct point {int x, y;};
7848 static struct point const zero = {0,0};
7849 /* AIX XL C 1.02.0.0 rejects this.
7850 It does not let you subtract one const X* pointer from another in
7851 an arm of an if-expression whose if-part is not a constant
7853 const char *g = "string";
7854 ccp = &g + (g ? g-g : 0);
7855 /* HPUX 7.0 cc rejects these. */
7858 ccp = (char const *const *) p;
7859 { /* SCO 3.2v4 cc rejects this. */
7861 char const *s = 0 ? (char *) 0 : (char const *) 0;
7866 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7868 const int *foo = &x[0];
7871 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7872 typedef const int *iptr;
7876 { /* AIX XL C 1.02.0.0 rejects this saying
7877 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7878 struct s { int j; const int *ap[3]; };
7879 struct s *b; b->j = 5;
7881 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7885 return !x[0] && !zero.x;
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7937 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7938 if test $ac_cv_c_const = no; then
7940 cat >>confdefs.h <<\_ACEOF
7947 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7948 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7949 if test "${ac_cv_path_GREP+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 # Extract the first word of "grep ggrep" to use in msg output
7953 if test -z "$GREP"; then
7954 set dummy grep ggrep; ac_prog_name=$2
7955 if test "${ac_cv_path_GREP+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 ac_path_GREP_found=false
7959 # Loop through the user's path and test for each of PROGNAME-LIST
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7964 test -z "$as_dir" && as_dir=.
7965 for ac_prog in grep ggrep; do
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7968 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7969 # Check for GNU ac_path_GREP and select it if it is found.
7970 # Check for GNU $ac_path_GREP
7971 case `"$ac_path_GREP" --version 2>&1` in
7973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7979 cat "conftest.in" "conftest.in" >"conftest.tmp"
7980 mv "conftest.tmp" "conftest.in"
7981 cp "conftest.in" "conftest.nl"
7982 echo 'GREP' >> "conftest.nl"
7983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7985 ac_count=`expr $ac_count + 1`
7986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7987 # Best one so far, save it but keep looking for a better one
7988 ac_cv_path_GREP="$ac_path_GREP"
7989 ac_path_GREP_max=$ac_count
7991 # 10*(2^10) chars as input seems more than enough
7992 test $ac_count -gt 10 && break
7994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7998 $ac_path_GREP_found && break 3
8008 GREP="$ac_cv_path_GREP"
8009 if test -z "$GREP"; then
8010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8011 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8012 { (exit 1); exit 1; }; }
8016 ac_cv_path_GREP=$GREP
8021 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8022 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8023 GREP="$ac_cv_path_GREP"
8026 { echo "$as_me:$LINENO: checking for egrep" >&5
8027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8028 if test "${ac_cv_path_EGREP+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8032 then ac_cv_path_EGREP="$GREP -E"
8034 # Extract the first word of "egrep" to use in msg output
8035 if test -z "$EGREP"; then
8036 set dummy egrep; ac_prog_name=$2
8037 if test "${ac_cv_path_EGREP+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 ac_path_EGREP_found=false
8041 # Loop through the user's path and test for each of PROGNAME-LIST
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8046 test -z "$as_dir" && as_dir=.
8047 for ac_prog in egrep; do
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8050 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8051 # Check for GNU ac_path_EGREP and select it if it is found.
8052 # Check for GNU $ac_path_EGREP
8053 case `"$ac_path_EGREP" --version 2>&1` in
8055 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8058 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8061 cat "conftest.in" "conftest.in" >"conftest.tmp"
8062 mv "conftest.tmp" "conftest.in"
8063 cp "conftest.in" "conftest.nl"
8064 echo 'EGREP' >> "conftest.nl"
8065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8067 ac_count=`expr $ac_count + 1`
8068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8069 # Best one so far, save it but keep looking for a better one
8070 ac_cv_path_EGREP="$ac_path_EGREP"
8071 ac_path_EGREP_max=$ac_count
8073 # 10*(2^10) chars as input seems more than enough
8074 test $ac_count -gt 10 && break
8076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8080 $ac_path_EGREP_found && break 3
8090 EGREP="$ac_cv_path_EGREP"
8091 if test -z "$EGREP"; then
8092 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8093 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8094 { (exit 1); exit 1; }; }
8098 ac_cv_path_EGREP=$EGREP
8104 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8105 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8106 EGREP="$ac_cv_path_EGREP"
8109 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8111 if test "${ac_cv_header_stdc+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8148 { (case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_try") 2>&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest.$ac_objext'
8158 { (case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_try") 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8167 ac_cv_header_stdc=yes
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ac_cv_header_stdc=no
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 if test $ac_cv_header_stdc = yes; then
8178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189 $EGREP "memchr" >/dev/null 2>&1; then
8192 ac_cv_header_stdc=no
8198 if test $ac_cv_header_stdc = yes; then
8199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8200 cat >conftest.$ac_ext <<_ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8210 $EGREP "free" >/dev/null 2>&1; then
8213 ac_cv_header_stdc=no
8219 if test $ac_cv_header_stdc = yes; then
8220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8221 if test "$cross_compiling" = yes; then
8224 cat >conftest.$ac_ext <<_ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8232 #if ((' ' & 0x0FF) == 0x020)
8233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8236 # define ISLOWER(c) \
8237 (('a' <= (c) && (c) <= 'i') \
8238 || ('j' <= (c) && (c) <= 'r') \
8239 || ('s' <= (c) && (c) <= 'z'))
8240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8248 for (i = 0; i < 256; i++)
8249 if (XOR (islower (i), ISLOWER (i))
8250 || toupper (i) != TOUPPER (i))
8255 rm -f conftest$ac_exeext
8256 if { (ac_try="$ac_link"
8258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259 *) ac_try_echo=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_link") 2>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8277 echo "$as_me: program exited with status $ac_status" >&5
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_cv_header_stdc=no
8284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8290 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8291 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8292 if test $ac_cv_header_stdc = yes; then
8294 cat >>confdefs.h <<\_ACEOF
8295 #define STDC_HEADERS 1
8306 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8307 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8308 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8309 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335 *) ac_try_echo=$ac_try;;
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; } &&
8355 { ac_try='test -s conftest.$ac_objext'
8356 { (case "(($ac_try" in
8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_try") 2>&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_Header=yes"
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_Header=no"
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 ac_res=`eval echo '${'$as_ac_Header'}'`
8376 { echo "$as_me:$LINENO: result: $ac_res" >&5
8377 echo "${ECHO_T}$ac_res" >&6; }
8378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8383 ac_header_dirent=$ac_hdr; break
8387 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8388 if test $ac_header_dirent = dirent.h; then
8389 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8390 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8391 if test "${ac_cv_search_opendir+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 ac_func_search_save_LIBS=$LIBS
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8402 /* Override any GCC internal prototype to avoid an error.
8403 Use char because int might match the return type of a GCC
8404 builtin and then its argument prototype would still apply. */
8417 for ac_lib in '' dir; do
8418 if test -z "$ac_lib"; then
8419 ac_res="none required"
8422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (ac_try="$ac_link"
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_link") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_search_opendir=$ac_res
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8466 rm -f core conftest.err conftest.$ac_objext \
8468 if test "${ac_cv_search_opendir+set}" = set; then
8472 if test "${ac_cv_search_opendir+set}" = set; then
8475 ac_cv_search_opendir=no
8478 LIBS=$ac_func_search_save_LIBS
8480 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8481 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8482 ac_res=$ac_cv_search_opendir
8483 if test "$ac_res" != no; then
8484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8489 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8517 for ac_lib in '' x; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_search_opendir=$ac_res
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8566 rm -f core conftest.err conftest.$ac_objext \
8568 if test "${ac_cv_search_opendir+set}" = set; then
8572 if test "${ac_cv_search_opendir+set}" = set; then
8575 ac_cv_search_opendir=no
8578 LIBS=$ac_func_search_save_LIBS
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601 inttypes.h stdint.h unistd.h
8603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 cat >conftest.$ac_ext <<_ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8617 #include <$ac_header>
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_try") 2>&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 eval "$as_ac_Header=yes"
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 eval "$as_ac_Header=no"
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 ac_res=`eval echo '${'$as_ac_Header'}'`
8664 { echo "$as_me:$LINENO: result: $ac_res" >&5
8665 echo "${ECHO_T}$ac_res" >&6; }
8666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8667 cat >>confdefs.h <<_ACEOF
8668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8677 for ac_header in dlfcn.h
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 ac_res=`eval echo '${'$as_ac_Header'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8690 # Is the header compilable?
8691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 $ac_includes_default
8700 #include <$ac_header>
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1 >conftest.err
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest.$ac_objext'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_try") 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_header_compiler=yes
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_header_compiler=no
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8746 echo "${ECHO_T}$ac_header_compiler" >&6; }
8748 # Is the header present?
8749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8751 cat >conftest.$ac_ext <<_ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757 #include <$ac_header>
8759 if { (ac_try="$ac_cpp conftest.$ac_ext"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } >/dev/null; then
8772 if test -s conftest.err; then
8773 ac_cpp_err=$ac_c_preproc_warn_flag
8774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781 if test -z "$ac_cpp_err"; then
8782 ac_header_preproc=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_header_preproc=no
8790 rm -f conftest.err conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6; }
8794 # So? What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801 ac_header_preproc=yes
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8817 ## ------------------------------------ ##
8818 ## Report this to http://llvm.org/bugs/ ##
8819 ## ------------------------------------ ##
8821 ) | sed "s/^/$as_me: WARNING: /" >&2
8824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 eval "$as_ac_Header=\$ac_header_preproc"
8831 ac_res=`eval echo '${'$as_ac_Header'}'`
8832 { echo "$as_me:$LINENO: result: $ac_res" >&5
8833 echo "${ECHO_T}$ac_res" >&6; }
8836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845 # Check whether --enable-ltdl-install was given.
8846 if test "${enable_ltdl_install+set}" = set; then
8847 enableval=$enable_ltdl_install;
8853 if test x"${enable_ltdl_install-no}" != xno; then
8855 INSTALL_LTDL_FALSE='#'
8857 INSTALL_LTDL_TRUE='#'
8863 if test x"${enable_ltdl_convenience-no}" != xno; then
8864 CONVENIENCE_LTDL_TRUE=
8865 CONVENIENCE_LTDL_FALSE='#'
8867 CONVENIENCE_LTDL_TRUE='#'
8868 CONVENIENCE_LTDL_FALSE=
8872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8875 libname_spec='lib$name'
8883 shlibpath_overrides_runpath=unknown
8885 dynamic_linker="$host_os ld.so"
8886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8887 if test "$GCC" = yes; then
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8890 # if the path contains ";" then we assume it to be the separator
8891 # otherwise default to the standard path separator (i.e. ":") - it is
8892 # assumed that no part of a normal pathname contains ";" but that should
8893 # okay in the real world where ";" in dirpaths is itself problematic.
8894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8901 need_lib_prefix=unknown
8902 hardcode_into_libs=no
8904 # when you set need_version to no, make sure it does not cause -set_version
8905 # flags to be left without arguments
8906 need_version=unknown
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8912 shlibpath_var=LIBPATH
8914 # AIX 3 has no versioning support, so we append a major version to the name.
8915 soname_spec='${libname}${release}${shared_ext}$major'
8922 hardcode_into_libs=yes
8923 if test "$host_cpu" = ia64; then
8924 # AIX 5 supports IA64
8925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8926 shlibpath_var=LD_LIBRARY_PATH
8928 # With GCC up to 2.95.x, collect2 would create an import file
8929 # for dependence libraries. The import file would start with
8930 # the line `#! .'. This would cause the generated library to
8931 # depend on `.', always an invalid library. This was fixed in
8932 # development snapshots of GCC prior to 3.0.
8934 aix4 | aix4.[01] | aix4.[01].*)
8935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8937 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8945 # soname into executable. Probably we can add versioning support to
8946 # collect2, so additional links can be useful in future.
8947 if test "$aix_use_runtimelinking" = yes; then
8948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8949 # instead of lib<name>.a to let people know that these are not
8950 # typical AIX shared libraries.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 # We preserve .a as extension for shared libraries through AIX4.2
8954 # and later when we are not doing run time linking.
8955 library_names_spec='${libname}${release}.a $libname.a'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8958 shlibpath_var=LIBPATH
8963 library_names_spec='$libname.ixlibrary $libname.a'
8964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8965 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'
8969 library_names_spec='${libname}${shared_ext}'
8970 dynamic_linker="$host_os ld.so"
8971 shlibpath_var=LIBRARY_PATH
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8983 # the default ld.so.conf also contains /usr/contrib/lib and
8984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8985 # libtool to hard-code these into programs
8988 cygwin* | mingw* | pw32*)
8989 version_type=windows
8994 case $GCC,$host_os in
8995 yes,cygwin* | yes,mingw* | yes,pw32*)
8996 library_names_spec='$libname.dll.a'
8997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8998 postinstall_cmds='base_file=`basename \${file}`~
8999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9000 dldir=$destdir/`dirname \$dlpath`~
9001 test -d \$dldir || mkdir -p \$dldir~
9002 $install_prog $dir/$dlname \$dldir/$dlname~
9003 chmod a+x \$dldir/$dlname'
9004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9005 dlpath=$dir/\$dldll~
9007 shlibpath_overrides_runpath=yes
9011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9013 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9016 # MinGW DLLs use traditional 'lib' prefix
9017 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9020 # It is most probably a Windows format PATH printed by
9021 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9022 # path with ; separators, and with drive letters. We can handle the
9023 # drive letters (cygwin fileutils understands them), so leave them,
9024 # especially as we might pass files found there to a mingw objdump,
9025 # which wouldn't understand a cygwinified path. Ahh.
9026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9032 # pw32 DLLs use 'pw' prefix rather than 'lib'
9033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9042 dynamic_linker='Win32 ld.exe'
9043 # FIXME: first we should search . and the directory the executable is in
9047 darwin* | rhapsody*)
9048 dynamic_linker="$host_os dyld"
9052 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9053 soname_spec='${libname}${release}${major}$shared_ext'
9054 shlibpath_overrides_runpath=yes
9055 shlibpath_var=DYLD_LIBRARY_PATH
9056 shrext_cmds='.dylib'
9057 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9058 if test "$GCC" = yes; then
9059 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"`
9061 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=no
9087 hardcode_into_libs=yes
9088 dynamic_linker='GNU ld.so'
9091 freebsd* | dragonfly*)
9092 # DragonFly does not have aout. When/if they implement a new
9093 # versioning mechanism, adjust this.
9094 if test -x /usr/bin/objformat; then
9095 objformat=`/usr/bin/objformat`
9098 freebsd[123].*) objformat=aout ;;
9102 version_type=freebsd-$objformat
9103 case $version_type in
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9114 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=yes
9119 freebsd3.[01]* | freebsdelf3.[01]*)
9120 shlibpath_overrides_runpath=yes
9121 hardcode_into_libs=yes
9123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9125 shlibpath_overrides_runpath=no
9126 hardcode_into_libs=yes
9128 freebsd*) # from 4.6 on
9129 shlibpath_overrides_runpath=yes
9130 hardcode_into_libs=yes
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 hardcode_into_libs=yes
9145 hpux9* | hpux10* | hpux11*)
9146 # Give a soname corresponding to the major version so that dld.sl refuses to
9147 # link against other versions.
9154 hardcode_into_libs=yes
9155 dynamic_linker="$host_os dld.so"
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 if test "X$HPUX_IA64_MODE" = X32; then
9161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9169 hardcode_into_libs=yes
9170 dynamic_linker="$host_os dld.sl"
9171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9180 dynamic_linker="$host_os dld.sl"
9181 shlibpath_var=SHLIB_PATH
9182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
9187 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9188 postinstall_cmds='chmod 555 $lib'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9203 irix5* | irix6* | nonstopux*)
9205 nonstopux*) version_type=nonstopux ;;
9207 if test "$lt_cv_prog_gnu_ld" = yes; then
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9218 irix5* | nonstopux*)
9222 case $LD in # libtool.m4 will add one of these switches to LD
9223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9224 libsuff= shlibsuff= libmagic=32-bit;;
9225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9226 libsuff=32 shlibsuff=N32 libmagic=N32;;
9227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9229 *) libsuff= shlibsuff= libmagic=never-match;;
9233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9234 shlibpath_overrides_runpath=no
9235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9237 hardcode_into_libs=yes
9240 # No shared lib support for Linux oldld, aout, or coff.
9241 linux*oldld* | linux*aout* | linux*coff*)
9245 # This must be Linux ELF.
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 soname_spec='${libname}${release}${shared_ext}$major'
9252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9253 shlibpath_var=LD_LIBRARY_PATH
9254 shlibpath_overrides_runpath=no
9255 # This implies no fast_install, which is unacceptable.
9256 # Some rework will be needed to allow for fast_install
9257 # before this can be enabled.
9258 hardcode_into_libs=yes
9260 # Append ld.so.conf contents to the search path
9261 if test -f /etc/ld.so.conf; then
9262 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' ' '`
9263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9266 # We used to test for /lib/ld.so.1 and disable shared libraries on
9267 # powerpc, because MkLinux only supported shared libraries with the
9268 # GNU dynamic linker. Since this was broken with cross compilers,
9269 # most powerpc-linux boxes support dynamic linking these days and
9270 # people can always --disable-shared, the test was removed, and we
9271 # assume the GNU/Linux dynamic linker is in use.
9272 dynamic_linker='GNU/Linux ld.so'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 shlibpath_overrides_runpath=no
9283 hardcode_into_libs=yes
9284 dynamic_linker='GNU ld.so'
9291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9294 dynamic_linker='NetBSD (a.out) ld.so'
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 dynamic_linker='NetBSD ld.elf_so'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=yes
9302 hardcode_into_libs=yes
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9324 sys_lib_dlsearch_path_spec="/usr/lib"
9326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9328 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9329 *) need_version=no ;;
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9336 openbsd2.[89] | openbsd2.[89].*)
9337 shlibpath_overrides_runpath=no
9340 shlibpath_overrides_runpath=yes
9344 shlibpath_overrides_runpath=yes
9349 libname_spec='$name'
9352 library_names_spec='$libname${shared_ext} $libname.a'
9353 dynamic_linker='OS/2 ld.exe'
9354 shlibpath_var=LIBPATH
9357 osf3* | osf4* | osf5*)
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 shlibpath_var=LD_LIBRARY_PATH
9364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373 soname_spec='${libname}${release}${shared_ext}$major'
9374 shlibpath_var=LD_LIBRARY_PATH
9375 shlibpath_overrides_runpath=yes
9376 hardcode_into_libs=yes
9377 # ldd complains unless libraries are executable
9378 postinstall_cmds='chmod +x $lib'
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=yes
9387 if test "$with_gnu_ld" = yes; then
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 shlibpath_var=LD_LIBRARY_PATH
9398 case $host_vendor in
9400 shlibpath_overrides_runpath=no
9402 export_dynamic_flag_spec='${wl}-Blargedynsym'
9403 runpath_var=LD_RUN_PATH
9411 shlibpath_overrides_runpath=no
9412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9418 if test -d /usr/nec ;then
9420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9421 soname_spec='$libname${shared_ext}.$major'
9422 shlibpath_var=LD_LIBRARY_PATH
9426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9427 version_type=freebsd-elf
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 hardcode_into_libs=yes
9434 if test "$with_gnu_ld" = yes; then
9435 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9436 shlibpath_overrides_runpath=no
9438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9439 shlibpath_overrides_runpath=yes
9442 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9446 sys_lib_dlsearch_path_spec='/usr/lib'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 shlibpath_var=LD_LIBRARY_PATH
9460 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9461 echo "${ECHO_T}$dynamic_linker" >&6; }
9462 test "$dynamic_linker" = no && can_build_shared=no
9464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9465 if test "$GCC" = yes; then
9466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9471 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9472 if test "${libltdl_cv_shlibext+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 eval libltdl_cv_shlibext=$shrext_cmds
9480 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9481 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9482 if test -n "$libltdl_cv_shlibext"; then
9484 cat >>confdefs.h <<_ACEOF
9485 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9491 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9492 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9493 if test "${libltdl_cv_sys_search_path+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9498 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9499 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9500 if test -n "$libltdl_cv_sys_search_path"; then
9502 for dir in $libltdl_cv_sys_search_path; do
9503 if test -z "$sys_search_path"; then
9504 sys_search_path="$dir"
9506 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9510 cat >>confdefs.h <<_ACEOF
9511 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9516 { echo "$as_me:$LINENO: checking for objdir" >&5
9517 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_objdir+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 libltdl_cv_objdir="$objdir"
9522 if test -n "$objdir"; then
9525 rm -f .libs 2>/dev/null
9526 mkdir .libs 2>/dev/null
9527 if test -d .libs; then
9528 libltdl_cv_objdir=.libs
9530 # MS-DOS does not allow filenames that begin with a dot.
9531 libltdl_cv_objdir=_libs
9533 rmdir .libs 2>/dev/null
9537 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9538 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9540 cat >>confdefs.h <<_ACEOF
9541 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9549 # Check for command to grab the raw symbol name followed by C symbol from nm.
9550 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9551 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9552 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 # These are sane defaults that work on at least a few old systems.
9557 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9559 # Character class describing NM global symbol codes.
9560 symcode='[BCDEGRST]'
9562 # Regexp to match symbols that can be accessed directly from C.
9563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9565 # Transform an extracted symbol line into a proper C declaration
9566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9568 # Transform an extracted symbol line into symbol name and symbol address
9569 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9571 # Define system-specific variables.
9576 cygwin* | mingw* | pw32*)
9577 symcode='[ABCDGISTW]'
9579 hpux*) # Its linker distinguishes data from code symbols
9580 if test "$host_cpu" = ia64; then
9581 symcode='[ABCDEGRST]'
9583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9584 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'"
9587 if test "$host_cpu" = ia64; then
9588 symcode='[ABCDGIRSTW]'
9589 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9590 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'"
9594 symcode='[BCDEGRST]'
9597 symcode='[BCDEGQRST]'
9608 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9616 # Handle CRLF in mingw tool chain
9620 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9624 # If we're using GNU nm, then use its standard symbol codes.
9625 case `$NM -V 2>&1` in
9626 *GNU* | *'with BFD'*)
9627 symcode='[ABCDGIRSTW]' ;;
9630 # Try without a prefix undercore, then with it.
9631 for ac_symprfx in "" "_"; do
9633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9634 symxfrm="\\1 $ac_symprfx\\2 \\2"
9636 # Write the raw and C identifiers.
9637 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9639 # Check to see that the pipe works correctly.
9643 cat > conftest.$ac_ext <<EOF
9648 void nm_test_func(){}
9652 int main(){nm_test_var='a';nm_test_func();return(0);}
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 # Now try to grab the symbols.
9662 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s "$nlist"; then
9667 # Try sorting and uniquifying the output.
9668 if sort "$nlist" | uniq > "$nlist"T; then
9669 mv -f "$nlist"T "$nlist"
9674 # Make sure that we snagged all the symbols we need.
9675 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9676 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9677 cat <<EOF > conftest.$ac_ext
9683 # Now generate the symbol file.
9684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9686 cat <<EOF >> conftest.$ac_ext
9687 #if defined (__STDC__) && __STDC__
9688 # define lt_ptr_t void *
9690 # define lt_ptr_t char *
9694 /* The mapping between symbol names and symbols. */
9699 lt_preloaded_symbols[] =
9702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9703 cat <<\EOF >> conftest.$ac_ext
9711 # Now try linking the two files.
9712 mv conftest.$ac_objext conftstm.$ac_objext
9713 lt_save_LIBS="$LIBS"
9714 lt_save_CFLAGS="$CFLAGS"
9715 LIBS="conftstm.$ac_objext"
9716 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9724 LIBS="$lt_save_LIBS"
9725 CFLAGS="$lt_save_CFLAGS"
9727 echo "cannot find nm_test_func in $nlist" >&5
9730 echo "cannot find nm_test_var in $nlist" >&5
9733 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9736 echo "$progname: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9739 rm -f conftest* conftst*
9741 # Do not use the global_symbol_pipe unless it works.
9742 if test "$pipe_works" = yes; then
9745 lt_cv_sys_global_symbol_pipe=
9751 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9752 lt_cv_sys_global_symbol_to_cdecl=
9754 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9755 { echo "$as_me:$LINENO: result: failed" >&5
9756 echo "${ECHO_T}failed" >&6; }
9758 { echo "$as_me:$LINENO: result: ok" >&5
9759 echo "${ECHO_T}ok" >&6; }
9763 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9764 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9765 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9769 libltdl_cv_preloaded_symbols=yes
9771 libltdl_cv_preloaded_symbols=no
9775 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9776 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9777 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9779 cat >>confdefs.h <<\_ACEOF
9780 #define HAVE_PRELOADED_SYMBOLS 1
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9794 { echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807 #define shl_load innocuous_shl_load
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char shl_load (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9815 # include <limits.h>
9817 # include <assert.h>
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined __stub_shl_load || defined __stub___shl_load
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_shl_load=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_func_shl_load=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9889 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9891 if test $ac_cv_func_shl_load = yes; then
9893 cat >>confdefs.h <<\_ACEOF
9894 #define HAVE_SHL_LOAD 1
9898 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9899 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9900 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_check_lib_save_LIBS=$LIBS
9905 cat >conftest.$ac_ext <<_ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h. */
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9927 rm -f conftest.$ac_objext conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9961 ac_cv_lib_dld_shl_load=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 ac_cv_lib_dld_shl_load=no
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9973 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9975 if test $ac_cv_lib_dld_shl_load = yes; then
9977 cat >>confdefs.h <<\_ACEOF
9978 #define HAVE_SHL_LOAD 1
9981 LIBADD_DL="$LIBADD_DL -ldld"
9983 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9985 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 ac_check_lib_save_LIBS=$LIBS
9990 cat >conftest.$ac_ext <<_ACEOF
9993 cat confdefs.h >>conftest.$ac_ext
9994 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_lib_dl_dlopen=yes
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_lib_dl_dlopen=no
10054 rm -f core conftest.err conftest.$ac_objext \
10055 conftest$ac_exeext conftest.$ac_ext
10056 LIBS=$ac_check_lib_save_LIBS
10058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10060 if test $ac_cv_lib_dl_dlopen = yes; then
10062 cat >>confdefs.h <<\_ACEOF
10063 #define HAVE_LIBDL 1
10066 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 # include <dlfcn.h>
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_try") 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10121 cat >>confdefs.h <<\_ACEOF
10122 #define HAVE_LIBDL 1
10124 libltdl_cv_func_dlopen="yes"
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10131 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lsvld $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_lib_svld_dlopen=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_lib_svld_dlopen=no
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10206 if test $ac_cv_lib_svld_dlopen = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_LIBDL 1
10212 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10214 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10215 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10216 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 ac_check_lib_save_LIBS=$LIBS
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10238 return dld_link ();
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (ac_try="$ac_link"
10245 case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_cv_lib_dld_dld_link=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_cv_lib_dld_dld_link=no
10285 rm -f core conftest.err conftest.$ac_objext \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10291 if test $ac_cv_lib_dld_dld_link = yes; then
10293 cat >>confdefs.h <<\_ACEOF
10297 LIBADD_DL="$LIBADD_DL -ldld"
10299 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10300 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10301 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10312 #define _dyld_func_lookup innocuous__dyld_func_lookup
10314 /* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char _dyld_func_lookup (); below.
10316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317 <limits.h> exists even on freestanding compilers. */
10320 # include <limits.h>
10322 # include <assert.h>
10325 #undef _dyld_func_lookup
10327 /* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10333 char _dyld_func_lookup ();
10334 /* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
10337 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10344 return _dyld_func_lookup ();
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10358 grep -v '^ *+' conftest.er1 >conftest.err
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_func__dyld_func_lookup=yes
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_func__dyld_func_lookup=no
10391 rm -f core conftest.err conftest.$ac_objext \
10392 conftest$ac_exeext conftest.$ac_ext
10394 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10395 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10396 if test $ac_cv_func__dyld_func_lookup = yes; then
10398 cat >>confdefs.h <<\_ACEOF
10399 #define HAVE_DYLD 1
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10427 lt_save_LIBS="$LIBS"
10428 LIBS="$LIBS $LIBADD_DL"
10430 for ac_func in dlerror
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446 #define $ac_func innocuous_$ac_func
10448 /* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char $ac_func (); below.
10450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451 <limits.h> exists even on freestanding compilers. */
10454 # include <limits.h>
10456 # include <assert.h>
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10468 /* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
10471 #if defined __stub_$ac_func || defined __stub___$ac_func
10478 return $ac_func ();
10483 rm -f conftest.$ac_objext conftest$ac_exeext
10484 if { (ac_try="$ac_link"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_link") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } &&
10497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498 { (case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_try") 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_try") 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 eval "$as_ac_var=yes"
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 eval "$as_ac_var=no"
10525 rm -f core conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10528 ac_res=`eval echo '${'$as_ac_var'}'`
10529 { echo "$as_me:$LINENO: result: $ac_res" >&5
10530 echo "${ECHO_T}$ac_res" >&6; }
10531 if test `eval echo '${'$as_ac_var'}'` = yes; then
10532 cat >>confdefs.h <<_ACEOF
10533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10539 LIBS="$lt_save_LIBS"
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10549 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10550 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10551 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 ac_cv_sys_symbol_underscore=no
10555 cat > conftest.$ac_ext <<EOF
10556 void nm_test_func(){}
10557 int main(){nm_test_func;return 0;}
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560 (eval $ac_compile) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; then
10564 # Now try to grab the symbols.
10565 ac_nlist=conftest.nm
10566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s "$ac_nlist"; then
10571 # See whether the symbols have a leading underscore.
10572 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10573 ac_cv_sys_symbol_underscore=yes
10575 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10578 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10582 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10585 echo "configure: failed program was:" >&5
10591 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10592 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10595 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10596 if test x"$libltdl_cv_func_dlopen" = xyes ||
10597 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10598 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10599 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10600 if test "${libltdl_cv_need_uscore+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 libltdl_cv_need_uscore=unknown
10605 LIBS="$LIBS $LIBADD_DL"
10606 if test "$cross_compiling" = yes; then :
10607 libltdl_cv_need_uscore=cross
10609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610 lt_status=$lt_dlunknown
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10612 "configure"
10613 #include "confdefs.h"
10622 # define LT_DLGLOBAL RTLD_GLOBAL
10625 # define LT_DLGLOBAL DL_GLOBAL
10627 # define LT_DLGLOBAL 0
10631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632 find out it does not work in some platform. */
10633 #ifndef LT_DLLAZY_OR_NOW
10635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10638 # define LT_DLLAZY_OR_NOW DL_LAZY
10641 # define LT_DLLAZY_OR_NOW RTLD_NOW
10644 # define LT_DLLAZY_OR_NOW DL_NOW
10646 # define LT_DLLAZY_OR_NOW 0
10654 extern "C" void exit (int);
10657 void fnord() { int i=42;}
10660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661 int status = $lt_dlunknown;
10665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667 /* dlclose (self); */
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10680 (./conftest; exit; ) >&5 2>/dev/null
10682 case x$lt_status in
10683 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10684 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10685 x$lt_dlunknown|x*) ;;
10688 # compilation failed
10697 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10698 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10702 if test x"$libltdl_cv_need_uscore" = xyes; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define NEED_USCORE 1
10711 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10712 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10713 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 # PORTME does your system automatically load deplibs for dlopen?
10717 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10718 # For now, we just catch OSes we know something about -- in the
10719 # future, we'll try test this programmatically.
10720 libltdl_cv_sys_dlopen_deplibs=unknown
10722 aix3*|aix4.1.*|aix4.2.*)
10723 # Unknown whether this is true for these versions of AIX, but
10724 # we want this `case' here to explicitly catch those versions.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10728 libltdl_cv_sys_dlopen_deplibs=yes
10731 # Assuming the user has installed a libdl from somewhere, this is true
10732 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10733 libltdl_cv_sys_dlopen_deplibs=yes
10735 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10736 # GNU and its variants, using gnu ld.so (Glibc)
10737 libltdl_cv_sys_dlopen_deplibs=yes
10740 libltdl_cv_sys_dlopen_deplibs=yes
10743 libltdl_cv_sys_dlopen_deplibs=yes
10745 irix[12345]*|irix6.[01]*)
10746 # Catch all versions of IRIX before 6.2, and indicate that we don't
10747 # know how it worked for any of those versions.
10748 libltdl_cv_sys_dlopen_deplibs=unknown
10751 # The case above catches anything before 6.2, and it's known that
10752 # at 6.2 and later dlopen does load deplibs.
10753 libltdl_cv_sys_dlopen_deplibs=yes
10756 libltdl_cv_sys_dlopen_deplibs=yes
10759 libltdl_cv_sys_dlopen_deplibs=yes
10762 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10763 # it did *not* use an RPATH in a shared library to find objects the
10764 # library depends on, so we explicitly say `no'.
10765 libltdl_cv_sys_dlopen_deplibs=no
10767 osf5.0|osf5.0a|osf5.1)
10768 # dlopen *does* load deplibs and with the right loader patch applied
10769 # it even uses RPATH in a shared library to search for shared objects
10770 # that the library depends on, but there's no easy way to know if that
10771 # patch is installed. Since this is the case, all we can really
10772 # say is unknown -- it depends on the patch being installed. If
10773 # it is, this changes to `yes'. Without it, it would be `no'.
10774 libltdl_cv_sys_dlopen_deplibs=unknown
10777 # the two cases above should catch all versions of osf <= 5.1. Read
10778 # the comments above for what we know about them.
10779 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10780 # is used to find them so we can finally say `yes'.
10781 libltdl_cv_sys_dlopen_deplibs=yes
10784 libltdl_cv_sys_dlopen_deplibs=yes
10786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787 libltdl_cv_sys_dlopen_deplibs=yes
10792 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10793 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10794 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10796 cat >>confdefs.h <<\_ACEOF
10797 #define LTDL_DLOPEN_DEPLIBS 1
10803 for ac_header in argz.h
10805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10816 # Is the header compilable?
10817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 #include <$ac_header>
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_compile") 2>conftest.er1
10837 grep -v '^ *+' conftest.er1 >conftest.err
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_try") 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10867 ac_header_compiler=no
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10872 echo "${ECHO_T}$ac_header_compiler" >&6; }
10874 # Is the header present?
10875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10877 cat >conftest.$ac_ext <<_ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <$ac_header>
10885 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
10898 if test -s conftest.err; then
10899 ac_cpp_err=$ac_c_preproc_warn_flag
10900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10907 if test -z "$ac_cpp_err"; then
10908 ac_header_preproc=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_header_preproc=no
10916 rm -f conftest.err conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 echo "${ECHO_T}$ac_header_preproc" >&6; }
10920 # So? What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927 ac_header_preproc=yes
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10943 ## ------------------------------------ ##
10944 ## Report this to http://llvm.org/bugs/ ##
10945 ## ------------------------------------ ##
10947 ) | sed "s/^/$as_me: WARNING: /" >&2
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 eval "$as_ac_Header=\$ac_header_preproc"
10957 ac_res=`eval echo '${'$as_ac_Header'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10963 cat >>confdefs.h <<_ACEOF
10964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10972 { echo "$as_me:$LINENO: checking for error_t" >&5
10973 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10974 if test "${ac_cv_type_error_t+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10987 typedef error_t ac__type_new_;
10991 if ((ac__type_new_ *) 0)
10993 if (sizeof (ac__type_new_))
10999 rm -f conftest.$ac_objext
11000 if { (ac_try="$ac_compile"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_compile") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 ac_cv_type_error_t=yes
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 ac_cv_type_error_t=no
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11044 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11045 if test $ac_cv_type_error_t = yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define HAVE_ERROR_T 1
11054 cat >>confdefs.h <<\_ACEOF
11055 #define error_t int
11066 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11090 # include <limits.h>
11092 # include <assert.h>
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11114 return $ac_func ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 eval "$as_ac_var=yes"
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 eval "$as_ac_var=no"
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11164 ac_res=`eval echo '${'$as_ac_var'}'`
11165 { echo "$as_me:$LINENO: result: $ac_res" >&5
11166 echo "${ECHO_T}$ac_res" >&6; }
11167 if test `eval echo '${'$as_ac_var'}'` = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11197 for ac_header in errno.h malloc.h memory.h unistd.h
11199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 ac_res=`eval echo '${'$as_ac_Header'}'`
11207 { echo "$as_me:$LINENO: result: $ac_res" >&5
11208 echo "${ECHO_T}$ac_res" >&6; }
11210 # Is the header compilable?
11211 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 #include <$ac_header>
11222 rm -f conftest.$ac_objext
11223 if { (ac_try="$ac_compile"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_compile") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1 >conftest.err
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_header_compiler=yes
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_header_compiler=no
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11266 echo "${ECHO_T}$ac_header_compiler" >&6; }
11268 # Is the header present?
11269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <$ac_header>
11279 if { (ac_try="$ac_cpp conftest.$ac_ext"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } >/dev/null; then
11292 if test -s conftest.err; then
11293 ac_cpp_err=$ac_c_preproc_warn_flag
11294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11301 if test -z "$ac_cpp_err"; then
11302 ac_header_preproc=yes
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_header_preproc=no
11310 rm -f conftest.err conftest.$ac_ext
11311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11312 echo "${ECHO_T}$ac_header_preproc" >&6; }
11314 # So? What about this header?
11315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11321 ac_header_preproc=yes
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11337 ## ------------------------------------ ##
11338 ## Report this to http://llvm.org/bugs/ ##
11339 ## ------------------------------------ ##
11341 ) | sed "s/^/$as_me: WARNING: /" >&2
11344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 eval "$as_ac_Header=\$ac_header_preproc"
11351 ac_res=`eval echo '${'$as_ac_Header'}'`
11352 { echo "$as_me:$LINENO: result: $ac_res" >&5
11353 echo "${ECHO_T}$ac_res" >&6; }
11356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11357 cat >>confdefs.h <<_ACEOF
11358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366 for ac_header in mach-o/dyld.h
11368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 ac_res=`eval echo '${'$as_ac_Header'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11379 # Is the header compilable?
11380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 #include <$ac_header>
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
11416 { (case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_try") 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_header_compiler=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_header_compiler=no
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11435 echo "${ECHO_T}$ac_header_compiler" >&6; }
11437 # Is the header present?
11438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11440 cat >conftest.$ac_ext <<_ACEOF
11443 cat confdefs.h >>conftest.$ac_ext
11444 cat >>conftest.$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 #include <$ac_header>
11448 if { (ac_try="$ac_cpp conftest.$ac_ext"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev/null; then
11461 if test -s conftest.err; then
11462 ac_cpp_err=$ac_c_preproc_warn_flag
11463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11470 if test -z "$ac_cpp_err"; then
11471 ac_header_preproc=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_header_preproc=no
11479 rm -f conftest.err conftest.$ac_ext
11480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11481 echo "${ECHO_T}$ac_header_preproc" >&6; }
11483 # So? What about this header?
11484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11490 ac_header_preproc=yes
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11506 ## ------------------------------------ ##
11507 ## Report this to http://llvm.org/bugs/ ##
11508 ## ------------------------------------ ##
11510 ) | sed "s/^/$as_me: WARNING: /" >&2
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 eval "$as_ac_Header=\$ac_header_preproc"
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11538 for ac_func in closedir opendir readdir
11540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11554 #define $ac_func innocuous_$ac_func
11556 /* System header to define __stub macros and hopefully few prototypes,
11557 which can conflict with char $ac_func (); below.
11558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11559 <limits.h> exists even on freestanding compilers. */
11562 # include <limits.h>
11564 # include <assert.h>
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11576 /* The GNU C library defines this for functions which it implements
11577 to always fail with ENOSYS. Some functions are actually named
11578 something starting with __ and the normal name is an alias. */
11579 #if defined __stub_$ac_func || defined __stub___$ac_func
11586 return $ac_func ();
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_link") 2>conftest.er1
11600 grep -v '^ *+' conftest.er1 >conftest.err
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest$ac_exeext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 eval "$as_ac_var=yes"
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 eval "$as_ac_var=no"
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11636 ac_res=`eval echo '${'$as_ac_var'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11639 if test `eval echo '${'$as_ac_var'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11650 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11663 if test "$GCC" != "yes" && test "$ICC" != "yes"
11665 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11666 echo "$as_me: error: gcc|icc required but not found" >&2;}
11667 { (exit 1); exit 1; }; }
11670 if test "$GXX" != "yes" && test "$IXX" != "yes"
11672 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11673 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11674 { (exit 1); exit 1; }; }
11677 if test "$GCC" = "yes"
11679 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11687 #if !defined(__GNUC__) || __GNUC__ < 3
11688 #error Unsupported GCC version
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11702 grep -v '^ *+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11708 { (case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_try") 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (case "(($ac_try" in
11719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720 *) ac_try_echo=$ac_try;;
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723 (eval "$ac_try") 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11733 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11734 { (exit 1); exit 1; }; }
11737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 if test -z "$llvm_cv_gnu_make_command"
11742 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11743 echo "$as_me: error: GNU Make required but not found" >&2;}
11744 { (exit 1); exit 1; }; }
11747 { echo "$as_me:$LINENO: result: ok" >&5
11748 echo "${ECHO_T}ok" >&6; }
11750 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11751 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11752 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11754 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11756 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11760 NO_MAYBE_UNINITIALIZED=
11761 if test "$GXX" = "yes"
11763 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11765 if test -z "$NO_MAYBE_UNINITIALIZED"
11767 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11771 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11772 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11775 # Check whether --with-python was given.
11776 if test "${with_python+set}" = set; then
11777 withval=$with_python; PYTHON="$withval"
11781 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11782 { echo "$as_me:$LINENO: checking for python" >&5
11783 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11784 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11785 echo "${ECHO_T}user defined: $with_python" >&6; }
11787 if test -n "$PYTHON" ; then
11788 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11789 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11792 # Extract the first word of "python python2 python26", so it can be a program name with args.
11793 set dummy python python2 python26; ac_word=$2
11794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11796 if test "${ac_cv_path_PYTHON+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11820 echo "${ECHO_T}not found" >&6; }
11821 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11822 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11823 { (exit 1); exit 1; }; }"
11827 PYTHON=$ac_cv_path_PYTHON
11828 if test -n "$PYTHON"; then
11829 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11830 echo "${ECHO_T}$PYTHON" >&6; }
11832 { echo "$as_me:$LINENO: result: no" >&5
11833 echo "${ECHO_T}no" >&6; }
11839 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11840 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11841 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11842 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11843 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11844 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11845 if test "$ac_python_version_major" -gt "2" || \
11846 (test "$ac_python_version_major" -eq "2" && \
11847 test "$ac_python_version_minor" -ge "5") ; then
11848 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11849 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11851 { echo "$as_me:$LINENO: result: not found" >&5
11852 echo "${ECHO_T}not found" >&6; }
11853 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11854 See \`config.log' for more details." >&5
11855 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11856 See \`config.log' for more details." >&2;}
11857 { (exit 1); exit 1; }; }
11862 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11863 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11864 if test "${ac_cv_lib_m_sin+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 ac_check_lib_save_LIBS=$LIBS
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_link") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest$ac_exeext'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_lib_m_sin=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11938 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11939 if test $ac_cv_lib_m_sin = yes; then
11940 cat >>confdefs.h <<_ACEOF
11941 #define HAVE_LIBM 1
11948 if test "$llvm_cv_os_type" = "MingW" ; then
11950 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11951 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11952 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 ac_check_lib_save_LIBS=$LIBS
11956 LIBS="-limagehlp $LIBS"
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1 >conftest.err
11984 cat conftest.err >&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11988 { (case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_try") 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; } &&
11997 { ac_try='test -s conftest$ac_exeext'
11998 { (case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_try") 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_lib_imagehlp_main=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 ac_cv_lib_imagehlp_main=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12020 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12021 if test $ac_cv_lib_imagehlp_main = yes; then
12022 cat >>confdefs.h <<_ACEOF
12023 #define HAVE_LIBIMAGEHLP 1
12026 LIBS="-limagehlp $LIBS"
12031 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12032 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12033 if test "${ac_cv_lib_psapi_main+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-lpsapi $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12069 { (case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_try") 2>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; } &&
12078 { ac_try='test -s conftest$ac_exeext'
12079 { (case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_try") 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 ac_cv_lib_psapi_main=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_lib_psapi_main=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12100 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12101 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12102 if test $ac_cv_lib_psapi_main = yes; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define HAVE_LIBPSAPI 1
12107 LIBS="-lpsapi $LIBS"
12112 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12113 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_shell32_main+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lshell32 $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_link") 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12150 { (case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_try") 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_try") 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_shell32_main=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_lib_shell32_main=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12182 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12183 if test $ac_cv_lib_shell32_main = yes; then
12184 cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBSHELL32 1
12188 LIBS="-lshell32 $LIBS"
12194 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12196 if test "${ac_cv_search_dlopen+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 ac_func_search_save_LIBS=$LIBS
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12222 for ac_lib in '' dl; do
12223 if test -z "$ac_lib"; then
12224 ac_res="none required"
12227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244 { (case "(($ac_try" in
12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_try") 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest$ac_exeext'
12254 { (case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_try") 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_search_dlopen=$ac_res
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12271 rm -f core conftest.err conftest.$ac_objext \
12273 if test "${ac_cv_search_dlopen+set}" = set; then
12277 if test "${ac_cv_search_dlopen+set}" = set; then
12280 ac_cv_search_dlopen=no
12282 rm conftest.$ac_ext
12283 LIBS=$ac_func_search_save_LIBS
12285 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12286 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12287 ac_res=$ac_cv_search_dlopen
12288 if test "$ac_res" != no; then
12289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12291 cat >>confdefs.h <<\_ACEOF
12292 #define HAVE_DLOPEN 1
12296 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12297 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12301 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12302 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12303 if test "${ac_cv_search_clock_gettime+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_func_search_save_LIBS=$LIBS
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12320 char clock_gettime ();
12324 return clock_gettime ();
12329 for ac_lib in '' rt; do
12330 if test -z "$ac_lib"; then
12331 ac_res="none required"
12334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351 { (case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_try") 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest$ac_exeext'
12361 { (case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_try") 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_search_clock_gettime=$ac_res
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12378 rm -f core conftest.err conftest.$ac_objext \
12380 if test "${ac_cv_search_clock_gettime+set}" = set; then
12384 if test "${ac_cv_search_clock_gettime+set}" = set; then
12387 ac_cv_search_clock_gettime=no
12389 rm conftest.$ac_ext
12390 LIBS=$ac_func_search_save_LIBS
12392 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12393 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12394 ac_res=$ac_cv_search_clock_gettime
12395 if test "$ac_res" != no; then
12396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12401 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12402 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12403 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12404 if test "${ac_cv_search_setupterm+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 ac_func_search_save_LIBS=$LIBS
12408 cat >conftest.$ac_ext <<_ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12425 return setupterm ();
12430 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12431 if test -z "$ac_lib"; then
12432 ac_res="none required"
12435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1 >conftest.err
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_search_setupterm=$ac_res
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12479 rm -f core conftest.err conftest.$ac_objext \
12481 if test "${ac_cv_search_setupterm+set}" = set; then
12485 if test "${ac_cv_search_setupterm+set}" = set; then
12488 ac_cv_search_setupterm=no
12490 rm conftest.$ac_ext
12491 LIBS=$ac_func_search_save_LIBS
12493 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12494 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12495 ac_res=$ac_cv_search_setupterm
12496 if test "$ac_res" != no; then
12497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_TERMINFO 1
12507 if test "$llvm_cv_enable_libffi" = "yes" ; then
12508 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12509 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12510 if test "${ac_cv_search_ffi_call+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_func_search_save_LIBS=$LIBS
12514 cat >conftest.$ac_ext <<_ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12521 /* Override any GCC internal prototype to avoid an error.
12522 Use char because int might match the return type of a GCC
12523 builtin and then its argument prototype would still apply. */
12531 return ffi_call ();
12536 for ac_lib in '' ffi; do
12537 if test -z "$ac_lib"; then
12538 ac_res="none required"
12541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_search_ffi_call=$ac_res
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12585 rm -f core conftest.err conftest.$ac_objext \
12587 if test "${ac_cv_search_ffi_call+set}" = set; then
12591 if test "${ac_cv_search_ffi_call+set}" = set; then
12594 ac_cv_search_ffi_call=no
12596 rm conftest.$ac_ext
12597 LIBS=$ac_func_search_save_LIBS
12599 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12600 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12601 ac_res=$ac_cv_search_ffi_call
12602 if test "$ac_res" != no; then
12603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_FFI_CALL 1
12610 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12611 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12612 { (exit 1); exit 1; }; }
12617 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12618 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12619 if test "${ac_cv_search_mallinfo+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 ac_func_search_save_LIBS=$LIBS
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12640 return mallinfo ();
12645 for ac_lib in '' malloc; do
12646 if test -z "$ac_lib"; then
12647 ac_res="none required"
12650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_link") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_cv_search_mallinfo=$ac_res
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f core conftest.err conftest.$ac_objext \
12696 if test "${ac_cv_search_mallinfo+set}" = set; then
12700 if test "${ac_cv_search_mallinfo+set}" = set; then
12703 ac_cv_search_mallinfo=no
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12708 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12709 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12710 ac_res=$ac_cv_search_mallinfo
12711 if test "$ac_res" != no; then
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_MALLINFO 1
12721 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12723 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12724 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12725 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-lpthread $LIBS"
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12737 /* Override any GCC internal prototype to avoid an error.
12738 Use char because int might match the return type of a GCC
12739 builtin and then its argument prototype would still apply. */
12743 char pthread_mutex_init ();
12747 return pthread_mutex_init ();
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_link") 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12767 { (case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_try") 2>&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest$ac_exeext'
12777 { (case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_try") 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
12786 ac_cv_lib_pthread_pthread_mutex_init=yes
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 ac_cv_lib_pthread_pthread_mutex_init=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12798 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12799 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12800 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12801 cat >>confdefs.h <<_ACEOF
12802 #define HAVE_LIBPTHREAD 1
12805 LIBS="-lpthread $LIBS"
12809 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12810 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12811 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_func_search_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12828 char pthread_mutex_lock ();
12832 return pthread_mutex_lock ();
12837 for ac_lib in '' pthread; do
12838 if test -z "$ac_lib"; then
12839 ac_res="none required"
12842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (ac_try="$ac_link"
12846 case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_link") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_try") 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest$ac_exeext'
12869 { (case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_try") 2>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 ac_cv_search_pthread_mutex_lock=$ac_res
12880 echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12886 rm -f core conftest.err conftest.$ac_objext \
12888 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12892 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12895 ac_cv_search_pthread_mutex_lock=no
12897 rm conftest.$ac_ext
12898 LIBS=$ac_func_search_save_LIBS
12900 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12901 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12902 ac_res=$ac_cv_search_pthread_mutex_lock
12903 if test "$ac_res" != no; then
12904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12906 cat >>confdefs.h <<\_ACEOF
12907 #define HAVE_PTHREAD_MUTEX_LOCK 1
12912 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12913 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12914 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_func_search_save_LIBS=$LIBS
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12925 /* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12931 char pthread_rwlock_init ();
12935 return pthread_rwlock_init ();
12940 for ac_lib in '' pthread; do
12941 if test -z "$ac_lib"; then
12942 ac_res="none required"
12945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12947 rm -f conftest.$ac_objext conftest$ac_exeext
12948 if { (ac_try="$ac_link"
12949 case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_link") 2>conftest.er1
12956 grep -v '^ *+' conftest.er1 >conftest.err
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12962 { (case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_try") 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest$ac_exeext'
12972 { (case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_try") 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_search_pthread_rwlock_init=$ac_res
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12989 rm -f core conftest.err conftest.$ac_objext \
12991 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12995 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12998 ac_cv_search_pthread_rwlock_init=no
13000 rm conftest.$ac_ext
13001 LIBS=$ac_func_search_save_LIBS
13003 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13004 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13005 ac_res=$ac_cv_search_pthread_rwlock_init
13006 if test "$ac_res" != no; then
13007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13009 cat >>confdefs.h <<\_ACEOF
13010 #define HAVE_PTHREAD_RWLOCK_INIT 1
13015 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13016 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13017 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 ac_func_search_save_LIBS=$LIBS
13021 cat >conftest.$ac_ext <<_ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h. */
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13034 char pthread_getspecific ();
13038 return pthread_getspecific ();
13043 for ac_lib in '' pthread; do
13044 if test -z "$ac_lib"; then
13045 ac_res="none required"
13048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (ac_try="$ac_link"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_link") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13065 { (case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_try") 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13084 ac_cv_search_pthread_getspecific=$ac_res
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13092 rm -f core conftest.err conftest.$ac_objext \
13094 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13098 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13101 ac_cv_search_pthread_getspecific=no
13103 rm conftest.$ac_ext
13104 LIBS=$ac_func_search_save_LIBS
13106 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13107 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13108 ac_res=$ac_cv_search_pthread_getspecific
13109 if test "$ac_res" != no; then
13110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_PTHREAD_GETSPECIFIC 1
13120 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13122 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13123 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13124 if test "${ac_cv_lib_z_compress2+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_check_lib_save_LIBS=$LIBS
13129 cat >conftest.$ac_ext <<_ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13146 return compress2 ();
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (ac_try="$ac_link"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_try") 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_lib_z_compress2=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ac_cv_lib_z_compress2=no
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13198 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13199 if test $ac_cv_lib_z_compress2 = yes; then
13200 cat >>confdefs.h <<_ACEOF
13201 #define HAVE_LIBZ 1
13211 # Check whether --with-udis86 was given.
13212 if test "${with_udis86+set}" = set; then
13213 withval=$with_udis86;
13218 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13221 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13222 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13223 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-ludis86 $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_udis86_ud_init=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_udis86_ud_init=no
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13297 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13298 if test $ac_cv_lib_udis86_ud_init = yes; then
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBUDIS86 1
13303 LIBS="-ludis86 $LIBS"
13307 echo "Error! You need to have libudis86 around."
13319 cat >>confdefs.h <<_ACEOF
13320 #define USE_UDIS86 $USE_UDIS86
13325 # Check whether --with-oprofile was given.
13326 if test "${with_oprofile+set}" = set; then
13327 withval=$with_oprofile;
13331 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13332 no) llvm_cv_oppath=
13335 *) llvm_cv_oppath="${withval}/lib/oprofile"
13336 CPPFLAGS="-I${withval}/include";;
13338 case $llvm_cv_os_type in
13340 if test -n "$llvm_cv_oppath" ; then
13341 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13342 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13343 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13344 if test "${ac_cv_search_bfd_init+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_func_search_save_LIBS=$LIBS
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13355 /* Override any GCC internal prototype to avoid an error.
13356 Use char because int might match the return type of a GCC
13357 builtin and then its argument prototype would still apply. */
13365 return bfd_init ();
13370 for ac_lib in '' bfd; do
13371 if test -z "$ac_lib"; then
13372 ac_res="none required"
13375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13377 rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_link") 2>conftest.er1
13386 grep -v '^ *+' conftest.er1 >conftest.err
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_try") 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 ac_cv_search_bfd_init=$ac_res
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13419 rm -f core conftest.err conftest.$ac_objext \
13421 if test "${ac_cv_search_bfd_init+set}" = set; then
13425 if test "${ac_cv_search_bfd_init+set}" = set; then
13428 ac_cv_search_bfd_init=no
13430 rm conftest.$ac_ext
13431 LIBS=$ac_func_search_save_LIBS
13433 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13434 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13435 ac_res=$ac_cv_search_bfd_init
13436 if test "$ac_res" != no; then
13437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13441 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13442 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13443 if test "${ac_cv_search_op_open_agent+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 ac_func_search_save_LIBS=$LIBS
13447 cat >conftest.$ac_ext <<_ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13460 char op_open_agent ();
13464 return op_open_agent ();
13469 for ac_lib in '' opagent; do
13470 if test -z "$ac_lib"; then
13471 ac_res="none required"
13474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest$ac_exeext'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_search_op_open_agent=$ac_res
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13518 rm -f core conftest.err conftest.$ac_objext \
13520 if test "${ac_cv_search_op_open_agent+set}" = set; then
13524 if test "${ac_cv_search_op_open_agent+set}" = set; then
13527 ac_cv_search_op_open_agent=no
13529 rm conftest.$ac_ext
13530 LIBS=$ac_func_search_save_LIBS
13532 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13533 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13534 ac_res=$ac_cv_search_op_open_agent
13535 if test "$ac_res" != no; then
13536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13540 echo "Error! You need to have libopagent around."
13545 if test "${ac_cv_header_opagent_h+set}" = set; then
13546 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13547 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13548 if test "${ac_cv_header_opagent_h+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13552 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13554 # Is the header compilable?
13555 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13556 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13564 #include <opagent.h>
13566 rm -f conftest.$ac_objext
13567 if { (ac_try="$ac_compile"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_compile") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_header_compiler=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_compiler=no
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13610 echo "${ECHO_T}$ac_header_compiler" >&6; }
13612 # Is the header present?
13613 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13614 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13615 cat >conftest.$ac_ext <<_ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <opagent.h>
13623 if { (ac_try="$ac_cpp conftest.$ac_ext"
13624 case "(($ac_try" in
13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626 *) ac_try_echo=$ac_try;;
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13631 grep -v '^ *+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null; then
13636 if test -s conftest.err; then
13637 ac_cpp_err=$ac_c_preproc_warn_flag
13638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13645 if test -z "$ac_cpp_err"; then
13646 ac_header_preproc=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_header_preproc=no
13654 rm -f conftest.err conftest.$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13656 echo "${ECHO_T}$ac_header_preproc" >&6; }
13658 # So? What about this header?
13659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13661 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13662 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13664 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13665 ac_header_preproc=yes
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13669 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13671 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13673 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13675 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13677 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13679 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13681 ## ------------------------------------ ##
13682 ## Report this to http://llvm.org/bugs/ ##
13683 ## ------------------------------------ ##
13685 ) | sed "s/^/$as_me: WARNING: /" >&2
13688 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13689 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13690 if test "${ac_cv_header_opagent_h+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 ac_cv_header_opagent_h=$ac_header_preproc
13695 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13696 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13699 if test $ac_cv_header_opagent_h = yes; then
13703 echo "Error! You need to have opagent.h around."
13711 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13712 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13713 { (exit 1); exit 1; }; } ;;
13724 cat >>confdefs.h <<_ACEOF
13725 #define LLVM_USE_OPROFILE $USE_OPROFILE
13730 # Check whether --with-intel-jitevents was given.
13731 if test "${with_intel_jitevents+set}" = set; then
13732 withval=$with_intel_jitevents;
13734 yes) USE_INTEL_JITEVENTS=1
13736 no) USE_INTEL_JITEVENTS=0
13738 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13739 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13740 { (exit 1); exit 1; }; };;
13743 case $llvm_cv_os_type in
13744 Linux|Win32|Cygwin|MingW) ;;
13745 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13746 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13747 { (exit 1); exit 1; }; };;
13750 case "$llvm_cv_target_arch" in
13752 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13753 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13754 { (exit 1); exit 1; }; };;
13759 USE_INTEL_JITEVENTS=0
13765 cat >>confdefs.h <<_ACEOF
13766 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13770 for ac_prog in xml2-config
13772 # Extract the first word of "$ac_prog", so it can be a program name with args.
13773 set dummy $ac_prog; ac_word=$2
13774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13776 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13777 echo $ECHO_N "(cached) $ECHO_C" >&6
13779 if test -n "$XML2CONFIG"; then
13780 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13789 ac_cv_prog_XML2CONFIG="$ac_prog"
13790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13799 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13800 if test -n "$XML2CONFIG"; then
13801 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13802 echo "${ECHO_T}$XML2CONFIG" >&6; }
13804 { echo "$as_me:$LINENO: result: no" >&5
13805 echo "${ECHO_T}no" >&6; }
13809 test -n "$XML2CONFIG" && break
13813 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13814 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13815 if test "x$XML2CONFIG" = "x"; then
13816 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13817 echo "${ECHO_T}xml2-config not found" >&6; }
13819 LIBXML2_INC=`$XML2CONFIG --cflags`
13820 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13821 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13822 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13823 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13824 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lxml2 $LIBS"
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13836 /* Override any GCC internal prototype to avoid an error.
13837 Use char because int might match the return type of a GCC
13838 builtin and then its argument prototype would still apply. */
13842 char xmlReadFile ();
13846 return xmlReadFile ();
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (ac_try="$ac_link"
13853 case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_link") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_try") 2>&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 ac_cv_lib_xml2_xmlReadFile=yes
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_lib_xml2_xmlReadFile=no
13893 rm -f core conftest.err conftest.$ac_objext \
13894 conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13897 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13898 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13899 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define CLANG_HAVE_LIBXML 1
13905 LIBXML2_LIBS="-lxml2"
13918 ac_header_dirent=no
13919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13920 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13921 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13922 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <sys/types.h>
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_compile") 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest.$ac_objext'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
13978 eval "$as_ac_Header=yes"
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 eval "$as_ac_Header=no"
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 ac_res=`eval echo '${'$as_ac_Header'}'`
13989 { echo "$as_me:$LINENO: result: $ac_res" >&5
13990 echo "${ECHO_T}$ac_res" >&6; }
13991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13992 cat >>confdefs.h <<_ACEOF
13993 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13996 ac_header_dirent=$ac_hdr; break
14000 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14001 if test $ac_header_dirent = dirent.h; then
14002 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14003 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14004 if test "${ac_cv_search_opendir+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 ac_func_search_save_LIBS=$LIBS
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14030 for ac_lib in '' dir; do
14031 if test -z "$ac_lib"; then
14032 ac_res="none required"
14035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14037 rm -f conftest.$ac_objext conftest$ac_exeext
14038 if { (ac_try="$ac_link"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_link") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; } &&
14061 { ac_try='test -s conftest$ac_exeext'
14062 { (case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_try") 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_cv_search_opendir=$ac_res
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14079 rm -f core conftest.err conftest.$ac_objext \
14081 if test "${ac_cv_search_opendir+set}" = set; then
14085 if test "${ac_cv_search_opendir+set}" = set; then
14088 ac_cv_search_opendir=no
14090 rm conftest.$ac_ext
14091 LIBS=$ac_func_search_save_LIBS
14093 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14094 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14095 ac_res=$ac_cv_search_opendir
14096 if test "$ac_res" != no; then
14097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14104 if test "${ac_cv_search_opendir+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14107 ac_func_search_save_LIBS=$LIBS
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14130 for ac_lib in '' x; do
14131 if test -z "$ac_lib"; then
14132 ac_res="none required"
14135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_link") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest$ac_exeext'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14171 ac_cv_search_opendir=$ac_res
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14179 rm -f core conftest.err conftest.$ac_objext \
14181 if test "${ac_cv_search_opendir+set}" = set; then
14185 if test "${ac_cv_search_opendir+set}" = set; then
14188 ac_cv_search_opendir=no
14190 rm conftest.$ac_ext
14191 LIBS=$ac_func_search_save_LIBS
14193 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14194 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14195 ac_res=$ac_cv_search_opendir
14196 if test "$ac_res" != no; then
14197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14203 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14204 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14205 if test "${ac_cv_header_mmap_anon+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 ac_cpp='$CPP $CPPFLAGS'
14210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <sys/mman.h>
14221 #include <unistd.h>
14226 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14231 rm -f conftest.$ac_objext
14232 if { (ac_try="$ac_compile"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } &&
14245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (case "(($ac_try" in
14257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_try") 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_cv_header_mmap_anon=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14270 ac_cv_header_mmap_anon=no
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 ac_cpp='$CPP $CPPFLAGS'
14276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14283 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14284 if test "$ac_cv_header_mmap_anon" = yes; then
14286 cat >>confdefs.h <<\_ACEOF
14287 #define HAVE_MMAP_ANONYMOUS 1
14292 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14293 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14294 if test "${ac_cv_header_stat_broken+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14303 #include <sys/types.h>
14304 #include <sys/stat.h>
14306 #if defined S_ISBLK && defined S_IFDIR
14307 # if S_ISBLK (S_IFDIR)
14312 #if defined S_ISBLK && defined S_IFCHR
14313 # if S_ISBLK (S_IFCHR)
14318 #if defined S_ISLNK && defined S_IFREG
14319 # if S_ISLNK (S_IFREG)
14324 #if defined S_ISSOCK && defined S_IFREG
14325 # if S_ISSOCK (S_IFREG)
14331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14332 $EGREP "You lose" >/dev/null 2>&1; then
14333 ac_cv_header_stat_broken=yes
14335 ac_cv_header_stat_broken=no
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14341 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14342 if test $ac_cv_header_stat_broken = yes; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define STAT_MACROS_BROKEN 1
14350 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14351 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 #include <sys/types.h>
14362 #include <sys/wait.h>
14363 #ifndef WEXITSTATUS
14364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14380 rm -f conftest.$ac_objext
14381 if { (ac_try="$ac_compile"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387 (eval "$ac_compile") 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_header_sys_wait_h=yes
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 ac_cv_header_sys_wait_h=no
14422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14425 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14426 if test $ac_cv_header_sys_wait_h = yes; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define HAVE_SYS_WAIT_H 1
14434 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14435 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14436 if test "${ac_cv_header_time+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14446 #include <sys/time.h>
14452 if ((struct tm *) 0)
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest.$ac_objext'
14483 { (case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_try") 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_cv_header_time=yes
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_cv_header_time=no
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14503 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14504 if test $ac_cv_header_time = yes; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define TIME_WITH_SYS_TIME 1
14514 ac_cpp='$CXXCPP $CPPFLAGS'
14515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14520 ac_cpp='$CXXCPP $CPPFLAGS'
14521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14524 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14525 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14526 if test -z "$CXXCPP"; then
14527 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 # Double quotes because CXXCPP needs to be expanded
14531 for CXXCPP in "$CXX -E" "/lib/cpp"
14533 ac_preproc_ok=false
14534 for ac_cxx_preproc_warn_flag in '' yes
14536 # Use a header file that comes with gcc, so configuring glibc
14537 # with a fresh cross-compiler works.
14538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14539 # <limits.h> exists even on freestanding compilers.
14540 # On the NeXT, cc -E runs the code through the compiler's parser,
14541 # not just through cpp. "Syntax error" is here to catch this case.
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 # include <limits.h>
14551 # include <assert.h>
14555 if { (ac_try="$ac_cpp conftest.$ac_ext"
14556 case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } >/dev/null; then
14568 if test -s conftest.err; then
14569 ac_cpp_err=$ac_cxx_preproc_warn_flag
14570 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14577 if test -z "$ac_cpp_err"; then
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 # Broken: fails on valid input.
14587 rm -f conftest.err conftest.$ac_ext
14589 # OK, works on sane cases. Now check whether nonexistent headers
14590 # can be detected and how.
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <ac_nonexistent.h>
14599 if { (ac_try="$ac_cpp conftest.$ac_ext"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } >/dev/null; then
14612 if test -s conftest.err; then
14613 ac_cpp_err=$ac_cxx_preproc_warn_flag
14614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14621 if test -z "$ac_cpp_err"; then
14622 # Broken: success on invalid input.
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 # Passes both tests.
14633 rm -f conftest.err conftest.$ac_ext
14636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14637 rm -f conftest.err conftest.$ac_ext
14638 if $ac_preproc_ok; then
14643 ac_cv_prog_CXXCPP=$CXXCPP
14646 CXXCPP=$ac_cv_prog_CXXCPP
14648 ac_cv_prog_CXXCPP=$CXXCPP
14650 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14651 echo "${ECHO_T}$CXXCPP" >&6; }
14652 ac_preproc_ok=false
14653 for ac_cxx_preproc_warn_flag in '' yes
14655 # Use a header file that comes with gcc, so configuring glibc
14656 # with a fresh cross-compiler works.
14657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14658 # <limits.h> exists even on freestanding compilers.
14659 # On the NeXT, cc -E runs the code through the compiler's parser,
14660 # not just through cpp. "Syntax error" is here to catch this case.
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 # include <limits.h>
14670 # include <assert.h>
14674 if { (ac_try="$ac_cpp conftest.$ac_ext"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14682 grep -v '^ *+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } >/dev/null; then
14687 if test -s conftest.err; then
14688 ac_cpp_err=$ac_cxx_preproc_warn_flag
14689 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14696 if test -z "$ac_cpp_err"; then
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 # Broken: fails on valid input.
14706 rm -f conftest.err conftest.$ac_ext
14708 # OK, works on sane cases. Now check whether nonexistent headers
14709 # can be detected and how.
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <ac_nonexistent.h>
14718 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } >/dev/null; then
14731 if test -s conftest.err; then
14732 ac_cpp_err=$ac_cxx_preproc_warn_flag
14733 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14740 if test -z "$ac_cpp_err"; then
14741 # Broken: success on invalid input.
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 # Passes both tests.
14752 rm -f conftest.err conftest.$ac_ext
14755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14756 rm -f conftest.err conftest.$ac_ext
14757 if $ac_preproc_ok; then
14760 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14761 See \`config.log' for more details." >&5
14762 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14763 See \`config.log' for more details." >&2;}
14764 { (exit 1); exit 1; }; }
14768 ac_cpp='$CXXCPP $CPPFLAGS'
14769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14775 for ac_header in cxxabi.h
14777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 ac_res=`eval echo '${'$as_ac_Header'}'`
14785 { echo "$as_me:$LINENO: result: $ac_res" >&5
14786 echo "${ECHO_T}$ac_res" >&6; }
14788 # Is the header compilable?
14789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 $ac_includes_default
14798 #include <$ac_header>
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_compile") 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_header_compiler=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_header_compiler=no
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14844 echo "${ECHO_T}$ac_header_compiler" >&6; }
14846 # Is the header present?
14847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14849 cat >conftest.$ac_ext <<_ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h. */
14855 #include <$ac_header>
14857 if { (ac_try="$ac_cpp conftest.$ac_ext"
14858 case "(($ac_try" in
14859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860 *) ac_try_echo=$ac_try;;
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14865 grep -v '^ *+' conftest.er1 >conftest.err
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } >/dev/null; then
14870 if test -s conftest.err; then
14871 ac_cpp_err=$ac_cxx_preproc_warn_flag
14872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14879 if test -z "$ac_cpp_err"; then
14880 ac_header_preproc=yes
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ac_header_preproc=no
14888 rm -f conftest.err conftest.$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14890 echo "${ECHO_T}$ac_header_preproc" >&6; }
14892 # So? What about this header?
14893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14899 ac_header_preproc=yes
14902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14915 ## ------------------------------------ ##
14916 ## Report this to http://llvm.org/bugs/ ##
14917 ## ------------------------------------ ##
14919 ) | sed "s/^/$as_me: WARNING: /" >&2
14922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 eval "$as_ac_Header=\$ac_header_preproc"
14929 ac_res=`eval echo '${'$as_ac_Header'}'`
14930 { echo "$as_me:$LINENO: result: $ac_res" >&5
14931 echo "${ECHO_T}$ac_res" >&6; }
14934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14935 cat >>confdefs.h <<_ACEOF
14936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14944 ac_cpp='$CPP $CPPFLAGS'
14945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14954 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 ac_res=`eval echo '${'$as_ac_Header'}'`
14964 { echo "$as_me:$LINENO: result: $ac_res" >&5
14965 echo "${ECHO_T}$ac_res" >&6; }
14967 # Is the header compilable?
14968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14970 cat >conftest.$ac_ext <<_ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h. */
14976 $ac_includes_default
14977 #include <$ac_header>
14979 rm -f conftest.$ac_objext
14980 if { (ac_try="$ac_compile"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_compile") 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14994 { (case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_try") 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_header_compiler=yes
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 ac_header_compiler=no
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15023 echo "${ECHO_T}$ac_header_compiler" >&6; }
15025 # Is the header present?
15026 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #include <$ac_header>
15036 if { (ac_try="$ac_cpp conftest.$ac_ext"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } >/dev/null; then
15049 if test -s conftest.err; then
15050 ac_cpp_err=$ac_c_preproc_warn_flag
15051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15058 if test -z "$ac_cpp_err"; then
15059 ac_header_preproc=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 ac_header_preproc=no
15067 rm -f conftest.err conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 echo "${ECHO_T}$ac_header_preproc" >&6; }
15071 # So? What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15078 ac_header_preproc=yes
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15094 ## ------------------------------------ ##
15095 ## Report this to http://llvm.org/bugs/ ##
15096 ## ------------------------------------ ##
15098 ) | sed "s/^/$as_me: WARNING: /" >&2
15101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 eval "$as_ac_Header=\$ac_header_preproc"
15108 ac_res=`eval echo '${'$as_ac_Header'}'`
15109 { echo "$as_me:$LINENO: result: $ac_res" >&5
15110 echo "${ECHO_T}$ac_res" >&6; }
15113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 ac_res=`eval echo '${'$as_ac_Header'}'`
15138 { echo "$as_me:$LINENO: result: $ac_res" >&5
15139 echo "${ECHO_T}$ac_res" >&6; }
15141 # Is the header compilable?
15142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15150 $ac_includes_default
15151 #include <$ac_header>
15153 rm -f conftest.$ac_objext
15154 if { (ac_try="$ac_compile"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_compile") 2>conftest.er1
15162 grep -v '^ *+' conftest.er1 >conftest.err
15164 cat conftest.err >&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } &&
15167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15168 { (case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_try") 2>&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_try") 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_header_compiler=yes
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 echo "${ECHO_T}$ac_header_compiler" >&6; }
15199 # Is the header present?
15200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <$ac_header>
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } >/dev/null; then
15223 if test -s conftest.err; then
15224 ac_cpp_err=$ac_c_preproc_warn_flag
15225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15232 if test -z "$ac_cpp_err"; then
15233 ac_header_preproc=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_preproc=no
15241 rm -f conftest.err conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15243 echo "${ECHO_T}$ac_header_preproc" >&6; }
15245 # So? What about this header?
15246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15252 ac_header_preproc=yes
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15268 ## ------------------------------------ ##
15269 ## Report this to http://llvm.org/bugs/ ##
15270 ## ------------------------------------ ##
15272 ) | sed "s/^/$as_me: WARNING: /" >&2
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 eval "$as_ac_Header=\$ac_header_preproc"
15282 ac_res=`eval echo '${'$as_ac_Header'}'`
15283 { echo "$as_me:$LINENO: result: $ac_res" >&5
15284 echo "${ECHO_T}$ac_res" >&6; }
15287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15288 cat >>confdefs.h <<_ACEOF
15289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15297 for ac_header in utime.h
15299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 ac_res=`eval echo '${'$as_ac_Header'}'`
15307 { echo "$as_me:$LINENO: result: $ac_res" >&5
15308 echo "${ECHO_T}$ac_res" >&6; }
15310 # Is the header compilable?
15311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 $ac_includes_default
15320 #include <$ac_header>
15322 rm -f conftest.$ac_objext
15323 if { (ac_try="$ac_compile"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_compile") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15337 { (case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_try") 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; } &&
15346 { ac_try='test -s conftest.$ac_objext'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15356 ac_header_compiler=yes
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 ac_header_compiler=no
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15366 echo "${ECHO_T}$ac_header_compiler" >&6; }
15368 # Is the header present?
15369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 #include <$ac_header>
15379 if { (ac_try="$ac_cpp conftest.$ac_ext"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } >/dev/null; then
15392 if test -s conftest.err; then
15393 ac_cpp_err=$ac_c_preproc_warn_flag
15394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401 if test -z "$ac_cpp_err"; then
15402 ac_header_preproc=yes
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_preproc=no
15410 rm -f conftest.err conftest.$ac_ext
15411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15412 echo "${ECHO_T}$ac_header_preproc" >&6; }
15414 # So? What about this header?
15415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15421 ac_header_preproc=yes
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15437 ## ------------------------------------ ##
15438 ## Report this to http://llvm.org/bugs/ ##
15439 ## ------------------------------------ ##
15441 ) | sed "s/^/$as_me: WARNING: /" >&2
15444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 eval "$as_ac_Header=\$ac_header_preproc"
15451 ac_res=`eval echo '${'$as_ac_Header'}'`
15452 { echo "$as_me:$LINENO: result: $ac_res" >&5
15453 echo "${ECHO_T}$ac_res" >&6; }
15456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15483 # Is the header compilable?
15484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 $ac_includes_default
15493 #include <$ac_header>
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_compile") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15510 { (case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_try") 2>&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } &&
15519 { ac_try='test -s conftest.$ac_objext'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_header_compiler=yes
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_header_compiler=no
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15539 echo "${ECHO_T}$ac_header_compiler" >&6; }
15541 # Is the header present?
15542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 #include <$ac_header>
15552 if { (ac_try="$ac_cpp conftest.$ac_ext"
15553 case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15560 grep -v '^ *+' conftest.er1 >conftest.err
15562 cat conftest.err >&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } >/dev/null; then
15565 if test -s conftest.err; then
15566 ac_cpp_err=$ac_c_preproc_warn_flag
15567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15574 if test -z "$ac_cpp_err"; then
15575 ac_header_preproc=yes
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_header_preproc=no
15583 rm -f conftest.err conftest.$ac_ext
15584 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15585 echo "${ECHO_T}$ac_header_preproc" >&6; }
15587 # So? What about this header?
15588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15594 ac_header_preproc=yes
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15610 ## ------------------------------------ ##
15611 ## Report this to http://llvm.org/bugs/ ##
15612 ## ------------------------------------ ##
15614 ) | sed "s/^/$as_me: WARNING: /" >&2
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 eval "$as_ac_Header=\$ac_header_preproc"
15624 ac_res=`eval echo '${'$as_ac_Header'}'`
15625 { echo "$as_me:$LINENO: result: $ac_res" >&5
15626 echo "${ECHO_T}$ac_res" >&6; }
15629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15630 cat >>confdefs.h <<_ACEOF
15631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651 { echo "$as_me:$LINENO: result: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15654 # Is the header compilable?
15655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15657 cat >conftest.$ac_ext <<_ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h. */
15663 $ac_includes_default
15664 #include <$ac_header>
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670 *) ac_try_echo=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_compile") 2>conftest.er1
15675 grep -v '^ *+' conftest.er1 >conftest.err
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_try") 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
15691 { (case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_try") 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_header_compiler=no
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15710 echo "${ECHO_T}$ac_header_compiler" >&6; }
15712 # Is the header present?
15713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 #include <$ac_header>
15723 if { (ac_try="$ac_cpp conftest.$ac_ext"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } >/dev/null; then
15736 if test -s conftest.err; then
15737 ac_cpp_err=$ac_c_preproc_warn_flag
15738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15745 if test -z "$ac_cpp_err"; then
15746 ac_header_preproc=yes
15748 echo "$as_me: failed program was:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 ac_header_preproc=no
15754 rm -f conftest.err conftest.$ac_ext
15755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 echo "${ECHO_T}$ac_header_preproc" >&6; }
15758 # So? What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15765 ac_header_preproc=yes
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15781 ## ------------------------------------ ##
15782 ## Report this to http://llvm.org/bugs/ ##
15783 ## ------------------------------------ ##
15785 ) | sed "s/^/$as_me: WARNING: /" >&2
15788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 eval "$as_ac_Header=\$ac_header_preproc"
15795 ac_res=`eval echo '${'$as_ac_Header'}'`
15796 { echo "$as_me:$LINENO: result: $ac_res" >&5
15797 echo "${ECHO_T}$ac_res" >&6; }
15800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15810 for ac_header in valgrind/valgrind.h
15812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15819 ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821 echo "${ECHO_T}$ac_res" >&6; }
15823 # Is the header compilable?
15824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $ac_includes_default
15833 #include <$ac_header>
15835 rm -f conftest.$ac_objext
15836 if { (ac_try="$ac_compile"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_header_compiler=yes
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_compiler=no
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6; }
15881 # Is the header present?
15882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884 cat >conftest.$ac_ext <<_ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h. */
15890 #include <$ac_header>
15892 if { (ac_try="$ac_cpp conftest.$ac_ext"
15893 case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_preproc=no
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950 ## ------------------------------------ ##
15951 ## Report this to http://llvm.org/bugs/ ##
15952 ## ------------------------------------ ##
15954 ) | sed "s/^/$as_me: WARNING: /" >&2
15957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 eval "$as_ac_Header=\$ac_header_preproc"
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15979 for ac_header in fenv.h
15981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15992 # Is the header compilable?
15993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 $ac_includes_default
16002 #include <$ac_header>
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_compile") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1 >conftest.err
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest.$ac_objext'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_header_compiler=yes
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 ac_header_compiler=no
16046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16048 echo "${ECHO_T}$ac_header_compiler" >&6; }
16050 # Is the header present?
16051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <$ac_header>
16061 if { (ac_try="$ac_cpp conftest.$ac_ext"
16062 case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } >/dev/null; then
16074 if test -s conftest.err; then
16075 ac_cpp_err=$ac_c_preproc_warn_flag
16076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16083 if test -z "$ac_cpp_err"; then
16084 ac_header_preproc=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_header_preproc=no
16092 rm -f conftest.err conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16094 echo "${ECHO_T}$ac_header_preproc" >&6; }
16096 # So? What about this header?
16097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16100 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16103 ac_header_preproc=yes
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16107 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16109 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16111 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16113 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16117 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16119 ## ------------------------------------ ##
16120 ## Report this to http://llvm.org/bugs/ ##
16121 ## ------------------------------------ ##
16123 ) | sed "s/^/$as_me: WARNING: /" >&2
16126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16129 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 eval "$as_ac_Header=\$ac_header_preproc"
16133 ac_res=`eval echo '${'$as_ac_Header'}'`
16134 { echo "$as_me:$LINENO: result: $ac_res" >&5
16135 echo "${ECHO_T}$ac_res" >&6; }
16138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16148 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16149 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16163 #ifndef FE_ALL_EXCEPT
16164 char *p = (char *) FE_ALL_EXCEPT;
16172 rm -f conftest.$ac_objext
16173 if { (ac_try="$ac_compile"
16174 case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16181 grep -v '^ *+' conftest.er1 >conftest.err
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16208 echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_cv_have_decl_FE_ALL_EXCEPT=no
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16217 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16218 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_DECL_FE_ALL_EXCEPT 1
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_DECL_FE_ALL_EXCEPT 0
16232 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16233 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16234 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16249 char *p = (char *) FE_INEXACT;
16257 rm -f conftest.$ac_objext
16258 if { (ac_try="$ac_compile"
16259 case "(($ac_try" in
16260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16264 (eval "$ac_compile") 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest.$ac_objext'
16282 { (case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16287 (eval "$ac_try") 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_have_decl_FE_INEXACT=yes
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_have_decl_FE_INEXACT=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16302 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16303 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define HAVE_DECL_FE_INEXACT 1
16311 cat >>confdefs.h <<_ACEOF
16312 #define HAVE_DECL_FE_INEXACT 0
16319 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16321 for ac_header in pthread.h
16323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328 echo $ECHO_N "(cached) $ECHO_C" >&6
16330 ac_res=`eval echo '${'$as_ac_Header'}'`
16331 { echo "$as_me:$LINENO: result: $ac_res" >&5
16332 echo "${ECHO_T}$ac_res" >&6; }
16334 # Is the header compilable?
16335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16337 cat >conftest.$ac_ext <<_ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 $ac_includes_default
16344 #include <$ac_header>
16346 rm -f conftest.$ac_objext
16347 if { (ac_try="$ac_compile"
16348 case "(($ac_try" in
16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350 *) ac_try_echo=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_compile") 2>conftest.er1
16355 grep -v '^ *+' conftest.er1 >conftest.err
16357 cat conftest.err >&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } &&
16360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16361 { (case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_try") 2>&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; } &&
16370 { ac_try='test -s conftest.$ac_objext'
16371 { (case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_try") 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; }; then
16380 ac_header_compiler=yes
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16385 ac_header_compiler=no
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16390 echo "${ECHO_T}$ac_header_compiler" >&6; }
16392 # Is the header present?
16393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <$ac_header>
16403 if { (ac_try="$ac_cpp conftest.$ac_ext"
16404 case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16411 grep -v '^ *+' conftest.er1 >conftest.err
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } >/dev/null; then
16416 if test -s conftest.err; then
16417 ac_cpp_err=$ac_c_preproc_warn_flag
16418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16425 if test -z "$ac_cpp_err"; then
16426 ac_header_preproc=yes
16428 echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16431 ac_header_preproc=no
16434 rm -f conftest.err conftest.$ac_ext
16435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16436 echo "${ECHO_T}$ac_header_preproc" >&6; }
16438 # So? What about this header?
16439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16445 ac_header_preproc=yes
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16461 ## ------------------------------------ ##
16462 ## Report this to http://llvm.org/bugs/ ##
16463 ## ------------------------------------ ##
16465 ) | sed "s/^/$as_me: WARNING: /" >&2
16468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16471 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 eval "$as_ac_Header=\$ac_header_preproc"
16475 ac_res=`eval echo '${'$as_ac_Header'}'`
16476 { echo "$as_me:$LINENO: result: $ac_res" >&5
16477 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16497 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16499 for ac_header in zlib.h
16501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16508 ac_res=`eval echo '${'$as_ac_Header'}'`
16509 { echo "$as_me:$LINENO: result: $ac_res" >&5
16510 echo "${ECHO_T}$ac_res" >&6; }
16512 # Is the header compilable?
16513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 $ac_includes_default
16522 #include <$ac_header>
16524 rm -f conftest.$ac_objext
16525 if { (ac_try="$ac_compile"
16526 case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_compile") 2>conftest.er1
16533 grep -v '^ *+' conftest.er1 >conftest.err
16535 cat conftest.err >&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
16538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
16549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_header_compiler=yes
16560 echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_header_compiler=no
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16568 echo "${ECHO_T}$ac_header_compiler" >&6; }
16570 # Is the header present?
16571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16573 cat >conftest.$ac_ext <<_ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h. */
16579 #include <$ac_header>
16581 if { (ac_try="$ac_cpp conftest.$ac_ext"
16582 case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } >/dev/null; then
16594 if test -s conftest.err; then
16595 ac_cpp_err=$ac_c_preproc_warn_flag
16596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16603 if test -z "$ac_cpp_err"; then
16604 ac_header_preproc=yes
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16609 ac_header_preproc=no
16612 rm -f conftest.err conftest.$ac_ext
16613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16614 echo "${ECHO_T}$ac_header_preproc" >&6; }
16616 # So? What about this header?
16617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16623 ac_header_preproc=yes
16626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16639 ## ------------------------------------ ##
16640 ## Report this to http://llvm.org/bugs/ ##
16641 ## ------------------------------------ ##
16643 ) | sed "s/^/$as_me: WARNING: /" >&2
16646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16651 eval "$as_ac_Header=\$ac_header_preproc"
16653 ac_res=`eval echo '${'$as_ac_Header'}'`
16654 { echo "$as_me:$LINENO: result: $ac_res" >&5
16655 echo "${ECHO_T}$ac_res" >&6; }
16658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16676 if test "$llvm_cv_enable_libffi" = "yes" ; then
16679 for ac_header in ffi.h ffi/ffi.h
16681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 ac_res=`eval echo '${'$as_ac_Header'}'`
16689 { echo "$as_me:$LINENO: result: $ac_res" >&5
16690 echo "${ECHO_T}$ac_res" >&6; }
16692 # Is the header compilable?
16693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 $ac_includes_default
16702 #include <$ac_header>
16704 rm -f conftest.$ac_objext
16705 if { (ac_try="$ac_compile"
16706 case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_compile") 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } &&
16718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; } &&
16728 { ac_try='test -s conftest.$ac_objext'
16729 { (case "(($ac_try" in
16730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_try") 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738 ac_header_compiler=yes
16740 echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 ac_header_compiler=no
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16748 echo "${ECHO_T}$ac_header_compiler" >&6; }
16750 # Is the header present?
16751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16753 cat >conftest.$ac_ext <<_ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 #include <$ac_header>
16761 if { (ac_try="$ac_cpp conftest.$ac_ext"
16762 case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16769 grep -v '^ *+' conftest.er1 >conftest.err
16771 cat conftest.err >&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } >/dev/null; then
16774 if test -s conftest.err; then
16775 ac_cpp_err=$ac_c_preproc_warn_flag
16776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16783 if test -z "$ac_cpp_err"; then
16784 ac_header_preproc=yes
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ac_header_preproc=no
16792 rm -f conftest.err conftest.$ac_ext
16793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796 # So? What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803 ac_header_preproc=yes
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16819 ## ------------------------------------ ##
16820 ## Report this to http://llvm.org/bugs/ ##
16821 ## ------------------------------------ ##
16823 ) | sed "s/^/$as_me: WARNING: /" >&2
16826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 eval "$as_ac_Header=\$ac_header_preproc"
16833 ac_res=`eval echo '${'$as_ac_Header'}'`
16834 { echo "$as_me:$LINENO: result: $ac_res" >&5
16835 echo "${ECHO_T}$ac_res" >&6; }
16838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16839 cat >>confdefs.h <<_ACEOF
16840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 for ac_header in CrashReporterClient.h
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860 { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16863 # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16873 #include <$ac_header>
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_compile") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } &&
16889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; }; then
16909 ac_header_compiler=yes
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_header_compiler=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 #include <$ac_header>
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } >/dev/null; then
16945 if test -s conftest.err; then
16946 ac_cpp_err=$ac_c_preproc_warn_flag
16947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16954 if test -z "$ac_cpp_err"; then
16955 ac_header_preproc=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 ac_header_preproc=no
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16967 # So? What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974 ac_header_preproc=yes
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16990 ## ------------------------------------ ##
16991 ## Report this to http://llvm.org/bugs/ ##
16992 ## ------------------------------------ ##
16994 ) | sed "s/^/$as_me: WARNING: /" >&2
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17002 eval "$as_ac_Header=\$ac_header_preproc"
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005 { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010 cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17019 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17020 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17021 cat >conftest.$ac_ext <<_ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17029 extern const char *__crashreporter_info__;
17031 __crashreporter_info__ = "test";
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_try") 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17072 { echo "$as_me:$LINENO: result: yes" >&5
17073 echo "${ECHO_T}yes" >&6; }
17075 cat >>confdefs.h <<\_ACEOF
17076 #define HAVE_CRASHREPORTER_INFO 1
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17085 { echo "$as_me:$LINENO: result: no" >&5
17086 echo "${ECHO_T}no" >&6; }
17088 cat >>confdefs.h <<\_ACEOF
17089 #define HAVE_CRASHREPORTER_INFO 0
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17100 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17101 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17102 if test "${ac_cv_huge_val_sanity+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 ac_cpp='$CXXCPP $CPPFLAGS'
17108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17112 ac_save_CXXFLAGS=$CXXFLAGS
17113 CXXFLAGS="$CXXFLAGS -pedantic"
17114 if test "$cross_compiling" = yes; then
17115 ac_cv_huge_val_sanity=yes
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17127 double x = HUGE_VAL; return x != x;
17132 rm -f conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17143 { (case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_try") 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_cv_huge_val_sanity=yes
17154 echo "$as_me: program exited with status $ac_status" >&5
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ( exit $ac_status )
17159 ac_cv_huge_val_sanity=no
17161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17165 CXXFLAGS=$ac_save_CXXFLAGS
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17174 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17175 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17176 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17179 { echo "$as_me:$LINENO: checking for pid_t" >&5
17180 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17181 if test "${ac_cv_type_pid_t+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 typedef pid_t ac__type_new_;
17195 if ((ac__type_new_ *) 0)
17197 if (sizeof (ac__type_new_))
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_compile") 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_type_pid_t=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_type_pid_t=no
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17247 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17249 if test $ac_cv_type_pid_t = yes; then
17253 cat >>confdefs.h <<_ACEOF
17259 { echo "$as_me:$LINENO: checking for size_t" >&5
17260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17261 if test "${ac_cv_type_size_t+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 cat >conftest.$ac_ext <<_ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 $ac_includes_default
17271 typedef size_t ac__type_new_;
17275 if ((ac__type_new_ *) 0)
17277 if (sizeof (ac__type_new_))
17283 rm -f conftest.$ac_objext
17284 if { (ac_try="$ac_compile"
17285 case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_compile") 2>conftest.er1
17292 grep -v '^ *+' conftest.er1 >conftest.err
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17298 { (case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_try") 2>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest.$ac_objext'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_type_size_t=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ac_cv_type_size_t=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17328 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17329 if test $ac_cv_type_size_t = yes; then
17333 cat >>confdefs.h <<_ACEOF
17334 #define size_t unsigned int
17340 cat >>confdefs.h <<_ACEOF
17341 #define RETSIGTYPE void
17344 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17345 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17346 if test "${ac_cv_struct_tm+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17355 #include <sys/types.h>
17361 struct tm *tp; tp->tm_sec;
17366 rm -f conftest.$ac_objext
17367 if { (ac_try="$ac_compile"
17368 case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_compile") 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest.$ac_objext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_cv_struct_tm=time.h
17402 echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17405 ac_cv_struct_tm=sys/time.h
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17411 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17412 if test $ac_cv_struct_tm = sys/time.h; then
17414 cat >>confdefs.h <<\_ACEOF
17415 #define TM_IN_SYS_TIME 1
17420 { echo "$as_me:$LINENO: checking for int64_t" >&5
17421 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17422 if test "${ac_cv_type_int64_t+set}" = set; then
17423 echo $ECHO_N "(cached) $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17431 $ac_includes_default
17432 typedef int64_t ac__type_new_;
17436 if ((ac__type_new_ *) 0)
17438 if (sizeof (ac__type_new_))
17444 rm -f conftest.$ac_objext
17445 if { (ac_try="$ac_compile"
17446 case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_compile") 2>conftest.er1
17453 grep -v '^ *+' conftest.er1 >conftest.err
17455 cat conftest.err >&5
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest.$ac_objext'
17469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478 ac_cv_type_int64_t=yes
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 ac_cv_type_int64_t=no
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17489 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17490 if test $ac_cv_type_int64_t = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_INT64_T 1
17498 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17499 echo "$as_me: error: Type int64_t required but not found" >&2;}
17500 { (exit 1); exit 1; }; }
17503 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17504 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17505 if test "${ac_cv_type_uint64_t+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 $ac_includes_default
17515 typedef uint64_t ac__type_new_;
17519 if ((ac__type_new_ *) 0)
17521 if (sizeof (ac__type_new_))
17527 rm -f conftest.$ac_objext
17528 if { (ac_try="$ac_compile"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_compile") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest.$ac_objext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_type_uint64_t=yes
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ac_cv_type_uint64_t=no
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17572 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17573 if test $ac_cv_type_uint64_t = yes; then
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_UINT64_T 1
17581 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17582 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17583 if test "${ac_cv_type_u_int64_t+set}" = set; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 $ac_includes_default
17593 typedef u_int64_t ac__type_new_;
17597 if ((ac__type_new_ *) 0)
17599 if (sizeof (ac__type_new_))
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_compile") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17620 { (case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_try") 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; } &&
17629 { ac_try='test -s conftest.$ac_objext'
17630 { (case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_try") 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_type_u_int64_t=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_type_u_int64_t=no
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17650 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17651 if test $ac_cv_type_u_int64_t = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define HAVE_U_INT64_T 1
17659 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17660 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17661 { (exit 1); exit 1; }; }
17675 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17691 #define $ac_func innocuous_$ac_func
17693 /* System header to define __stub macros and hopefully few prototypes,
17694 which can conflict with char $ac_func (); below.
17695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17696 <limits.h> exists even on freestanding compilers. */
17699 # include <limits.h>
17701 # include <assert.h>
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17713 /* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716 #if defined __stub_$ac_func || defined __stub___$ac_func
17723 return $ac_func ();
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest$ac_exeext'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 eval "$as_ac_var=yes"
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 eval "$as_ac_var=no"
17770 rm -f core conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17773 ac_res=`eval echo '${'$as_ac_var'}'`
17774 { echo "$as_me:$LINENO: result: $ac_res" >&5
17775 echo "${ECHO_T}$ac_res" >&6; }
17776 if test `eval echo '${'$as_ac_var'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788 for ac_func in powf fmodf strtof round
17790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17804 #define $ac_func innocuous_$ac_func
17806 /* System header to define __stub macros and hopefully few prototypes,
17807 which can conflict with char $ac_func (); below.
17808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17809 <limits.h> exists even on freestanding compilers. */
17812 # include <limits.h>
17814 # include <assert.h>
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17826 /* The GNU C library defines this for functions which it implements
17827 to always fail with ENOSYS. Some functions are actually named
17828 something starting with __ and the normal name is an alias. */
17829 #if defined __stub_$ac_func || defined __stub___$ac_func
17836 return $ac_func ();
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 eval "$as_ac_var=no"
17883 rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17886 ac_res=`eval echo '${'$as_ac_var'}'`
17887 { echo "$as_me:$LINENO: result: $ac_res" >&5
17888 echo "${ECHO_T}$ac_res" >&6; }
17889 if test `eval echo '${'$as_ac_var'}'` = yes; then
17890 cat >>confdefs.h <<_ACEOF
17891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17902 for ac_func in log log2 log10 exp exp2
17904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918 #define $ac_func innocuous_$ac_func
17920 /* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char $ac_func (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17926 # include <limits.h>
17928 # include <assert.h>
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined __stub_$ac_func || defined __stub___$ac_func
17950 return $ac_func ();
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17964 grep -v '^ *+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17970 { (case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17975 (eval "$ac_try") 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_try") 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 eval "$as_ac_var=yes"
17991 echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17994 eval "$as_ac_var=no"
17997 rm -f core conftest.err conftest.$ac_objext \
17998 conftest$ac_exeext conftest.$ac_ext
18000 ac_res=`eval echo '${'$as_ac_var'}'`
18001 { echo "$as_me:$LINENO: result: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18003 if test `eval echo '${'$as_ac_var'}'` = yes; then
18004 cat >>confdefs.h <<_ACEOF
18005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18016 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define $ac_func innocuous_$ac_func
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18040 # include <limits.h>
18042 # include <assert.h>
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18064 return $ac_func ();
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } &&
18083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18084 { (case "(($ac_try" in
18085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18086 *) ac_try_echo=$ac_try;;
18088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18089 (eval "$ac_try") 2>&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); }; } &&
18093 { ac_try='test -s conftest$ac_exeext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 eval "$as_ac_var=yes"
18105 echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 eval "$as_ac_var=no"
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18114 ac_res=`eval echo '${'$as_ac_var'}'`
18115 { echo "$as_me:$LINENO: result: $ac_res" >&5
18116 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18128 for ac_func in isatty mkdtemp mkstemp
18130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18144 #define $ac_func innocuous_$ac_func
18146 /* System header to define __stub macros and hopefully few prototypes,
18147 which can conflict with char $ac_func (); below.
18148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18149 <limits.h> exists even on freestanding compilers. */
18152 # include <limits.h>
18154 # include <assert.h>
18159 /* Override any GCC internal prototype to avoid an error.
18160 Use char because int might match the return type of a GCC
18161 builtin and then its argument prototype would still apply. */
18166 /* The GNU C library defines this for functions which it implements
18167 to always fail with ENOSYS. Some functions are actually named
18168 something starting with __ and the normal name is an alias. */
18169 #if defined __stub_$ac_func || defined __stub___$ac_func
18176 return $ac_func ();
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (ac_try="$ac_link"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_link") 2>conftest.er1
18190 grep -v '^ *+' conftest.er1 >conftest.err
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
18195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18196 { (case "(($ac_try" in
18197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198 *) ac_try_echo=$ac_try;;
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_try") 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (case "(($ac_try" in
18207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18208 *) ac_try_echo=$ac_try;;
18210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18211 (eval "$ac_try") 2>&5
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; }; then
18215 eval "$as_ac_var=yes"
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 eval "$as_ac_var=no"
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18226 ac_res=`eval echo '${'$as_ac_var'}'`
18227 { echo "$as_me:$LINENO: result: $ac_res" >&5
18228 echo "${ECHO_T}$ac_res" >&6; }
18229 if test `eval echo '${'$as_ac_var'}'` = yes; then
18230 cat >>confdefs.h <<_ACEOF
18231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18243 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18259 #define $ac_func innocuous_$ac_func
18261 /* System header to define __stub macros and hopefully few prototypes,
18262 which can conflict with char $ac_func (); below.
18263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18264 <limits.h> exists even on freestanding compilers. */
18267 # include <limits.h>
18269 # include <assert.h>
18274 /* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18281 /* The GNU C library defines this for functions which it implements
18282 to always fail with ENOSYS. Some functions are actually named
18283 something starting with __ and the normal name is an alias. */
18284 #if defined __stub_$ac_func || defined __stub___$ac_func
18291 return $ac_func ();
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18311 { (case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_try") 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest$ac_exeext'
18321 { (case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_try") 2>&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); }; }; then
18330 eval "$as_ac_var=yes"
18332 echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 eval "$as_ac_var=no"
18338 rm -f core conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
18341 ac_res=`eval echo '${'$as_ac_var'}'`
18342 { echo "$as_me:$LINENO: result: $ac_res" >&5
18343 echo "${ECHO_T}$ac_res" >&6; }
18344 if test `eval echo '${'$as_ac_var'}'` = yes; then
18345 cat >>confdefs.h <<_ACEOF
18346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18356 for ac_func in strerror strerror_r setenv arc4random
18358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18362 echo $ECHO_N "(cached) $ECHO_C" >&6
18364 cat >conftest.$ac_ext <<_ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18372 #define $ac_func innocuous_$ac_func
18374 /* System header to define __stub macros and hopefully few prototypes,
18375 which can conflict with char $ac_func (); below.
18376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18377 <limits.h> exists even on freestanding compilers. */
18380 # include <limits.h>
18382 # include <assert.h>
18387 /* Override any GCC internal prototype to avoid an error.
18388 Use char because int might match the return type of a GCC
18389 builtin and then its argument prototype would still apply. */
18394 /* The GNU C library defines this for functions which it implements
18395 to always fail with ENOSYS. Some functions are actually named
18396 something starting with __ and the normal name is an alias. */
18397 #if defined __stub_$ac_func || defined __stub___$ac_func
18404 return $ac_func ();
18409 rm -f conftest.$ac_objext conftest$ac_exeext
18410 if { (ac_try="$ac_link"
18411 case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_link") 2>conftest.er1
18418 grep -v '^ *+' conftest.er1 >conftest.err
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18424 { (case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_try") 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; } &&
18433 { ac_try='test -s conftest$ac_exeext'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; }; then
18443 eval "$as_ac_var=yes"
18445 echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 eval "$as_ac_var=no"
18451 rm -f core conftest.err conftest.$ac_objext \
18452 conftest$ac_exeext conftest.$ac_ext
18454 ac_res=`eval echo '${'$as_ac_var'}'`
18455 { echo "$as_me:$LINENO: result: $ac_res" >&5
18456 echo "${ECHO_T}$ac_res" >&6; }
18457 if test `eval echo '${'$as_ac_var'}'` = yes; then
18458 cat >>confdefs.h <<_ACEOF
18459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18469 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18485 #define $ac_func innocuous_$ac_func
18487 /* System header to define __stub macros and hopefully few prototypes,
18488 which can conflict with char $ac_func (); below.
18489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18490 <limits.h> exists even on freestanding compilers. */
18493 # include <limits.h>
18495 # include <assert.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. */
18507 /* The GNU C library defines this for functions which it implements
18508 to always fail with ENOSYS. Some functions are actually named
18509 something starting with __ and the normal name is an alias. */
18510 #if defined __stub_$ac_func || defined __stub___$ac_func
18517 return $ac_func ();
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 eval "$as_ac_var=yes"
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 eval "$as_ac_var=no"
18564 rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18567 ac_res=`eval echo '${'$as_ac_var'}'`
18568 { echo "$as_me:$LINENO: result: $ac_res" >&5
18569 echo "${ECHO_T}$ac_res" >&6; }
18570 if test `eval echo '${'$as_ac_var'}'` = yes; then
18571 cat >>confdefs.h <<_ACEOF
18572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18583 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18599 #define $ac_func innocuous_$ac_func
18601 /* System header to define __stub macros and hopefully few prototypes,
18602 which can conflict with char $ac_func (); below.
18603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 <limits.h> exists even on freestanding compilers. */
18607 # include <limits.h>
18609 # include <assert.h>
18614 /* Override any GCC internal prototype to avoid an error.
18615 Use char because int might match the return type of a GCC
18616 builtin and then its argument prototype would still apply. */
18621 /* The GNU C library defines this for functions which it implements
18622 to always fail with ENOSYS. Some functions are actually named
18623 something starting with __ and the normal name is an alias. */
18624 #if defined __stub_$ac_func || defined __stub___$ac_func
18631 return $ac_func ();
18636 rm -f conftest.$ac_objext conftest$ac_exeext
18637 if { (ac_try="$ac_link"
18638 case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_link") 2>conftest.er1
18645 grep -v '^ *+' conftest.er1 >conftest.err
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18651 { (case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_try") 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest$ac_exeext'
18661 { (case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_try") 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 eval "$as_ac_var=yes"
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18675 eval "$as_ac_var=no"
18678 rm -f core conftest.err conftest.$ac_objext \
18679 conftest$ac_exeext conftest.$ac_ext
18681 ac_res=`eval echo '${'$as_ac_var'}'`
18682 { echo "$as_me:$LINENO: result: $ac_res" >&5
18683 echo "${ECHO_T}$ac_res" >&6; }
18684 if test `eval echo '${'$as_ac_var'}'` = yes; then
18685 cat >>confdefs.h <<_ACEOF
18686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18694 for ac_func in futimes futimens
18696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18700 echo $ECHO_N "(cached) $ECHO_C" >&6
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18710 #define $ac_func innocuous_$ac_func
18712 /* System header to define __stub macros and hopefully few prototypes,
18713 which can conflict with char $ac_func (); below.
18714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18715 <limits.h> exists even on freestanding compilers. */
18718 # include <limits.h>
18720 # include <assert.h>
18725 /* Override any GCC internal prototype to avoid an error.
18726 Use char because int might match the return type of a GCC
18727 builtin and then its argument prototype would still apply. */
18732 /* The GNU C library defines this for functions which it implements
18733 to always fail with ENOSYS. Some functions are actually named
18734 something starting with __ and the normal name is an alias. */
18735 #if defined __stub_$ac_func || defined __stub___$ac_func
18742 return $ac_func ();
18747 rm -f conftest.$ac_objext conftest$ac_exeext
18748 if { (ac_try="$ac_link"
18749 case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_link") 2>conftest.er1
18756 grep -v '^ *+' conftest.er1 >conftest.err
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_try") 2>&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest$ac_exeext'
18772 { (case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_try") 2>&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
18781 eval "$as_ac_var=yes"
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 eval "$as_ac_var=no"
18789 rm -f core conftest.err conftest.$ac_objext \
18790 conftest$ac_exeext conftest.$ac_ext
18792 ac_res=`eval echo '${'$as_ac_var'}'`
18793 { echo "$as_me:$LINENO: result: $ac_res" >&5
18794 echo "${ECHO_T}$ac_res" >&6; }
18795 if test `eval echo '${'$as_ac_var'}'` = yes; then
18796 cat >>confdefs.h <<_ACEOF
18797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18803 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18804 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18805 if test "${llvm_cv_c_printf_a+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814 if test "$cross_compiling" = yes; then
18815 llvmac_cv_c_printf_a=no
18817 cat >conftest.$ac_ext <<_ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18826 #include <stdlib.h>
18832 volatile double A, B;
18836 sprintf(Buffer, "%a", A);
18840 if (A != 0x1.999999999999ap-4)
18847 rm -f conftest$ac_exeext
18848 if { (ac_try="$ac_link"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_link") 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 llvm_cv_c_printf_a=yes
18869 echo "$as_me: program exited with status $ac_status" >&5
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ( exit $ac_status )
18874 llvmac_cv_c_printf_a=no
18876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18881 ac_cpp='$CPP $CPPFLAGS'
18882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18887 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18888 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18889 if test "$llvm_cv_c_printf_a" = "yes"; then
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_PRINTF_A 1
18899 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18900 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18901 if test "${ac_cv_func_rand48+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18906 ac_cpp='$CXXCPP $CPPFLAGS'
18907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18911 cat >conftest.$ac_ext <<_ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h. */
18917 #include <stdlib.h>
18921 srand48(0);lrand48();drand48();
18926 rm -f conftest.$ac_objext
18927 if { (ac_try="$ac_compile"
18928 case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_compile") 2>conftest.er1
18935 grep -v '^ *+' conftest.er1 >conftest.err
18937 cat conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } &&
18940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18941 { (case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_try") 2>&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } &&
18950 { ac_try='test -s conftest.$ac_objext'
18951 { (case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956 (eval "$ac_try") 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_cv_func_rand48=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18965 ac_cv_func_rand48=no
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 ac_cpp='$CPP $CPPFLAGS'
18971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18977 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18978 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18980 if test "$ac_cv_func_rand48" = "yes" ; then
18982 cat >>confdefs.h <<\_ACEOF
18983 #define HAVE_RAND48 1
18989 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18990 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18991 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19000 $ac_includes_default
19005 char *p = (char *) strerror_s;
19013 rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; }; then
19047 ac_cv_have_decl_strerror_s=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_cv_have_decl_strerror_s=no
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19058 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19059 if test $ac_cv_have_decl_strerror_s = yes; then
19061 cat >>confdefs.h <<_ACEOF
19062 #define HAVE_DECL_STRERROR_S 1
19067 cat >>confdefs.h <<_ACEOF
19068 #define HAVE_DECL_STRERROR_S 0
19076 if test "$llvm_cv_os_type" = "MingW" ; then
19077 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19078 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19079 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 ac_check_lib_save_LIBS=$LIBS
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_link") 2>conftest.er1
19115 grep -v '^ *+' conftest.er1 >conftest.err
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19121 { (case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_try") 2>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest$ac_exeext'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_cv_lib_gcc__alloca=yes
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_lib_gcc__alloca=no
19148 rm -f core conftest.err conftest.$ac_objext \
19149 conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19152 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19153 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19154 if test $ac_cv_lib_gcc__alloca = yes; then
19156 cat >>confdefs.h <<\_ACEOF
19157 #define HAVE__ALLOCA 1
19162 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19163 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19164 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19167 ac_check_lib_save_LIBS=$LIBS
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19176 /* Override any GCC internal prototype to avoid an error.
19177 Use char because int might match the return type of a GCC
19178 builtin and then its argument prototype would still apply. */
19186 return __alloca ();
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_link") 2>conftest.er1
19200 grep -v '^ *+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19206 { (case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_try") 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_try") 2>&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_cv_lib_gcc___alloca=yes
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_cv_lib_gcc___alloca=no
19233 rm -f core conftest.err conftest.$ac_objext \
19234 conftest$ac_exeext conftest.$ac_ext
19235 LIBS=$ac_check_lib_save_LIBS
19237 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19238 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19239 if test $ac_cv_lib_gcc___alloca = yes; then
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE___ALLOCA 1
19247 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19248 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 ac_check_lib_save_LIBS=$LIBS
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19271 return __chkstk ();
19276 rm -f conftest.$ac_objext conftest$ac_exeext
19277 if { (ac_try="$ac_link"
19278 case "(($ac_try" in
19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19280 *) ac_try_echo=$ac_try;;
19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19283 (eval "$ac_link") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1 >conftest.err
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19291 { (case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_try") 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest$ac_exeext'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 ac_cv_lib_gcc___chkstk=yes
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19315 ac_cv_lib_gcc___chkstk=no
19318 rm -f core conftest.err conftest.$ac_objext \
19319 conftest$ac_exeext conftest.$ac_ext
19320 LIBS=$ac_check_lib_save_LIBS
19322 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19323 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19324 if test $ac_cv_lib_gcc___chkstk = yes; then
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE___CHKSTK 1
19332 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19333 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19356 return ___chkstk ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
19375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19376 { (case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_try") 2>&5
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest$ac_exeext'
19386 { (case "(($ac_try" in
19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19388 *) ac_try_echo=$ac_try;;
19390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19391 (eval "$ac_try") 2>&5
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_cv_lib_gcc____chkstk=yes
19397 echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_lib_gcc____chkstk=no
19403 rm -f core conftest.err conftest.$ac_objext \
19404 conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19407 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19408 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19409 if test $ac_cv_lib_gcc____chkstk = yes; then
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE____CHKSTK 1
19418 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19419 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19423 ac_check_lib_save_LIBS=$LIBS
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19442 return __ashldi3 ();
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19462 { (case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_try") 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest$ac_exeext'
19472 { (case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_try") 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_gcc___ashldi3=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_gcc___ashldi3=no
19489 rm -f core conftest.err conftest.$ac_objext \
19490 conftest$ac_exeext conftest.$ac_ext
19491 LIBS=$ac_check_lib_save_LIBS
19493 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19494 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19495 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE___ASHLDI3 1
19503 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19504 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19505 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_check_lib_save_LIBS=$LIBS
19510 cat >conftest.$ac_ext <<_ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19527 return __ashrdi3 ();
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_link") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19547 { (case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_try") 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest$ac_exeext'
19557 { (case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_try") 2>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_cv_lib_gcc___ashrdi3=yes
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_lib_gcc___ashrdi3=no
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19579 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19580 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE___ASHRDI3 1
19588 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19589 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 ac_check_lib_save_LIBS=$LIBS
19595 cat >conftest.$ac_ext <<_ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19602 /* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19612 return __divdi3 ();
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_link") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1 >conftest.err
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } &&
19631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_try") 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; } &&
19641 { ac_try='test -s conftest$ac_exeext'
19642 { (case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_try") 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_gcc___divdi3=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19656 ac_cv_lib_gcc___divdi3=no
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19661 LIBS=$ac_check_lib_save_LIBS
19663 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19664 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19665 if test $ac_cv_lib_gcc___divdi3 = yes; then
19667 cat >>confdefs.h <<\_ACEOF
19668 #define HAVE___DIVDI3 1
19673 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19674 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19675 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 ac_check_lib_save_LIBS=$LIBS
19680 cat >conftest.$ac_ext <<_ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h. */
19687 /* Override any GCC internal prototype to avoid an error.
19688 Use char because int might match the return type of a GCC
19689 builtin and then its argument prototype would still apply. */
19697 return __fixdfdi ();
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest$ac_exeext'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_lib_gcc___fixdfdi=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gcc___fixdfdi=no
19744 rm -f core conftest.err conftest.$ac_objext \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19750 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19752 cat >>confdefs.h <<\_ACEOF
19753 #define HAVE___FIXDFDI 1
19758 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19759 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19760 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_check_lib_save_LIBS=$LIBS
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19782 return __fixsfdi ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } &&
19801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19802 { (case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_try") 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_try") 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_lib_gcc___fixsfdi=yes
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19826 ac_cv_lib_gcc___fixsfdi=no
19829 rm -f core conftest.err conftest.$ac_objext \
19830 conftest$ac_exeext conftest.$ac_ext
19831 LIBS=$ac_check_lib_save_LIBS
19833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19834 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19835 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE___FIXSFDI 1
19843 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19844 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19845 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 ac_check_lib_save_LIBS=$LIBS
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19863 char __floatdidf ();
19867 return __floatdidf ();
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19881 grep -v '^ *+' conftest.er1 >conftest.err
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_lib_gcc___floatdidf=yes
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19911 ac_cv_lib_gcc___floatdidf=no
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 LIBS=$ac_check_lib_save_LIBS
19918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19919 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19920 if test $ac_cv_lib_gcc___floatdidf = yes; then
19922 cat >>confdefs.h <<\_ACEOF
19923 #define HAVE___FLOATDIDF 1
19928 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19929 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19930 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19933 ac_check_lib_save_LIBS=$LIBS
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19942 /* Override any GCC internal prototype to avoid an error.
19943 Use char because int might match the return type of a GCC
19944 builtin and then its argument prototype would still apply. */
19952 return __lshrdi3 ();
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19972 { (case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_try") 2>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest$ac_exeext'
19982 { (case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_try") 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_cv_lib_gcc___lshrdi3=yes
19993 echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19996 ac_cv_lib_gcc___lshrdi3=no
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001 LIBS=$ac_check_lib_save_LIBS
20003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20004 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20005 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20007 cat >>confdefs.h <<\_ACEOF
20008 #define HAVE___LSHRDI3 1
20013 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20014 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20015 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 ac_check_lib_save_LIBS=$LIBS
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20027 /* Override any GCC internal prototype to avoid an error.
20028 Use char because int might match the return type of a GCC
20029 builtin and then its argument prototype would still apply. */
20037 return __moddi3 ();
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (ac_try="$ac_link"
20044 case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_link") 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); } &&
20056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20057 { (case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_try") 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest$ac_exeext'
20067 { (case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_try") 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; }; then
20076 ac_cv_lib_gcc___moddi3=yes
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20081 ac_cv_lib_gcc___moddi3=no
20084 rm -f core conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20086 LIBS=$ac_check_lib_save_LIBS
20088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20089 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20090 if test $ac_cv_lib_gcc___moddi3 = yes; then
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE___MODDI3 1
20098 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20099 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 ac_check_lib_save_LIBS=$LIBS
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20122 return __udivdi3 ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
20141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20142 { (case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_try") 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try='test -s conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_try") 2>&5
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; }; then
20161 ac_cv_lib_gcc___udivdi3=yes
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_lib_gcc___udivdi3=no
20169 rm -f core conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20174 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20175 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20177 cat >>confdefs.h <<\_ACEOF
20178 #define HAVE___UDIVDI3 1
20183 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20184 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 ac_check_lib_save_LIBS=$LIBS
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20197 /* Override any GCC internal prototype to avoid an error.
20198 Use char because int might match the return type of a GCC
20199 builtin and then its argument prototype would still apply. */
20207 return __umoddi3 ();
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; } &&
20236 { ac_try='test -s conftest$ac_exeext'
20237 { (case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_try") 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_lib_gcc___umoddi3=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_lib_gcc___umoddi3=no
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20259 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20260 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE___UMODDI3 1
20269 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20270 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20271 if test "${ac_cv_lib_gcc___main+set}" = set; then
20272 echo $ECHO_N "(cached) $ECHO_C" >&6
20274 ac_check_lib_save_LIBS=$LIBS
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20283 /* Override any GCC internal prototype to avoid an error.
20284 Use char because int might match the return type of a GCC
20285 builtin and then its argument prototype would still apply. */
20298 rm -f conftest.$ac_objext conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302 *) ac_try_echo=$ac_try;;
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305 (eval "$ac_link") 2>conftest.er1
20307 grep -v '^ *+' conftest.er1 >conftest.err
20309 cat conftest.err >&5
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); } &&
20312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20313 { (case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_try") 2>&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); }; } &&
20322 { ac_try='test -s conftest$ac_exeext'
20323 { (case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_try") 2>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; }; then
20332 ac_cv_lib_gcc___main=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_lib_gcc___main=no
20340 rm -f core conftest.err conftest.$ac_objext \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20345 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20346 if test $ac_cv_lib_gcc___main = yes; then
20348 cat >>confdefs.h <<\_ACEOF
20349 #define HAVE___MAIN 1
20354 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20355 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20356 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 ac_check_lib_save_LIBS=$LIBS
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20368 /* Override any GCC internal prototype to avoid an error.
20369 Use char because int might match the return type of a GCC
20370 builtin and then its argument prototype would still apply. */
20378 return __cmpdi2 ();
20383 rm -f conftest.$ac_objext conftest$ac_exeext
20384 if { (ac_try="$ac_link"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_link") 2>conftest.er1
20392 grep -v '^ *+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest$ac_exeext'
20408 { (case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413 (eval "$ac_try") 2>&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_lib_gcc___cmpdi2=yes
20419 echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20422 ac_cv_lib_gcc___cmpdi2=no
20425 rm -f core conftest.err conftest.$ac_objext \
20426 conftest$ac_exeext conftest.$ac_ext
20427 LIBS=$ac_check_lib_save_LIBS
20429 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20430 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20431 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE___CMPDI2 1
20441 if test "$llvm_cv_os_type" = "MingW" ; then
20442 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20443 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20444 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 #include <windows.h>
20453 #include <imagehlp.h>
20454 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20455 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest.$ac_objext'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20494 { echo "$as_me:$LINENO: result: yes" >&5
20495 echo "${ECHO_T}yes" >&6; }
20496 llvm_cv_win32_elmcb_pcstr="PCSTR"
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20503 { echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6; }
20505 llvm_cv_win32_elmcb_pcstr="PSTR"
20509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 cat >>confdefs.h <<_ACEOF
20512 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20519 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20520 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20521 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20522 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 ac_cpp='$CXXCPP $CPPFLAGS'
20527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20546 rm -f conftest.$ac_objext
20547 if { (ac_try="$ac_compile"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_compile") 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20561 { (case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_try") 2>&5
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest.$ac_objext'
20571 { (case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20576 (eval "$ac_try") 2>&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_cv_func_isnan_in_math_h=yes
20582 echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20585 ac_cv_func_isnan_in_math_h=no
20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 ac_cpp='$CPP $CPPFLAGS'
20591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20598 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20601 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE_ISNAN_IN_MATH_H 1
20610 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20611 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20612 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20617 ac_cpp='$CXXCPP $CPPFLAGS'
20618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest.$ac_objext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_func_isnan_in_cmath=yes
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_cv_func_isnan_in_cmath=no
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20681 ac_cpp='$CPP $CPPFLAGS'
20682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20688 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20689 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20691 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_ISNAN_IN_CMATH 1
20700 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20701 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20702 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20707 ac_cpp='$CXXCPP $CPPFLAGS'
20708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20722 float f; std::isnan(f);
20727 rm -f conftest.$ac_objext
20728 if { (ac_try="$ac_compile"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_compile") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
20741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_cv_func_std_isnan_in_cmath=yes
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_func_std_isnan_in_cmath=no
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771 ac_cpp='$CPP $CPPFLAGS'
20772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20778 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20779 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20781 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20783 cat >>confdefs.h <<\_ACEOF
20784 #define HAVE_STD_ISNAN_IN_CMATH 1
20792 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20793 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20794 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 ac_cpp='$CXXCPP $CPPFLAGS'
20800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_compile") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); } &&
20833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
20844 { (case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_try") 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_cv_func_isinf_in_math_h=yes
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_func_isinf_in_math_h=no
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 ac_cpp='$CPP $CPPFLAGS'
20864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20870 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20871 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20873 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20875 cat >>confdefs.h <<\_ACEOF
20876 #define HAVE_ISINF_IN_MATH_H 1
20882 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20883 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20884 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 ac_cpp='$CXXCPP $CPPFLAGS'
20890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20909 rm -f conftest.$ac_objext
20910 if { (ac_try="$ac_compile"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20918 grep -v '^ *+' conftest.er1 >conftest.err
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_func_isinf_in_cmath=yes
20945 echo "$as_me: failed program was:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_func_isinf_in_cmath=no
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953 ac_cpp='$CPP $CPPFLAGS'
20954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20960 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20961 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20963 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_ISINF_IN_CMATH 1
20972 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20973 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20974 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 ac_cpp='$CXXCPP $CPPFLAGS'
20980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20994 float f; std::isinf(f);
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; } &&
21023 { ac_try='test -s conftest.$ac_objext'
21024 { (case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_try") 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; }; then
21033 ac_cv_func_std_isinf_in_cmath=yes
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 ac_cv_func_std_isinf_in_cmath=no
21041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043 ac_cpp='$CPP $CPPFLAGS'
21044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21051 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21053 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21055 cat >>confdefs.h <<\_ACEOF
21056 #define HAVE_STD_ISINF_IN_CMATH 1
21062 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 ac_cpp='$CXXCPP $CPPFLAGS'
21070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 #include <ieeefp.h>
21084 float f; finite(f);
21089 rm -f conftest.$ac_objext
21090 if { (ac_try="$ac_compile"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_compile") 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21104 { (case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_try") 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21123 ac_cv_func_finite_in_ieeefp_h=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_cv_func_finite_in_ieeefp_h=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21140 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21141 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21143 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21145 cat >>confdefs.h <<\_ACEOF
21146 #define HAVE_FINITE_IN_IEEEFP_H 1
21153 if test "$llvm_cv_platform_type" = "Unix" ; then
21156 for ac_header in stdlib.h unistd.h
21158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166 { echo "$as_me:$LINENO: result: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21169 # Is the header compilable?
21170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 $ac_includes_default
21179 #include <$ac_header>
21181 rm -f conftest.$ac_objext
21182 if { (ac_try="$ac_compile"
21183 case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_compile") 2>conftest.er1
21190 grep -v '^ *+' conftest.er1 >conftest.err
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } &&
21195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21196 { (case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_try") 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
21206 { (case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_try") 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_header_compiler=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_compiler=no
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21225 echo "${ECHO_T}$ac_header_compiler" >&6; }
21227 # Is the header present?
21228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <$ac_header>
21238 if { (ac_try="$ac_cpp conftest.$ac_ext"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } >/dev/null; then
21251 if test -s conftest.err; then
21252 ac_cpp_err=$ac_c_preproc_warn_flag
21253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21260 if test -z "$ac_cpp_err"; then
21261 ac_header_preproc=yes
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ac_header_preproc=no
21269 rm -f conftest.err conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21271 echo "${ECHO_T}$ac_header_preproc" >&6; }
21273 # So? What about this header?
21274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21280 ac_header_preproc=yes
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21296 ## ------------------------------------ ##
21297 ## Report this to http://llvm.org/bugs/ ##
21298 ## ------------------------------------ ##
21300 ) | sed "s/^/$as_me: WARNING: /" >&2
21303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 eval "$as_ac_Header=\$ac_header_preproc"
21310 ac_res=`eval echo '${'$as_ac_Header'}'`
21311 { echo "$as_me:$LINENO: result: $ac_res" >&5
21312 echo "${ECHO_T}$ac_res" >&6; }
21315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21316 cat >>confdefs.h <<_ACEOF
21317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21325 for ac_func in getpagesize
21327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 cat >conftest.$ac_ext <<_ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h. */
21339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21341 #define $ac_func innocuous_$ac_func
21343 /* System header to define __stub macros and hopefully few prototypes,
21344 which can conflict with char $ac_func (); below.
21345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346 <limits.h> exists even on freestanding compilers. */
21349 # include <limits.h>
21351 # include <assert.h>
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21363 /* The GNU C library defines this for functions which it implements
21364 to always fail with ENOSYS. Some functions are actually named
21365 something starting with __ and the normal name is an alias. */
21366 #if defined __stub_$ac_func || defined __stub___$ac_func
21373 return $ac_func ();
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_link") 2>conftest.er1
21387 grep -v '^ *+' conftest.er1 >conftest.err
21389 cat conftest.err >&5
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); } &&
21392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21393 { (case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_try") 2>&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; } &&
21402 { ac_try='test -s conftest$ac_exeext'
21403 { (case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_try") 2>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 eval "$as_ac_var=yes"
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21417 eval "$as_ac_var=no"
21420 rm -f core conftest.err conftest.$ac_objext \
21421 conftest$ac_exeext conftest.$ac_ext
21423 ac_res=`eval echo '${'$as_ac_var'}'`
21424 { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21426 if test `eval echo '${'$as_ac_var'}'` = yes; then
21427 cat >>confdefs.h <<_ACEOF
21428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21434 { echo "$as_me:$LINENO: checking for working mmap" >&5
21435 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 if test "$cross_compiling" = yes; then
21440 ac_cv_func_mmap_fixed_mapped=no
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 $ac_includes_default
21449 /* malloc might have been renamed as rpl_malloc. */
21452 /* Thanks to Mike Haertel and Jim Avera for this test.
21453 Here is a matrix of mmap possibilities:
21454 mmap private not fixed
21455 mmap private fixed at somewhere currently unmapped
21456 mmap private fixed at somewhere already mapped
21457 mmap shared not fixed
21458 mmap shared fixed at somewhere currently unmapped
21459 mmap shared fixed at somewhere already mapped
21460 For private mappings, we should verify that changes cannot be read()
21461 back from the file, nor mmap's back from the file at a different
21462 address. (There have been systems where private was not correctly
21463 implemented like the infamous i386 svr4.0, and systems where the
21464 VM page cache was not coherent with the file system buffer cache
21465 like early versions of FreeBSD and possibly contemporary NetBSD.)
21466 For shared mappings, we should conversely verify that changes get
21467 propagated back to all the places they're supposed to be.
21469 Grep wants private fixed already mapped.
21470 The main things grep needs to know about mmap are:
21471 * does it exist and is it safe to write into the mmap'd area
21472 * how to use it (BSD variants) */
21475 #include <sys/mman.h>
21477 #if !STDC_HEADERS && !HAVE_STDLIB_H
21481 /* This mess was copied from the GNU getpagesize.h. */
21482 #if !HAVE_GETPAGESIZE
21483 /* Assume that all systems that can run configure have sys/param.h. */
21484 # if !HAVE_SYS_PARAM_H
21485 # define HAVE_SYS_PARAM_H 1
21488 # ifdef _SC_PAGESIZE
21489 # define getpagesize() sysconf(_SC_PAGESIZE)
21490 # else /* no _SC_PAGESIZE */
21491 # if HAVE_SYS_PARAM_H
21492 # include <sys/param.h>
21493 # ifdef EXEC_PAGESIZE
21494 # define getpagesize() EXEC_PAGESIZE
21495 # else /* no EXEC_PAGESIZE */
21497 # define getpagesize() NBPG * CLSIZE
21500 # endif /* no CLSIZE */
21501 # else /* no NBPG */
21503 # define getpagesize() NBPC
21504 # else /* no NBPC */
21506 # define getpagesize() PAGESIZE
21507 # endif /* PAGESIZE */
21508 # endif /* no NBPC */
21509 # endif /* no NBPG */
21510 # endif /* no EXEC_PAGESIZE */
21511 # else /* no HAVE_SYS_PARAM_H */
21512 # define getpagesize() 8192 /* punt totally */
21513 # endif /* no HAVE_SYS_PARAM_H */
21514 # endif /* no _SC_PAGESIZE */
21516 #endif /* no HAVE_GETPAGESIZE */
21521 char *data, *data2, *data3;
21525 pagesize = getpagesize ();
21527 /* First, make a file with some known garbage in it. */
21528 data = (char *) malloc (pagesize);
21531 for (i = 0; i < pagesize; ++i)
21532 *(data + i) = rand ();
21534 fd = creat ("conftest.mmap", 0600);
21537 if (write (fd, data, pagesize) != pagesize)
21541 /* Next, try to mmap the file at a fixed address which already has
21542 something else allocated at it. If we can, also make sure that
21543 we see the same garbage. */
21544 fd = open ("conftest.mmap", O_RDWR);
21547 data2 = (char *) malloc (2 * pagesize);
21550 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21551 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21552 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21554 for (i = 0; i < pagesize; ++i)
21555 if (*(data + i) != *(data2 + i))
21558 /* Finally, make sure that changes to the mapped area do not
21559 percolate back to the file as seen by read(). (This is a bug on
21560 some variants of i386 svr4.0.) */
21561 for (i = 0; i < pagesize; ++i)
21562 *(data2 + i) = *(data2 + i) + 1;
21563 data3 = (char *) malloc (pagesize);
21566 if (read (fd, data3, pagesize) != pagesize)
21568 for (i = 0; i < pagesize; ++i)
21569 if (*(data + i) != *(data3 + i))
21575 rm -f conftest$ac_exeext
21576 if { (ac_try="$ac_link"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_link") 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21586 { (case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_try") 2>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 ac_cv_func_mmap_fixed_mapped=yes
21597 echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ( exit $ac_status )
21602 ac_cv_func_mmap_fixed_mapped=no
21604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21610 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21611 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21613 cat >>confdefs.h <<\_ACEOF
21614 #define HAVE_MMAP 1
21618 rm -f conftest.mmap
21620 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21621 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21622 if test "${ac_cv_func_mmap_file+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21626 ac_cpp='$CPP $CPPFLAGS'
21627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21631 if test "$cross_compiling" = yes; then
21632 ac_cv_func_mmap_file=no
21634 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21642 #include <sys/types.h>
21643 #include <sys/mman.h>
21651 fd = creat ("foo",0777);
21652 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21654 return (fd != (int) MAP_FAILED);
21659 rm -f conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_link") 2>&5
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21670 { (case "(($ac_try" in
21671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672 *) ac_try_echo=$ac_try;;
21674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675 (eval "$ac_try") 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }; then
21679 ac_cv_func_mmap_file=yes
21681 echo "$as_me: program exited with status $ac_status" >&5
21682 echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21685 ( exit $ac_status )
21686 ac_cv_func_mmap_file=no
21688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21693 ac_cpp='$CPP $CPPFLAGS'
21694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21700 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21701 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21702 if test "$ac_cv_func_mmap_file" = yes; then
21704 cat >>confdefs.h <<\_ACEOF
21705 #define HAVE_MMAP_FILE
21712 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21713 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21714 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 if test "$llvm_cv_os_type" = "Interix" ; then
21718 ac_cv_need_dev_zero_for_mmap=yes
21720 ac_cv_need_dev_zero_for_mmap=no
21724 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21725 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21726 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21728 cat >>confdefs.h <<\_ACEOF
21729 #define NEED_DEV_ZERO_FOR_MMAP 1
21734 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21736 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21737 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21739 if test "$ac_cv_func_mmap_file" = "no"
21741 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21742 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21746 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21747 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21749 ac_cpp='$CXXCPP $CPPFLAGS'
21750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21754 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21763 volatile unsigned long val = 1;
21764 __sync_synchronize();
21765 __sync_val_compare_and_swap(&val, 1, 0);
21766 __sync_add_and_fetch(&val, 1);
21767 __sync_sub_and_fetch(&val, 1);
21773 rm -f conftest.$ac_objext conftest$ac_exeext
21774 if { (ac_try="$ac_link"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_link") 2>conftest.er1
21782 grep -v '^ *+' conftest.er1 >conftest.err
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } &&
21787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21788 { (case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_try") 2>&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; } &&
21797 { ac_try='test -s conftest$ac_exeext'
21798 { (case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_try") 2>&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; }; then
21808 { echo "$as_me:$LINENO: result: yes" >&5
21809 echo "${ECHO_T}yes" >&6; }
21811 cat >>confdefs.h <<\_ACEOF
21812 #define LLVM_HAS_ATOMICS 1
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21821 { echo "$as_me:$LINENO: result: no" >&5
21822 echo "${ECHO_T}no" >&6; }
21824 cat >>confdefs.h <<\_ACEOF
21825 #define LLVM_HAS_ATOMICS 0
21828 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21829 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21833 rm -f core conftest.err conftest.$ac_objext \
21834 conftest$ac_exeext conftest.$ac_ext
21836 ac_cpp='$CPP $CPPFLAGS'
21837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21843 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21844 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21845 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21846 if test "${llvm_cv_linux_mixed+set}" = set; then
21847 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 ac_cpp='$CPP $CPPFLAGS'
21851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21862 error: Not x86-64 even if uname says so!
21873 rm -f conftest.$ac_objext
21874 if { (ac_try="$ac_compile"
21875 case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
21887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
21898 { (case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_try") 2>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 llvm_cv_linux_mixed=no
21909 echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 llvm_cv_linux_mixed=yes
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 ac_cpp='$CPP $CPPFLAGS'
21918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21924 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21925 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21927 if test "$llvm_cv_linux_mixed" = "yes"; then
21928 llvm_cv_target_arch="x86"
21934 for ac_func in __dso_handle
21936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 cat >conftest.$ac_ext <<_ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21950 #define $ac_func innocuous_$ac_func
21952 /* System header to define __stub macros and hopefully few prototypes,
21953 which can conflict with char $ac_func (); below.
21954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955 <limits.h> exists even on freestanding compilers. */
21958 # include <limits.h>
21960 # include <assert.h>
21965 /* Override any GCC internal prototype to avoid an error.
21966 Use char because int might match the return type of a GCC
21967 builtin and then its argument prototype would still apply. */
21972 /* The GNU C library defines this for functions which it implements
21973 to always fail with ENOSYS. Some functions are actually named
21974 something starting with __ and the normal name is an alias. */
21975 #if defined __stub_$ac_func || defined __stub___$ac_func
21982 return $ac_func ();
21987 rm -f conftest.$ac_objext conftest$ac_exeext
21988 if { (ac_try="$ac_link"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_link") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } &&
22001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22002 { (case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_try") 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest$ac_exeext'
22012 { (case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017 (eval "$ac_try") 2>&5
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 eval "$as_ac_var=yes"
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 eval "$as_ac_var=no"
22029 rm -f core conftest.err conftest.$ac_objext \
22030 conftest$ac_exeext conftest.$ac_ext
22032 ac_res=`eval echo '${'$as_ac_var'}'`
22033 { echo "$as_me:$LINENO: result: $ac_res" >&5
22034 echo "${ECHO_T}$ac_res" >&6; }
22035 if test `eval echo '${'$as_ac_var'}'` = yes; then
22036 cat >>confdefs.h <<_ACEOF
22037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22044 SHLIBEXT=$libltdl_cv_shlibext
22047 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22050 if test "${prefix}" = "NONE" ; then
22051 prefix="/usr/local"
22053 eval LLVM_PREFIX="${prefix}";
22054 eval LLVM_BINDIR="${prefix}/bin";
22055 eval LLVM_DATADIR="${prefix}/share/llvm";
22056 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22057 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22058 eval LLVM_INCLUDEDIR="${prefix}/include";
22059 eval LLVM_INFODIR="${prefix}/info";
22060 eval LLVM_MANDIR="${prefix}/man";
22061 LLVM_CONFIGTIME=`date`
22072 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22073 LLVM_CONFIGTIME="(timestamp not enabled)"
22077 cat >>confdefs.h <<_ACEOF
22078 #define LLVM_PREFIX "$LLVM_PREFIX"
22082 cat >>confdefs.h <<_ACEOF
22083 #define LLVM_BINDIR "$LLVM_BINDIR"
22087 cat >>confdefs.h <<_ACEOF
22088 #define LLVM_DATADIR "$LLVM_DATADIR"
22092 cat >>confdefs.h <<_ACEOF
22093 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22097 cat >>confdefs.h <<_ACEOF
22098 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22102 cat >>confdefs.h <<_ACEOF
22103 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22107 cat >>confdefs.h <<_ACEOF
22108 #define LLVM_INFODIR "$LLVM_INFODIR"
22112 cat >>confdefs.h <<_ACEOF
22113 #define LLVM_MANDIR "$LLVM_MANDIR"
22117 cat >>confdefs.h <<_ACEOF
22118 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22122 cat >>confdefs.h <<_ACEOF
22123 #define LLVM_HOST_TRIPLE "$host"
22127 cat >>confdefs.h <<_ACEOF
22128 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22132 if test "$BINDINGS_TO_BUILD" = auto ; then
22133 BINDINGS_TO_BUILD=""
22134 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22135 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22138 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22144 binding_prereqs_failed=0
22145 for a_binding in $BINDINGS_TO_BUILD ; do
22146 case "$a_binding" in
22148 if test "x$OCAMLC" = x ; then
22149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22151 binding_prereqs_failed=1
22153 if test "x$OCAMLDEP" = x ; then
22154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22156 binding_prereqs_failed=1
22158 if test "x$OCAMLOPT" = x ; then
22159 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22160 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22162 if test "x$with_ocaml_libdir" != xauto ; then
22163 OCAML_LIBDIR=$with_ocaml_libdir
22166 ocaml_stdlib="`"$OCAMLC" -where`"
22167 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22169 # ocaml stdlib is beneath our prefix; use stdlib
22170 OCAML_LIBDIR=$ocaml_stdlib
22173 # ocaml stdlib is outside our prefix; use libdir/ocaml
22174 OCAML_LIBDIR=${prefix}/lib/ocaml
22181 if test "$binding_prereqs_failed" = 1 ; then
22182 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22183 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22184 { (exit 1); exit 1; }; }
22187 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22188 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22189 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 ac_cpp='$CXXCPP $CPPFLAGS'
22194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22198 oldcxxflags="$CXXFLAGS"
22199 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22224 grep -v '^ *+' conftest.er1 >conftest.err
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } &&
22229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22230 { (case "(($ac_try" in
22231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22235 (eval "$ac_try") 2>&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); }; } &&
22239 { ac_try='test -s conftest.$ac_objext'
22240 { (case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_try") 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
22249 llvm_cv_cxx_visibility_inlines_hidden=yes
22251 echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 llvm_cv_cxx_visibility_inlines_hidden=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 CXXFLAGS="$oldcxxflags"
22260 ac_cpp='$CPP $CPPFLAGS'
22261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22267 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22268 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22269 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22270 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22273 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22278 if test "$llvm_cv_link_use_r" = "yes" ; then
22285 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22286 RDYNAMIC="-rdynamic"
22293 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22300 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22302 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22304 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22306 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22308 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22311 ac_config_files="$ac_config_files Makefile.config"
22314 ac_config_files="$ac_config_files llvm.spec"
22317 ac_config_files="$ac_config_files docs/doxygen.cfg"
22320 if test "${clang_src_root}" = ""; then
22321 clang_src_root="$srcdir/tools/clang"
22323 if test -f ${clang_src_root}/README.txt; then
22324 configh="include/clang/Config/config.h"
22325 doxy="docs/doxygen.cfg"
22326 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22328 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22332 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22335 test "x$program_prefix" = "xNONE" && program_prefix=""
22339 ac_config_commands="$ac_config_commands setup"
22341 ac_config_commands="$ac_config_commands Makefile"
22344 ac_config_commands="$ac_config_commands Makefile.common"
22347 ac_config_commands="$ac_config_commands examples/Makefile"
22350 ac_config_commands="$ac_config_commands lib/Makefile"
22353 ac_config_commands="$ac_config_commands test/Makefile"
22356 ac_config_commands="$ac_config_commands test/Makefile.tests"
22359 ac_config_commands="$ac_config_commands unittests/Makefile"
22362 ac_config_commands="$ac_config_commands tools/Makefile"
22365 ac_config_commands="$ac_config_commands utils/Makefile"
22368 ac_config_commands="$ac_config_commands projects/Makefile"
22371 ac_config_commands="$ac_config_commands bindings/Makefile"
22374 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22378 cat >confcache <<\_ACEOF
22379 # This file is a shell script that caches the results of configure
22380 # tests run on this system so they can be shared between configure
22381 # scripts and configure runs, see configure's option --config-cache.
22382 # It is not useful on other systems. If it contains results you don't
22383 # want to keep, you may remove or edit it.
22385 # config.status only pays attention to the cache file if you give it
22386 # the --recheck option to rerun configure.
22388 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22390 # following values.
22394 # The following way of writing the cache mishandles newlines in values,
22395 # but we know of no workaround that is simple, portable, and efficient.
22396 # So, we kill variables containing newlines.
22397 # Ultrix sh set writes to stderr and can't be redirected directly,
22398 # and sets the high bit in the cache file unless we assign to the vars.
22400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22401 eval ac_val=\$$ac_var
22405 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22406 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22409 _ | IFS | as_nl) ;; #(
22410 *) $as_unset $ac_var ;;
22416 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22417 *${as_nl}ac_space=\ *)
22418 # `set' does not quote correctly, so add quotes (double-quote
22419 # substitution turns \\\\ into \\, and sed turns \\ into \).
22422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22425 # `set' quotes correctly as required by POSIX, so do not add quotes.
22426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22435 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22437 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22440 if test -w "$cache_file"; then
22441 test "x$cache_file" != "x/dev/null" &&
22442 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22443 echo "$as_me: updating cache $cache_file" >&6;}
22444 cat confcache >$cache_file
22446 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22447 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22453 # Let make expand exec_prefix.
22454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22456 DEFS=-DHAVE_CONFIG_H
22460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22461 # 1. Remove the extension, and $U if already installed.
22462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22463 ac_i=`echo "$ac_i" | sed "$ac_script"`
22464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22465 # will be set to the directory where LIBOBJS objects are built.
22466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22469 LIBOBJS=$ac_libobjs
22471 LTLIBOBJS=$ac_ltlibobjs
22474 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22475 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22476 Usually this means the macro was only invoked conditionally." >&5
22477 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22478 Usually this means the macro was only invoked conditionally." >&2;}
22479 { (exit 1); exit 1; }; }
22481 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22482 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22483 Usually this means the macro was only invoked conditionally." >&5
22484 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22485 Usually this means the macro was only invoked conditionally." >&2;}
22486 { (exit 1); exit 1; }; }
22489 : ${CONFIG_STATUS=./config.status}
22490 ac_clean_files_save=$ac_clean_files
22491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22494 cat >$CONFIG_STATUS <<_ACEOF
22496 # Generated by $as_me.
22497 # Run this file to recreate the current configuration.
22498 # Compiler output produced by configure, useful for debugging
22499 # configure, is in config.log if it exists.
22502 ac_cs_recheck=false
22504 SHELL=\${CONFIG_SHELL-$SHELL}
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 ## --------------------- ##
22509 ## M4sh Initialization. ##
22510 ## --------------------- ##
22512 # Be Bourne compatible
22513 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22517 # is contrary to our usage. Disable this feature.
22518 alias -g '${1+"$@"}'='"$@"'
22519 setopt NO_GLOB_SUBST
22521 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22523 BIN_SH=xpg4; export BIN_SH # for Tru64
22524 DUALCASE=1; export DUALCASE # for MKS sh
22528 # Avoid depending upon Character Ranges.
22529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22532 as_cr_digits='0123456789'
22533 as_cr_alnum=$as_cr_Letters$as_cr_digits
22535 # The user is always right.
22536 if test "${PATH_SEPARATOR+set}" != set; then
22537 echo "#! /bin/sh" >conf$$.sh
22538 echo "exit 0" >>conf$$.sh
22540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22548 # Support unset when possible.
22549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22557 # We need space, tab and new line, in precisely that order. Quoting is
22558 # there to prevent editors from complaining about space-tab.
22559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22560 # splitting by setting IFS to empty value.)
22565 # Find who we are. Look in the path if we contain no directory separator.
22567 *[\\/]* ) as_myself=$0 ;;
22568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22569 for as_dir in $PATH
22572 test -z "$as_dir" && as_dir=.
22573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22579 # We did not find ourselves, most probably we were run as `sh COMMAND'
22580 # in which case we are not to be found in the path.
22581 if test "x$as_myself" = x; then
22584 if test ! -f "$as_myself"; then
22585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22586 { (exit 1); exit 1; }
22589 # Work around bugs in pre-3.0 UWIN ksh.
22590 for as_var in ENV MAIL MAILPATH
22591 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22601 LC_TELEPHONE LC_TIME
22603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22604 eval $as_var=C; export $as_var
22606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22610 # Required to use basename.
22611 if expr a : '\(a\)' >/dev/null 2>&1 &&
22612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22619 as_basename=basename
22625 # Name of the executable.
22626 as_me=`$as_basename -- "$0" ||
22627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22628 X"$0" : 'X\(//\)$' \| \
22629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22631 sed '/^.*\/\([^/][^/]*\)\/*$/{
22650 as_lineno_1=$LINENO
22651 as_lineno_2=$LINENO
22652 test "x$as_lineno_1" != "x$as_lineno_2" &&
22653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22656 # uniformly replaced by the line number. The first 'sed' inserts a
22657 # line-number line after each line using $LINENO; the second 'sed'
22658 # does the real work. The second script uses 'N' to pair each
22659 # line-number line with the line containing $LINENO, and appends
22660 # trailing '-' during substitution so that $LINENO is not a special
22661 # case at line end.
22662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22663 # scripts with optimization help from Paolo Bonzini. Blame Lee
22664 # E. McMahon (1931-1989) for sed's syntax. :-)
22676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22679 ' >$as_me.lineno &&
22680 chmod +x "$as_me.lineno" ||
22681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22682 { (exit 1); exit 1; }; }
22684 # Don't try to exec as it changes $[0], causing all sort of problems
22685 # (the dirname of $[0] is not the place where we might find the
22686 # original and so on. Autoconf is especially sensitive to this).
22687 . "./$as_me.lineno"
22688 # Exit status is that of the last command.
22693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22699 ECHO_C= ECHO_N= ECHO_T=
22700 case `echo -n x` in
22702 case `echo 'x\c'` in
22703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22710 if expr a : '\(a\)' >/dev/null 2>&1 &&
22711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22717 rm -f conf$$ conf$$.exe conf$$.file
22718 if test -d conf$$.dir; then
22719 rm -f conf$$.dir/conf$$.file
22725 if ln -s conf$$.file conf$$ 2>/dev/null; then
22727 # ... but there are two gotchas:
22728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22730 # In both cases, we have to default to `cp -p'.
22731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22733 elif ln conf$$.file conf$$ 2>/dev/null; then
22738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22739 rmdir conf$$.dir 2>/dev/null
22741 if mkdir -p . 2>/dev/null; then
22744 test -d ./-p && rmdir ./-p
22748 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22749 # systems may use methods other than mode bits to determine executability.
22750 cat >conf$$.file <<_ASEOF
22754 chmod +x conf$$.file
22755 if test -x conf$$.file >/dev/null 2>&1; then
22756 as_executable_p="test -x"
22762 # Sed expression to map a string onto a valid CPP name.
22763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22765 # Sed expression to map a string onto a valid variable name.
22766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22771 # Save the log message, to keep $[0] and so on meaningful, and to
22772 # report actual input values of CONFIG_FILES etc. instead of their
22773 # values after options handling.
22775 This file was extended by LLVM $as_me 3.5svn, which was
22776 generated by GNU Autoconf 2.60. Invocation command line was
22778 CONFIG_FILES = $CONFIG_FILES
22779 CONFIG_HEADERS = $CONFIG_HEADERS
22780 CONFIG_LINKS = $CONFIG_LINKS
22781 CONFIG_COMMANDS = $CONFIG_COMMANDS
22784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22789 cat >>$CONFIG_STATUS <<_ACEOF
22790 # Files that config.status was made for.
22791 config_files="$ac_config_files"
22792 config_headers="$ac_config_headers"
22793 config_commands="$ac_config_commands"
22797 cat >>$CONFIG_STATUS <<\_ACEOF
22799 \`$as_me' instantiates files from templates according to the
22800 current configuration.
22802 Usage: $0 [OPTIONS] [FILE]...
22804 -h, --help print this help, then exit
22805 -V, --version print version number, then exit
22806 -q, --quiet do not print progress messages
22807 -d, --debug don't remove temporary files
22808 --recheck update $as_me by reconfiguring in the same conditions
22809 --file=FILE[:TEMPLATE]
22810 instantiate the configuration file FILE
22811 --header=FILE[:TEMPLATE]
22812 instantiate the configuration header FILE
22814 Configuration files:
22817 Configuration headers:
22820 Configuration commands:
22823 Report bugs to <bug-autoconf@gnu.org>."
22826 cat >>$CONFIG_STATUS <<_ACEOF
22828 LLVM config.status 3.5svn
22829 configured by $0, generated by GNU Autoconf 2.60,
22830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22832 Copyright (C) 2006 Free Software Foundation, Inc.
22833 This config.status script is free software; the Free Software Foundation
22834 gives unlimited permission to copy, distribute and modify it."
22841 cat >>$CONFIG_STATUS <<\_ACEOF
22842 # If no file are specified by the user, then we need to provide default
22843 # value. By we need to know if files were specified by the user.
22849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22861 # Handling of the options.
22862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22865 echo "$ac_cs_version"; exit ;;
22866 --debug | --debu | --deb | --de | --d | -d )
22868 --file | --fil | --fi | --f )
22870 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22871 ac_need_defaults=false;;
22872 --header | --heade | --head | --hea )
22874 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22875 ac_need_defaults=false;;
22877 # Conflict between --help and --header
22878 { echo "$as_me: error: ambiguous option: $1
22879 Try \`$0 --help' for more information." >&2
22880 { (exit 1); exit 1; }; };;
22881 --help | --hel | -h )
22882 echo "$ac_cs_usage"; exit ;;
22883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22887 # This is an error.
22888 -*) { echo "$as_me: error: unrecognized option: $1
22889 Try \`$0 --help' for more information." >&2
22890 { (exit 1); exit 1; }; } ;;
22892 *) ac_config_targets="$ac_config_targets $1"
22893 ac_need_defaults=false ;;
22899 ac_configure_extra_args=
22901 if $ac_cs_silent; then
22903 ac_configure_extra_args="$ac_configure_extra_args --silent"
22907 cat >>$CONFIG_STATUS <<_ACEOF
22908 if \$ac_cs_recheck; then
22909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22910 CONFIG_SHELL=$SHELL
22911 export CONFIG_SHELL
22912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22921 ## Running $as_me. ##
22927 cat >>$CONFIG_STATUS <<_ACEOF
22931 llvm_src="${srcdir}"
22935 cat >>$CONFIG_STATUS <<\_ACEOF
22937 # Handling of arguments.
22938 for ac_config_target in $ac_config_targets
22940 case $ac_config_target in
22941 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22942 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22943 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22944 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22945 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22946 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22947 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22948 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22949 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22950 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22951 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22952 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22953 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22954 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22955 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22956 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22957 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22958 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22959 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22960 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22961 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22962 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22963 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22964 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22965 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22966 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22970 { (exit 1); exit 1; }; };;
22975 # If the user did not use the arguments to specify the items to instantiate,
22976 # then the envvar interface is used. Set only those that are not.
22977 # We use the long form for the default assignment because of an extremely
22978 # bizarre bug on SunOS 4.1.3.
22979 if $ac_need_defaults; then
22980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22985 # Have a temporary directory for convenience. Make it in the build tree
22986 # simply because there is no reason against having it here, and in addition,
22987 # creating and moving files from /tmp can sometimes cause problems.
22988 # Hook for its removal unless debugging.
22989 # Note that there is a small window in which the directory will not be cleaned:
22990 # after its creation but before its name has been assigned to `$tmp'.
22994 trap 'exit_status=$?
22995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22997 trap '{ (exit 1); exit 1; }' 1 2 13 15
22999 # Create a (secure) tmp directory for tmp files.
23002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23003 test -n "$tmp" && test -d "$tmp"
23006 tmp=./conf$$-$RANDOM
23007 (umask 077 && mkdir "$tmp")
23010 echo "$me: cannot create a temporary directory in ." >&2
23011 { (exit 1); exit 1; }
23015 # Set up the sed scripts for CONFIG_FILES section.
23018 # No need to generate the scripts if there are no CONFIG_FILES.
23019 # This happens for instance when ./config.status config.h
23020 if test -n "$CONFIG_FILES"; then
23027 for ac_last_try in false false false false false :; do
23028 cat >conf$$subs.sed <<_ACEOF
23029 SHELL!$SHELL$ac_delim
23030 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23031 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23032 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23033 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23034 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23035 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23036 exec_prefix!$exec_prefix$ac_delim
23037 prefix!$prefix$ac_delim
23038 program_transform_name!$program_transform_name$ac_delim
23039 bindir!$bindir$ac_delim
23040 sbindir!$sbindir$ac_delim
23041 libexecdir!$libexecdir$ac_delim
23042 datarootdir!$datarootdir$ac_delim
23043 datadir!$datadir$ac_delim
23044 sysconfdir!$sysconfdir$ac_delim
23045 sharedstatedir!$sharedstatedir$ac_delim
23046 localstatedir!$localstatedir$ac_delim
23047 includedir!$includedir$ac_delim
23048 oldincludedir!$oldincludedir$ac_delim
23049 docdir!$docdir$ac_delim
23050 infodir!$infodir$ac_delim
23051 htmldir!$htmldir$ac_delim
23052 dvidir!$dvidir$ac_delim
23053 pdfdir!$pdfdir$ac_delim
23054 psdir!$psdir$ac_delim
23055 libdir!$libdir$ac_delim
23056 localedir!$localedir$ac_delim
23057 mandir!$mandir$ac_delim
23058 DEFS!$DEFS$ac_delim
23059 ECHO_C!$ECHO_C$ac_delim
23060 ECHO_N!$ECHO_N$ac_delim
23061 ECHO_T!$ECHO_T$ac_delim
23062 LIBS!$LIBS$ac_delim
23063 build_alias!$build_alias$ac_delim
23064 host_alias!$host_alias$ac_delim
23065 target_alias!$target_alias$ac_delim
23066 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23068 CFLAGS!$CFLAGS$ac_delim
23069 LDFLAGS!$LDFLAGS$ac_delim
23070 CPPFLAGS!$CPPFLAGS$ac_delim
23071 ac_ct_CC!$ac_ct_CC$ac_delim
23072 EXEEXT!$EXEEXT$ac_delim
23073 OBJEXT!$OBJEXT$ac_delim
23075 CXXFLAGS!$CXXFLAGS$ac_delim
23076 ac_ct_CXX!$ac_ct_CXX$ac_delim
23078 subdirs!$subdirs$ac_delim
23079 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23080 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23081 build!$build$ac_delim
23082 build_cpu!$build_cpu$ac_delim
23083 build_vendor!$build_vendor$ac_delim
23084 build_os!$build_os$ac_delim
23085 host!$host$ac_delim
23086 host_cpu!$host_cpu$ac_delim
23087 host_vendor!$host_vendor$ac_delim
23088 host_os!$host_os$ac_delim
23089 target!$target$ac_delim
23090 target_cpu!$target_cpu$ac_delim
23091 target_vendor!$target_vendor$ac_delim
23092 target_os!$target_os$ac_delim
23094 HOST_OS!$HOST_OS$ac_delim
23095 TARGET_OS!$TARGET_OS$ac_delim
23096 LINKALL!$LINKALL$ac_delim
23097 NOLINKALL!$NOLINKALL$ac_delim
23098 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23099 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23100 ARCH!$ARCH$ac_delim
23101 HOST_ARCH!$HOST_ARCH$ac_delim
23102 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23103 BUILD_CC!$BUILD_CC$ac_delim
23104 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23105 BUILD_CXX!$BUILD_CXX$ac_delim
23106 CVSBUILD!$CVSBUILD$ac_delim
23107 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23108 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23109 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23110 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23111 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23112 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23113 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23114 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23115 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23116 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23117 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23118 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23119 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23120 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23121 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23123 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23124 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23125 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23130 elif $ac_last_try; then
23131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23132 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23133 { (exit 1); exit 1; }; }
23135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23139 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23140 if test -n "$ac_eof"; then
23141 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23142 ac_eof=`expr $ac_eof + 1`
23145 cat >>$CONFIG_STATUS <<_ACEOF
23146 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23150 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23151 s/^/s,@/; s/!/@,|#_!!_#|/
23154 s/'"$ac_delim"'$/,g/; t
23156 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23157 ' >>$CONFIG_STATUS <conf$$subs.sed
23158 rm -f conf$$subs.sed
23159 cat >>$CONFIG_STATUS <<_ACEOF
23165 for ac_last_try in false false false false false :; do
23166 cat >conf$$subs.sed <<_ACEOF
23167 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23168 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23169 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23170 ENABLE_PIC!$ENABLE_PIC$ac_delim
23171 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23172 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23173 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23174 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23175 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23176 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23177 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23178 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23179 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23180 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23181 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23182 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23183 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23184 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23186 ifGNUmake!$ifGNUmake$ac_delim
23187 LN_S!$LN_S$ac_delim
23190 DATE!$DATE$ac_delim
23191 FIND!$FIND$ac_delim
23192 GREP!$GREP$ac_delim
23193 MKDIR!$MKDIR$ac_delim
23195 RANLIB!$RANLIB$ac_delim
23200 BINPWD!$BINPWD$ac_delim
23201 GRAPHVIZ!$GRAPHVIZ$ac_delim
23204 NEATO!$NEATO$ac_delim
23205 TWOPI!$TWOPI$ac_delim
23206 CIRCO!$CIRCO$ac_delim
23208 DOTTY!$DOTTY$ac_delim
23209 XDOT!$XDOT$ac_delim
23210 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23211 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23212 INSTALL_DATA!$INSTALL_DATA$ac_delim
23213 BZIP2!$BZIP2$ac_delim
23215 DOXYGEN!$DOXYGEN$ac_delim
23216 GROFF!$GROFF$ac_delim
23217 GZIPBIN!$GZIPBIN$ac_delim
23218 PDFROFF!$PDFROFF$ac_delim
23220 OCAMLC!$OCAMLC$ac_delim
23221 OCAMLOPT!$OCAMLOPT$ac_delim
23222 OCAMLDEP!$OCAMLDEP$ac_delim
23223 OCAMLDOC!$OCAMLDOC$ac_delim
23225 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23226 EGREP!$EGREP$ac_delim
23227 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23228 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23229 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23230 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23231 LIBADD_DL!$LIBADD_DL$ac_delim
23232 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23233 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23234 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23235 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23236 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23237 PYTHON!$PYTHON$ac_delim
23238 USE_UDIS86!$USE_UDIS86$ac_delim
23239 USE_OPROFILE!$USE_OPROFILE$ac_delim
23240 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23241 XML2CONFIG!$XML2CONFIG$ac_delim
23242 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23243 LIBXML2_INC!$LIBXML2_INC$ac_delim
23244 CXXCPP!$CXXCPP$ac_delim
23245 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23246 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23247 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23248 MMAP_FILE!$MMAP_FILE$ac_delim
23249 SHLIBEXT!$SHLIBEXT$ac_delim
23250 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23251 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23252 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23253 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23254 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23255 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23256 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23257 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23258 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23259 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23260 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23261 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23262 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23263 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23266 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23268 elif $ac_last_try; then
23269 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23270 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23271 { (exit 1); exit 1; }; }
23273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23277 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23278 if test -n "$ac_eof"; then
23279 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23280 ac_eof=`expr $ac_eof + 1`
23283 cat >>$CONFIG_STATUS <<_ACEOF
23284 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23285 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23288 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23289 s/^/s,@/; s/!/@,|#_!!_#|/
23292 s/'"$ac_delim"'$/,g/; t
23294 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23295 ' >>$CONFIG_STATUS <conf$$subs.sed
23296 rm -f conf$$subs.sed
23297 cat >>$CONFIG_STATUS <<_ACEOF
23303 for ac_last_try in false false false false false :; do
23304 cat >conf$$subs.sed <<_ACEOF
23305 RPATH!$RPATH$ac_delim
23306 RDYNAMIC!$RDYNAMIC$ac_delim
23307 program_prefix!$program_prefix$ac_delim
23308 LIBOBJS!$LIBOBJS$ac_delim
23309 LTLIBOBJS!$LTLIBOBJS$ac_delim
23312 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23314 elif $ac_last_try; then
23315 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23316 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23317 { (exit 1); exit 1; }; }
23319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23323 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23324 if test -n "$ac_eof"; then
23325 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23326 ac_eof=`expr $ac_eof + 1`
23329 cat >>$CONFIG_STATUS <<_ACEOF
23330 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23334 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23335 s/^/s,@/; s/!/@,|#_!!_#|/
23338 s/'"$ac_delim"'$/,g/; t
23340 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23341 ' >>$CONFIG_STATUS <conf$$subs.sed
23342 rm -f conf$$subs.sed
23343 cat >>$CONFIG_STATUS <<_ACEOF
23350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23352 # trailing colons and then remove the whole line if VPATH becomes empty
23353 # (actually we leave an empty line to preserve line numbers).
23354 if test "x$srcdir" = x.; then
23355 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23356 s/:*\$(srcdir):*/:/
23357 s/:*\${srcdir}:*/:/
23359 s/^\([^=]*=[ ]*\):*/\1/
23365 cat >>$CONFIG_STATUS <<\_ACEOF
23366 fi # test -n "$CONFIG_FILES"
23369 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23372 :[FHLC]) ac_mode=$ac_tag; continue;;
23374 case $ac_mode$ac_tag in
23376 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23377 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23378 { (exit 1); exit 1; }; };;
23379 :[FH]-) ac_tag=-:-;;
23380 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23397 -) ac_f="$tmp/stdin";;
23398 *) # Look for the file first in the build tree, then in the source tree
23399 # (if the path is not absolute). The absolute path cannot be DOS-style,
23400 # because $ac_f cannot contain `:'.
23404 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23406 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23407 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23408 { (exit 1); exit 1; }; };;
23410 ac_file_inputs="$ac_file_inputs $ac_f"
23413 # Let's still pretend it is `configure' which instantiates (i.e., don't
23414 # use $as_me), people would be surprised to read:
23415 # /* config.h. Generated by config.status. */
23416 configure_input="Generated from "`IFS=:
23417 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23418 if test x"$ac_file" != x-; then
23419 configure_input="$ac_file. $configure_input"
23420 { echo "$as_me:$LINENO: creating $ac_file" >&5
23421 echo "$as_me: creating $ac_file" >&6;}
23425 *:-:* | *:-) cat >"$tmp/stdin";;
23430 ac_dir=`$as_dirname -- "$ac_file" ||
23431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23432 X"$ac_file" : 'X\(//\)[^/]' \| \
23433 X"$ac_file" : 'X\(//\)$' \| \
23434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23440 /^X\(\/\/\)[^/].*/{
23455 -*) as_dir=./$as_dir;;
23457 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23461 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23462 *) as_qdir=$as_dir;;
23464 as_dirs="'$as_qdir' $as_dirs"
23465 as_dir=`$as_dirname -- "$as_dir" ||
23466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23467 X"$as_dir" : 'X\(//\)[^/]' \| \
23468 X"$as_dir" : 'X\(//\)$' \| \
23469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23475 /^X\(\/\/\)[^/].*/{
23488 test -d "$as_dir" && break
23490 test -z "$as_dirs" || eval "mkdir $as_dirs"
23491 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23492 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23493 { (exit 1); exit 1; }; }; }
23497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23500 # A ".." for each directory in $ac_dir_suffix.
23501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23502 case $ac_top_builddir_sub in
23503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23507 ac_abs_top_builddir=$ac_pwd
23508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23509 # for backward compatibility:
23510 ac_top_builddir=$ac_top_build_prefix
23513 .) # We are building in place.
23515 ac_top_srcdir=$ac_top_builddir_sub
23516 ac_abs_top_srcdir=$ac_pwd ;;
23517 [\\/]* | ?:[\\/]* ) # Absolute name.
23518 ac_srcdir=$srcdir$ac_dir_suffix;
23519 ac_top_srcdir=$srcdir
23520 ac_abs_top_srcdir=$srcdir ;;
23521 *) # Relative name.
23522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23523 ac_top_srcdir=$ac_top_build_prefix$srcdir
23524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23541 cat >>$CONFIG_STATUS <<\_ACEOF
23542 # If the template does not know about datarootdir, expand it.
23543 # FIXME: This hack should be removed a few years after 2.60.
23544 ac_datarootdir_hack=; ac_datarootdir_seen=
23546 case `sed -n '/datarootdir/ {
23555 ' $ac_file_inputs` in
23556 *datarootdir*) ac_datarootdir_seen=yes;;
23557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23558 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23559 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23561 cat >>$CONFIG_STATUS <<_ACEOF
23562 ac_datarootdir_hack='
23563 s&@datadir@&$datadir&g
23564 s&@docdir@&$docdir&g
23565 s&@infodir@&$infodir&g
23566 s&@localedir@&$localedir&g
23567 s&@mandir@&$mandir&g
23568 s&\\\${datarootdir}&$datarootdir&g' ;;
23572 # Neutralize VPATH when `$srcdir' = `.'.
23573 # Shell code in configure.ac might set extrasub.
23574 # FIXME: do we really want to maintain this feature?
23575 cat >>$CONFIG_STATUS <<_ACEOF
23579 cat >>$CONFIG_STATUS <<\_ACEOF
23581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23582 s&@configure_input@&$configure_input&;t t
23583 s&@top_builddir@&$ac_top_builddir_sub&;t t
23584 s&@srcdir@&$ac_srcdir&;t t
23585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23586 s&@top_srcdir@&$ac_top_srcdir&;t t
23587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23588 s&@builddir@&$ac_builddir&;t t
23589 s&@abs_builddir@&$ac_abs_builddir&;t t
23590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23591 s&@INSTALL@&$ac_INSTALL&;t t
23592 $ac_datarootdir_hack
23593 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23598 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23599 which seems to be undefined. Please make sure it is defined." >&5
23600 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23601 which seems to be undefined. Please make sure it is defined." >&2;}
23605 -) cat "$tmp/out"; rm -f "$tmp/out";;
23606 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23615 # Transform confdefs.h into a sed script `conftest.defines', that
23616 # substitutes the proper values into config.h.in to produce config.h.
23617 rm -f conftest.defines conftest.tail
23618 # First, append a space to every undef/define line, to ease matching.
23619 echo 's/$/ /' >conftest.defines
23620 # Then, protect against being on the right side of a sed subst, or in
23621 # an unquoted here document, in config.status. If some macros were
23622 # called several times there might be several #defines for the same
23623 # symbol, which is useless. But do not sort them, since the last
23624 # AC_DEFINE must be honored.
23625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23626 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23627 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23628 # PARAMS is the parameter list in the macro definition--in most cases, it's
23629 # just an empty string.
23630 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23631 ac_dB='\\)[ (].*,\\1define\\2'
23639 s/^[ ]*#[ ]*define[ ][ ]*//
23644 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23645 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23646 ' >>conftest.defines
23648 # Remove the space that was appended to ease matching.
23649 # Then replace #undef with comments. This is necessary, for
23650 # example, in the case of _POSIX_SOURCE, which is predefined and required
23651 # on some systems where configure will not decide to define it.
23652 # (The regexp can be short, since the line contains either #define or #undef.)
23654 s,^[ #]*u.*,/* & */,' >>conftest.defines
23656 # Break up conftest.defines:
23657 ac_max_sed_lines=50
23659 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23660 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23661 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23663 ac_in='$ac_file_inputs'
23664 ac_out='"$tmp/out1"'
23665 ac_nxt='"$tmp/out2"'
23669 # Write a here document:
23670 cat >>$CONFIG_STATUS <<_ACEOF
23671 # First, check the format of the line:
23672 cat >"\$tmp/defines.sed" <<\\CEOF
23673 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23674 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23678 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23680 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23681 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23682 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23683 grep . conftest.tail >/dev/null || break
23684 rm -f conftest.defines
23685 mv conftest.tail conftest.defines
23687 rm -f conftest.defines conftest.tail
23689 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23690 cat >>$CONFIG_STATUS <<\_ACEOF
23691 if test x"$ac_file" != x-; then
23692 echo "/* $configure_input */" >"$tmp/config.h"
23693 cat "$ac_result" >>"$tmp/config.h"
23694 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23695 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23696 echo "$as_me: $ac_file is unchanged" >&6;}
23699 mv "$tmp/config.h" $ac_file
23702 echo "/* $configure_input */"
23708 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23709 echo "$as_me: executing $ac_file commands" >&6;}
23714 case $ac_file$ac_mode in
23715 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23716 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23717 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23719 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23721 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23723 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23725 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23727 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23729 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23731 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23733 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23735 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23737 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23744 { (exit 0); exit 0; }
23746 chmod +x $CONFIG_STATUS
23747 ac_clean_files=$ac_clean_files_save
23750 # configure is writing to config.log, and then calls config.status.
23751 # config.status does its own redirection, appending to config.log.
23752 # Unfortunately, on DOS this fails, as config.log is still kept open
23753 # by configure, so config.status won't be able to write to it; its
23754 # output is simply discarded. So we exec the FD to /dev/null,
23755 # effectively closing config.log, so it can be properly (re)opened and
23756 # appended to by config.status. When coming back to configure, we
23757 # need to make the FD available again.
23758 if test "$no_create" != yes; then
23760 ac_config_status_args=
23761 test "$silent" = yes &&
23762 ac_config_status_args="$ac_config_status_args --quiet"
23764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23767 # would make configure fail if this is the last instruction.
23768 $ac_cs_success || { (exit 1); exit 1; }
23772 # CONFIG_SUBDIRS section.
23774 if test "$no_recursion" != yes; then
23776 # Remove --cache-file and --srcdir arguments so they do not pile up.
23777 ac_sub_configure_args=
23779 eval "set x $ac_configure_args"
23783 if test -n "$ac_prev"; then
23788 -cache-file | --cache-file | --cache-fil | --cache-fi \
23789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23790 ac_prev=cache_file ;;
23791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23795 --config-cache | -C)
23797 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23799 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23801 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23803 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23807 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23809 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23813 # Always prepend --prefix to ensure using the same prefix
23814 # in subdir configurations.
23815 ac_arg="--prefix=$prefix"
23817 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23819 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23822 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23824 # Do not complain, so a configure script can configure whichever
23825 # parts of a large source tree are present.
23826 test -d "$srcdir/$ac_dir" || continue
23828 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23829 echo "$as_me:$LINENO: $ac_msg" >&5
23833 -*) as_dir=./$as_dir;;
23835 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23839 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23840 *) as_qdir=$as_dir;;
23842 as_dirs="'$as_qdir' $as_dirs"
23843 as_dir=`$as_dirname -- "$as_dir" ||
23844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23845 X"$as_dir" : 'X\(//\)[^/]' \| \
23846 X"$as_dir" : 'X\(//\)$' \| \
23847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23853 /^X\(\/\/\)[^/].*/{
23866 test -d "$as_dir" && break
23868 test -z "$as_dirs" || eval "mkdir $as_dirs"
23869 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23870 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23871 { (exit 1); exit 1; }; }; }
23875 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23877 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23878 # A ".." for each directory in $ac_dir_suffix.
23879 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23880 case $ac_top_builddir_sub in
23881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23885 ac_abs_top_builddir=$ac_pwd
23886 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23887 # for backward compatibility:
23888 ac_top_builddir=$ac_top_build_prefix
23891 .) # We are building in place.
23893 ac_top_srcdir=$ac_top_builddir_sub
23894 ac_abs_top_srcdir=$ac_pwd ;;
23895 [\\/]* | ?:[\\/]* ) # Absolute name.
23896 ac_srcdir=$srcdir$ac_dir_suffix;
23897 ac_top_srcdir=$srcdir
23898 ac_abs_top_srcdir=$srcdir ;;
23899 *) # Relative name.
23900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23901 ac_top_srcdir=$ac_top_build_prefix$srcdir
23902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23904 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23909 # Check for guested configure; otherwise get Cygnus style configure.
23910 if test -f "$ac_srcdir/configure.gnu"; then
23911 ac_sub_configure=$ac_srcdir/configure.gnu
23912 elif test -f "$ac_srcdir/configure"; then
23913 ac_sub_configure=$ac_srcdir/configure
23914 elif test -f "$ac_srcdir/configure.in"; then
23915 # This should be Cygnus configure.
23916 ac_sub_configure=$ac_aux_dir/configure
23918 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23919 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23923 # The recursion is here.
23924 if test -n "$ac_sub_configure"; then
23925 # Make the cache file name correct relative to the subdirectory.
23926 case $cache_file in
23927 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23928 *) # Relative name.
23929 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23932 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23933 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23934 # The eval makes quoting arguments work.
23935 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23936 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23937 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23938 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23939 { (exit 1); exit 1; }; }