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
825 # Initialize some variables set by options.
827 ac_init_version=false
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name=s,x,x,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930 { (exit 1); exit 1; }; }
931 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932 eval enable_$ac_feature=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
949 { (exit 1); exit 1; }; }
950 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
951 eval enable_$ac_feature=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package| sed 's/-/_/g'`
1148 eval with_$ac_package=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1154 { echo "$as_me: error: invalid package name: $ac_package" >&2
1155 { (exit 1); exit 1; }; }
1156 ac_package=`echo $ac_package | sed 's/-/_/g'`
1157 eval with_$ac_package=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) { echo "$as_me: error: unrecognized option: $ac_option
1178 Try \`$0 --help' for more information." >&2
1179 { (exit 1); exit 1; }; }
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187 { (exit 1); exit 1; }; }
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 { echo "$as_me: error: missing argument to $ac_option" >&2
1205 { (exit 1); exit 1; }; }
1208 # Be sure to have absolute directory names.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1220 { (exit 1); exit 1; }; }
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 { echo "$as_me: error: Working directory cannot be determined" >&2
1251 { (exit 1); exit 1; }; }
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 { echo "$as_me: error: pwd does not report name of working directory" >&2
1254 { (exit 1); exit 1; }; }
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$0" ||
1262 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$0" : 'X\(//\)[^/]' \| \
1264 X"$0" : 'X\(//\)$' \| \
1265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1294 { (exit 1); exit 1; }; }
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1299 { (exit 1); exit 1; }; }
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 --target=TARGET configure for building compilers for TARGET [HOST]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-compiler-version-checks
1399 Check the version of the host compiler (default is
1401 --enable-polly Use polly if available (default is YES)
1402 --enable-libcpp Use libc++ if available (default is NO)
1403 --enable-cxx11 Use c++11 if available (default is NO)
1404 --enable-split-dwarf Use split-dwarf if available (default is NO)
1405 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1406 --enable-clang-static-analyzer
1407 Enable building of clang Static Analyzer (default is
1409 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1410 --enable-optimized Compile with optimizations enabled (default is NO)
1411 --enable-profiling Compile with profiling enabled (default is NO)
1412 --enable-assertions Compile with assertion checks enabled (default is
1414 --enable-werror Compile with -Werror enabled (default is NO)
1415 --enable-expensive-checks
1416 Compile with expensive debug checks enabled (default
1418 --enable-debug-runtime Build runtime libs with debug symbols (default is
1420 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1421 optimization is on and YES if it's off)
1422 --enable-keep-symbols Do not strip installed executables)
1423 --enable-jit Enable Just In Time Compiling (default is YES)
1424 --enable-docs Build documents (default is YES)
1425 --enable-doxygen Build doxygen documentation (default is NO)
1426 --enable-threads Use threads if available (default is YES)
1427 --enable-pthreads Use pthreads if available (default is YES)
1428 --enable-zlib Use zlib for compression/decompression if available
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-crash-overrides
1441 Enable crash handling overrides (default is YES)
1442 --enable-targets Build specific host targets: all or
1443 target1,target2,... Valid targets are: host, x86,
1444 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1445 xcore, msp430, nvptx, systemz, r600, and cpp
1447 --enable-experimental-targets
1448 Build experimental host targets: disable or
1449 target1,target2,... (default=disable)
1450 --enable-bindings Build specific language bindings:
1451 all,auto,none,{binding-name} (default=auto)
1452 --enable-terminfo Query the terminfo database if available (default is
1454 --enable-libffi Check for the presence of libffi (default is NO)
1455 --enable-ltdl-install install libltdl
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-optimize-option Select the compiler options to use for optimized
1462 --with-extra-options Specify additional options to compile LLVM with
1463 --with-extra-ld-options Specify additional options to link LLVM with
1464 --with-ocaml-libdir Specify install location for ocaml bindings (default
1466 --with-clang-srcdir Directory to the out-of-tree Clang source
1467 --with-clang-resource-dir
1468 Relative directory from the Clang binary for
1470 --with-c-include-dirs Colon separated list of directories clang will
1472 --with-gcc-toolchain Directory where gcc is installed.
1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1474 --with-binutils-include Specify path to binutils/include/ containing
1475 plugin-api.h file for gold plugin.
1476 --with-bug-report-url Specify the URL where bug reports should be
1477 submitted (default=http://llvm.org/bugs/)
1478 --with-internal-prefix Installation directory for internal files
1479 --with-python path to python
1480 --with-udis86=<path> Use udis86 external x86 disassembler library
1481 --with-oprofile=<prefix>
1482 Tell OProfile >= 0.9.4 how to symbolize JIT output
1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 CXXCPP C++ preprocessor
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <http://llvm.org/bugs/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" || continue
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516 # A ".." for each directory in $ac_dir_suffix.
1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518 case $ac_top_builddir_sub in
1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1529 .) # We are building in place.
1531 ac_top_srcdir=$ac_top_builddir_sub
1532 ac_abs_top_srcdir=$ac_pwd ;;
1533 [\\/]* | ?:[\\/]* ) # Absolute name.
1534 ac_srcdir=$srcdir$ac_dir_suffix;
1535 ac_top_srcdir=$srcdir
1536 ac_abs_top_srcdir=$srcdir ;;
1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539 ac_top_srcdir=$ac_top_build_prefix$srcdir
1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1544 cd "$ac_dir" || { ac_status=$?; continue; }
1545 # Check for guested configure.
1546 if test -f "$ac_srcdir/configure.gnu"; then
1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549 elif test -f "$ac_srcdir/configure"; then
1551 $SHELL "$ac_srcdir/configure" --help=recursive
1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 cd "$ac_pwd" || { ac_status=$?; break; }
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1562 LLVM configure 3.5svn
1563 generated by GNU Autoconf 2.60
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1570 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1574 cat >config.log <<_ACEOF
1575 This file contains any messages produced by compilers while
1576 running configure, to aid debugging if configure makes a mistake.
1578 It was created by LLVM $as_me 3.5svn, which was
1579 generated by GNU Autoconf 2.60. Invocation command line was
1591 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1600 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1601 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1602 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1604 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1605 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1606 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 test -z "$as_dir" && as_dir=.
1615 echo "PATH: $as_dir"
1631 # Keep a trace of the command line.
1632 # Strip out --no-create and --no-recursion so they do not pile up.
1633 # Strip out --silent because we don't want to record it for future runs.
1634 # Also quote any args containing shell meta-characters.
1635 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_must_keep_next=false
1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647 | -silent | --silent | --silen | --sile | --sil)
1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656 if test $ac_must_keep_next = true; then
1657 ac_must_keep_next=false # Got value, back to normal.
1660 *=* | --config-cache | -C | -disable-* | --disable-* \
1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663 | -with-* | --with-* | -without-* | --without-* | --x)
1664 case "$ac_configure_args0 " in
1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 -* ) ac_must_keep_next=true ;;
1671 ac_configure_args="$ac_configure_args '$ac_arg'"
1676 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679 # When interrupted or exit'd, cleanup temporary files, and complete
1680 # config.log. We remove comments because anyway the quotes in there
1681 # would cause problems or look ugly.
1682 # WARNING: Use '\'' to represent an apostrophe within the trap.
1683 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684 trap 'exit_status=$?
1685 # Save into config.log some information that might help in debugging.
1690 ## ---------------- ##
1691 ## Cache variables. ##
1692 ## ---------------- ##
1695 # The following way of writing the cache mishandles newlines in values,
1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698 eval ac_val=\$$ac_var
1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 _ | IFS | as_nl) ;; #(
1707 *) $as_unset $ac_var ;;
1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713 *${as_nl}ac_space=\ *)
1715 "s/'\''/'\''\\\\'\'''\''/g;
1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ## ----------------- ##
1728 ## Output variables. ##
1729 ## ----------------- ##
1732 for ac_var in $ac_subst_vars
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1742 if test -n "$ac_subst_files"; then
1744 ## ------------------- ##
1745 ## File substitutions. ##
1746 ## ------------------- ##
1749 for ac_var in $ac_subst_files
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1760 if test -s confdefs.h; then
1770 test "$ac_signal" != 0 &&
1771 echo "$as_me: caught signal $ac_signal"
1772 echo "$as_me: exit $exit_status"
1774 rm -f core *.core core.conftest.* &&
1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 for ac_signal in 1 2 13 15; do
1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1784 rm -f -r conftest* confdefs.h
1786 # Predefined preprocessor variables.
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 # Let the site file select an alternate cache file if it wants to.
1814 # Prefer explicitly selected file to automatically selected ones.
1815 if test -n "$CONFIG_SITE"; then
1816 set x "$CONFIG_SITE"
1817 elif test "x$prefix" != xNONE; then
1818 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 set x "$ac_default_prefix/share/config.site" \
1821 "$ac_default_prefix/etc/config.site"
1826 if test -r "$ac_site_file"; then
1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828 echo "$as_me: loading site script $ac_site_file" >&6;}
1829 sed 's/^/| /' "$ac_site_file" >&5
1834 if test -r "$cache_file"; then
1835 # Some versions of bash will fail to source /dev/null (special
1836 # files actually), so we avoid doing that.
1837 if test -f "$cache_file"; then
1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839 echo "$as_me: loading cache $cache_file" >&6;}
1841 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842 *) . "./$cache_file";;
1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847 echo "$as_me: creating cache $cache_file" >&6;}
1851 # Check that the precious variables saved in the cache have kept the same
1853 ac_cache_corrupted=false
1854 for ac_var in $ac_precious_vars; do
1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856 eval ac_new_set=\$ac_env_${ac_var}_set
1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858 eval ac_new_val=\$ac_env_${ac_var}_value
1859 case $ac_old_set,$ac_new_set in
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1870 if test "x$ac_old_val" != "x$ac_new_val"; then
1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1874 echo "$as_me: former value: $ac_old_val" >&2;}
1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1876 echo "$as_me: current value: $ac_new_val" >&2;}
1877 ac_cache_corrupted=:
1880 # Pass precious variables to config.status.
1881 if test "$ac_new_set" = set; then
1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 *) ac_arg=$ac_var=$ac_new_val ;;
1886 case " $ac_configure_args " in
1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892 if $ac_cache_corrupted; then
1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897 { (exit 1); exit 1; }; }
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 cat >>confdefs.h <<\_ACEOF
1933 #define LLVM_VERSION_MAJOR 3
1937 cat >>confdefs.h <<\_ACEOF
1938 #define LLVM_VERSION_MINOR 5
1942 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1951 for ac_dir in autoconf "$srcdir"/autoconf; do
1952 if test -f "$ac_dir/install-sh"; then
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1956 elif test -f "$ac_dir/install.sh"; then
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1960 elif test -f "$ac_dir/shtool"; then
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1982 if test ${srcdir} != "." ; then
1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1985 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1986 { (exit 1); exit 1; }; }
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999 for ac_prog in clang gcc
2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2005 if test "${ac_cv_prog_CC+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$CC"; then
2009 ac_cv_prog_CC="$CC" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test -n "$CC"; then
2030 { echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6; }
2033 { echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6; }
2038 test -n "$CC" && break
2041 if test -z "$CC"; then
2043 for ac_prog in clang gcc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$ac_ct_CC"; then
2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2062 ac_cv_prog_ac_ct_CC="$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2073 if test -n "$ac_ct_CC"; then
2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2075 echo "${ECHO_T}$ac_ct_CC" >&6; }
2077 { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2082 test -n "$ac_ct_CC" && break
2085 if test "x$ac_ct_CC" = x; then
2088 case $cross_compiling:$ac_tool_warned in
2090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&5
2093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2094 whose name does not start with the host triplet. If you think this
2095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2096 ac_tool_warned=yes ;;
2103 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&5
2105 echo "$as_me: error: no acceptable C compiler found in \$PATH
2106 See \`config.log' for more details." >&2;}
2107 { (exit 1); exit 1; }; }
2109 # Provide some information about the compiler.
2110 echo "$as_me:$LINENO: checking for C compiler version" >&5
2111 ac_compiler=`set X $ac_compile; echo $2`
2112 { (ac_try="$ac_compiler --version >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler --version >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -v >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -v >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2132 { (ac_try="$ac_compiler -V >&5"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138 (eval "$ac_compiler -V >&5") 2>&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2158 ac_clean_files_save=$ac_clean_files
2159 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2160 # Try to create an executable without -o first, disregard a.out.
2161 # It will help us diagnose broken compilers, and finding out an intuition
2163 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2164 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2165 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2167 # List of possible output files, starting from the most likely.
2168 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2169 # only as a last resort. b.out is created by i960 compilers.
2170 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2172 # The IRIX 6 linker writes into existing files which may not be
2173 # executable, retaining their permissions. Remove them first so a
2174 # subsequent execution test works.
2176 for ac_file in $ac_files
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2185 if { (ac_try="$ac_link_default"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_link_default") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; then
2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2198 # so that the user can short-circuit this test for compilers unknown to
2200 for ac_file in $ac_files
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2207 # We found the default executable, but exeext='' is most
2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215 # We set ac_cv_exeext here because the later test for it is not
2216 # safe: cross compilers may not add the suffix if given an `-o'
2217 # argument, so we may need to know it at that point already.
2218 # Even if this section looks crufty: it has the advantage of
2225 test "$ac_cv_exeext" = no && ac_cv_exeext=
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&2;}
2235 { (exit 77); exit 77; }; }
2238 ac_exeext=$ac_cv_exeext
2239 { echo "$as_me:$LINENO: result: $ac_file" >&5
2240 echo "${ECHO_T}$ac_file" >&6; }
2242 # Check that the compiler produces executables we can run. If not, either
2243 # the compiler is broken, or we cross compile.
2244 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2246 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247 # If not cross compiling, check that we can run a simple program.
2248 if test "$cross_compiling" != yes; then
2249 if { ac_try='./$ac_file'
2250 { (case "(($ac_try" in
2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252 *) ac_try_echo=$ac_try;;
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255 (eval "$ac_try") 2>&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2261 if test "$cross_compiling" = maybe; then
2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265 If you meant to cross compile, use \`--host'.
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot run C compiled programs.
2268 If you meant to cross compile, use \`--host'.
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2274 { echo "$as_me:$LINENO: result: yes" >&5
2275 echo "${ECHO_T}yes" >&6; }
2277 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278 ac_clean_files=$ac_clean_files_save
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2283 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284 echo "${ECHO_T}$cross_compiling" >&6; }
2286 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2288 if { (ac_try="$ac_link"
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2294 (eval "$ac_link") 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest$ac_cv_exeext
2320 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2321 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2323 rm -f conftest.$ac_ext
2324 EXEEXT=$ac_cv_exeext
2326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2328 if test "${ac_cv_objext+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.o conftest.obj
2347 if { (ac_try="$ac_compile"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compile") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; then
2357 for ac_file in conftest.o conftest.obj conftest.*; do
2358 test -f "$ac_file" || continue;
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372 See \`config.log' for more details." >&2;}
2373 { (exit 1); exit 1; }; }
2376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379 echo "${ECHO_T}$ac_cv_objext" >&6; }
2380 OBJEXT=$ac_cv_objext
2382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 cat >conftest.$ac_ext <<_ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2405 rm -f conftest.$ac_objext
2406 if { (ac_try="$ac_compile"
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_compile") 2>conftest.er1
2414 grep -v '^ *+' conftest.er1 >conftest.err
2416 cat conftest.err >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); } &&
2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_try") 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2453 GCC=`test $ac_compiler_gnu = yes && echo yes`
2454 ac_test_CFLAGS=${CFLAGS+set}
2455 ac_save_CFLAGS=$CFLAGS
2456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_cc_g+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 ac_save_c_werror_flag=$ac_c_werror_flag
2462 ac_c_werror_flag=yes
2465 cat >conftest.$ac_ext <<_ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2480 rm -f conftest.$ac_objext
2481 if { (ac_try="$ac_compile"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487 (eval "$ac_compile") 2>conftest.er1
2489 grep -v '^ *+' conftest.er1 >conftest.err
2491 cat conftest.err >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); } &&
2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_try") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; }; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_try") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (ac_try="$ac_compile"
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
2616 { (case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_try") 2>&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_c_werror_flag=$ac_save_c_werror_flag
2642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2644 if test "$ac_test_CFLAGS" = set; then
2645 CFLAGS=$ac_save_CFLAGS
2646 elif test $ac_cv_prog_cc_g = yes; then
2647 if test "$GCC" = yes; then
2653 if test "$GCC" = yes; then
2659 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2660 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2661 if test "${ac_cv_prog_cc_c89+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 ac_cv_prog_cc_c89=no
2666 cat >conftest.$ac_ext <<_ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 #include <sys/types.h>
2675 #include <sys/stat.h>
2676 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2677 struct buf { int x; };
2678 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2679 static char *e (p, i)
2685 static char *f (char * (*g) (char **, int), char **p, ...)
2690 s = g (p, va_arg (v,int));
2695 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2696 function prototypes and stuff, but not '\xHH' hex character constants.
2697 These don't provoke an error unfortunately, instead are silently treated
2698 as 'x'. The following induces an error, until -std is added to get
2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2700 array size at least. It's necessary to write '\x00'==0 to get something
2701 that's true only with -std. */
2702 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2704 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2705 inside strings and character constants. */
2707 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2709 int test (int i, double x);
2710 struct s1 {int (*f) (int a);};
2711 struct s2 {int (*f) (double a);};
2712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2718 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2726 CC="$ac_save_CC $ac_arg"
2727 rm -f conftest.$ac_objext
2728 if { (ac_try="$ac_compile"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compile") 2>conftest.er1
2736 grep -v '^ *+' conftest.er1 >conftest.err
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_try") 2>&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_cv_prog_cc_c89=$ac_arg
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f core conftest.err conftest.$ac_objext
2770 test "x$ac_cv_prog_cc_c89" != "xno" && break
2772 rm -f conftest.$ac_ext
2777 case "x$ac_cv_prog_cc_c89" in
2779 { echo "$as_me:$LINENO: result: none needed" >&5
2780 echo "${ECHO_T}none needed" >&6; } ;;
2782 { echo "$as_me:$LINENO: result: unsupported" >&5
2783 echo "${ECHO_T}unsupported" >&6; } ;;
2785 CC="$CC $ac_cv_prog_cc_c89"
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798 ac_cpp='$CXXCPP $CPPFLAGS'
2799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2802 if test -z "$CXX"; then
2803 if test -n "$CCC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 for ac_prog in clang++ g++
2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2813 if test "${ac_cv_prog_CXX+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CXX"; then
2817 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$CXX"; then
2838 { echo "$as_me:$LINENO: result: $CXX" >&5
2839 echo "${ECHO_T}$CXX" >&6; }
2841 { echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6; }
2846 test -n "$CXX" && break
2849 if test -z "$CXX"; then
2851 for ac_prog in clang++ g++
2853 # Extract the first word of "$ac_prog", so it can be a program name with args.
2854 set dummy $ac_prog; ac_word=$2
2855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 if test -n "$ac_ct_CXX"; then
2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_ac_ct_CXX="$ac_prog"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2881 if test -n "$ac_ct_CXX"; then
2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2883 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2885 { echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6; }
2890 test -n "$ac_ct_CXX" && break
2893 if test "x$ac_ct_CXX" = x; then
2896 case $cross_compiling:$ac_tool_warned in
2898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2899 whose name does not start with the host triplet. If you think this
2900 configuration is useful to you, please write to autoconf@gnu.org." >&5
2901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2902 whose name does not start with the host triplet. If you think this
2903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2904 ac_tool_warned=yes ;;
2912 # Provide some information about the compiler.
2913 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2914 ac_compiler=`set X $ac_compile; echo $2`
2915 { (ac_try="$ac_compiler --version >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler --version >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -v >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -v >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2935 { (ac_try="$ac_compiler -V >&5"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compiler -V >&5") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }
2946 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2947 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2948 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3016 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3017 GXX=`test $ac_compiler_gnu = yes && echo yes`
3018 ac_test_CXXFLAGS=${CXXFLAGS+set}
3019 ac_save_CXXFLAGS=$CXXFLAGS
3020 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3021 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_cxx_g+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3026 ac_cxx_werror_flag=yes
3029 cat >conftest.$ac_ext <<_ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 rm -f conftest.$ac_objext
3045 if { (ac_try="$ac_compile"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1 >conftest.err
3055 cat conftest.err >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
3069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
3078 ac_cv_prog_cxx_g=yes
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cxx_g=yes
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3206 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3208 if test "$ac_test_CXXFLAGS" = set; then
3209 CXXFLAGS=$ac_save_CXXFLAGS
3210 elif test $ac_cv_prog_cxx_g = yes; then
3211 if test "$GXX" = yes; then
3217 if test "$GXX" = yes; then
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null; then
3282 if test -s conftest.err; then
3283 ac_cpp_err=$ac_c_preproc_warn_flag
3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291 if test -z "$ac_cpp_err"; then
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether nonexistent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (ac_try="$ac_cpp conftest.$ac_ext"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3335 if test -z "$ac_cpp_err"; then
3336 # Broken: success on invalid input.
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3342 # Passes both tests.
3347 rm -f conftest.err conftest.$ac_ext
3350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3351 rm -f conftest.err conftest.$ac_ext
3352 if $ac_preproc_ok; then
3364 { echo "$as_me:$LINENO: result: $CPP" >&5
3365 echo "${ECHO_T}$CPP" >&6; }
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null; then
3401 if test -s conftest.err; then
3402 ac_cpp_err=$ac_c_preproc_warn_flag
3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3410 if test -z "$ac_cpp_err"; then
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Broken: fails on valid input.
3420 rm -f conftest.err conftest.$ac_ext
3422 # OK, works on sane cases. Now check whether nonexistent headers
3423 # can be detected and how.
3424 cat >conftest.$ac_ext <<_ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <ac_nonexistent.h>
3432 if { (ac_try="$ac_cpp conftest.$ac_ext"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 if test -z "$ac_cpp_err"; then
3455 # Broken: success on invalid input.
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 # Passes both tests.
3466 rm -f conftest.err conftest.$ac_ext
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&5
3476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3477 See \`config.log' for more details." >&2;}
3478 { (exit 1); exit 1; }; }
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test "$CXX" = "clang++" ; then
3489 { echo "$as_me:$LINENO: checking whether clang works" >&5
3490 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3492 ac_cpp='$CXXCPP $CPPFLAGS'
3493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 #if __has_include (<cxxabi.h>)
3508 #if __has_include (<unwind.h>)
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } &&
3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3550 (eval "$ac_try") 2>&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3555 { echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6; }
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3565 { { 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
3566 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;}
3567 { (exit 1); exit 1; }; }
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3581 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3583 ac_cpp='$CXXCPP $CPPFLAGS'
3584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588 llvm_cv_cxx_compiler=unknown
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
3614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3615 { (case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_try") 2>&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_try") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 llvm_cv_cxx_compiler=clang
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3650 rm -f conftest.$ac_objext
3651 if { (ac_try="$ac_compile"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665 { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try='test -s conftest.$ac_objext'
3675 { (case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_try") 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; }; then
3684 llvm_cv_cxx_compiler=gcc
3686 echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3703 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3705 # Check whether --enable-compiler-version-checks was given.
3706 if test "${enable_compiler_version_checks+set}" = set; then
3707 enableval=$enable_compiler_version_checks;
3712 case "$enableval" in
3717 ac_cpp='$CXXCPP $CPPFLAGS'
3718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3722 case "$llvm_cv_cxx_compiler" in
3724 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3725 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3733 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3734 #error This version of Clang is too old to build LLVM
3738 rm -f conftest.$ac_objext
3739 if { (ac_try="$ac_compile"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_compile") 2>conftest.er1
3747 grep -v '^ *+' conftest.er1 >conftest.err
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3753 { (case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758 (eval "$ac_try") 2>&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; } &&
3762 { ac_try='test -s conftest.$ac_objext'
3763 { (case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_try") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 { echo "$as_me:$LINENO: result: yes" >&5
3773 echo "${ECHO_T}yes" >&6; }
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3780 { { echo "$as_me:$LINENO: error:
3781 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3782 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3783 bypass these sanity checks." >&5
3784 echo "$as_me: error:
3785 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3786 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3787 bypass these sanity checks." >&2;}
3788 { (exit 1); exit 1; }; }
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
3794 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
3795 llvm_cv_old_cxxflags="$CXXFLAGS"
3796 CXXFLAGS="$CXXFLAGS -std=c++0x"
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3805 std::atomic<float> x(0.0f);
3806 int main() { return (float)x; }
3809 rm -f conftest.$ac_objext conftest$ac_exeext
3810 if { (ac_try="$ac_link"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_link") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3824 { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest$ac_exeext'
3834 { (case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_try") 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 { echo "$as_me:$LINENO: result: yes" >&5
3844 echo "${ECHO_T}yes" >&6; }
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3851 { { echo "$as_me:$LINENO: error:
3852 We detected a missing feature in the standard C++ library that was known to be
3853 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3854 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3855 than 4.7. You will need to update your system and ensure Clang uses the newer
3858 If this error is incorrect or you need to force things to work, you may pass
3859 '--disable-compiler-version-checks' to configure to bypass this test." >&5
3860 echo "$as_me: error:
3861 We detected a missing feature in the standard C++ library that was known to be
3862 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
3863 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
3864 than 4.7. You will need to update your system and ensure Clang uses the newer
3867 If this error is incorrect or you need to force things to work, you may pass
3868 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
3869 { (exit 1); exit 1; }; }
3872 rm -f core conftest.err conftest.$ac_objext \
3873 conftest$ac_exeext conftest.$ac_ext
3874 CXXFLAGS="$llvm_cv_old_cxxflags"
3877 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3878 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3886 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3887 #error This version of GCC is too old to build LLVM
3891 rm -f conftest.$ac_objext
3892 if { (ac_try="$ac_compile"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3898 (eval "$ac_compile") 2>conftest.er1
3900 grep -v '^ *+' conftest.er1 >conftest.err
3902 cat conftest.err >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } &&
3905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3906 { (case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911 (eval "$ac_try") 2>&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest.$ac_objext'
3916 { (case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_try") 2>&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); }; }; then
3925 { echo "$as_me:$LINENO: result: yes" >&5
3926 echo "${ECHO_T}yes" >&6; }
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3933 { { echo "$as_me:$LINENO: error:
3934 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3935 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3936 bypass these sanity checks." >&5
3937 echo "$as_me: error:
3938 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3939 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3940 bypass these sanity checks." >&2;}
3941 { (exit 1); exit 1; }; }
3944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3958 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3959 { (exit 1); exit 1; }; }
3965 if test -d ${srcdir}/projects/test-suite ; then
3966 subdirs="$subdirs projects/test-suite"
3970 if test -d ${srcdir}/projects/llvm-test ; then
3971 subdirs="$subdirs projects/llvm-test"
3975 if test -d ${srcdir}/projects/poolalloc ; then
3976 subdirs="$subdirs projects/poolalloc"
3980 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3981 subdirs="$subdirs projects/llvm-poolalloc"
3985 for i in `ls ${srcdir}/projects`
3987 if test -d ${srcdir}/projects/${i} ; then
3989 sample) subdirs="$subdirs projects/sample"
3991 safecode) subdirs="$subdirs projects/safecode"
3999 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
4000 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
4006 # Check whether --enable-polly was given.
4007 if test "${enable_polly+set}" = set; then
4008 enableval=$enable_polly;
4013 case "$enableval" in
4018 default) ENABLE_POLLY=1
4020 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
4021 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
4022 { (exit 1); exit 1; }; } ;;
4026 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
4029 subdirs="$subdirs tools/polly"
4034 # Make sure we can run config.sub.
4035 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4036 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4037 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4038 { (exit 1); exit 1; }; }
4040 { echo "$as_me:$LINENO: checking build system type" >&5
4041 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4042 if test "${ac_cv_build+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_build_alias=$build_alias
4046 test "x$ac_build_alias" = x &&
4047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4048 test "x$ac_build_alias" = x &&
4049 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4050 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4051 { (exit 1); exit 1; }; }
4052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4055 { (exit 1); exit 1; }; }
4058 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4059 echo "${ECHO_T}$ac_cv_build" >&6; }
4060 case $ac_cv_build in
4062 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4063 echo "$as_me: error: invalid value of canonical build" >&2;}
4064 { (exit 1); exit 1; }; };;
4067 ac_save_IFS=$IFS; IFS='-'
4073 # Remember, the first character of IFS is used to create $*,
4074 # except with old shells:
4077 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4080 { echo "$as_me:$LINENO: checking host system type" >&5
4081 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4082 if test "${ac_cv_host+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 if test "x$host_alias" = x; then
4086 ac_cv_host=$ac_cv_build
4088 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4089 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4090 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4091 { (exit 1); exit 1; }; }
4095 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4096 echo "${ECHO_T}$ac_cv_host" >&6; }
4099 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4100 echo "$as_me: error: invalid value of canonical host" >&2;}
4101 { (exit 1); exit 1; }; };;
4104 ac_save_IFS=$IFS; IFS='-'
4110 # Remember, the first character of IFS is used to create $*,
4111 # except with old shells:
4114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4117 { echo "$as_me:$LINENO: checking target system type" >&5
4118 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4119 if test "${ac_cv_target+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test "x$target_alias" = x; then
4123 ac_cv_target=$ac_cv_host
4125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4128 { (exit 1); exit 1; }; }
4132 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4133 echo "${ECHO_T}$ac_cv_target" >&6; }
4134 case $ac_cv_target in
4136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4137 echo "$as_me: error: invalid value of canonical target" >&2;}
4138 { (exit 1); exit 1; }; };;
4140 target=$ac_cv_target
4141 ac_save_IFS=$IFS; IFS='-'
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4151 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4154 # The aliases save the names the user supplied, while $host etc.
4155 # will get canonicalized.
4156 test -n "$target_alias" &&
4157 test "$program_prefix$program_suffix$program_transform_name" = \
4159 program_prefix=${target_alias}-
4161 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4162 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4163 if test "${llvm_cv_os_type+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 llvm_cv_link_all_option="-Wl,--whole-archive"
4169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4170 llvm_cv_os_type="AIX"
4171 llvm_cv_platform_type="Unix" ;;
4173 llvm_cv_link_all_option="-Wl,--whole-archive"
4174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4175 llvm_cv_os_type="IRIX"
4176 llvm_cv_platform_type="Unix" ;;
4178 llvm_cv_link_all_option="-Wl,--whole-archive"
4179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4180 llvm_cv_os_type="Cygwin"
4181 llvm_cv_platform_type="Unix" ;;
4183 llvm_cv_link_all_option="-Wl,-all_load"
4184 llvm_cv_no_link_all_option="-Wl,-noall_load"
4185 llvm_cv_os_type="Darwin"
4186 llvm_cv_platform_type="Unix" ;;
4188 llvm_cv_link_all_option="-Wl,-all_load"
4189 llvm_cv_no_link_all_option="-Wl,-noall_load"
4190 llvm_cv_os_type="Minix"
4191 llvm_cv_platform_type="Unix" ;;
4193 llvm_cv_link_all_option="-Wl,--whole-archive"
4194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4195 llvm_cv_os_type="FreeBSD"
4196 llvm_cv_platform_type="Unix" ;;
4198 llvm_cv_link_all_option="-Wl,--whole-archive"
4199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4200 llvm_cv_os_type="GNU/kFreeBSD"
4201 llvm_cv_platform_type="Unix" ;;
4203 llvm_cv_link_all_option="-Wl,--whole-archive"
4204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4205 llvm_cv_os_type="OpenBSD"
4206 llvm_cv_platform_type="Unix" ;;
4208 llvm_cv_link_all_option="-Wl,--whole-archive"
4209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4210 llvm_cv_os_type="NetBSD"
4211 llvm_cv_platform_type="Unix" ;;
4213 llvm_cv_link_all_option="-Wl,--whole-archive"
4214 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4215 llvm_cv_os_type="DragonFly"
4216 llvm_cv_platform_type="Unix" ;;
4218 llvm_cv_link_all_option="-Wl,--whole-archive"
4219 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4220 llvm_cv_os_type="HP-UX"
4221 llvm_cv_platform_type="Unix" ;;
4223 llvm_cv_link_all_option="-Wl,--whole-archive"
4224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4225 llvm_cv_os_type="Interix"
4226 llvm_cv_platform_type="Unix" ;;
4228 llvm_cv_link_all_option="-Wl,--whole-archive"
4229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4230 llvm_cv_os_type="Linux"
4231 llvm_cv_platform_type="Unix" ;;
4233 llvm_cv_link_all_option="-Wl,--whole-archive"
4234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4235 llvm_cv_os_type="GNU"
4236 llvm_cv_platform_type="Unix" ;;
4238 llvm_cv_link_all_option="-Wl,-z,allextract"
4239 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4240 llvm_cv_os_type="SunOS"
4241 llvm_cv_platform_type="Unix" ;;
4243 llvm_cv_link_all_option="-Wl,-z,allextract"
4244 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4245 llvm_cv_os_type="AuroraUX"
4246 llvm_cv_platform_type="Unix" ;;
4248 llvm_cv_link_all_option="-Wl,--whole-archive"
4249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4250 llvm_cv_os_type="Win32"
4251 llvm_cv_platform_type="Win32" ;;
4253 llvm_cv_link_all_option="-Wl,--whole-archive"
4254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4255 llvm_cv_os_type="MingW"
4256 llvm_cv_platform_type="Win32" ;;
4258 llvm_cv_link_all_option="-Wl,--whole-archive"
4259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4260 llvm_cv_os_type="Haiku"
4261 llvm_cv_platform_type="Unix" ;;
4263 llvm_cv_link_all_option="-Wl,--whole-archive"
4264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4265 llvm_cv_os_type="Freestanding"
4266 llvm_cv_platform_type="Unix" ;;
4268 llvm_cv_link_all_option="-Wl,--whole-archive"
4269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4270 llvm_cv_os_type="Freestanding"
4271 llvm_cv_platform_type="Unix" ;;
4273 llvm_cv_link_all_option=""
4274 llvm_cv_no_link_all_option=""
4275 llvm_cv_os_type="Unknown"
4276 llvm_cv_platform_type="Unknown" ;;
4279 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4280 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4282 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4283 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4284 if test "${llvm_cv_target_os_type+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 llvm_cv_target_os_type="AIX" ;;
4291 llvm_cv_target_os_type="IRIX" ;;
4293 llvm_cv_target_os_type="Cygwin" ;;
4295 llvm_cv_target_os_type="Darwin" ;;
4297 llvm_cv_target_os_type="Minix" ;;
4299 llvm_cv_target_os_type="FreeBSD" ;;
4301 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4303 llvm_cv_target_os_type="OpenBSD" ;;
4305 llvm_cv_target_os_type="NetBSD" ;;
4307 llvm_cv_target_os_type="DragonFly" ;;
4309 llvm_cv_target_os_type="HP-UX" ;;
4311 llvm_cv_target_os_type="Interix" ;;
4313 llvm_cv_target_os_type="Linux" ;;
4315 llvm_cv_target_os_type="GNU" ;;
4317 llvm_cv_target_os_type="SunOS" ;;
4319 llvm_cv_target_os_type="AuroraUX" ;;
4321 llvm_cv_target_os_type="Win32" ;;
4323 llvm_cv_target_os_type="MingW" ;;
4325 llvm_cv_target_os_type="Haiku" ;;
4327 llvm_cv_target_os_type="RTEMS" ;;
4329 llvm_cv_target_os_type="NativeClient" ;;
4331 llvm_cv_target_os_type="Freestanding" ;;
4333 llvm_cv_target_os_type="Unknown" ;;
4336 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4337 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4339 if test "$llvm_cv_os_type" = "Unknown" ; then
4340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4341 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4342 { (exit 1); exit 1; }; }
4347 HOST_OS=$llvm_cv_os_type
4349 TARGET_OS=$llvm_cv_target_os_type
4352 LINKALL=$llvm_cv_link_all_option
4354 NOLINKALL=$llvm_cv_no_link_all_option
4357 case $llvm_cv_platform_type in
4360 cat >>confdefs.h <<\_ACEOF
4361 #define LLVM_ON_UNIX 1
4371 cat >>confdefs.h <<\_ACEOF
4372 #define LLVM_ON_WIN32 1
4382 { echo "$as_me:$LINENO: checking target architecture" >&5
4383 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4384 if test "${llvm_cv_target_arch+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 i?86-*) llvm_cv_target_arch="x86" ;;
4389 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4390 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4391 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4392 arm*-*) llvm_cv_target_arch="ARM" ;;
4393 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4394 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4395 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4396 xcore-*) llvm_cv_target_arch="XCore" ;;
4397 msp430-*) llvm_cv_target_arch="MSP430" ;;
4398 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4399 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4400 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4401 *) llvm_cv_target_arch="Unknown" ;;
4404 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4405 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4407 if test "$llvm_cv_target_arch" = "Unknown" ; then
4408 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4409 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4412 case "$llvm_cv_target_arch" in
4413 x86) LLVM_NATIVE_ARCH="X86" ;;
4414 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4415 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4418 ARCH=$llvm_cv_target_arch
4422 i?86-*) host_arch="x86" ;;
4423 amd64-* | x86_64-*) host_arch="x86_64" ;;
4424 sparc*-*) host_arch="Sparc" ;;
4425 powerpc*-*) host_arch="PowerPC" ;;
4426 arm*-*) host_arch="ARM" ;;
4427 aarch64*-*) host_arch="AArch64" ;;
4428 mips-* | mips64-*) host_arch="Mips" ;;
4429 mipsel-* | mips64el-*) host_arch="Mips" ;;
4430 xcore-*) host_arch="XCore" ;;
4431 msp430-*) host_arch="MSP430" ;;
4432 hexagon-*) host_arch="Hexagon" ;;
4433 s390x-*) host_arch="SystemZ" ;;
4434 *) host_arch="Unknown" ;;
4437 if test "$host_arch" = "Unknown" ; then
4438 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4439 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4442 HOST_ARCH=$host_arch
4445 if test "$cross_compiling" = yes; then
4446 LLVM_CROSS_COMPILING=1
4449 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4450 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4451 if test "${ac_cv_build_exeext+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4455 ac_cv_build_exeext=.exe
4457 ac_build_prefix=${build_alias}-
4459 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4460 set dummy ${ac_build_prefix}gcc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 BUILD_CC=$ac_cv_prog_BUILD_CC
4487 if test -n "$BUILD_CC"; then
4488 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489 echo "${ECHO_T}$BUILD_CC" >&6; }
4491 { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4496 if test -z "$BUILD_CC"; then
4497 # Extract the first word of "gcc", so it can be a program name with args.
4498 set dummy gcc; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test -n "$BUILD_CC"; then
4505 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_BUILD_CC="gcc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4534 if test -z "$BUILD_CC"; then
4535 # Extract the first word of "cc", so it can be a program name with args.
4536 set dummy cc; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if test -n "$BUILD_CC"; then
4543 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4554 ac_prog_rejected=yes
4557 ac_cv_prog_BUILD_CC="cc"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 if test $ac_prog_rejected = yes; then
4566 # We found a bogon in the path, so make sure we never use it.
4567 set dummy $ac_cv_prog_BUILD_CC
4569 if test $# != 0; then
4570 # We chose a different compiler from the bogus one.
4571 # However, it has the same basename, so the bogon will be chosen
4572 # first if we set BUILD_CC to just the basename; use the full file name.
4574 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4579 BUILD_CC=$ac_cv_prog_BUILD_CC
4580 if test -n "$BUILD_CC"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4582 echo "${ECHO_T}$BUILD_CC" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4591 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4592 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4593 { (exit 1); exit 1; }; }
4594 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4596 echo 'int main () { return 0; }' > conftest.$ac_ext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4599 (eval $ac_build_link) 2>&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; then
4603 for file in conftest.*; do
4605 *.c | *.o | *.obj | *.dSYM) ;;
4606 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4610 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4611 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4612 { (exit 1); exit 1; }; }
4615 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4620 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4621 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4622 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4623 ac_build_exeext=$BUILD_EXEEXT
4625 ac_build_prefix=${build_alias}-
4626 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4627 set dummy ${ac_build_prefix}g++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4643 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654 if test -n "$BUILD_CXX"; then
4655 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656 echo "${ECHO_T}$BUILD_CXX" >&6; }
4658 { echo "$as_me:$LINENO: result: no" >&5
4659 echo "${ECHO_T}no" >&6; }
4663 if test -z "$BUILD_CXX"; then
4664 # Extract the first word of "g++", so it can be a program name with args.
4665 set dummy g++; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 if test -n "$BUILD_CXX"; then
4672 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_BUILD_CXX="g++"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4701 if test -z "$BUILD_CXX"; then
4702 # Extract the first word of "c++", so it can be a program name with args.
4703 set dummy c++; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 if test -n "$BUILD_CXX"; then
4710 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4721 ac_prog_rejected=yes
4724 ac_cv_prog_BUILD_CXX="c++"
4725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 if test $ac_prog_rejected = yes; then
4733 # We found a bogon in the path, so make sure we never use it.
4734 set dummy $ac_cv_prog_BUILD_CXX
4736 if test $# != 0; then
4737 # We chose a different compiler from the bogus one.
4738 # However, it has the same basename, so the bogon will be chosen
4739 # first if we set BUILD_CXX to just the basename; use the full file name.
4741 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4746 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4747 if test -n "$BUILD_CXX"; then
4748 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4749 echo "${ECHO_T}$BUILD_CXX" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4759 LLVM_CROSS_COMPILING=0
4763 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4774 # Check whether --enable-libcpp was given.
4775 if test "${enable_libcpp+set}" = set; then
4776 enableval=$enable_libcpp;
4781 case "$enableval" in
4782 yes) ENABLE_LIBCPP=1
4786 default) ENABLE_LIBCPP=0
4788 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4789 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4790 { (exit 1); exit 1; }; } ;;
4793 # Check whether --enable-cxx11 was given.
4794 if test "${enable_cxx11+set}" = set; then
4795 enableval=$enable_cxx11;
4800 case "$enableval" in
4805 default) ENABLE_CXX11=0
4807 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4808 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4809 { (exit 1); exit 1; }; } ;;
4812 # Check whether --enable-split-dwarf was given.
4813 if test "${enable_split_dwarf+set}" = set; then
4814 enableval=$enable_split_dwarf;
4819 case "$enableval" in
4820 yes) ENABLE_SPLIT_DWARF=1
4822 no) ENABLE_SPLIT_DWARF=0
4824 default) ENABLE_SPLIT_DWARF=0
4826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4827 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
4832 # Check whether --enable-clang-arcmt was given.
4833 if test "${enable_clang_arcmt+set}" = set; then
4834 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4839 case "$enableval" in
4840 yes) ENABLE_CLANG_ARCMT=1
4842 no) ENABLE_CLANG_ARCMT=0
4844 default) ENABLE_CLANG_ARCMT=1
4846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4851 clang_static_analyzer="yes"
4852 # Check whether --enable-clang-static-analyzer was given.
4853 if test "${enable_clang_static_analyzer+set}" = set; then
4854 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4859 case "$enableval" in
4860 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4863 if test ${clang_arcmt} != "no" ; then
4864 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4865 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4866 { (exit 1); exit 1; }; }
4868 ENABLE_CLANG_STATIC_ANALYZER=0
4871 default) ENABLE_CLANG_STATIC_ANALYZER=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 # Check whether --enable-clang-rewriter was given.
4879 if test "${enable_clang_rewriter+set}" = set; then
4880 enableval=$enable_clang_rewriter;
4885 case "$enableval" in
4886 yes) ENABLE_CLANG_REWRITER=1
4889 if test ${clang_arcmt} != "no" ; then
4890 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4891 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4892 { (exit 1); exit 1; }; }
4894 if test ${clang_static_analyzer} != "no" ; then
4895 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4896 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4897 { (exit 1); exit 1; }; }
4899 ENABLE_CLANG_REWRITER=0
4902 default) ENABLE_CLANG_REWRITER=1
4904 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4905 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4909 # Check whether --enable-optimized was given.
4910 if test "${enable_optimized+set}" = set; then
4911 enableval=$enable_optimized;
4916 if test ${enableval} = "no" ; then
4920 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4924 # Check whether --enable-profiling was given.
4925 if test "${enable_profiling+set}" = set; then
4926 enableval=$enable_profiling;
4931 if test ${enableval} = "no" ; then
4935 ENABLE_PROFILING=ENABLE_PROFILING=1
4939 # Check whether --enable-assertions was given.
4940 if test "${enable_assertions+set}" = set; then
4941 enableval=$enable_assertions;
4946 if test ${enableval} = "yes" ; then
4950 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4954 # Check whether --enable-werror was given.
4955 if test "${enable_werror+set}" = set; then
4956 enableval=$enable_werror;
4961 case "$enableval" in
4962 yes) ENABLE_WERROR=1
4966 default) ENABLE_WERROR=0
4968 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4969 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4973 # Check whether --enable-expensive-checks was given.
4974 if test "${enable_expensive_checks+set}" = set; then
4975 enableval=$enable_expensive_checks;
4980 if test ${enableval} = "yes" ; then
4981 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4983 EXPENSIVE_CHECKS=yes
4986 ENABLE_EXPENSIVE_CHECKS=
4992 # Check whether --enable-debug-runtime was given.
4993 if test "${enable_debug_runtime+set}" = set; then
4994 enableval=$enable_debug_runtime;
4999 if test ${enableval} = "no" ; then
5003 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5007 # Check whether --enable-debug-symbols was given.
5008 if test "${enable_debug_symbols+set}" = set; then
5009 enableval=$enable_debug_symbols;
5014 if test ${enableval} = "no" ; then
5018 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5022 # Check whether --enable-keep-symbols was given.
5023 if test "${enable_keep_symbols+set}" = set; then
5024 enableval=$enable_keep_symbols;
5029 if test ${enableval} = "no" ; then
5033 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5037 # Check whether --enable-jit was given.
5038 if test "${enable_jit+set}" = set; then
5039 enableval=$enable_jit;
5044 if test ${enableval} = "no"
5049 case "$llvm_cv_target_arch" in
5050 x86) TARGET_HAS_JIT=1
5052 Sparc) TARGET_HAS_JIT=0
5054 PowerPC) TARGET_HAS_JIT=1
5056 x86_64) TARGET_HAS_JIT=1
5058 ARM) TARGET_HAS_JIT=1
5060 AArch64) TARGET_HAS_JIT=0
5062 Mips) TARGET_HAS_JIT=1
5064 XCore) TARGET_HAS_JIT=0
5066 MSP430) TARGET_HAS_JIT=0
5068 Hexagon) TARGET_HAS_JIT=0
5070 NVPTX) TARGET_HAS_JIT=0
5072 SystemZ) TARGET_HAS_JIT=1
5079 # Check whether --enable-docs was given.
5080 if test "${enable_docs+set}" = set; then
5081 enableval=$enable_docs;
5086 case "$enableval" in
5091 default) ENABLE_DOCS=1
5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5095 { (exit 1); exit 1; }; } ;;
5098 # Check whether --enable-doxygen was given.
5099 if test "${enable_doxygen+set}" = set; then
5100 enableval=$enable_doxygen;
5105 case "$enableval" in
5106 yes) ENABLE_DOXYGEN=1
5108 no) ENABLE_DOXYGEN=0
5110 default) ENABLE_DOXYGEN=0
5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5114 { (exit 1); exit 1; }; } ;;
5117 # Check whether --enable-threads was given.
5118 if test "${enable_threads+set}" = set; then
5119 enableval=$enable_threads;
5124 case "$enableval" in
5125 yes) LLVM_ENABLE_THREADS=1
5127 no) LLVM_ENABLE_THREADS=0
5129 default) LLVM_ENABLE_THREADS=1
5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5136 cat >>confdefs.h <<_ACEOF
5137 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5141 # Check whether --enable-pthreads was given.
5142 if test "${enable_pthreads+set}" = set; then
5143 enableval=$enable_pthreads;
5148 case "$enableval" in
5149 yes) ENABLE_PTHREADS=1
5151 no) ENABLE_PTHREADS=0
5153 default) ENABLE_PTHREADS=1
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5160 # Check whether --enable-zlib was given.
5161 if test "${enable_zlib+set}" = set; then
5162 enableval=$enable_zlib;
5167 case "$enableval" in
5168 yes) LLVM_ENABLE_ZLIB=1
5170 no) LLVM_ENABLE_ZLIB=0
5172 default) LLVM_ENABLE_ZLIB=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 cat >>confdefs.h <<_ACEOF
5180 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5184 # Check whether --enable-pic was given.
5185 if test "${enable_pic+set}" = set; then
5186 enableval=$enable_pic;
5191 case "$enableval" in
5196 default) ENABLE_PIC=1
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 cat >>confdefs.h <<_ACEOF
5204 #define ENABLE_PIC $ENABLE_PIC
5208 # Check whether --enable-shared was given.
5209 if test "${enable_shared+set}" = set; then
5210 enableval=$enable_shared;
5215 case "$enableval" in
5216 yes) ENABLE_SHARED=1
5220 default) ENABLE_SHARED=0
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 # Check whether --enable-embed-stdcxx was given.
5228 if test "${enable_embed_stdcxx+set}" = set; then
5229 enableval=$enable_embed_stdcxx;
5234 case "$enableval" in
5235 yes) ENABLE_EMBED_STDCXX=1
5237 no) ENABLE_EMBED_STDCXX=0
5239 default) ENABLE_EMBED_STDCXX=0
5241 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5246 # Check whether --enable-timestamps was given.
5247 if test "${enable_timestamps+set}" = set; then
5248 enableval=$enable_timestamps;
5253 case "$enableval" in
5254 yes) ENABLE_TIMESTAMPS=1
5256 no) ENABLE_TIMESTAMPS=0
5258 default) ENABLE_TIMESTAMPS=1
5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5261 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5265 cat >>confdefs.h <<_ACEOF
5266 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5270 # Check whether --enable-backtraces was given.
5271 if test "${enable_backtraces+set}" = set; then
5272 enableval=$enable_backtraces; case "$enableval" in
5273 yes) llvm_cv_enable_backtraces="yes" ;;
5274 no) llvm_cv_enable_backtraces="no" ;;
5275 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5276 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5277 { (exit 1); exit 1; }; } ;;
5280 llvm_cv_enable_backtraces="yes"
5283 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5285 cat >>confdefs.h <<\_ACEOF
5286 #define ENABLE_BACKTRACES 1
5291 # Check whether --enable-crash-overrides was given.
5292 if test "${enable_crash_overrides+set}" = set; then
5293 enableval=$enable_crash_overrides; case "$enableval" in
5294 yes) llvm_cv_enable_crash_overrides="yes" ;;
5295 no) llvm_cv_enable_crash_overrides="no" ;;
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 llvm_cv_enable_crash_overrides="yes"
5304 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5306 cat >>confdefs.h <<\_ACEOF
5307 #define ENABLE_CRASH_OVERRIDES 1
5313 # Check whether --enable-targets was given.
5314 if test "${enable_targets+set}" = set; then
5315 enableval=$enable_targets;
5320 if test "$enableval" = host-only ; then
5323 case "$enableval" in
5324 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5325 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5327 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5330 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5331 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5332 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5333 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5338 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5339 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5340 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5341 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5342 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5343 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5344 host) case "$llvm_cv_target_arch" in
5345 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5347 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5348 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5349 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5350 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5351 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5352 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5353 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5354 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5355 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5356 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5357 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5358 echo "$as_me: error: Can not set target to build" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5361 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5362 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5369 # Check whether --enable-experimental-targets was given.
5370 if test "${enable_experimental_targets+set}" = set; then
5371 enableval=$enable_experimental_targets;
5377 if test ${enableval} != "disable"
5379 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5382 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5385 for a_target in $TARGETS_TO_BUILD; do
5386 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5393 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5394 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5395 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5397 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5399 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5400 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5408 cat >>confdefs.h <<_ACEOF
5409 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5413 cat >>confdefs.h <<_ACEOF
5414 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5429 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5439 LLVM_ENUM_TARGETS=""
5440 LLVM_ENUM_ASM_PRINTERS=""
5441 LLVM_ENUM_ASM_PARSERS=""
5442 LLVM_ENUM_DISASSEMBLERS=""
5443 for target_to_build in $TARGETS_TO_BUILD; do
5444 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5445 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5446 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5448 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5449 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5451 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5452 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5461 # Check whether --with-optimize-option was given.
5462 if test "${with_optimize_option+set}" = set; then
5463 withval=$with_optimize_option;
5468 { echo "$as_me:$LINENO: checking optimization flags" >&5
5469 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$llvm_cv_os_type" in
5473 FreeBSD) optimize_option=-O2 ;;
5474 MingW) optimize_option=-O2 ;;
5475 *) optimize_option=-O3 ;;
5477 *) optimize_option="$withval" ;;
5479 OPTIMIZE_OPTION=$optimize_option
5481 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5482 echo "${ECHO_T}$optimize_option" >&6; }
5485 # Check whether --with-extra-options was given.
5486 if test "${with_extra_options+set}" = set; then
5487 withval=$with_extra_options;
5493 default) EXTRA_OPTIONS= ;;
5494 *) EXTRA_OPTIONS=$withval ;;
5496 EXTRA_OPTIONS=$EXTRA_OPTIONS
5500 # Check whether --with-extra-ld-options was given.
5501 if test "${with_extra_ld_options+set}" = set; then
5502 withval=$with_extra_ld_options;
5508 default) EXTRA_LD_OPTIONS= ;;
5509 *) EXTRA_LD_OPTIONS=$withval ;;
5511 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5514 # Check whether --enable-bindings was given.
5515 if test "${enable_bindings+set}" = set; then
5516 enableval=$enable_bindings;
5521 BINDINGS_TO_BUILD=""
5522 case "$enableval" in
5523 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5524 all ) BINDINGS_TO_BUILD="ocaml" ;;
5525 none | no) BINDINGS_TO_BUILD="" ;;
5526 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5527 case "$a_binding" in
5528 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5529 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5530 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5531 { (exit 1); exit 1; }; } ;;
5538 # Check whether --with-ocaml-libdir was given.
5539 if test "${with_ocaml_libdir+set}" = set; then
5540 withval=$with_ocaml_libdir;
5546 auto) with_ocaml_libdir="$withval" ;;
5547 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5548 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5549 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5550 { (exit 1); exit 1; }; } ;;
5554 # Check whether --with-clang-srcdir was given.
5555 if test "${with_clang_srcdir+set}" = set; then
5556 withval=$with_clang_srcdir;
5562 -) clang_src_root="" ;;
5563 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5564 *) clang_src_root="$ac_pwd/$withval" ;;
5566 CLANG_SRC_ROOT=$clang_src_root
5570 # Check whether --with-clang-resource-dir was given.
5571 if test "${with_clang_resource_dir+set}" = set; then
5572 withval=$with_clang_resource_dir;
5578 cat >>confdefs.h <<_ACEOF
5579 #define CLANG_RESOURCE_DIR "$withval"
5584 # Check whether --with-c-include-dirs was given.
5585 if test "${with_c_include_dirs+set}" = set; then
5586 withval=$with_c_include_dirs;
5592 cat >>confdefs.h <<_ACEOF
5593 #define C_INCLUDE_DIRS "$withval"
5597 # Clang normally uses the system c++ headers and libraries. With this option,
5598 # clang will use the ones provided by a gcc installation instead. This option should
5599 # be passed the same value that was used with --prefix when configuring gcc.
5601 # Check whether --with-gcc-toolchain was given.
5602 if test "${with_gcc_toolchain+set}" = set; then
5603 withval=$with_gcc_toolchain;
5609 cat >>confdefs.h <<_ACEOF
5610 #define GCC_INSTALL_PREFIX "$withval"
5615 # Check whether --with-default-sysroot was given.
5616 if test "${with_default_sysroot+set}" = set; then
5617 withval=$with_default_sysroot;
5623 cat >>confdefs.h <<_ACEOF
5624 #define DEFAULT_SYSROOT "$withval"
5629 # Check whether --with-binutils-include was given.
5630 if test "${with_binutils_include+set}" = set; then
5631 withval=$with_binutils_include;
5637 default) WITH_BINUTILS_INCDIR=default ;;
5638 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5639 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5640 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5643 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5644 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5647 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5648 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5649 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5650 { (exit 1); exit 1; }; };
5655 # Check whether --with-bug-report-url was given.
5656 if test "${with_bug_report_url+set}" = set; then
5657 withval=$with_bug_report_url;
5659 withval="http://llvm.org/bugs/"
5663 cat >>confdefs.h <<_ACEOF
5664 #define BUG_REPORT_URL "$withval"
5668 # Check whether --enable-terminfo was given.
5669 if test "${enable_terminfo+set}" = set; then
5670 enableval=$enable_terminfo; case "$enableval" in
5671 yes) llvm_cv_enable_terminfo="yes" ;;
5672 no) llvm_cv_enable_terminfo="no" ;;
5673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5674 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5675 { (exit 1); exit 1; }; } ;;
5678 llvm_cv_enable_terminfo="yes"
5682 # Check whether --enable-libffi was given.
5683 if test "${enable_libffi+set}" = set; then
5684 enableval=$enable_libffi; case "$enableval" in
5685 yes) llvm_cv_enable_libffi="yes" ;;
5686 no) llvm_cv_enable_libffi="no" ;;
5687 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5688 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5689 { (exit 1); exit 1; }; } ;;
5692 llvm_cv_enable_libffi=no
5697 # Check whether --with-internal-prefix was given.
5698 if test "${with_internal_prefix+set}" = set; then
5699 withval=$with_internal_prefix;
5704 INTERNAL_PREFIX=$withval
5708 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5709 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5710 if test "${lt_cv_path_NM+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$NM"; then
5714 # Let the user override the test.
5717 lt_nm_to_check="${ac_tool_prefix}nm"
5718 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5719 lt_nm_to_check="$lt_nm_to_check nm"
5721 for lt_tmp_nm in $lt_nm_to_check; do
5722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5723 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5725 test -z "$ac_dir" && ac_dir=.
5726 tmp_nm="$ac_dir/$lt_tmp_nm"
5727 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5728 # Check to see if the nm accepts a BSD-compat flag.
5729 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5730 # nm: unknown option "B" ignored
5731 # Tru64's nm complains that /dev/null is an invalid object file
5732 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5733 */dev/null* | *'Invalid file or object type'*)
5734 lt_cv_path_NM="$tmp_nm -B"
5738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5740 lt_cv_path_NM="$tmp_nm -p"
5744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5745 continue # so that we can try to find one that supports BSD flags
5754 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5757 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5758 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5763 { echo "$as_me:$LINENO: checking for GNU make" >&5
5764 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5765 if test "${llvm_cv_gnu_make_command+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 llvm_cv_gnu_make_command=''
5769 for a in "$MAKE" make gmake gnumake ; do
5770 if test -z "$a" ; then continue ; fi ;
5771 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5773 llvm_cv_gnu_make_command=$a ;
5778 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5779 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5780 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5784 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5785 echo "${ECHO_T}\"Not found\"" >&6; };
5789 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5790 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5792 if test "$LN_S" = "ln -s"; then
5793 { echo "$as_me:$LINENO: result: yes" >&5
5794 echo "${ECHO_T}yes" >&6; }
5796 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5797 echo "${ECHO_T}no, using $LN_S" >&6; }
5800 # Extract the first word of "cmp", so it can be a program name with args.
5801 set dummy cmp; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_CMP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5832 if test -n "$CMP"; then
5833 { echo "$as_me:$LINENO: result: $CMP" >&5
5834 echo "${ECHO_T}$CMP" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5841 # Extract the first word of "cp", so it can be a program name with args.
5842 set dummy cp; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_CP+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5873 if test -n "$CP"; then
5874 { echo "$as_me:$LINENO: result: $CP" >&5
5875 echo "${ECHO_T}$CP" >&6; }
5877 { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5882 # Extract the first word of "date", so it can be a program name with args.
5883 set dummy date; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_DATE+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5913 DATE=$ac_cv_path_DATE
5914 if test -n "$DATE"; then
5915 { echo "$as_me:$LINENO: result: $DATE" >&5
5916 echo "${ECHO_T}$DATE" >&6; }
5918 { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5923 # Extract the first word of "find", so it can be a program name with args.
5924 set dummy find; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_FIND+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5954 FIND=$ac_cv_path_FIND
5955 if test -n "$FIND"; then
5956 { echo "$as_me:$LINENO: result: $FIND" >&5
5957 echo "${ECHO_T}$FIND" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5964 # Extract the first word of "grep", so it can be a program name with args.
5965 set dummy grep; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_GREP+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5995 GREP=$ac_cv_path_GREP
5996 if test -n "$GREP"; then
5997 { echo "$as_me:$LINENO: result: $GREP" >&5
5998 echo "${ECHO_T}$GREP" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6005 # Extract the first word of "mkdir", so it can be a program name with args.
6006 set dummy mkdir; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_MKDIR+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6036 MKDIR=$ac_cv_path_MKDIR
6037 if test -n "$MKDIR"; then
6038 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6039 echo "${ECHO_T}$MKDIR" >&6; }
6041 { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6046 # Extract the first word of "mv", so it can be a program name with args.
6047 set dummy mv; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_path_MV+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6078 if test -n "$MV"; then
6079 { echo "$as_me:$LINENO: result: $MV" >&5
6080 echo "${ECHO_T}$MV" >&6; }
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_RANLIB+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 if test -n "$RANLIB"; then
6096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 RANLIB=$ac_cv_prog_RANLIB
6116 if test -n "$RANLIB"; then
6117 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6118 echo "${ECHO_T}$RANLIB" >&6; }
6120 { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127 ac_ct_RANLIB=$RANLIB
6128 # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 if test -n "$ac_ct_RANLIB"; then
6136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_ac_ct_RANLIB="ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6160 { echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6; }
6164 if test "x$ac_ct_RANLIB" = x; then
6167 case $cross_compiling:$ac_tool_warned in
6169 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet. If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&5
6172 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6173 whose name does not start with the host triplet. If you think this
6174 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6175 ac_tool_warned=yes ;;
6177 RANLIB=$ac_ct_RANLIB
6180 RANLIB="$ac_cv_prog_RANLIB"
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}ar; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_prog_AR+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 if test -n "$AR"; then
6192 ac_cv_prog_AR="$AR" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_AR="${ac_tool_prefix}ar"
6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 if test -n "$AR"; then
6213 { echo "$as_me:$LINENO: result: $AR" >&5
6214 echo "${ECHO_T}$AR" >&6; }
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6222 if test -z "$ac_cv_prog_AR"; then
6224 # Extract the first word of "ar", so it can be a program name with args.
6225 set dummy ar; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 if test -n "$ac_ct_AR"; then
6232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_AR="ar"
6242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6252 if test -n "$ac_ct_AR"; then
6253 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6254 echo "${ECHO_T}$ac_ct_AR" >&6; }
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6260 if test "x$ac_ct_AR" = x; then
6263 case $cross_compiling:$ac_tool_warned in
6265 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6266 whose name does not start with the host triplet. If you think this
6267 configuration is useful to you, please write to autoconf@gnu.org." >&5
6268 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6269 whose name does not start with the host triplet. If you think this
6270 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6271 ac_tool_warned=yes ;;
6279 # Extract the first word of "rm", so it can be a program name with args.
6280 set dummy rm; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_path_RM+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6311 if test -n "$RM"; then
6312 { echo "$as_me:$LINENO: result: $RM" >&5
6313 echo "${ECHO_T}$RM" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6320 # Extract the first word of "sed", so it can be a program name with args.
6321 set dummy sed; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_SED+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6352 if test -n "$SED"; then
6353 { echo "$as_me:$LINENO: result: $SED" >&5
6354 echo "${ECHO_T}$SED" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6361 # Extract the first word of "tar", so it can be a program name with args.
6362 set dummy tar; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_TAR+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6393 if test -n "$TAR"; then
6394 { echo "$as_me:$LINENO: result: $TAR" >&5
6395 echo "${ECHO_T}$TAR" >&6; }
6397 { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6402 # Extract the first word of "pwd", so it can be a program name with args.
6403 set dummy pwd; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_BINPWD+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6433 BINPWD=$ac_cv_path_BINPWD
6434 if test -n "$BINPWD"; then
6435 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6436 echo "${ECHO_T}$BINPWD" >&6; }
6438 { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6444 # Extract the first word of "Graphviz", so it can be a program name with args.
6445 set dummy Graphviz; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6475 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6476 if test -n "$GRAPHVIZ"; then
6477 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6478 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6485 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6487 cat >>confdefs.h <<\_ACEOF
6488 #define HAVE_GRAPHVIZ 1
6491 if test "$llvm_cv_os_type" = "MingW" ; then
6492 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6495 cat >>confdefs.h <<_ACEOF
6496 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6500 # Extract the first word of "dot", so it can be a program name with args.
6501 set dummy dot; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_DOT+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6532 if test -n "$DOT"; then
6533 { echo "$as_me:$LINENO: result: $DOT" >&5
6534 echo "${ECHO_T}$DOT" >&6; }
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6541 if test "$DOT" != "echo dot" ; then
6543 cat >>confdefs.h <<\_ACEOF
6547 if test "$llvm_cv_os_type" = "MingW" ; then
6548 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6551 cat >>confdefs.h <<_ACEOF
6552 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6556 # Extract the first word of "fdp", so it can be a program name with args.
6557 set dummy fdp; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_path_FDP+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6588 if test -n "$FDP"; then
6589 { echo "$as_me:$LINENO: result: $FDP" >&5
6590 echo "${ECHO_T}$FDP" >&6; }
6592 { echo "$as_me:$LINENO: result: no" >&5
6593 echo "${ECHO_T}no" >&6; }
6597 if test "$FDP" != "echo fdp" ; then
6599 cat >>confdefs.h <<\_ACEOF
6603 if test "$llvm_cv_os_type" = "MingW" ; then
6604 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6607 cat >>confdefs.h <<_ACEOF
6608 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6612 # Extract the first word of "neato", so it can be a program name with args.
6613 set dummy neato; ac_word=$2
6614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6616 if test "${ac_cv_path_NEATO+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6643 NEATO=$ac_cv_path_NEATO
6644 if test -n "$NEATO"; then
6645 { echo "$as_me:$LINENO: result: $NEATO" >&5
6646 echo "${ECHO_T}$NEATO" >&6; }
6648 { echo "$as_me:$LINENO: result: no" >&5
6649 echo "${ECHO_T}no" >&6; }
6653 if test "$NEATO" != "echo neato" ; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_NEATO 1
6659 if test "$llvm_cv_os_type" = "MingW" ; then
6660 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6663 cat >>confdefs.h <<_ACEOF
6664 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6668 # Extract the first word of "twopi", so it can be a program name with args.
6669 set dummy twopi; ac_word=$2
6670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672 if test "${ac_cv_path_TWOPI+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6699 TWOPI=$ac_cv_path_TWOPI
6700 if test -n "$TWOPI"; then
6701 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6702 echo "${ECHO_T}$TWOPI" >&6; }
6704 { echo "$as_me:$LINENO: result: no" >&5
6705 echo "${ECHO_T}no" >&6; }
6709 if test "$TWOPI" != "echo twopi" ; then
6711 cat >>confdefs.h <<\_ACEOF
6712 #define HAVE_TWOPI 1
6715 if test "$llvm_cv_os_type" = "MingW" ; then
6716 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6719 cat >>confdefs.h <<_ACEOF
6720 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6724 # Extract the first word of "circo", so it can be a program name with args.
6725 set dummy circo; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CIRCO+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6755 CIRCO=$ac_cv_path_CIRCO
6756 if test -n "$CIRCO"; then
6757 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6758 echo "${ECHO_T}$CIRCO" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 if test "$CIRCO" != "echo circo" ; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_CIRCO 1
6771 if test "$llvm_cv_os_type" = "MingW" ; then
6772 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6775 cat >>confdefs.h <<_ACEOF
6776 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6780 for ac_prog in gv gsview32
6782 # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_GV+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6791 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 if test -n "$GV"; then
6814 { echo "$as_me:$LINENO: result: $GV" >&5
6815 echo "${ECHO_T}$GV" >&6; }
6817 { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6822 test -n "$GV" && break
6824 test -n "$GV" || GV="echo gv"
6826 if test "$GV" != "echo gv" ; then
6828 cat >>confdefs.h <<\_ACEOF
6832 if test "$llvm_cv_os_type" = "MingW" ; then
6833 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_GV "$GV${EXEEXT}"
6841 # Extract the first word of "dotty", so it can be a program name with args.
6842 set dummy dotty; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_DOTTY+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6872 DOTTY=$ac_cv_path_DOTTY
6873 if test -n "$DOTTY"; then
6874 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6875 echo "${ECHO_T}$DOTTY" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 if test "$DOTTY" != "echo dotty" ; then
6884 cat >>confdefs.h <<\_ACEOF
6885 #define HAVE_DOTTY 1
6888 if test "$llvm_cv_os_type" = "MingW" ; then
6889 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6892 cat >>confdefs.h <<_ACEOF
6893 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6897 for ac_prog in xdot xdot.py
6899 # Extract the first word of "$ac_prog", so it can be a program name with args.
6900 set dummy $ac_prog; ac_word=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_XDOT+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 XDOT=$ac_cv_path_XDOT
6930 if test -n "$XDOT"; then
6931 { echo "$as_me:$LINENO: result: $XDOT" >&5
6932 echo "${ECHO_T}$XDOT" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 test -n "$XDOT" && break
6941 test -n "$XDOT" || XDOT="echo xdot"
6943 if test "$XDOT" != "echo xdot" ; then
6945 cat >>confdefs.h <<\_ACEOF
6949 if test "$llvm_cv_os_type" = "MingW" ; then
6950 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6953 cat >>confdefs.h <<_ACEOF
6954 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6959 # Find a good install program. We prefer a C program (faster),
6960 # so one script is as good as another. But avoid the broken or
6961 # incompatible versions:
6962 # SysV /etc/install, /usr/sbin/install
6963 # SunOS /usr/etc/install
6964 # IRIX /sbin/install
6966 # AmigaOS /C/install, which installs bootblocks on floppy discs
6967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6970 # OS/2's system install, which has a completely different semantic
6971 # ./install, which can be erroneously created by make from ./install.sh.
6972 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6973 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6974 if test -z "$INSTALL"; then
6975 if test "${ac_cv_path_install+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 # Account for people who put trailing slashes in PATH elements.
6985 ./ | .// | /cC/* | \
6986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6987 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6990 # OSF1 and SCO ODT 3.0 have their own names for install.
6991 # Don't use installbsd from OSF since it installs stuff as root
6993 for ac_prog in ginstall scoinst install; do
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6996 if test $ac_prog = install &&
6997 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6998 # AIX install. It has an incompatible calling convention.
7000 elif test $ac_prog = install &&
7001 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7002 # program-specific install script used by HP pwplus--don't use.
7005 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7018 if test "${ac_cv_path_install+set}" = set; then
7019 INSTALL=$ac_cv_path_install
7021 # As a last resort, use the slow shell script. Don't cache a
7022 # value for INSTALL within a source directory, because that will
7023 # break other packages using the cache if that directory is
7024 # removed, or if the value is a relative name.
7025 INSTALL=$ac_install_sh
7028 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7029 echo "${ECHO_T}$INSTALL" >&6; }
7031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7032 # It thinks the first close brace ends the variable substitution.
7033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7040 [\\/$]* | ?:[\\/]* ) ;;
7041 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7044 # Extract the first word of "bzip2", so it can be a program name with args.
7045 set dummy bzip2; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_BZIP2+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 BZIP2=$ac_cv_path_BZIP2
7075 if test -n "$BZIP2"; then
7076 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7077 echo "${ECHO_T}$BZIP2" >&6; }
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7084 # Extract the first word of "cat", so it can be a program name with args.
7085 set dummy cat; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_path_CAT+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 if test -n "$CAT"; then
7116 { echo "$as_me:$LINENO: result: $CAT" >&5
7117 echo "${ECHO_T}$CAT" >&6; }
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7124 # Extract the first word of "doxygen", so it can be a program name with args.
7125 set dummy doxygen; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 DOXYGEN=$ac_cv_path_DOXYGEN
7155 if test -n "$DOXYGEN"; then
7156 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7157 echo "${ECHO_T}$DOXYGEN" >&6; }
7159 { echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6; }
7164 # Extract the first word of "groff", so it can be a program name with args.
7165 set dummy groff; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_path_GROFF+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 GROFF=$ac_cv_path_GROFF
7195 if test -n "$GROFF"; then
7196 { echo "$as_me:$LINENO: result: $GROFF" >&5
7197 echo "${ECHO_T}$GROFF" >&6; }
7199 { echo "$as_me:$LINENO: result: no" >&5
7200 echo "${ECHO_T}no" >&6; }
7204 # Extract the first word of "gzip", so it can be a program name with args.
7205 set dummy gzip; ac_word=$2
7206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7208 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 GZIPBIN=$ac_cv_path_GZIPBIN
7235 if test -n "$GZIPBIN"; then
7236 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7237 echo "${ECHO_T}$GZIPBIN" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 # Extract the first word of "pdfroff", so it can be a program name with args.
7245 set dummy pdfroff; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_PDFROFF+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 PDFROFF=$ac_cv_path_PDFROFF
7275 if test -n "$PDFROFF"; then
7276 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7277 echo "${ECHO_T}$PDFROFF" >&6; }
7279 { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7284 # Extract the first word of "zip", so it can be a program name with args.
7285 set dummy zip; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_ZIP+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 if test -n "$ZIP"; then
7316 { echo "$as_me:$LINENO: result: $ZIP" >&5
7317 echo "${ECHO_T}$ZIP" >&6; }
7319 { echo "$as_me:$LINENO: result: no" >&5
7320 echo "${ECHO_T}no" >&6; }
7324 for ac_prog in ocamlc
7326 # Extract the first word of "$ac_prog", so it can be a program name with args.
7327 set dummy $ac_prog; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_OCAMLC+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 OCAMLC=$ac_cv_path_OCAMLC
7357 if test -n "$OCAMLC"; then
7358 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7359 echo "${ECHO_T}$OCAMLC" >&6; }
7361 { echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6; }
7366 test -n "$OCAMLC" && break
7369 for ac_prog in ocamlopt
7371 # Extract the first word of "$ac_prog", so it can be a program name with args.
7372 set dummy $ac_prog; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 OCAMLOPT=$ac_cv_path_OCAMLOPT
7402 if test -n "$OCAMLOPT"; then
7403 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7404 echo "${ECHO_T}$OCAMLOPT" >&6; }
7406 { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7411 test -n "$OCAMLOPT" && break
7414 for ac_prog in ocamldep
7416 # Extract the first word of "$ac_prog", so it can be a program name with args.
7417 set dummy $ac_prog; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 OCAMLDEP=$ac_cv_path_OCAMLDEP
7447 if test -n "$OCAMLDEP"; then
7448 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7449 echo "${ECHO_T}$OCAMLDEP" >&6; }
7451 { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7456 test -n "$OCAMLDEP" && break
7459 for ac_prog in ocamldoc
7461 # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 OCAMLDOC=$ac_cv_path_OCAMLDOC
7492 if test -n "$OCAMLDOC"; then
7493 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7494 echo "${ECHO_T}$OCAMLDOC" >&6; }
7496 { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7501 test -n "$OCAMLDOC" && break
7504 for ac_prog in gas as
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7510 if test "${ac_cv_path_GAS+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 if test -n "$GAS"; then
7538 { echo "$as_me:$LINENO: result: $GAS" >&5
7539 echo "${ECHO_T}$GAS" >&6; }
7541 { echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6; }
7546 test -n "$GAS" && break
7550 { echo "$as_me:$LINENO: checking for linker version" >&5
7551 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7552 if test "${llvm_cv_link_version+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 version_string="$(ld -v 2>&1 | head -1)"
7559 if (echo "$version_string" | grep -q "ld64"); then
7560 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7562 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7566 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7567 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7569 cat >>confdefs.h <<_ACEOF
7570 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7576 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7577 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7578 if test "${llvm_cv_link_use_r+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 CFLAGS="$CFLAGS -Wl,-R."
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (ac_try="$ac_link"
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7611 (eval "$ac_link") 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7619 { (case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_try") 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest$ac_exeext'
7629 { (case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_try") 2>&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 llvm_cv_link_use_r=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 llvm_cv_link_use_r=no
7646 rm -f core conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7658 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7659 if test "$llvm_cv_link_use_r" = yes ; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_LINK_R 1
7668 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7669 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7670 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 CFLAGS="$CFLAGS -rdynamic"
7681 cat >conftest.$ac_ext <<_ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7696 rm -f conftest.$ac_objext conftest$ac_exeext
7697 if { (ac_try="$ac_link"
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_link") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7711 { (case "(($ac_try" in
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_try") 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_try") 2>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; }; then
7730 llvm_cv_link_use_export_dynamic=yes
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 llvm_cv_link_use_export_dynamic=no
7738 rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7750 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7751 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7753 cat >>confdefs.h <<\_ACEOF
7754 #define HAVE_LINK_EXPORT_DYNAMIC 1
7760 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7761 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7762 if test "${llvm_cv_link_use_version_script+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 ac_cpp='$CPP $CPPFLAGS'
7767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773 # The following code is from the autoconf manual,
7774 # "11.13: Limitations of Usual Tools".
7775 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7776 # Use mktemp if possible; otherwise fall back on mkdir,
7777 # with $RANDOM to make collisions less likely.
7781 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7783 test -n "$tmp" && test -d "$tmp"
7785 tmp=$TMPDIR/foo$$-$RANDOM
7786 (umask 077 && mkdir "$tmp")
7789 echo "{" > "$tmp/export.map"
7790 echo " global: main;" >> "$tmp/export.map"
7791 echo " local: *;" >> "$tmp/export.map"
7792 echo "};" >> "$tmp/export.map"
7794 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (ac_try="$ac_link"
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817 (eval "$ac_link") 2>conftest.er1
7819 grep -v '^ *+' conftest.er1 >conftest.err
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7825 { (case "(($ac_try" in
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_try") 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_try") 2>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 llvm_cv_link_use_version_script=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 llvm_cv_link_use_version_script=no
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 rm "$tmp/export.map"
7858 ac_cpp='$CPP $CPPFLAGS'
7859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7866 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7867 if test "$llvm_cv_link_use_version_script" = yes ; then
7868 HAVE_LINK_VERSION_SCRIPT=1
7875 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7876 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7877 if test "${ac_cv_c_const+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7890 /* FIXME: Include the comments suggested by Paul. */
7892 /* Ultrix mips cc rejects this. */
7893 typedef int charset[2];
7895 /* SunOS 4.1.1 cc rejects this. */
7896 char const *const *ccp;
7898 /* NEC SVR4.0.2 mips cc rejects this. */
7899 struct point {int x, y;};
7900 static struct point const zero = {0,0};
7901 /* AIX XL C 1.02.0.0 rejects this.
7902 It does not let you subtract one const X* pointer from another in
7903 an arm of an if-expression whose if-part is not a constant
7905 const char *g = "string";
7906 ccp = &g + (g ? g-g : 0);
7907 /* HPUX 7.0 cc rejects these. */
7910 ccp = (char const *const *) p;
7911 { /* SCO 3.2v4 cc rejects this. */
7913 char const *s = 0 ? (char *) 0 : (char const *) 0;
7918 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7920 const int *foo = &x[0];
7923 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7924 typedef const int *iptr;
7928 { /* AIX XL C 1.02.0.0 rejects this saying
7929 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7930 struct s { int j; const int *ap[3]; };
7931 struct s *b; b->j = 5;
7933 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7937 return !x[0] && !zero.x;
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1 >conftest.err
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7959 { (case "(($ac_try" in
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_try") 2>&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7989 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7990 if test $ac_cv_c_const = no; then
7992 cat >>confdefs.h <<\_ACEOF
7999 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8000 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8001 if test "${ac_cv_path_GREP+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 # Extract the first word of "grep ggrep" to use in msg output
8005 if test -z "$GREP"; then
8006 set dummy grep ggrep; ac_prog_name=$2
8007 if test "${ac_cv_path_GREP+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_path_GREP_found=false
8011 # Loop through the user's path and test for each of PROGNAME-LIST
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8016 test -z "$as_dir" && as_dir=.
8017 for ac_prog in grep ggrep; do
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8020 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8021 # Check for GNU ac_path_GREP and select it if it is found.
8022 # Check for GNU $ac_path_GREP
8023 case `"$ac_path_GREP" --version 2>&1` in
8025 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8031 cat "conftest.in" "conftest.in" >"conftest.tmp"
8032 mv "conftest.tmp" "conftest.in"
8033 cp "conftest.in" "conftest.nl"
8034 echo 'GREP' >> "conftest.nl"
8035 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8037 ac_count=`expr $ac_count + 1`
8038 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8039 # Best one so far, save it but keep looking for a better one
8040 ac_cv_path_GREP="$ac_path_GREP"
8041 ac_path_GREP_max=$ac_count
8043 # 10*(2^10) chars as input seems more than enough
8044 test $ac_count -gt 10 && break
8046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8050 $ac_path_GREP_found && break 3
8060 GREP="$ac_cv_path_GREP"
8061 if test -z "$GREP"; then
8062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8064 { (exit 1); exit 1; }; }
8068 ac_cv_path_GREP=$GREP
8073 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8074 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8075 GREP="$ac_cv_path_GREP"
8078 { echo "$as_me:$LINENO: checking for egrep" >&5
8079 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8080 if test "${ac_cv_path_EGREP+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8084 then ac_cv_path_EGREP="$GREP -E"
8086 # Extract the first word of "egrep" to use in msg output
8087 if test -z "$EGREP"; then
8088 set dummy egrep; ac_prog_name=$2
8089 if test "${ac_cv_path_EGREP+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 ac_path_EGREP_found=false
8093 # Loop through the user's path and test for each of PROGNAME-LIST
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8098 test -z "$as_dir" && as_dir=.
8099 for ac_prog in egrep; do
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8102 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8103 # Check for GNU ac_path_EGREP and select it if it is found.
8104 # Check for GNU $ac_path_EGREP
8105 case `"$ac_path_EGREP" --version 2>&1` in
8107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8113 cat "conftest.in" "conftest.in" >"conftest.tmp"
8114 mv "conftest.tmp" "conftest.in"
8115 cp "conftest.in" "conftest.nl"
8116 echo 'EGREP' >> "conftest.nl"
8117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8119 ac_count=`expr $ac_count + 1`
8120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8121 # Best one so far, save it but keep looking for a better one
8122 ac_cv_path_EGREP="$ac_path_EGREP"
8123 ac_path_EGREP_max=$ac_count
8125 # 10*(2^10) chars as input seems more than enough
8126 test $ac_count -gt 10 && break
8128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8132 $ac_path_EGREP_found && break 3
8142 EGREP="$ac_cv_path_EGREP"
8143 if test -z "$EGREP"; then
8144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8145 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8146 { (exit 1); exit 1; }; }
8150 ac_cv_path_EGREP=$EGREP
8156 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8157 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8158 EGREP="$ac_cv_path_EGREP"
8161 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8162 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8163 if test "${ac_cv_header_stdc+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_try") 2>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest.$ac_objext'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; }; then
8219 ac_cv_header_stdc=yes
8221 echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_cv_header_stdc=no
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 if test $ac_cv_header_stdc = yes; then
8230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8241 $EGREP "memchr" >/dev/null 2>&1; then
8244 ac_cv_header_stdc=no
8250 if test $ac_cv_header_stdc = yes; then
8251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8262 $EGREP "free" >/dev/null 2>&1; then
8265 ac_cv_header_stdc=no
8271 if test $ac_cv_header_stdc = yes; then
8272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8273 if test "$cross_compiling" = yes; then
8276 cat >conftest.$ac_ext <<_ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8284 #if ((' ' & 0x0FF) == 0x020)
8285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8288 # define ISLOWER(c) \
8289 (('a' <= (c) && (c) <= 'i') \
8290 || ('j' <= (c) && (c) <= 'r') \
8291 || ('s' <= (c) && (c) <= 'z'))
8292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8300 for (i = 0; i < 256; i++)
8301 if (XOR (islower (i), ISLOWER (i))
8302 || toupper (i) != TOUPPER (i))
8307 rm -f conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8329 echo "$as_me: program exited with status $ac_status" >&5
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_header_stdc=no
8336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8344 if test $ac_cv_header_stdc = yes; then
8346 cat >>confdefs.h <<\_ACEOF
8347 #define STDC_HEADERS 1
8358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8359 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8360 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8361 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 #include <sys/types.h>
8383 rm -f conftest.$ac_objext
8384 if { (ac_try="$ac_compile"
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 eval "$as_ac_Header=yes"
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 eval "$as_ac_Header=no"
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427 ac_res=`eval echo '${'$as_ac_Header'}'`
8428 { echo "$as_me:$LINENO: result: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8435 ac_header_dirent=$ac_hdr; break
8439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8440 if test $ac_header_dirent = dirent.h; then
8441 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8443 if test "${ac_cv_search_opendir+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 ac_func_search_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 /* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8469 for ac_lib in '' dir; do
8470 if test -z "$ac_lib"; then
8471 ac_res="none required"
8474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_link") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_search_opendir=$ac_res
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8518 rm -f core conftest.err conftest.$ac_objext \
8520 if test "${ac_cv_search_opendir+set}" = set; then
8524 if test "${ac_cv_search_opendir+set}" = set; then
8527 ac_cv_search_opendir=no
8530 LIBS=$ac_func_search_save_LIBS
8532 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8533 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8534 ac_res=$ac_cv_search_opendir
8535 if test "$ac_res" != no; then
8536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8541 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8542 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8543 if test "${ac_cv_search_opendir+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 ac_func_search_save_LIBS=$LIBS
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8554 /* Override any GCC internal prototype to avoid an error.
8555 Use char because int might match the return type of a GCC
8556 builtin and then its argument prototype would still apply. */
8569 for ac_lib in '' x; do
8570 if test -z "$ac_lib"; then
8571 ac_res="none required"
8574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8576 rm -f conftest.$ac_objext conftest$ac_exeext
8577 if { (ac_try="$ac_link"
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_link") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8591 { (case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_try") 2>&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (case "(($ac_try" in
8602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603 *) ac_try_echo=$ac_try;;
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606 (eval "$ac_try") 2>&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_search_opendir=$ac_res
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8618 rm -f core conftest.err conftest.$ac_objext \
8620 if test "${ac_cv_search_opendir+set}" = set; then
8624 if test "${ac_cv_search_opendir+set}" = set; then
8627 ac_cv_search_opendir=no
8630 LIBS=$ac_func_search_save_LIBS
8632 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8633 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8634 ac_res=$ac_cv_search_opendir
8635 if test "$ac_res" != no; then
8636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8642 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8652 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8653 inttypes.h stdint.h unistd.h
8655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8669 #include <$ac_header>
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8686 { (case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_try") 2>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_try") 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 eval "$as_ac_Header=yes"
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8710 eval "$as_ac_Header=no"
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 ac_res=`eval echo '${'$as_ac_Header'}'`
8716 { echo "$as_me:$LINENO: result: $ac_res" >&5
8717 echo "${ECHO_T}$ac_res" >&6; }
8718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8719 cat >>confdefs.h <<_ACEOF
8720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8729 for ac_header in dlfcn.h
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8742 # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try='test -s conftest.$ac_objext'
8779 { (case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_header_compiler=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 ac_header_compiler=no
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 echo "${ECHO_T}$ac_header_compiler" >&6; }
8800 # Is the header present?
8801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8803 cat >conftest.$ac_ext <<_ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h. */
8809 #include <$ac_header>
8811 if { (ac_try="$ac_cpp conftest.$ac_ext"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } >/dev/null; then
8824 if test -s conftest.err; then
8825 ac_cpp_err=$ac_c_preproc_warn_flag
8826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8833 if test -z "$ac_cpp_err"; then
8834 ac_header_preproc=yes
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_header_preproc=no
8842 rm -f conftest.err conftest.$ac_ext
8843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8844 echo "${ECHO_T}$ac_header_preproc" >&6; }
8846 # So? What about this header?
8847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8853 ac_header_preproc=yes
8856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8869 ## ------------------------------------ ##
8870 ## Report this to http://llvm.org/bugs/ ##
8871 ## ------------------------------------ ##
8873 ) | sed "s/^/$as_me: WARNING: /" >&2
8876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 eval "$as_ac_Header=\$ac_header_preproc"
8883 ac_res=`eval echo '${'$as_ac_Header'}'`
8884 { echo "$as_me:$LINENO: result: $ac_res" >&5
8885 echo "${ECHO_T}$ac_res" >&6; }
8888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8889 cat >>confdefs.h <<_ACEOF
8890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8897 # Check whether --enable-ltdl-install was given.
8898 if test "${enable_ltdl_install+set}" = set; then
8899 enableval=$enable_ltdl_install;
8905 if test x"${enable_ltdl_install-no}" != xno; then
8907 INSTALL_LTDL_FALSE='#'
8909 INSTALL_LTDL_TRUE='#'
8915 if test x"${enable_ltdl_convenience-no}" != xno; then
8916 CONVENIENCE_LTDL_TRUE=
8917 CONVENIENCE_LTDL_FALSE='#'
8919 CONVENIENCE_LTDL_TRUE='#'
8920 CONVENIENCE_LTDL_FALSE=
8924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8927 libname_spec='lib$name'
8935 shlibpath_overrides_runpath=unknown
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8939 if test "$GCC" = yes; then
8940 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8941 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8942 # if the path contains ";" then we assume it to be the separator
8943 # otherwise default to the standard path separator (i.e. ":") - it is
8944 # assumed that no part of a normal pathname contains ";" but that should
8945 # okay in the real world where ";" in dirpaths is itself problematic.
8946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8951 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8953 need_lib_prefix=unknown
8954 hardcode_into_libs=no
8956 # when you set need_version to no, make sure it does not cause -set_version
8957 # flags to be left without arguments
8958 need_version=unknown
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8964 shlibpath_var=LIBPATH
8966 # AIX 3 has no versioning support, so we append a major version to the name.
8967 soname_spec='${libname}${release}${shared_ext}$major'
8974 hardcode_into_libs=yes
8975 if test "$host_cpu" = ia64; then
8976 # AIX 5 supports IA64
8977 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8978 shlibpath_var=LD_LIBRARY_PATH
8980 # With GCC up to 2.95.x, collect2 would create an import file
8981 # for dependence libraries. The import file would start with
8982 # the line `#! .'. This would cause the generated library to
8983 # depend on `.', always an invalid library. This was fixed in
8984 # development snapshots of GCC prior to 3.0.
8986 aix4 | aix4.[01] | aix4.[01].*)
8987 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8989 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8996 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8997 # soname into executable. Probably we can add versioning support to
8998 # collect2, so additional links can be useful in future.
8999 if test "$aix_use_runtimelinking" = yes; then
9000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9001 # instead of lib<name>.a to let people know that these are not
9002 # typical AIX shared libraries.
9003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 # We preserve .a as extension for shared libraries through AIX4.2
9006 # and later when we are not doing run time linking.
9007 library_names_spec='${libname}${release}.a $libname.a'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9010 shlibpath_var=LIBPATH
9015 library_names_spec='$libname.ixlibrary $libname.a'
9016 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9017 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'
9021 library_names_spec='${libname}${shared_ext}'
9022 dynamic_linker="$host_os ld.so"
9023 shlibpath_var=LIBRARY_PATH
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9034 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9035 # the default ld.so.conf also contains /usr/contrib/lib and
9036 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9037 # libtool to hard-code these into programs
9040 cygwin* | mingw* | pw32*)
9041 version_type=windows
9046 case $GCC,$host_os in
9047 yes,cygwin* | yes,mingw* | yes,pw32*)
9048 library_names_spec='$libname.dll.a'
9049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9050 postinstall_cmds='base_file=`basename \${file}`~
9051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9052 dldir=$destdir/`dirname \$dlpath`~
9053 test -d \$dldir || mkdir -p \$dldir~
9054 $install_prog $dir/$dlname \$dldir/$dlname~
9055 chmod a+x \$dldir/$dlname'
9056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9057 dlpath=$dir/\$dldll~
9059 shlibpath_overrides_runpath=yes
9063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9065 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9068 # MinGW DLLs use traditional 'lib' prefix
9069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9070 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9071 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9072 # It is most probably a Windows format PATH printed by
9073 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9074 # path with ; separators, and with drive letters. We can handle the
9075 # drive letters (cygwin fileutils understands them), so leave them,
9076 # especially as we might pass files found there to a mingw objdump,
9077 # which wouldn't understand a cygwinified path. Ahh.
9078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9084 # pw32 DLLs use 'pw' prefix rather than 'lib'
9085 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9094 dynamic_linker='Win32 ld.exe'
9095 # FIXME: first we should search . and the directory the executable is in
9099 darwin* | rhapsody*)
9100 dynamic_linker="$host_os dyld"
9104 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9105 soname_spec='${libname}${release}${major}$shared_ext'
9106 shlibpath_overrides_runpath=yes
9107 shlibpath_var=DYLD_LIBRARY_PATH
9108 shrext_cmds='.dylib'
9109 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9110 if test "$GCC" = yes; then
9111 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"`
9113 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9115 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=no
9139 hardcode_into_libs=yes
9140 dynamic_linker='GNU ld.so'
9143 freebsd* | dragonfly*)
9144 # DragonFly does not have aout. When/if they implement a new
9145 # versioning mechanism, adjust this.
9146 if test -x /usr/bin/objformat; then
9147 objformat=`/usr/bin/objformat`
9150 freebsd[123].*) objformat=aout ;;
9154 version_type=freebsd-$objformat
9155 case $version_type in
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9166 shlibpath_var=LD_LIBRARY_PATH
9169 shlibpath_overrides_runpath=yes
9171 freebsd3.[01]* | freebsdelf3.[01]*)
9172 shlibpath_overrides_runpath=yes
9173 hardcode_into_libs=yes
9175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9177 shlibpath_overrides_runpath=no
9178 hardcode_into_libs=yes
9180 freebsd*) # from 4.6 on
9181 shlibpath_overrides_runpath=yes
9182 hardcode_into_libs=yes
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9192 soname_spec='${libname}${release}${shared_ext}$major'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 hardcode_into_libs=yes
9197 hpux9* | hpux10* | hpux11*)
9198 # Give a soname corresponding to the major version so that dld.sl refuses to
9199 # link against other versions.
9206 hardcode_into_libs=yes
9207 dynamic_linker="$host_os dld.so"
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 if test "X$HPUX_IA64_MODE" = X32; then
9213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9221 hardcode_into_libs=yes
9222 dynamic_linker="$host_os dld.sl"
9223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9232 dynamic_linker="$host_os dld.sl"
9233 shlibpath_var=SHLIB_PATH
9234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236 soname_spec='${libname}${release}${shared_ext}$major'
9239 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9240 postinstall_cmds='chmod 555 $lib'
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 hardcode_into_libs=yes
9255 irix5* | irix6* | nonstopux*)
9257 nonstopux*) version_type=nonstopux ;;
9259 if test "$lt_cv_prog_gnu_ld" = yes; then
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9270 irix5* | nonstopux*)
9274 case $LD in # libtool.m4 will add one of these switches to LD
9275 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9276 libsuff= shlibsuff= libmagic=32-bit;;
9277 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9278 libsuff=32 shlibsuff=N32 libmagic=N32;;
9279 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9280 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9281 *) libsuff= shlibsuff= libmagic=never-match;;
9285 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9286 shlibpath_overrides_runpath=no
9287 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9288 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9289 hardcode_into_libs=yes
9292 # No shared lib support for Linux oldld, aout, or coff.
9293 linux*oldld* | linux*aout* | linux*coff*)
9297 # This must be Linux ELF.
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=no
9307 # This implies no fast_install, which is unacceptable.
9308 # Some rework will be needed to allow for fast_install
9309 # before this can be enabled.
9310 hardcode_into_libs=yes
9312 # Append ld.so.conf contents to the search path
9313 if test -f /etc/ld.so.conf; then
9314 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' ' '`
9315 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9318 # We used to test for /lib/ld.so.1 and disable shared libraries on
9319 # powerpc, because MkLinux only supported shared libraries with the
9320 # GNU dynamic linker. Since this was broken with cross compilers,
9321 # most powerpc-linux boxes support dynamic linking these days and
9322 # people can always --disable-shared, the test was removed, and we
9323 # assume the GNU/Linux dynamic linker is in use.
9324 dynamic_linker='GNU/Linux ld.so'
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=no
9335 hardcode_into_libs=yes
9336 dynamic_linker='GNU ld.so'
9343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9346 dynamic_linker='NetBSD (a.out) ld.so'
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 dynamic_linker='NetBSD ld.elf_so'
9352 shlibpath_var=LD_LIBRARY_PATH
9353 shlibpath_overrides_runpath=yes
9354 hardcode_into_libs=yes
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=yes
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 shlibpath_overrides_runpath=yes
9376 sys_lib_dlsearch_path_spec="/usr/lib"
9378 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9380 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9381 *) need_version=no ;;
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9388 openbsd2.[89] | openbsd2.[89].*)
9389 shlibpath_overrides_runpath=no
9392 shlibpath_overrides_runpath=yes
9396 shlibpath_overrides_runpath=yes
9401 libname_spec='$name'
9404 library_names_spec='$libname${shared_ext} $libname.a'
9405 dynamic_linker='OS/2 ld.exe'
9406 shlibpath_var=LIBPATH
9409 osf3* | osf4* | osf5*)
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415 shlibpath_var=LD_LIBRARY_PATH
9416 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9417 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 shlibpath_overrides_runpath=yes
9428 hardcode_into_libs=yes
9429 # ldd complains unless libraries are executable
9430 postinstall_cmds='chmod +x $lib'
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9436 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes
9439 if test "$with_gnu_ld" = yes; then
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 soname_spec='${libname}${release}${shared_ext}$major'
9449 shlibpath_var=LD_LIBRARY_PATH
9450 case $host_vendor in
9452 shlibpath_overrides_runpath=no
9454 export_dynamic_flag_spec='${wl}-Blargedynsym'
9455 runpath_var=LD_RUN_PATH
9463 shlibpath_overrides_runpath=no
9464 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9470 if test -d /usr/nec ;then
9472 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9473 soname_spec='$libname${shared_ext}.$major'
9474 shlibpath_var=LD_LIBRARY_PATH
9478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9479 version_type=freebsd-elf
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 hardcode_into_libs=yes
9486 if test "$with_gnu_ld" = yes; then
9487 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9488 shlibpath_overrides_runpath=no
9490 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9491 shlibpath_overrides_runpath=yes
9494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9498 sys_lib_dlsearch_path_spec='/usr/lib'
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 shlibpath_var=LD_LIBRARY_PATH
9512 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9513 echo "${ECHO_T}$dynamic_linker" >&6; }
9514 test "$dynamic_linker" = no && can_build_shared=no
9516 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9517 if test "$GCC" = yes; then
9518 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9522 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9523 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9524 if test "${libltdl_cv_shlibext+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 eval libltdl_cv_shlibext=$shrext_cmds
9532 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9533 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9534 if test -n "$libltdl_cv_shlibext"; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9543 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9544 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9545 if test "${libltdl_cv_sys_search_path+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9550 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9551 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9552 if test -n "$libltdl_cv_sys_search_path"; then
9554 for dir in $libltdl_cv_sys_search_path; do
9555 if test -z "$sys_search_path"; then
9556 sys_search_path="$dir"
9558 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9562 cat >>confdefs.h <<_ACEOF
9563 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9568 { echo "$as_me:$LINENO: checking for objdir" >&5
9569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9570 if test "${libltdl_cv_objdir+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 libltdl_cv_objdir="$objdir"
9574 if test -n "$objdir"; then
9577 rm -f .libs 2>/dev/null
9578 mkdir .libs 2>/dev/null
9579 if test -d .libs; then
9580 libltdl_cv_objdir=.libs
9582 # MS-DOS does not allow filenames that begin with a dot.
9583 libltdl_cv_objdir=_libs
9585 rmdir .libs 2>/dev/null
9589 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9590 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9592 cat >>confdefs.h <<_ACEOF
9593 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9601 # Check for command to grab the raw symbol name followed by C symbol from nm.
9602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 # These are sane defaults that work on at least a few old systems.
9609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9611 # Character class describing NM global symbol codes.
9612 symcode='[BCDEGRST]'
9614 # Regexp to match symbols that can be accessed directly from C.
9615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9617 # Transform an extracted symbol line into a proper C declaration
9618 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9620 # Transform an extracted symbol line into symbol name and symbol address
9621 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'"
9623 # Define system-specific variables.
9628 cygwin* | mingw* | pw32*)
9629 symcode='[ABCDGISTW]'
9631 hpux*) # Its linker distinguishes data from code symbols
9632 if test "$host_cpu" = ia64; then
9633 symcode='[ABCDEGRST]'
9635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9636 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'"
9639 if test "$host_cpu" = ia64; then
9640 symcode='[ABCDGIRSTW]'
9641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9642 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'"
9646 symcode='[BCDEGRST]'
9649 symcode='[BCDEGQRST]'
9660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9668 # Handle CRLF in mingw tool chain
9672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9676 # If we're using GNU nm, then use its standard symbol codes.
9677 case `$NM -V 2>&1` in
9678 *GNU* | *'with BFD'*)
9679 symcode='[ABCDGIRSTW]' ;;
9682 # Try without a prefix undercore, then with it.
9683 for ac_symprfx in "" "_"; do
9685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9686 symxfrm="\\1 $ac_symprfx\\2 \\2"
9688 # Write the raw and C identifiers.
9689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9691 # Check to see that the pipe works correctly.
9695 cat > conftest.$ac_ext <<EOF
9700 void nm_test_func(){}
9704 int main(){nm_test_var='a';nm_test_func();return(0);}
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; then
9712 # Now try to grab the symbols.
9714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9715 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && test -s "$nlist"; then
9719 # Try sorting and uniquifying the output.
9720 if sort "$nlist" | uniq > "$nlist"T; then
9721 mv -f "$nlist"T "$nlist"
9726 # Make sure that we snagged all the symbols we need.
9727 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9728 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9729 cat <<EOF > conftest.$ac_ext
9735 # Now generate the symbol file.
9736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9738 cat <<EOF >> conftest.$ac_ext
9739 #if defined (__STDC__) && __STDC__
9740 # define lt_ptr_t void *
9742 # define lt_ptr_t char *
9746 /* The mapping between symbol names and symbols. */
9751 lt_preloaded_symbols[] =
9754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9755 cat <<\EOF >> conftest.$ac_ext
9763 # Now try linking the two files.
9764 mv conftest.$ac_objext conftstm.$ac_objext
9765 lt_save_LIBS="$LIBS"
9766 lt_save_CFLAGS="$CFLAGS"
9767 LIBS="conftstm.$ac_objext"
9768 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770 (eval $ac_link) 2>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9776 LIBS="$lt_save_LIBS"
9777 CFLAGS="$lt_save_CFLAGS"
9779 echo "cannot find nm_test_func in $nlist" >&5
9782 echo "cannot find nm_test_var in $nlist" >&5
9785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9788 echo "$progname: failed program was:" >&5
9789 cat conftest.$ac_ext >&5
9791 rm -f conftest* conftst*
9793 # Do not use the global_symbol_pipe unless it works.
9794 if test "$pipe_works" = yes; then
9797 lt_cv_sys_global_symbol_pipe=
9803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9804 lt_cv_sys_global_symbol_to_cdecl=
9806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9807 { echo "$as_me:$LINENO: result: failed" >&5
9808 echo "${ECHO_T}failed" >&6; }
9810 { echo "$as_me:$LINENO: result: ok" >&5
9811 echo "${ECHO_T}ok" >&6; }
9815 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9816 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9817 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9821 libltdl_cv_preloaded_symbols=yes
9823 libltdl_cv_preloaded_symbols=no
9827 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9828 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9829 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_PRELOADED_SYMBOLS 1
9840 ac_cpp='$CPP $CPPFLAGS'
9841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9846 { echo "$as_me:$LINENO: checking for shl_load" >&5
9847 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9848 if test "${ac_cv_func_shl_load+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9859 #define shl_load innocuous_shl_load
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char shl_load (); below.
9863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9864 <limits.h> exists even on freestanding compilers. */
9867 # include <limits.h>
9869 # include <assert.h>
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9881 /* The GNU C library defines this for functions which it implements
9882 to always fail with ENOSYS. Some functions are actually named
9883 something starting with __ and the normal name is an alias. */
9884 #if defined __stub_shl_load || defined __stub___shl_load
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_func_shl_load=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_cv_func_shl_load=no
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9941 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9943 if test $ac_cv_func_shl_load = yes; then
9945 cat >>confdefs.h <<\_ACEOF
9946 #define HAVE_SHL_LOAD 1
9950 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9951 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9952 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 ac_check_lib_save_LIBS=$LIBS
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_try") 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_lib_dld_shl_load=yes
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 ac_cv_lib_dld_shl_load=no
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10026 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10027 if test $ac_cv_lib_dld_shl_load = yes; then
10029 cat >>confdefs.h <<\_ACEOF
10030 #define HAVE_SHL_LOAD 1
10033 LIBADD_DL="$LIBADD_DL -ldld"
10035 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10036 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10037 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_check_lib_save_LIBS=$LIBS
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_lib_dl_dlopen=yes
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_cv_lib_dl_dlopen=no
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 LIBS=$ac_check_lib_save_LIBS
10110 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10112 if test $ac_cv_lib_dl_dlopen = yes; then
10114 cat >>confdefs.h <<\_ACEOF
10115 #define HAVE_LIBDL 1
10118 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10127 # include <dlfcn.h>
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_link") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10153 { (case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; } &&
10162 { ac_try='test -s conftest$ac_exeext'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_LIBDL 1
10176 libltdl_cv_func_dlopen="yes"
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10182 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10183 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lsvld $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_link") 2>conftest.er1
10219 grep -v '^ *+' conftest.er1 >conftest.err
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10225 { (case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_try") 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest$ac_exeext'
10235 { (case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_try") 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_lib_svld_dlopen=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_cv_lib_svld_dlopen=no
10252 rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10257 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10258 if test $ac_cv_lib_svld_dlopen = yes; then
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_LIBDL 1
10264 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10266 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 ac_check_lib_save_LIBS=$LIBS
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10280 /* Override any GCC internal prototype to avoid an error.
10281 Use char because int might match the return type of a GCC
10282 builtin and then its argument prototype would still apply. */
10290 return dld_link ();
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10310 { (case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_dld_dld_link=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_dld_dld_link=no
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10339 LIBS=$ac_check_lib_save_LIBS
10341 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10342 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10343 if test $ac_cv_lib_dld_dld_link = yes; then
10345 cat >>confdefs.h <<\_ACEOF
10349 LIBADD_DL="$LIBADD_DL -ldld"
10351 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10352 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10353 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10364 #define _dyld_func_lookup innocuous__dyld_func_lookup
10366 /* System header to define __stub macros and hopefully few prototypes,
10367 which can conflict with char _dyld_func_lookup (); below.
10368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10369 <limits.h> exists even on freestanding compilers. */
10372 # include <limits.h>
10374 # include <assert.h>
10377 #undef _dyld_func_lookup
10379 /* Override any GCC internal prototype to avoid an error.
10380 Use char because int might match the return type of a GCC
10381 builtin and then its argument prototype would still apply. */
10385 char _dyld_func_lookup ();
10386 /* The GNU C library defines this for functions which it implements
10387 to always fail with ENOSYS. Some functions are actually named
10388 something starting with __ and the normal name is an alias. */
10389 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10396 return _dyld_func_lookup ();
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (ac_try="$ac_link"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408 (eval "$ac_link") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; } &&
10425 { ac_try='test -s conftest$ac_exeext'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_func__dyld_func_lookup=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_func__dyld_func_lookup=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10446 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10447 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10448 if test $ac_cv_func__dyld_func_lookup = yes; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_DYLD 1
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10477 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10479 lt_save_LIBS="$LIBS"
10480 LIBS="$LIBS $LIBADD_DL"
10482 for ac_func in dlerror
10484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 cat >conftest.$ac_ext <<_ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10498 #define $ac_func innocuous_$ac_func
10500 /* System header to define __stub macros and hopefully few prototypes,
10501 which can conflict with char $ac_func (); below.
10502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10503 <limits.h> exists even on freestanding compilers. */
10506 # include <limits.h>
10508 # include <assert.h>
10513 /* Override any GCC internal prototype to avoid an error.
10514 Use char because int might match the return type of a GCC
10515 builtin and then its argument prototype would still apply. */
10520 /* The GNU C library defines this for functions which it implements
10521 to always fail with ENOSYS. Some functions are actually named
10522 something starting with __ and the normal name is an alias. */
10523 #if defined __stub_$ac_func || defined __stub___$ac_func
10530 return $ac_func ();
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } &&
10549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550 { (case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_try") 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (case "(($ac_try" in
10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562 *) ac_try_echo=$ac_try;;
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565 (eval "$ac_try") 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 eval "$as_ac_var=yes"
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 eval "$as_ac_var=no"
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10580 ac_res=`eval echo '${'$as_ac_var'}'`
10581 { echo "$as_me:$LINENO: result: $ac_res" >&5
10582 echo "${ECHO_T}$ac_res" >&6; }
10583 if test `eval echo '${'$as_ac_var'}'` = yes; then
10584 cat >>confdefs.h <<_ACEOF
10585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10591 LIBS="$lt_save_LIBS"
10594 ac_cpp='$CPP $CPPFLAGS'
10595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10601 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10602 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10603 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10606 ac_cv_sys_symbol_underscore=no
10607 cat > conftest.$ac_ext <<EOF
10608 void nm_test_func(){}
10609 int main(){nm_test_func;return 0;}
10611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; then
10616 # Now try to grab the symbols.
10617 ac_nlist=conftest.nm
10618 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10619 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && test -s "$ac_nlist"; then
10623 # See whether the symbols have a leading underscore.
10624 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10625 ac_cv_sys_symbol_underscore=yes
10627 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10630 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10634 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10637 echo "configure: failed program was:" >&5
10643 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10644 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10647 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10648 if test x"$libltdl_cv_func_dlopen" = xyes ||
10649 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10650 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10651 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10652 if test "${libltdl_cv_need_uscore+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 libltdl_cv_need_uscore=unknown
10657 LIBS="$LIBS $LIBADD_DL"
10658 if test "$cross_compiling" = yes; then :
10659 libltdl_cv_need_uscore=cross
10661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10662 lt_status=$lt_dlunknown
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10664 "configure"
10665 #include "confdefs.h"
10674 # define LT_DLGLOBAL RTLD_GLOBAL
10677 # define LT_DLGLOBAL DL_GLOBAL
10679 # define LT_DLGLOBAL 0
10683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10684 find out it does not work in some platform. */
10685 #ifndef LT_DLLAZY_OR_NOW
10687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10690 # define LT_DLLAZY_OR_NOW DL_LAZY
10693 # define LT_DLLAZY_OR_NOW RTLD_NOW
10696 # define LT_DLLAZY_OR_NOW DL_NOW
10698 # define LT_DLLAZY_OR_NOW 0
10706 extern "C" void exit (int);
10709 void fnord() { int i=42;}
10712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10713 int status = $lt_dlunknown;
10717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10719 /* dlclose (self); */
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728 (eval $ac_link) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10732 (./conftest; exit; ) >&5 2>/dev/null
10734 case x$lt_status in
10735 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10736 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10737 x$lt_dlunknown|x*) ;;
10740 # compilation failed
10749 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10750 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10754 if test x"$libltdl_cv_need_uscore" = xyes; then
10756 cat >>confdefs.h <<\_ACEOF
10757 #define NEED_USCORE 1
10763 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10764 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10765 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 # PORTME does your system automatically load deplibs for dlopen?
10769 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10770 # For now, we just catch OSes we know something about -- in the
10771 # future, we'll try test this programmatically.
10772 libltdl_cv_sys_dlopen_deplibs=unknown
10774 aix3*|aix4.1.*|aix4.2.*)
10775 # Unknown whether this is true for these versions of AIX, but
10776 # we want this `case' here to explicitly catch those versions.
10777 libltdl_cv_sys_dlopen_deplibs=unknown
10780 libltdl_cv_sys_dlopen_deplibs=yes
10783 # Assuming the user has installed a libdl from somewhere, this is true
10784 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10785 libltdl_cv_sys_dlopen_deplibs=yes
10787 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10788 # GNU and its variants, using gnu ld.so (Glibc)
10789 libltdl_cv_sys_dlopen_deplibs=yes
10792 libltdl_cv_sys_dlopen_deplibs=yes
10795 libltdl_cv_sys_dlopen_deplibs=yes
10797 irix[12345]*|irix6.[01]*)
10798 # Catch all versions of IRIX before 6.2, and indicate that we don't
10799 # know how it worked for any of those versions.
10800 libltdl_cv_sys_dlopen_deplibs=unknown
10803 # The case above catches anything before 6.2, and it's known that
10804 # at 6.2 and later dlopen does load deplibs.
10805 libltdl_cv_sys_dlopen_deplibs=yes
10808 libltdl_cv_sys_dlopen_deplibs=yes
10811 libltdl_cv_sys_dlopen_deplibs=yes
10814 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10815 # it did *not* use an RPATH in a shared library to find objects the
10816 # library depends on, so we explicitly say `no'.
10817 libltdl_cv_sys_dlopen_deplibs=no
10819 osf5.0|osf5.0a|osf5.1)
10820 # dlopen *does* load deplibs and with the right loader patch applied
10821 # it even uses RPATH in a shared library to search for shared objects
10822 # that the library depends on, but there's no easy way to know if that
10823 # patch is installed. Since this is the case, all we can really
10824 # say is unknown -- it depends on the patch being installed. If
10825 # it is, this changes to `yes'. Without it, it would be `no'.
10826 libltdl_cv_sys_dlopen_deplibs=unknown
10829 # the two cases above should catch all versions of osf <= 5.1. Read
10830 # the comments above for what we know about them.
10831 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10832 # is used to find them so we can finally say `yes'.
10833 libltdl_cv_sys_dlopen_deplibs=yes
10836 libltdl_cv_sys_dlopen_deplibs=yes
10838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10839 libltdl_cv_sys_dlopen_deplibs=yes
10844 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10845 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10846 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10848 cat >>confdefs.h <<\_ACEOF
10849 #define LTDL_DLOPEN_DEPLIBS 1
10855 for ac_header in argz.h
10857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 ac_res=`eval echo '${'$as_ac_Header'}'`
10865 { echo "$as_me:$LINENO: result: $ac_res" >&5
10866 echo "${ECHO_T}$ac_res" >&6; }
10868 # Is the header compilable?
10869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 $ac_includes_default
10878 #include <$ac_header>
10880 rm -f conftest.$ac_objext
10881 if { (ac_try="$ac_compile"
10882 case "(($ac_try" in
10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10884 *) ac_try_echo=$ac_try;;
10886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10887 (eval "$ac_compile") 2>conftest.er1
10889 grep -v '^ *+' conftest.er1 >conftest.err
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_try") 2>&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_header_compiler=yes
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10919 ac_header_compiler=no
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10924 echo "${ECHO_T}$ac_header_compiler" >&6; }
10926 # Is the header present?
10927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 #include <$ac_header>
10937 if { (ac_try="$ac_cpp conftest.$ac_ext"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } >/dev/null; then
10950 if test -s conftest.err; then
10951 ac_cpp_err=$ac_c_preproc_warn_flag
10952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10959 if test -z "$ac_cpp_err"; then
10960 ac_header_preproc=yes
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 ac_header_preproc=no
10968 rm -f conftest.err conftest.$ac_ext
10969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10970 echo "${ECHO_T}$ac_header_preproc" >&6; }
10972 # So? What about this header?
10973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10979 ac_header_preproc=yes
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10995 ## ------------------------------------ ##
10996 ## Report this to http://llvm.org/bugs/ ##
10997 ## ------------------------------------ ##
10999 ) | sed "s/^/$as_me: WARNING: /" >&2
11002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 eval "$as_ac_Header=\$ac_header_preproc"
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11024 { echo "$as_me:$LINENO: checking for error_t" >&5
11025 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11026 if test "${ac_cv_type_error_t+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11039 typedef error_t ac__type_new_;
11043 if ((ac__type_new_ *) 0)
11045 if (sizeof (ac__type_new_))
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_try") 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_type_error_t=yes
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11090 ac_cv_type_error_t=no
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11096 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11097 if test $ac_cv_type_error_t = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_ERROR_T 1
11106 cat >>confdefs.h <<\_ACEOF
11107 #define error_t int
11118 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11134 #define $ac_func innocuous_$ac_func
11136 /* System header to define __stub macros and hopefully few prototypes,
11137 which can conflict with char $ac_func (); below.
11138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11139 <limits.h> exists even on freestanding compilers. */
11142 # include <limits.h>
11144 # include <assert.h>
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11156 /* The GNU C library defines this for functions which it implements
11157 to always fail with ENOSYS. Some functions are actually named
11158 something starting with __ and the normal name is an alias. */
11159 #if defined __stub_$ac_func || defined __stub___$ac_func
11166 return $ac_func ();
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (ac_try="$ac_link"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_link") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11186 { (case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_try") 2>&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest$ac_exeext'
11196 { (case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_try") 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }; then
11205 eval "$as_ac_var=yes"
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 eval "$as_ac_var=no"
11213 rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 for ac_header in errno.h malloc.h memory.h unistd.h
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259 { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11262 # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 #include <$ac_header>
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1 >conftest.err
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11289 { (case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_try") 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_try") 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_header_compiler=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.$ac_ext >&5
11313 ac_header_compiler=no
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11318 echo "${ECHO_T}$ac_header_compiler" >&6; }
11320 # Is the header present?
11321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11323 cat >conftest.$ac_ext <<_ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 #include <$ac_header>
11331 if { (ac_try="$ac_cpp conftest.$ac_ext"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1 >conftest.err
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null; then
11344 if test -s conftest.err; then
11345 ac_cpp_err=$ac_c_preproc_warn_flag
11346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11353 if test -z "$ac_cpp_err"; then
11354 ac_header_preproc=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_preproc=no
11362 rm -f conftest.err conftest.$ac_ext
11363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 echo "${ECHO_T}$ac_header_preproc" >&6; }
11366 # So? What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373 ac_header_preproc=yes
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11389 ## ------------------------------------ ##
11390 ## Report this to http://llvm.org/bugs/ ##
11391 ## ------------------------------------ ##
11393 ) | sed "s/^/$as_me: WARNING: /" >&2
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11418 for ac_header in mach-o/dyld.h
11420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 ac_res=`eval echo '${'$as_ac_Header'}'`
11428 { echo "$as_me:$LINENO: result: $ac_res" >&5
11429 echo "${ECHO_T}$ac_res" >&6; }
11431 # Is the header compilable?
11432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11434 cat >conftest.$ac_ext <<_ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11440 $ac_includes_default
11441 #include <$ac_header>
11443 rm -f conftest.$ac_objext
11444 if { (ac_try="$ac_compile"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11447 *) ac_try_echo=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_compile") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1 >conftest.err
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11458 { (case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_try") 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest.$ac_objext'
11468 { (case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473 (eval "$ac_try") 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_header_compiler=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 ac_header_compiler=no
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11487 echo "${ECHO_T}$ac_header_compiler" >&6; }
11489 # Is the header present?
11490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 #include <$ac_header>
11500 if { (ac_try="$ac_cpp conftest.$ac_ext"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null; then
11513 if test -s conftest.err; then
11514 ac_cpp_err=$ac_c_preproc_warn_flag
11515 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11522 if test -z "$ac_cpp_err"; then
11523 ac_header_preproc=yes
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_header_preproc=no
11531 rm -f conftest.err conftest.$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11533 echo "${ECHO_T}$ac_header_preproc" >&6; }
11535 # So? What about this header?
11536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11542 ac_header_preproc=yes
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11558 ## ------------------------------------ ##
11559 ## Report this to http://llvm.org/bugs/ ##
11560 ## ------------------------------------ ##
11562 ) | sed "s/^/$as_me: WARNING: /" >&2
11565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 eval "$as_ac_Header=\$ac_header_preproc"
11572 ac_res=`eval echo '${'$as_ac_Header'}'`
11573 { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11590 for ac_func in closedir opendir readdir
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606 #define $ac_func innocuous_$ac_func
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11614 # include <limits.h>
11616 # include <assert.h>
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 return $ac_func ();
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (ac_try="$ac_link"
11645 case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11658 { (case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_try") 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "$as_ac_var=yes"
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 eval "$as_ac_var=no"
11685 rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11688 ac_res=`eval echo '${'$as_ac_var'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11691 if test `eval echo '${'$as_ac_var'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11701 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11702 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11715 if test "$GCC" != "yes" && test "$ICC" != "yes"
11717 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11718 echo "$as_me: error: gcc|icc required but not found" >&2;}
11719 { (exit 1); exit 1; }; }
11722 if test "$GXX" != "yes" && test "$IXX" != "yes"
11724 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11725 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11726 { (exit 1); exit 1; }; }
11729 if test "$GCC" = "yes"
11731 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11739 #if !defined(__GNUC__) || __GNUC__ < 3
11740 #error Unsupported GCC version
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_compile") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11785 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11786 { (exit 1); exit 1; }; }
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11792 if test -z "$llvm_cv_gnu_make_command"
11794 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11795 echo "$as_me: error: GNU Make required but not found" >&2;}
11796 { (exit 1); exit 1; }; }
11799 { echo "$as_me:$LINENO: result: ok" >&5
11800 echo "${ECHO_T}ok" >&6; }
11802 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11803 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11804 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11806 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11808 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11812 NO_MAYBE_UNINITIALIZED=
11813 if test "$GXX" = "yes"
11815 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11817 if test -z "$NO_MAYBE_UNINITIALIZED"
11819 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11823 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11824 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11827 # Check whether --with-python was given.
11828 if test "${with_python+set}" = set; then
11829 withval=$with_python; PYTHON="$withval"
11833 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11834 { echo "$as_me:$LINENO: checking for python" >&5
11835 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11836 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11837 echo "${ECHO_T}user defined: $with_python" >&6; }
11839 if test -n "$PYTHON" ; then
11840 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11841 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11844 # Extract the first word of "python python2 python26", so it can be a program name with args.
11845 set dummy python python2 python26; ac_word=$2
11846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11848 if test "${ac_cv_path_PYTHON+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH
11860 test -z "$as_dir" && as_dir=.
11861 for ac_exec_ext in '' $ac_executable_extensions; do
11862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11863 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11872 echo "${ECHO_T}not found" >&6; }
11873 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11874 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11875 { (exit 1); exit 1; }; }"
11879 PYTHON=$ac_cv_path_PYTHON
11880 if test -n "$PYTHON"; then
11881 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11882 echo "${ECHO_T}$PYTHON" >&6; }
11884 { echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6; }
11891 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11892 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11893 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11894 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11895 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11896 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11897 if test "$ac_python_version_major" -gt "2" || \
11898 (test "$ac_python_version_major" -eq "2" && \
11899 test "$ac_python_version_minor" -ge "5") ; then
11900 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11901 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11903 { echo "$as_me:$LINENO: result: not found" >&5
11904 echo "${ECHO_T}not found" >&6; }
11905 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11906 See \`config.log' for more details." >&5
11907 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11908 See \`config.log' for more details." >&2;}
11909 { (exit 1); exit 1; }; }
11914 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11915 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11916 if test "${ac_cv_lib_m_sin+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_check_lib_save_LIBS=$LIBS
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (ac_try="$ac_link"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
11952 grep -v '^ *+' conftest.er1 >conftest.err
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_lib_m_sin=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11989 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11990 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11991 if test $ac_cv_lib_m_sin = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993 #define HAVE_LIBM 1
12000 if test "$llvm_cv_os_type" = "MingW" ; then
12002 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12003 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12004 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-limagehlp $LIBS"
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_link") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest$ac_exeext'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_lib_imagehlp_main=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_cv_lib_imagehlp_main=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12072 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12073 if test $ac_cv_lib_imagehlp_main = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE_LIBIMAGEHLP 1
12078 LIBS="-limagehlp $LIBS"
12083 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12084 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_psapi_main+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-lpsapi $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12106 rm -f conftest.$ac_objext conftest$ac_exeext
12107 if { (ac_try="$ac_link"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_link") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12121 { (case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_try") 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_try") 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_lib_psapi_main=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_lib_psapi_main=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12153 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12154 if test $ac_cv_lib_psapi_main = yes; then
12155 cat >>confdefs.h <<_ACEOF
12156 #define HAVE_LIBPSAPI 1
12159 LIBS="-lpsapi $LIBS"
12164 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12165 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12166 if test "${ac_cv_lib_shell32_main+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lshell32 $LIBS"
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12187 rm -f conftest.$ac_objext conftest$ac_exeext
12188 if { (ac_try="$ac_link"
12189 case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>conftest.er1
12196 grep -v '^ *+' conftest.er1 >conftest.err
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12202 { (case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_try") 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_try") 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_lib_shell32_main=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_lib_shell32_main=no
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12234 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12235 if test $ac_cv_lib_shell32_main = yes; then
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LIBSHELL32 1
12240 LIBS="-lshell32 $LIBS"
12246 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12247 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12248 if test "${ac_cv_search_dlopen+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 ac_func_search_save_LIBS=$LIBS
12252 cat >conftest.$ac_ext <<_ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12274 for ac_lib in '' dl; do
12275 if test -z "$ac_lib"; then
12276 ac_res="none required"
12279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12296 { (case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_try") 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (case "(($ac_try" in
12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_try") 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_cv_search_dlopen=$ac_res
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12323 rm -f core conftest.err conftest.$ac_objext \
12325 if test "${ac_cv_search_dlopen+set}" = set; then
12329 if test "${ac_cv_search_dlopen+set}" = set; then
12332 ac_cv_search_dlopen=no
12334 rm conftest.$ac_ext
12335 LIBS=$ac_func_search_save_LIBS
12337 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12338 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12339 ac_res=$ac_cv_search_dlopen
12340 if test "$ac_res" != no; then
12341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_DLOPEN 1
12348 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12349 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12353 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12354 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12355 if test "${ac_cv_search_clock_gettime+set}" = set; then
12356 echo $ECHO_N "(cached) $ECHO_C" >&6
12358 ac_func_search_save_LIBS=$LIBS
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply. */
12372 char clock_gettime ();
12376 return clock_gettime ();
12381 for ac_lib in '' rt; do
12382 if test -z "$ac_lib"; then
12383 ac_res="none required"
12386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392 *) ac_try_echo=$ac_try;;
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395 (eval "$ac_link") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1 >conftest.err
12399 cat conftest.err >&5
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); } &&
12402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12403 { (case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_try") 2>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; } &&
12412 { ac_try='test -s conftest$ac_exeext'
12413 { (case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_try") 2>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }; }; then
12422 ac_cv_search_clock_gettime=$ac_res
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12430 rm -f core conftest.err conftest.$ac_objext \
12432 if test "${ac_cv_search_clock_gettime+set}" = set; then
12436 if test "${ac_cv_search_clock_gettime+set}" = set; then
12439 ac_cv_search_clock_gettime=no
12441 rm conftest.$ac_ext
12442 LIBS=$ac_func_search_save_LIBS
12444 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12445 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12446 ac_res=$ac_cv_search_clock_gettime
12447 if test "$ac_res" != no; then
12448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12453 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12454 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12455 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12456 if test "${ac_cv_search_setupterm+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 ac_func_search_save_LIBS=$LIBS
12460 cat >conftest.$ac_ext <<_ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12477 return setupterm ();
12482 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12483 if test -z "$ac_lib"; then
12484 ac_res="none required"
12487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12489 rm -f conftest.$ac_objext conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_link") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12504 { (case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_try") 2>&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_search_setupterm=$ac_res
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12531 rm -f core conftest.err conftest.$ac_objext \
12533 if test "${ac_cv_search_setupterm+set}" = set; then
12537 if test "${ac_cv_search_setupterm+set}" = set; then
12540 ac_cv_search_setupterm=no
12542 rm conftest.$ac_ext
12543 LIBS=$ac_func_search_save_LIBS
12545 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12546 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12547 ac_res=$ac_cv_search_setupterm
12548 if test "$ac_res" != no; then
12549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12551 cat >>confdefs.h <<\_ACEOF
12552 #define HAVE_TERMINFO 1
12559 if test "$llvm_cv_enable_libffi" = "yes" ; then
12560 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12561 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12562 if test "${ac_cv_search_ffi_call+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 ac_func_search_save_LIBS=$LIBS
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12583 return ffi_call ();
12588 for ac_lib in '' ffi; do
12589 if test -z "$ac_lib"; then
12590 ac_res="none required"
12593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (ac_try="$ac_link"
12597 case "(($ac_try" in
12598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_link") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest$ac_exeext'
12620 { (case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625 (eval "$ac_try") 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_cv_search_ffi_call=$ac_res
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12637 rm -f core conftest.err conftest.$ac_objext \
12639 if test "${ac_cv_search_ffi_call+set}" = set; then
12643 if test "${ac_cv_search_ffi_call+set}" = set; then
12646 ac_cv_search_ffi_call=no
12648 rm conftest.$ac_ext
12649 LIBS=$ac_func_search_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12652 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12653 ac_res=$ac_cv_search_ffi_call
12654 if test "$ac_res" != no; then
12655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12657 cat >>confdefs.h <<\_ACEOF
12658 #define HAVE_FFI_CALL 1
12662 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12663 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12664 { (exit 1); exit 1; }; }
12669 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12670 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12671 if test "${ac_cv_search_mallinfo+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 ac_func_search_save_LIBS=$LIBS
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12692 return mallinfo ();
12697 for ac_lib in '' malloc; do
12698 if test -z "$ac_lib"; then
12699 ac_res="none required"
12702 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_link") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1 >conftest.err
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719 { (case "(($ac_try" in
12720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721 *) ac_try_echo=$ac_try;;
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724 (eval "$ac_try") 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } &&
12728 { ac_try='test -s conftest$ac_exeext'
12729 { (case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_try") 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; }; then
12738 ac_cv_search_mallinfo=$ac_res
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12746 rm -f core conftest.err conftest.$ac_objext \
12748 if test "${ac_cv_search_mallinfo+set}" = set; then
12752 if test "${ac_cv_search_mallinfo+set}" = set; then
12755 ac_cv_search_mallinfo=no
12757 rm conftest.$ac_ext
12758 LIBS=$ac_func_search_save_LIBS
12760 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12761 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12762 ac_res=$ac_cv_search_mallinfo
12763 if test "$ac_res" != no; then
12764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_MALLINFO 1
12773 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12775 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12776 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12777 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lpthread $LIBS"
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12789 /* Override any GCC internal prototype to avoid an error.
12790 Use char because int might match the return type of a GCC
12791 builtin and then its argument prototype would still apply. */
12795 char pthread_mutex_init ();
12799 return pthread_mutex_init ();
12804 rm -f conftest.$ac_objext conftest$ac_exeext
12805 if { (ac_try="$ac_link"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_link") 2>conftest.er1
12813 grep -v '^ *+' conftest.er1 >conftest.err
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } &&
12818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12819 { (case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_try") 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; } &&
12828 { ac_try='test -s conftest$ac_exeext'
12829 { (case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_try") 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_cv_lib_pthread_pthread_mutex_init=yes
12840 echo "$as_me: failed program was:" >&5
12841 sed 's/^/| /' conftest.$ac_ext >&5
12843 ac_cv_lib_pthread_pthread_mutex_init=no
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12850 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12851 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12852 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_LIBPTHREAD 1
12857 LIBS="-lpthread $LIBS"
12861 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12862 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12863 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_func_search_save_LIBS=$LIBS
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12880 char pthread_mutex_lock ();
12884 return pthread_mutex_lock ();
12889 for ac_lib in '' pthread; do
12890 if test -z "$ac_lib"; then
12891 ac_res="none required"
12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_link") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_try") 2>&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_search_pthread_mutex_lock=$ac_res
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12938 rm -f core conftest.err conftest.$ac_objext \
12940 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12944 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12947 ac_cv_search_pthread_mutex_lock=no
12949 rm conftest.$ac_ext
12950 LIBS=$ac_func_search_save_LIBS
12952 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12953 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12954 ac_res=$ac_cv_search_pthread_mutex_lock
12955 if test "$ac_res" != no; then
12956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_PTHREAD_MUTEX_LOCK 1
12964 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12965 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12966 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 ac_func_search_save_LIBS=$LIBS
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12983 char pthread_rwlock_init ();
12987 return pthread_rwlock_init ();
12992 for ac_lib in '' pthread; do
12993 if test -z "$ac_lib"; then
12994 ac_res="none required"
12997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (ac_try="$ac_link"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_try") 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_cv_search_pthread_rwlock_init=$ac_res
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13041 rm -f core conftest.err conftest.$ac_objext \
13043 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13047 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13050 ac_cv_search_pthread_rwlock_init=no
13052 rm conftest.$ac_ext
13053 LIBS=$ac_func_search_save_LIBS
13055 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13056 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13057 ac_res=$ac_cv_search_pthread_rwlock_init
13058 if test "$ac_res" != no; then
13059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13061 cat >>confdefs.h <<\_ACEOF
13062 #define HAVE_PTHREAD_RWLOCK_INIT 1
13067 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13068 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13069 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_func_search_save_LIBS=$LIBS
13073 cat >conftest.$ac_ext <<_ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13086 char pthread_getspecific ();
13090 return pthread_getspecific ();
13095 for ac_lib in '' pthread; do
13096 if test -z "$ac_lib"; then
13097 ac_res="none required"
13100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13102 rm -f conftest.$ac_objext conftest$ac_exeext
13103 if { (ac_try="$ac_link"
13104 case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_link") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132 (eval "$ac_try") 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_search_pthread_getspecific=$ac_res
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13144 rm -f core conftest.err conftest.$ac_objext \
13146 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13150 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13153 ac_cv_search_pthread_getspecific=no
13155 rm conftest.$ac_ext
13156 LIBS=$ac_func_search_save_LIBS
13158 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13159 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13160 ac_res=$ac_cv_search_pthread_getspecific
13161 if test "$ac_res" != no; then
13162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13164 cat >>confdefs.h <<\_ACEOF
13165 #define HAVE_PTHREAD_GETSPECIFIC 1
13172 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13174 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13175 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13176 if test "${ac_cv_lib_z_compress2+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 ac_check_lib_save_LIBS=$LIBS
13181 cat >conftest.$ac_ext <<_ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13188 /* Override any GCC internal prototype to avoid an error.
13189 Use char because int might match the return type of a GCC
13190 builtin and then its argument prototype would still apply. */
13198 return compress2 ();
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (ac_try="$ac_link"
13205 case "(($ac_try" in
13206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13207 *) ac_try_echo=$ac_try;;
13209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13210 (eval "$ac_link") 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest$ac_exeext'
13228 { (case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_try") 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_lib_z_compress2=yes
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 ac_cv_lib_z_compress2=no
13245 rm -f core conftest.err conftest.$ac_objext \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13250 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13251 if test $ac_cv_lib_z_compress2 = yes; then
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_LIBZ 1
13263 # Check whether --with-udis86 was given.
13264 if test "${with_udis86+set}" = set; then
13265 withval=$with_udis86;
13270 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13273 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13274 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13275 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-ludis86 $LIBS"
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_link") 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_lib_udis86_ud_init=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 ac_cv_lib_udis86_ud_init=no
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_lib_save_LIBS
13348 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13349 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13350 if test $ac_cv_lib_udis86_ud_init = yes; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define HAVE_LIBUDIS86 1
13355 LIBS="-ludis86 $LIBS"
13359 echo "Error! You need to have libudis86 around."
13371 cat >>confdefs.h <<_ACEOF
13372 #define USE_UDIS86 $USE_UDIS86
13377 # Check whether --with-oprofile was given.
13378 if test "${with_oprofile+set}" = set; then
13379 withval=$with_oprofile;
13383 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13384 no) llvm_cv_oppath=
13387 *) llvm_cv_oppath="${withval}/lib/oprofile"
13388 CPPFLAGS="-I${withval}/include";;
13390 case $llvm_cv_os_type in
13392 if test -n "$llvm_cv_oppath" ; then
13393 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13394 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13395 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13396 if test "${ac_cv_search_bfd_init+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 ac_func_search_save_LIBS=$LIBS
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13407 /* Override any GCC internal prototype to avoid an error.
13408 Use char because int might match the return type of a GCC
13409 builtin and then its argument prototype would still apply. */
13417 return bfd_init ();
13422 for ac_lib in '' bfd; do
13423 if test -z "$ac_lib"; then
13424 ac_res="none required"
13427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13429 rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (ac_try="$ac_link"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_link") 2>conftest.er1
13438 grep -v '^ *+' conftest.er1 >conftest.err
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13444 { (case "(($ac_try" in
13445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_try") 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest$ac_exeext'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_search_bfd_init=$ac_res
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13471 rm -f core conftest.err conftest.$ac_objext \
13473 if test "${ac_cv_search_bfd_init+set}" = set; then
13477 if test "${ac_cv_search_bfd_init+set}" = set; then
13480 ac_cv_search_bfd_init=no
13482 rm conftest.$ac_ext
13483 LIBS=$ac_func_search_save_LIBS
13485 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13486 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13487 ac_res=$ac_cv_search_bfd_init
13488 if test "$ac_res" != no; then
13489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13493 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13494 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13495 if test "${ac_cv_search_op_open_agent+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_func_search_save_LIBS=$LIBS
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 /* Override any GCC internal prototype to avoid an error.
13507 Use char because int might match the return type of a GCC
13508 builtin and then its argument prototype would still apply. */
13512 char op_open_agent ();
13516 return op_open_agent ();
13521 for ac_lib in '' opagent; do
13522 if test -z "$ac_lib"; then
13523 ac_res="none required"
13526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13528 rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (ac_try="$ac_link"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_link") 2>conftest.er1
13537 grep -v '^ *+' conftest.er1 >conftest.err
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13543 { (case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_try") 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_search_op_open_agent=$ac_res
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13570 rm -f core conftest.err conftest.$ac_objext \
13572 if test "${ac_cv_search_op_open_agent+set}" = set; then
13576 if test "${ac_cv_search_op_open_agent+set}" = set; then
13579 ac_cv_search_op_open_agent=no
13581 rm conftest.$ac_ext
13582 LIBS=$ac_func_search_save_LIBS
13584 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13585 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13586 ac_res=$ac_cv_search_op_open_agent
13587 if test "$ac_res" != no; then
13588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13592 echo "Error! You need to have libopagent around."
13597 if test "${ac_cv_header_opagent_h+set}" = set; then
13598 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13599 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13600 if test "${ac_cv_header_opagent_h+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13604 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13606 # Is the header compilable?
13607 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13608 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13616 #include <opagent.h>
13618 rm -f conftest.$ac_objext
13619 if { (ac_try="$ac_compile"
13620 case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_compile") 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13633 { (case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_try") 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_try") 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 ac_header_compiler=yes
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_header_compiler=no
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13662 echo "${ECHO_T}$ac_header_compiler" >&6; }
13664 # Is the header present?
13665 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13666 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 #include <opagent.h>
13675 if { (ac_try="$ac_cpp conftest.$ac_ext"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13683 grep -v '^ *+' conftest.er1 >conftest.err
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } >/dev/null; then
13688 if test -s conftest.err; then
13689 ac_cpp_err=$ac_c_preproc_warn_flag
13690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13697 if test -z "$ac_cpp_err"; then
13698 ac_header_preproc=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_header_preproc=no
13706 rm -f conftest.err conftest.$ac_ext
13707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13708 echo "${ECHO_T}$ac_header_preproc" >&6; }
13710 # So? What about this header?
13711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13713 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13714 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13716 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13717 ac_header_preproc=yes
13720 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13721 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13723 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13725 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13727 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13729 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13731 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13733 ## ------------------------------------ ##
13734 ## Report this to http://llvm.org/bugs/ ##
13735 ## ------------------------------------ ##
13737 ) | sed "s/^/$as_me: WARNING: /" >&2
13740 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13741 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13742 if test "${ac_cv_header_opagent_h+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 ac_cv_header_opagent_h=$ac_header_preproc
13747 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13748 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13751 if test $ac_cv_header_opagent_h = yes; then
13755 echo "Error! You need to have opagent.h around."
13763 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13764 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13765 { (exit 1); exit 1; }; } ;;
13776 cat >>confdefs.h <<_ACEOF
13777 #define LLVM_USE_OPROFILE $USE_OPROFILE
13782 # Check whether --with-intel-jitevents was given.
13783 if test "${with_intel_jitevents+set}" = set; then
13784 withval=$with_intel_jitevents;
13786 yes) USE_INTEL_JITEVENTS=1
13788 no) USE_INTEL_JITEVENTS=0
13790 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13791 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13792 { (exit 1); exit 1; }; };;
13795 case $llvm_cv_os_type in
13796 Linux|Win32|Cygwin|MingW) ;;
13797 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13798 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13799 { (exit 1); exit 1; }; };;
13802 case "$llvm_cv_target_arch" in
13804 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13805 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13806 { (exit 1); exit 1; }; };;
13811 USE_INTEL_JITEVENTS=0
13817 cat >>confdefs.h <<_ACEOF
13818 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13822 for ac_prog in xml2-config
13824 # Extract the first word of "$ac_prog", so it can be a program name with args.
13825 set dummy $ac_prog; ac_word=$2
13826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13828 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 if test -n "$XML2CONFIG"; then
13832 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835 for as_dir in $PATH
13838 test -z "$as_dir" && as_dir=.
13839 for ac_exec_ext in '' $ac_executable_extensions; do
13840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13841 ac_cv_prog_XML2CONFIG="$ac_prog"
13842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13852 if test -n "$XML2CONFIG"; then
13853 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13854 echo "${ECHO_T}$XML2CONFIG" >&6; }
13856 { echo "$as_me:$LINENO: result: no" >&5
13857 echo "${ECHO_T}no" >&6; }
13861 test -n "$XML2CONFIG" && break
13865 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13866 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13867 if test "x$XML2CONFIG" = "x"; then
13868 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13869 echo "${ECHO_T}xml2-config not found" >&6; }
13871 LIBXML2_INC=`$XML2CONFIG --cflags`
13872 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13873 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13874 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13875 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13876 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lxml2 $LIBS"
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13894 char xmlReadFile ();
13898 return xmlReadFile ();
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_lib_xml2_xmlReadFile=yes
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_lib_xml2_xmlReadFile=no
13945 rm -f core conftest.err conftest.$ac_objext \
13946 conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13950 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13951 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13953 cat >>confdefs.h <<\_ACEOF
13954 #define CLANG_HAVE_LIBXML 1
13957 LIBXML2_LIBS="-lxml2"
13970 ac_header_dirent=no
13971 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13972 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13973 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13974 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <sys/types.h>
13996 rm -f conftest.$ac_objext
13997 if { (ac_try="$ac_compile"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_compile") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
14030 eval "$as_ac_Header=yes"
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 eval "$as_ac_Header=no"
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 ac_res=`eval echo '${'$as_ac_Header'}'`
14041 { echo "$as_me:$LINENO: result: $ac_res" >&5
14042 echo "${ECHO_T}$ac_res" >&6; }
14043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14048 ac_header_dirent=$ac_hdr; break
14052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14053 if test $ac_header_dirent = dirent.h; then
14054 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14055 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14056 if test "${ac_cv_search_opendir+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 ac_func_search_save_LIBS=$LIBS
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14082 for ac_lib in '' dir; do
14083 if test -z "$ac_lib"; then
14084 ac_res="none required"
14087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_link") 2>conftest.er1
14098 grep -v '^ *+' conftest.er1 >conftest.err
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_search_opendir=$ac_res
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14131 rm -f core conftest.err conftest.$ac_objext \
14133 if test "${ac_cv_search_opendir+set}" = set; then
14137 if test "${ac_cv_search_opendir+set}" = set; then
14140 ac_cv_search_opendir=no
14142 rm conftest.$ac_ext
14143 LIBS=$ac_func_search_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14146 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14147 ac_res=$ac_cv_search_opendir
14148 if test "$ac_res" != no; then
14149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14154 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14155 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14156 if test "${ac_cv_search_opendir+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 ac_func_search_save_LIBS=$LIBS
14160 cat >conftest.$ac_ext <<_ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14167 /* Override any GCC internal prototype to avoid an error.
14168 Use char because int might match the return type of a GCC
14169 builtin and then its argument prototype would still apply. */
14182 for ac_lib in '' x; do
14183 if test -z "$ac_lib"; then
14184 ac_res="none required"
14187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1 >conftest.err
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest$ac_exeext'
14214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_cv_search_opendir=$ac_res
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14231 rm -f core conftest.err conftest.$ac_objext \
14233 if test "${ac_cv_search_opendir+set}" = set; then
14237 if test "${ac_cv_search_opendir+set}" = set; then
14240 ac_cv_search_opendir=no
14242 rm conftest.$ac_ext
14243 LIBS=$ac_func_search_save_LIBS
14245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14247 ac_res=$ac_cv_search_opendir
14248 if test "$ac_res" != no; then
14249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14255 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14256 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14257 if test "${ac_cv_header_mmap_anon+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14272 #include <sys/mman.h>
14273 #include <unistd.h>
14278 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14283 rm -f conftest.$ac_objext
14284 if { (ac_try="$ac_compile"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_compile") 2>conftest.er1
14292 grep -v '^ *+' conftest.er1 >conftest.err
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 ac_cv_header_mmap_anon=yes
14319 echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14322 ac_cv_header_mmap_anon=no
14325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14327 ac_cpp='$CPP $CPPFLAGS'
14328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14334 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14335 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14336 if test "$ac_cv_header_mmap_anon" = yes; then
14338 cat >>confdefs.h <<\_ACEOF
14339 #define HAVE_MMAP_ANONYMOUS 1
14344 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14345 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_stat_broken+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 #include <sys/types.h>
14356 #include <sys/stat.h>
14358 #if defined S_ISBLK && defined S_IFDIR
14359 # if S_ISBLK (S_IFDIR)
14364 #if defined S_ISBLK && defined S_IFCHR
14365 # if S_ISBLK (S_IFCHR)
14370 #if defined S_ISLNK && defined S_IFREG
14371 # if S_ISLNK (S_IFREG)
14376 #if defined S_ISSOCK && defined S_IFREG
14377 # if S_ISSOCK (S_IFREG)
14383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384 $EGREP "You lose" >/dev/null 2>&1; then
14385 ac_cv_header_stat_broken=yes
14387 ac_cv_header_stat_broken=no
14392 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14393 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14394 if test $ac_cv_header_stat_broken = yes; then
14396 cat >>confdefs.h <<\_ACEOF
14397 #define STAT_MACROS_BROKEN 1
14402 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14403 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <sys/types.h>
14414 #include <sys/wait.h>
14415 #ifndef WEXITSTATUS
14416 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14419 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1 >conftest.err
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_header_sys_wait_h=yes
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.$ac_ext >&5
14471 ac_cv_header_sys_wait_h=no
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14478 if test $ac_cv_header_sys_wait_h = yes; then
14480 cat >>confdefs.h <<\_ACEOF
14481 #define HAVE_SYS_WAIT_H 1
14486 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_time+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <sys/types.h>
14498 #include <sys/time.h>
14504 if ((struct tm *) 0)
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest.$ac_objext'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_header_time=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_cv_header_time=no
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14555 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14556 if test $ac_cv_header_time = yes; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define TIME_WITH_SYS_TIME 1
14566 ac_cpp='$CXXCPP $CPPFLAGS'
14567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14572 ac_cpp='$CXXCPP $CPPFLAGS'
14573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14576 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14577 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14578 if test -z "$CXXCPP"; then
14579 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 # Double quotes because CXXCPP needs to be expanded
14583 for CXXCPP in "$CXX -E" "/lib/cpp"
14585 ac_preproc_ok=false
14586 for ac_cxx_preproc_warn_flag in '' yes
14588 # Use a header file that comes with gcc, so configuring glibc
14589 # with a fresh cross-compiler works.
14590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14591 # <limits.h> exists even on freestanding compilers.
14592 # On the NeXT, cc -E runs the code through the compiler's parser,
14593 # not just through cpp. "Syntax error" is here to catch this case.
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14601 # include <limits.h>
14603 # include <assert.h>
14607 if { (ac_try="$ac_cpp conftest.$ac_ext"
14608 case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14615 grep -v '^ *+' conftest.er1 >conftest.err
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } >/dev/null; then
14620 if test -s conftest.err; then
14621 ac_cpp_err=$ac_cxx_preproc_warn_flag
14622 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14629 if test -z "$ac_cpp_err"; then
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 # Broken: fails on valid input.
14639 rm -f conftest.err conftest.$ac_ext
14641 # OK, works on sane cases. Now check whether nonexistent headers
14642 # can be detected and how.
14643 cat >conftest.$ac_ext <<_ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 #include <ac_nonexistent.h>
14651 if { (ac_try="$ac_cpp conftest.$ac_ext"
14652 case "(($ac_try" in
14653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654 *) ac_try_echo=$ac_try;;
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } >/dev/null; then
14664 if test -s conftest.err; then
14665 ac_cpp_err=$ac_cxx_preproc_warn_flag
14666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14673 if test -z "$ac_cpp_err"; then
14674 # Broken: success on invalid input.
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 # Passes both tests.
14685 rm -f conftest.err conftest.$ac_ext
14688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14689 rm -f conftest.err conftest.$ac_ext
14690 if $ac_preproc_ok; then
14695 ac_cv_prog_CXXCPP=$CXXCPP
14698 CXXCPP=$ac_cv_prog_CXXCPP
14700 ac_cv_prog_CXXCPP=$CXXCPP
14702 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14703 echo "${ECHO_T}$CXXCPP" >&6; }
14704 ac_preproc_ok=false
14705 for ac_cxx_preproc_warn_flag in '' yes
14707 # Use a header file that comes with gcc, so configuring glibc
14708 # with a fresh cross-compiler works.
14709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14710 # <limits.h> exists even on freestanding compilers.
14711 # On the NeXT, cc -E runs the code through the compiler's parser,
14712 # not just through cpp. "Syntax error" is here to catch this case.
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14720 # include <limits.h>
14722 # include <assert.h>
14726 if { (ac_try="$ac_cpp conftest.$ac_ext"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } >/dev/null; then
14739 if test -s conftest.err; then
14740 ac_cpp_err=$ac_cxx_preproc_warn_flag
14741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14748 if test -z "$ac_cpp_err"; then
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 # Broken: fails on valid input.
14758 rm -f conftest.err conftest.$ac_ext
14760 # OK, works on sane cases. Now check whether nonexistent headers
14761 # can be detected and how.
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <ac_nonexistent.h>
14770 if { (ac_try="$ac_cpp conftest.$ac_ext"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null; then
14783 if test -s conftest.err; then
14784 ac_cpp_err=$ac_cxx_preproc_warn_flag
14785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14792 if test -z "$ac_cpp_err"; then
14793 # Broken: success on invalid input.
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 # Passes both tests.
14804 rm -f conftest.err conftest.$ac_ext
14807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14808 rm -f conftest.err conftest.$ac_ext
14809 if $ac_preproc_ok; then
14812 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14813 See \`config.log' for more details." >&5
14814 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14815 See \`config.log' for more details." >&2;}
14816 { (exit 1); exit 1; }; }
14820 ac_cpp='$CXXCPP $CPPFLAGS'
14821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14827 for ac_header in cxxabi.h
14829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 ac_res=`eval echo '${'$as_ac_Header'}'`
14837 { echo "$as_me:$LINENO: result: $ac_res" >&5
14838 echo "${ECHO_T}$ac_res" >&6; }
14840 # Is the header compilable?
14841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 $ac_includes_default
14850 #include <$ac_header>
14852 rm -f conftest.$ac_objext
14853 if { (ac_try="$ac_compile"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_compile") 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_header_compiler=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14891 ac_header_compiler=no
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14896 echo "${ECHO_T}$ac_header_compiler" >&6; }
14898 # Is the header present?
14899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14901 cat >conftest.$ac_ext <<_ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 #include <$ac_header>
14909 if { (ac_try="$ac_cpp conftest.$ac_ext"
14910 case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14917 grep -v '^ *+' conftest.er1 >conftest.err
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } >/dev/null; then
14922 if test -s conftest.err; then
14923 ac_cpp_err=$ac_cxx_preproc_warn_flag
14924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14931 if test -z "$ac_cpp_err"; then
14932 ac_header_preproc=yes
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 ac_header_preproc=no
14940 rm -f conftest.err conftest.$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14942 echo "${ECHO_T}$ac_header_preproc" >&6; }
14944 # So? What about this header?
14945 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14951 ac_header_preproc=yes
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14967 ## ------------------------------------ ##
14968 ## Report this to http://llvm.org/bugs/ ##
14969 ## ------------------------------------ ##
14971 ) | sed "s/^/$as_me: WARNING: /" >&2
14974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 eval "$as_ac_Header=\$ac_header_preproc"
14981 ac_res=`eval echo '${'$as_ac_Header'}'`
14982 { echo "$as_me:$LINENO: result: $ac_res" >&5
14983 echo "${ECHO_T}$ac_res" >&6; }
14986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14987 cat >>confdefs.h <<_ACEOF
14988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14996 ac_cpp='$CPP $CPPFLAGS'
14997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15006 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_res=`eval echo '${'$as_ac_Header'}'`
15016 { echo "$as_me:$LINENO: result: $ac_res" >&5
15017 echo "${ECHO_T}$ac_res" >&6; }
15019 # Is the header compilable?
15020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028 $ac_includes_default
15029 #include <$ac_header>
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_compile") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 ac_header_compiler=yes
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_header_compiler=no
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <$ac_header>
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev/null; then
15101 if test -s conftest.err; then
15102 ac_cpp_err=$ac_c_preproc_warn_flag
15103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15110 if test -z "$ac_cpp_err"; then
15111 ac_header_preproc=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_header_preproc=no
15119 rm -f conftest.err conftest.$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15123 # So? What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15130 ac_header_preproc=yes
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15146 ## ------------------------------------ ##
15147 ## Report this to http://llvm.org/bugs/ ##
15148 ## ------------------------------------ ##
15150 ) | sed "s/^/$as_me: WARNING: /" >&2
15153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 eval "$as_ac_Header=\$ac_header_preproc"
15160 ac_res=`eval echo '${'$as_ac_Header'}'`
15161 { echo "$as_me:$LINENO: result: $ac_res" >&5
15162 echo "${ECHO_T}$ac_res" >&6; }
15165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15166 cat >>confdefs.h <<_ACEOF
15167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15180 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 ac_res=`eval echo '${'$as_ac_Header'}'`
15190 { echo "$as_me:$LINENO: result: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15193 # Is the header compilable?
15194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15196 cat >conftest.$ac_ext <<_ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 $ac_includes_default
15203 #include <$ac_header>
15205 rm -f conftest.$ac_objext
15206 if { (ac_try="$ac_compile"
15207 case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_compile") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1 >conftest.err
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15220 { (case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_try") 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; } &&
15229 { ac_try='test -s conftest.$ac_objext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_header_compiler=yes
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_header_compiler=no
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15249 echo "${ECHO_T}$ac_header_compiler" >&6; }
15251 # Is the header present?
15252 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 #include <$ac_header>
15262 if { (ac_try="$ac_cpp conftest.$ac_ext"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } >/dev/null; then
15275 if test -s conftest.err; then
15276 ac_cpp_err=$ac_c_preproc_warn_flag
15277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15284 if test -z "$ac_cpp_err"; then
15285 ac_header_preproc=yes
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_header_preproc=no
15293 rm -f conftest.err conftest.$ac_ext
15294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15295 echo "${ECHO_T}$ac_header_preproc" >&6; }
15297 # So? What about this header?
15298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15301 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15304 ac_header_preproc=yes
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15312 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15314 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15318 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15320 ## ------------------------------------ ##
15321 ## Report this to http://llvm.org/bugs/ ##
15322 ## ------------------------------------ ##
15324 ) | sed "s/^/$as_me: WARNING: /" >&2
15327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 eval "$as_ac_Header=\$ac_header_preproc"
15334 ac_res=`eval echo '${'$as_ac_Header'}'`
15335 { echo "$as_me:$LINENO: result: $ac_res" >&5
15336 echo "${ECHO_T}$ac_res" >&6; }
15339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15340 cat >>confdefs.h <<_ACEOF
15341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15349 for ac_header in utime.h
15351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 ac_res=`eval echo '${'$as_ac_Header'}'`
15359 { echo "$as_me:$LINENO: result: $ac_res" >&5
15360 echo "${ECHO_T}$ac_res" >&6; }
15362 # Is the header compilable?
15363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15365 cat >conftest.$ac_ext <<_ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 $ac_includes_default
15372 #include <$ac_header>
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_compile") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } &&
15388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; } &&
15398 { ac_try='test -s conftest.$ac_objext'
15399 { (case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_try") 2>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_header_compiler=yes
15410 echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15413 ac_header_compiler=no
15416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15418 echo "${ECHO_T}$ac_header_compiler" >&6; }
15420 # Is the header present?
15421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 #include <$ac_header>
15431 if { (ac_try="$ac_cpp conftest.$ac_ext"
15432 case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15439 grep -v '^ *+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null; then
15444 if test -s conftest.err; then
15445 ac_cpp_err=$ac_c_preproc_warn_flag
15446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15453 if test -z "$ac_cpp_err"; then
15454 ac_header_preproc=yes
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_header_preproc=no
15462 rm -f conftest.err conftest.$ac_ext
15463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15464 echo "${ECHO_T}$ac_header_preproc" >&6; }
15466 # So? What about this header?
15467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15473 ac_header_preproc=yes
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15489 ## ------------------------------------ ##
15490 ## Report this to http://llvm.org/bugs/ ##
15491 ## ------------------------------------ ##
15493 ) | sed "s/^/$as_me: WARNING: /" >&2
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 eval "$as_ac_Header=\$ac_header_preproc"
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15522 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 ac_res=`eval echo '${'$as_ac_Header'}'`
15532 { echo "$as_me:$LINENO: result: $ac_res" >&5
15533 echo "${ECHO_T}$ac_res" >&6; }
15535 # Is the header compilable?
15536 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 $ac_includes_default
15545 #include <$ac_header>
15547 rm -f conftest.$ac_objext
15548 if { (ac_try="$ac_compile"
15549 case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; } &&
15571 { ac_try='test -s conftest.$ac_objext'
15572 { (case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15577 (eval "$ac_try") 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_header_compiler=yes
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_header_compiler=no
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15591 echo "${ECHO_T}$ac_header_compiler" >&6; }
15593 # Is the header present?
15594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15596 cat >conftest.$ac_ext <<_ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 #include <$ac_header>
15604 if { (ac_try="$ac_cpp conftest.$ac_ext"
15605 case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15612 grep -v '^ *+' conftest.er1 >conftest.err
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } >/dev/null; then
15617 if test -s conftest.err; then
15618 ac_cpp_err=$ac_c_preproc_warn_flag
15619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15626 if test -z "$ac_cpp_err"; then
15627 ac_header_preproc=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_header_preproc=no
15635 rm -f conftest.err conftest.$ac_ext
15636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15637 echo "${ECHO_T}$ac_header_preproc" >&6; }
15639 # So? What about this header?
15640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15646 ac_header_preproc=yes
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15662 ## ------------------------------------ ##
15663 ## Report this to http://llvm.org/bugs/ ##
15664 ## ------------------------------------ ##
15666 ) | sed "s/^/$as_me: WARNING: /" >&2
15669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 eval "$as_ac_Header=\$ac_header_preproc"
15676 ac_res=`eval echo '${'$as_ac_Header'}'`
15677 { echo "$as_me:$LINENO: result: $ac_res" >&5
15678 echo "${ECHO_T}$ac_res" >&6; }
15681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15693 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 ac_res=`eval echo '${'$as_ac_Header'}'`
15703 { echo "$as_me:$LINENO: result: $ac_res" >&5
15704 echo "${ECHO_T}$ac_res" >&6; }
15706 # Is the header compilable?
15707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 $ac_includes_default
15716 #include <$ac_header>
15718 rm -f conftest.$ac_objext
15719 if { (ac_try="$ac_compile"
15720 case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_try") 2>&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; }; then
15752 ac_header_compiler=yes
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15757 ac_header_compiler=no
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15762 echo "${ECHO_T}$ac_header_compiler" >&6; }
15764 # Is the header present?
15765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15767 cat >conftest.$ac_ext <<_ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 #include <$ac_header>
15775 if { (ac_try="$ac_cpp conftest.$ac_ext"
15776 case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } >/dev/null; then
15788 if test -s conftest.err; then
15789 ac_cpp_err=$ac_c_preproc_warn_flag
15790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15797 if test -z "$ac_cpp_err"; then
15798 ac_header_preproc=yes
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15803 ac_header_preproc=no
15806 rm -f conftest.err conftest.$ac_ext
15807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15808 echo "${ECHO_T}$ac_header_preproc" >&6; }
15810 # So? What about this header?
15811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15817 ac_header_preproc=yes
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15833 ## ------------------------------------ ##
15834 ## Report this to http://llvm.org/bugs/ ##
15835 ## ------------------------------------ ##
15837 ) | sed "s/^/$as_me: WARNING: /" >&2
15840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 eval "$as_ac_Header=\$ac_header_preproc"
15847 ac_res=`eval echo '${'$as_ac_Header'}'`
15848 { echo "$as_me:$LINENO: result: $ac_res" >&5
15849 echo "${ECHO_T}$ac_res" >&6; }
15852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862 for ac_header in valgrind/valgrind.h
15864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 ac_res=`eval echo '${'$as_ac_Header'}'`
15872 { echo "$as_me:$LINENO: result: $ac_res" >&5
15873 echo "${ECHO_T}$ac_res" >&6; }
15875 # Is the header compilable?
15876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15878 cat >conftest.$ac_ext <<_ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15884 $ac_includes_default
15885 #include <$ac_header>
15887 rm -f conftest.$ac_objext
15888 if { (ac_try="$ac_compile"
15889 case "(($ac_try" in
15890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891 *) ac_try_echo=$ac_try;;
15893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15894 (eval "$ac_compile") 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902 { (case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_try") 2>&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_try") 2>&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; }; then
15921 ac_header_compiler=yes
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_header_compiler=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15931 echo "${ECHO_T}$ac_header_compiler" >&6; }
15933 # Is the header present?
15934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <$ac_header>
15944 if { (ac_try="$ac_cpp conftest.$ac_ext"
15945 case "(($ac_try" in
15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947 *) ac_try_echo=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } >/dev/null; then
15957 if test -s conftest.err; then
15958 ac_cpp_err=$ac_c_preproc_warn_flag
15959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15966 if test -z "$ac_cpp_err"; then
15967 ac_header_preproc=yes
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_header_preproc=no
15975 rm -f conftest.err conftest.$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15977 echo "${ECHO_T}$ac_header_preproc" >&6; }
15979 # So? What about this header?
15980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15986 ac_header_preproc=yes
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16002 ## ------------------------------------ ##
16003 ## Report this to http://llvm.org/bugs/ ##
16004 ## ------------------------------------ ##
16006 ) | sed "s/^/$as_me: WARNING: /" >&2
16009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 eval "$as_ac_Header=\$ac_header_preproc"
16016 ac_res=`eval echo '${'$as_ac_Header'}'`
16017 { echo "$as_me:$LINENO: result: $ac_res" >&5
16018 echo "${ECHO_T}$ac_res" >&6; }
16021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16031 for ac_header in fenv.h
16033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041 { echo "$as_me:$LINENO: result: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16044 # Is the header compilable?
16045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 $ac_includes_default
16054 #include <$ac_header>
16056 rm -f conftest.$ac_objext
16057 if { (ac_try="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16071 { (case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_try") 2>&5
16078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); }; } &&
16080 { ac_try='test -s conftest.$ac_objext'
16081 { (case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_try") 2>&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_header_compiler=yes
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ac_header_compiler=no
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16100 echo "${ECHO_T}$ac_header_compiler" >&6; }
16102 # Is the header present?
16103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16105 cat >conftest.$ac_ext <<_ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 #include <$ac_header>
16113 if { (ac_try="$ac_cpp conftest.$ac_ext"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16121 grep -v '^ *+' conftest.er1 >conftest.err
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } >/dev/null; then
16126 if test -s conftest.err; then
16127 ac_cpp_err=$ac_c_preproc_warn_flag
16128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16135 if test -z "$ac_cpp_err"; then
16136 ac_header_preproc=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_header_preproc=no
16144 rm -f conftest.err conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16146 echo "${ECHO_T}$ac_header_preproc" >&6; }
16148 # So? What about this header?
16149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16155 ac_header_preproc=yes
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16171 ## ------------------------------------ ##
16172 ## Report this to http://llvm.org/bugs/ ##
16173 ## ------------------------------------ ##
16175 ) | sed "s/^/$as_me: WARNING: /" >&2
16178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 eval "$as_ac_Header=\$ac_header_preproc"
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16199 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16200 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16201 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16215 #ifndef FE_ALL_EXCEPT
16216 char *p = (char *) FE_ALL_EXCEPT;
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_compile") 2>conftest.er1
16233 grep -v '^ *+' conftest.er1 >conftest.err
16235 cat conftest.err >&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); } &&
16238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16239 { (case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_try") 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_try") 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16260 echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16263 ac_cv_have_decl_FE_ALL_EXCEPT=no
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16269 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16270 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16272 cat >>confdefs.h <<_ACEOF
16273 #define HAVE_DECL_FE_ALL_EXCEPT 1
16278 cat >>confdefs.h <<_ACEOF
16279 #define HAVE_DECL_FE_ALL_EXCEPT 0
16284 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16285 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16286 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16301 char *p = (char *) FE_INEXACT;
16309 rm -f conftest.$ac_objext
16310 if { (ac_try="$ac_compile"
16311 case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_compile") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16324 { (case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_try") 2>&5
16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); }; } &&
16333 { ac_try='test -s conftest.$ac_objext'
16334 { (case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339 (eval "$ac_try") 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_have_decl_FE_INEXACT=yes
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ac_cv_have_decl_FE_INEXACT=no
16351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16354 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16355 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define HAVE_DECL_FE_INEXACT 1
16363 cat >>confdefs.h <<_ACEOF
16364 #define HAVE_DECL_FE_INEXACT 0
16371 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16373 for ac_header in pthread.h
16375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result: $ac_res" >&5
16384 echo "${ECHO_T}$ac_res" >&6; }
16386 # Is the header compilable?
16387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16389 cat >conftest.$ac_ext <<_ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16396 #include <$ac_header>
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_compile") 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_header_compiler=yes
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16437 ac_header_compiler=no
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442 echo "${ECHO_T}$ac_header_compiler" >&6; }
16444 # Is the header present?
16445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 #include <$ac_header>
16455 if { (ac_try="$ac_cpp conftest.$ac_ext"
16456 case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16463 grep -v '^ *+' conftest.er1 >conftest.err
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } >/dev/null; then
16468 if test -s conftest.err; then
16469 ac_cpp_err=$ac_c_preproc_warn_flag
16470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16477 if test -z "$ac_cpp_err"; then
16478 ac_header_preproc=yes
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_preproc=no
16486 rm -f conftest.err conftest.$ac_ext
16487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16488 echo "${ECHO_T}$ac_header_preproc" >&6; }
16490 # So? What about this header?
16491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16497 ac_header_preproc=yes
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16513 ## ------------------------------------ ##
16514 ## Report this to http://llvm.org/bugs/ ##
16515 ## ------------------------------------ ##
16517 ) | sed "s/^/$as_me: WARNING: /" >&2
16520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 eval "$as_ac_Header=\$ac_header_preproc"
16527 ac_res=`eval echo '${'$as_ac_Header'}'`
16528 { echo "$as_me:$LINENO: result: $ac_res" >&5
16529 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16549 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16551 for ac_header in zlib.h
16553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16558 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 ac_res=`eval echo '${'$as_ac_Header'}'`
16561 { echo "$as_me:$LINENO: result: $ac_res" >&5
16562 echo "${ECHO_T}$ac_res" >&6; }
16564 # Is the header compilable?
16565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 $ac_includes_default
16574 #include <$ac_header>
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_compile") 2>conftest.er1
16585 grep -v '^ *+' conftest.er1 >conftest.err
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; } &&
16600 { ac_try='test -s conftest.$ac_objext'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 ac_header_compiler=no
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16620 echo "${ECHO_T}$ac_header_compiler" >&6; }
16622 # Is the header present?
16623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 #include <$ac_header>
16633 if { (ac_try="$ac_cpp conftest.$ac_ext"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } >/dev/null; then
16646 if test -s conftest.err; then
16647 ac_cpp_err=$ac_c_preproc_warn_flag
16648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16655 if test -z "$ac_cpp_err"; then
16656 ac_header_preproc=yes
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_header_preproc=no
16664 rm -f conftest.err conftest.$ac_ext
16665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16666 echo "${ECHO_T}$ac_header_preproc" >&6; }
16668 # So? What about this header?
16669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16675 ac_header_preproc=yes
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16691 ## ------------------------------------ ##
16692 ## Report this to http://llvm.org/bugs/ ##
16693 ## ------------------------------------ ##
16695 ) | sed "s/^/$as_me: WARNING: /" >&2
16698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16703 eval "$as_ac_Header=\$ac_header_preproc"
16705 ac_res=`eval echo '${'$as_ac_Header'}'`
16706 { echo "$as_me:$LINENO: result: $ac_res" >&5
16707 echo "${ECHO_T}$ac_res" >&6; }
16710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16711 cat >>confdefs.h <<_ACEOF
16712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16728 if test "$llvm_cv_enable_libffi" = "yes" ; then
16731 for ac_header in ffi.h ffi/ffi.h
16733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16740 ac_res=`eval echo '${'$as_ac_Header'}'`
16741 { echo "$as_me:$LINENO: result: $ac_res" >&5
16742 echo "${ECHO_T}$ac_res" >&6; }
16744 # Is the header compilable?
16745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16747 cat >conftest.$ac_ext <<_ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 $ac_includes_default
16754 #include <$ac_header>
16756 rm -f conftest.$ac_objext
16757 if { (ac_try="$ac_compile"
16758 case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_compile") 2>conftest.er1
16765 grep -v '^ *+' conftest.er1 >conftest.err
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest.$ac_objext'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 ac_header_compiler=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ac_header_compiler=no
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16800 echo "${ECHO_T}$ac_header_compiler" >&6; }
16802 # Is the header present?
16803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 #include <$ac_header>
16813 if { (ac_try="$ac_cpp conftest.$ac_ext"
16814 case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } >/dev/null; then
16826 if test -s conftest.err; then
16827 ac_cpp_err=$ac_c_preproc_warn_flag
16828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16835 if test -z "$ac_cpp_err"; then
16836 ac_header_preproc=yes
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_header_preproc=no
16844 rm -f conftest.err conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16846 echo "${ECHO_T}$ac_header_preproc" >&6; }
16848 # So? What about this header?
16849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16855 ac_header_preproc=yes
16858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16871 ## ------------------------------------ ##
16872 ## Report this to http://llvm.org/bugs/ ##
16873 ## ------------------------------------ ##
16875 ) | sed "s/^/$as_me: WARNING: /" >&2
16878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 eval "$as_ac_Header=\$ac_header_preproc"
16885 ac_res=`eval echo '${'$as_ac_Header'}'`
16886 { echo "$as_me:$LINENO: result: $ac_res" >&5
16887 echo "${ECHO_T}$ac_res" >&6; }
16890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16891 cat >>confdefs.h <<_ACEOF
16892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 for ac_header in CrashReporterClient.h
16904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 ac_res=`eval echo '${'$as_ac_Header'}'`
16912 { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16915 # Is the header compilable?
16916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 $ac_includes_default
16925 #include <$ac_header>
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_compile") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
16952 { (case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_try") 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_header_compiler=yes
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_header_compiler=no
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971 echo "${ECHO_T}$ac_header_compiler" >&6; }
16973 # Is the header present?
16974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h. */
16982 #include <$ac_header>
16984 if { (ac_try="$ac_cpp conftest.$ac_ext"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16992 grep -v '^ *+' conftest.er1 >conftest.err
16994 cat conftest.err >&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } >/dev/null; then
16997 if test -s conftest.err; then
16998 ac_cpp_err=$ac_c_preproc_warn_flag
16999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17006 if test -z "$ac_cpp_err"; then
17007 ac_header_preproc=yes
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6; }
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026 ac_header_preproc=yes
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17042 ## ------------------------------------ ##
17043 ## Report this to http://llvm.org/bugs/ ##
17044 ## ------------------------------------ ##
17046 ) | sed "s/^/$as_me: WARNING: /" >&2
17049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 eval "$as_ac_Header=\$ac_header_preproc"
17056 ac_res=`eval echo '${'$as_ac_Header'}'`
17057 { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17062 cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17071 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17072 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17073 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 extern const char *__crashreporter_info__;
17083 __crashreporter_info__ = "test";
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } &&
17113 { ac_try='test -s conftest$ac_exeext'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_try") 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17124 { echo "$as_me:$LINENO: result: yes" >&5
17125 echo "${ECHO_T}yes" >&6; }
17127 cat >>confdefs.h <<\_ACEOF
17128 #define HAVE_CRASHREPORTER_INFO 1
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17137 { echo "$as_me:$LINENO: result: no" >&5
17138 echo "${ECHO_T}no" >&6; }
17140 cat >>confdefs.h <<\_ACEOF
17141 #define HAVE_CRASHREPORTER_INFO 0
17147 rm -f core conftest.err conftest.$ac_objext \
17148 conftest$ac_exeext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17153 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17154 if test "${ac_cv_huge_val_sanity+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 ac_cpp='$CXXCPP $CPPFLAGS'
17160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17164 ac_save_CXXFLAGS=$CXXFLAGS
17165 CXXFLAGS="$CXXFLAGS -pedantic"
17166 if test "$cross_compiling" = yes; then
17167 ac_cv_huge_val_sanity=yes
17169 cat >conftest.$ac_ext <<_ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17179 double x = HUGE_VAL; return x != x;
17184 rm -f conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_try") 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204 ac_cv_huge_val_sanity=yes
17206 echo "$as_me: program exited with status $ac_status" >&5
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ( exit $ac_status )
17211 ac_cv_huge_val_sanity=no
17213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17217 CXXFLAGS=$ac_save_CXXFLAGS
17219 ac_cpp='$CPP $CPPFLAGS'
17220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17226 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17227 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17228 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17231 { echo "$as_me:$LINENO: checking for pid_t" >&5
17232 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17233 if test "${ac_cv_type_pid_t+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 $ac_includes_default
17243 typedef pid_t ac__type_new_;
17247 if ((ac__type_new_ *) 0)
17249 if (sizeof (ac__type_new_))
17255 rm -f conftest.$ac_objext
17256 if { (ac_try="$ac_compile"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_compile") 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; } &&
17279 { ac_try='test -s conftest.$ac_objext'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_type_pid_t=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17294 ac_cv_type_pid_t=no
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17300 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17301 if test $ac_cv_type_pid_t = yes; then
17305 cat >>confdefs.h <<_ACEOF
17311 { echo "$as_me:$LINENO: checking for size_t" >&5
17312 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17313 if test "${ac_cv_type_size_t+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322 $ac_includes_default
17323 typedef size_t ac__type_new_;
17327 if ((ac__type_new_ *) 0)
17329 if (sizeof (ac__type_new_))
17335 rm -f conftest.$ac_objext
17336 if { (ac_try="$ac_compile"
17337 case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17344 grep -v '^ *+' conftest.er1 >conftest.err
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17350 { (case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355 (eval "$ac_try") 2>&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_try") 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_type_size_t=yes
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_cv_type_size_t=no
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17379 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17380 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17381 if test $ac_cv_type_size_t = yes; then
17385 cat >>confdefs.h <<_ACEOF
17386 #define size_t unsigned int
17392 cat >>confdefs.h <<_ACEOF
17393 #define RETSIGTYPE void
17396 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17397 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17398 if test "${ac_cv_struct_tm+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 #include <sys/types.h>
17413 struct tm *tp; tp->tm_sec;
17418 rm -f conftest.$ac_objext
17419 if { (ac_try="$ac_compile"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_compile") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_struct_tm=time.h
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_struct_tm=sys/time.h
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17463 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17464 if test $ac_cv_struct_tm = sys/time.h; then
17466 cat >>confdefs.h <<\_ACEOF
17467 #define TM_IN_SYS_TIME 1
17472 { echo "$as_me:$LINENO: checking for int64_t" >&5
17473 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17474 if test "${ac_cv_type_int64_t+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 typedef int64_t ac__type_new_;
17488 if ((ac__type_new_ *) 0)
17490 if (sizeof (ac__type_new_))
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_compile") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511 { (case "(($ac_try" in
17512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_try") 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; } &&
17520 { ac_try='test -s conftest.$ac_objext'
17521 { (case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_try") 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_type_int64_t=yes
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17535 ac_cv_type_int64_t=no
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17540 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17541 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17542 if test $ac_cv_type_int64_t = yes; then
17544 cat >>confdefs.h <<_ACEOF
17545 #define HAVE_INT64_T 1
17550 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17551 echo "$as_me: error: Type int64_t required but not found" >&2;}
17552 { (exit 1); exit 1; }; }
17555 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17556 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17557 if test "${ac_cv_type_uint64_t+set}" = set; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 typedef uint64_t ac__type_new_;
17571 if ((ac__type_new_ *) 0)
17573 if (sizeof (ac__type_new_))
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_compile") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
17613 ac_cv_type_uint64_t=yes
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17618 ac_cv_type_uint64_t=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17624 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17625 if test $ac_cv_type_uint64_t = yes; then
17627 cat >>confdefs.h <<_ACEOF
17628 #define HAVE_UINT64_T 1
17633 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17634 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17635 if test "${ac_cv_type_u_int64_t+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 $ac_includes_default
17645 typedef u_int64_t ac__type_new_;
17649 if ((ac__type_new_ *) 0)
17651 if (sizeof (ac__type_new_))
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_compile") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } &&
17671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677 (eval "$ac_try") 2>&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } &&
17681 { ac_try='test -s conftest.$ac_objext'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; }; then
17691 ac_cv_type_u_int64_t=yes
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_type_u_int64_t=no
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17702 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17703 if test $ac_cv_type_u_int64_t = yes; then
17705 cat >>confdefs.h <<_ACEOF
17706 #define HAVE_U_INT64_T 1
17711 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17712 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17713 { (exit 1); exit 1; }; }
17727 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17735 cat >conftest.$ac_ext <<_ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743 #define $ac_func innocuous_$ac_func
17745 /* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char $ac_func (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17751 # include <limits.h>
17753 # include <assert.h>
17758 /* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17765 /* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17775 return $ac_func ();
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17787 (eval "$ac_link") 2>conftest.er1
17789 grep -v '^ *+' conftest.er1 >conftest.err
17791 cat conftest.err >&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
17794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17795 { (case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_try") 2>&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); }; } &&
17804 { ac_try='test -s conftest$ac_exeext'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807 *) ac_try_echo=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 eval "$as_ac_var=yes"
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17819 eval "$as_ac_var=no"
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17825 ac_res=`eval echo '${'$as_ac_var'}'`
17826 { echo "$as_me:$LINENO: result: $ac_res" >&5
17827 echo "${ECHO_T}$ac_res" >&6; }
17828 if test `eval echo '${'$as_ac_var'}'` = yes; then
17829 cat >>confdefs.h <<_ACEOF
17830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17840 for ac_func in powf fmodf strtof round
17842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17856 #define $ac_func innocuous_$ac_func
17858 /* System header to define __stub macros and hopefully few prototypes,
17859 which can conflict with char $ac_func (); below.
17860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17861 <limits.h> exists even on freestanding compilers. */
17864 # include <limits.h>
17866 # include <assert.h>
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17878 /* The GNU C library defines this for functions which it implements
17879 to always fail with ENOSYS. Some functions are actually named
17880 something starting with __ and the normal name is an alias. */
17881 #if defined __stub_$ac_func || defined __stub___$ac_func
17888 return $ac_func ();
17893 rm -f conftest.$ac_objext conftest$ac_exeext
17894 if { (ac_try="$ac_link"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_link") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest$ac_exeext'
17918 { (case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_try") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 eval "$as_ac_var=yes"
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 eval "$as_ac_var=no"
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17938 ac_res=`eval echo '${'$as_ac_var'}'`
17939 { echo "$as_me:$LINENO: result: $ac_res" >&5
17940 echo "${ECHO_T}$ac_res" >&6; }
17941 if test `eval echo '${'$as_ac_var'}'` = yes; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17954 for ac_func in log log2 log10 exp exp2
17956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17960 echo $ECHO_N "(cached) $ECHO_C" >&6
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17970 #define $ac_func innocuous_$ac_func
17972 /* System header to define __stub macros and hopefully few prototypes,
17973 which can conflict with char $ac_func (); below.
17974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17975 <limits.h> exists even on freestanding compilers. */
17978 # include <limits.h>
17980 # include <assert.h>
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17992 /* The GNU C library defines this for functions which it implements
17993 to always fail with ENOSYS. Some functions are actually named
17994 something starting with __ and the normal name is an alias. */
17995 #if defined __stub_$ac_func || defined __stub___$ac_func
18002 return $ac_func ();
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011 *) ac_try_echo=$ac_try;;
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014 (eval "$ac_link") 2>conftest.er1
18016 grep -v '^ *+' conftest.er1 >conftest.err
18018 cat conftest.err >&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); } &&
18021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022 { (case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027 (eval "$ac_try") 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest$ac_exeext'
18032 { (case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_try") 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 eval "$as_ac_var=yes"
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 eval "$as_ac_var=no"
18049 rm -f core conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18052 ac_res=`eval echo '${'$as_ac_var'}'`
18053 { echo "$as_me:$LINENO: result: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18055 if test `eval echo '${'$as_ac_var'}'` = yes; then
18056 cat >>confdefs.h <<_ACEOF
18057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18068 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18084 #define $ac_func innocuous_$ac_func
18086 /* System header to define __stub macros and hopefully few prototypes,
18087 which can conflict with char $ac_func (); below.
18088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18089 <limits.h> exists even on freestanding compilers. */
18092 # include <limits.h>
18094 # include <assert.h>
18099 /* Override any GCC internal prototype to avoid an error.
18100 Use char because int might match the return type of a GCC
18101 builtin and then its argument prototype would still apply. */
18106 /* The GNU C library defines this for functions which it implements
18107 to always fail with ENOSYS. Some functions are actually named
18108 something starting with __ and the normal name is an alias. */
18109 #if defined __stub_$ac_func || defined __stub___$ac_func
18116 return $ac_func ();
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_link") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18136 { (case "(($ac_try" in
18137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18138 *) ac_try_echo=$ac_try;;
18140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18141 (eval "$ac_try") 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; } &&
18145 { ac_try='test -s conftest$ac_exeext'
18146 { (case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_try") 2>&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18155 eval "$as_ac_var=yes"
18157 echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 eval "$as_ac_var=no"
18163 rm -f core conftest.err conftest.$ac_objext \
18164 conftest$ac_exeext conftest.$ac_ext
18166 ac_res=`eval echo '${'$as_ac_var'}'`
18167 { echo "$as_me:$LINENO: result: $ac_res" >&5
18168 echo "${ECHO_T}$ac_res" >&6; }
18169 if test `eval echo '${'$as_ac_var'}'` = yes; then
18170 cat >>confdefs.h <<_ACEOF
18171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18180 for ac_func in isatty mkdtemp mkstemp
18182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18196 #define $ac_func innocuous_$ac_func
18198 /* System header to define __stub macros and hopefully few prototypes,
18199 which can conflict with char $ac_func (); below.
18200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18201 <limits.h> exists even on freestanding compilers. */
18204 # include <limits.h>
18206 # include <assert.h>
18211 /* Override any GCC internal prototype to avoid an error.
18212 Use char because int might match the return type of a GCC
18213 builtin and then its argument prototype would still apply. */
18218 /* The GNU C library defines this for functions which it implements
18219 to always fail with ENOSYS. Some functions are actually named
18220 something starting with __ and the normal name is an alias. */
18221 #if defined __stub_$ac_func || defined __stub___$ac_func
18228 return $ac_func ();
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (ac_try="$ac_link"
18235 case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_link") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1 >conftest.err
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } &&
18247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18248 { (case "(($ac_try" in
18249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18250 *) ac_try_echo=$ac_try;;
18252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18253 (eval "$ac_try") 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 eval "$as_ac_var=yes"
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 eval "$as_ac_var=no"
18275 rm -f core conftest.err conftest.$ac_objext \
18276 conftest$ac_exeext conftest.$ac_ext
18278 ac_res=`eval echo '${'$as_ac_var'}'`
18279 { echo "$as_me:$LINENO: result: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18281 if test `eval echo '${'$as_ac_var'}'` = yes; then
18282 cat >>confdefs.h <<_ACEOF
18283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18295 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18301 echo $ECHO_N "(cached) $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18311 #define $ac_func innocuous_$ac_func
18313 /* System header to define __stub macros and hopefully few prototypes,
18314 which can conflict with char $ac_func (); below.
18315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18316 <limits.h> exists even on freestanding compilers. */
18319 # include <limits.h>
18321 # include <assert.h>
18326 /* Override any GCC internal prototype to avoid an error.
18327 Use char because int might match the return type of a GCC
18328 builtin and then its argument prototype would still apply. */
18333 /* The GNU C library defines this for functions which it implements
18334 to always fail with ENOSYS. Some functions are actually named
18335 something starting with __ and the normal name is an alias. */
18336 #if defined __stub_$ac_func || defined __stub___$ac_func
18343 return $ac_func ();
18348 rm -f conftest.$ac_objext conftest$ac_exeext
18349 if { (ac_try="$ac_link"
18350 case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_link") 2>conftest.er1
18357 grep -v '^ *+' conftest.er1 >conftest.err
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest$ac_exeext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 eval "$as_ac_var=yes"
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 eval "$as_ac_var=no"
18390 rm -f core conftest.err conftest.$ac_objext \
18391 conftest$ac_exeext conftest.$ac_ext
18393 ac_res=`eval echo '${'$as_ac_var'}'`
18394 { echo "$as_me:$LINENO: result: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18396 if test `eval echo '${'$as_ac_var'}'` = yes; then
18397 cat >>confdefs.h <<_ACEOF
18398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18408 for ac_func in strerror strerror_r setenv arc4random
18410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define $ac_func innocuous_$ac_func
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char $ac_func (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18432 # include <limits.h>
18434 # include <assert.h>
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined __stub_$ac_func || defined __stub___$ac_func
18456 return $ac_func ();
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_link") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_try") 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest$ac_exeext'
18486 { (case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491 (eval "$ac_try") 2>&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
18495 eval "$as_ac_var=yes"
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 eval "$as_ac_var=no"
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18506 ac_res=`eval echo '${'$as_ac_var'}'`
18507 { echo "$as_me:$LINENO: result: $ac_res" >&5
18508 echo "${ECHO_T}$ac_res" >&6; }
18509 if test `eval echo '${'$as_ac_var'}'` = yes; then
18510 cat >>confdefs.h <<_ACEOF
18511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18521 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 cat >conftest.$ac_ext <<_ACEOF
18532 cat confdefs.h >>conftest.$ac_ext
18533 cat >>conftest.$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18537 #define $ac_func innocuous_$ac_func
18539 /* System header to define __stub macros and hopefully few prototypes,
18540 which can conflict with char $ac_func (); below.
18541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18542 <limits.h> exists even on freestanding compilers. */
18545 # include <limits.h>
18547 # include <assert.h>
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18559 /* The GNU C library defines this for functions which it implements
18560 to always fail with ENOSYS. Some functions are actually named
18561 something starting with __ and the normal name is an alias. */
18562 #if defined __stub_$ac_func || defined __stub___$ac_func
18569 return $ac_func ();
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (ac_try="$ac_link"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_link") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18589 { (case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_try") 2>&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest$ac_exeext'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 eval "$as_ac_var=yes"
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 eval "$as_ac_var=no"
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18619 ac_res=`eval echo '${'$as_ac_var'}'`
18620 { echo "$as_me:$LINENO: result: $ac_res" >&5
18621 echo "${ECHO_T}$ac_res" >&6; }
18622 if test `eval echo '${'$as_ac_var'}'` = yes; then
18623 cat >>confdefs.h <<_ACEOF
18624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18635 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18651 #define $ac_func innocuous_$ac_func
18653 /* System header to define __stub macros and hopefully few prototypes,
18654 which can conflict with char $ac_func (); below.
18655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18656 <limits.h> exists even on freestanding compilers. */
18659 # include <limits.h>
18661 # include <assert.h>
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18673 /* The GNU C library defines this for functions which it implements
18674 to always fail with ENOSYS. Some functions are actually named
18675 something starting with __ and the normal name is an alias. */
18676 #if defined __stub_$ac_func || defined __stub___$ac_func
18683 return $ac_func ();
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18703 { (case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_try") 2>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest$ac_exeext'
18713 { (case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_try") 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722 eval "$as_ac_var=yes"
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18727 eval "$as_ac_var=no"
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18733 ac_res=`eval echo '${'$as_ac_var'}'`
18734 { echo "$as_me:$LINENO: result: $ac_res" >&5
18735 echo "${ECHO_T}$ac_res" >&6; }
18736 if test `eval echo '${'$as_ac_var'}'` = yes; then
18737 cat >>confdefs.h <<_ACEOF
18738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18746 for ac_func in futimes futimens
18748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 cat >conftest.$ac_ext <<_ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18762 #define $ac_func innocuous_$ac_func
18764 /* System header to define __stub macros and hopefully few prototypes,
18765 which can conflict with char $ac_func (); below.
18766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18767 <limits.h> exists even on freestanding compilers. */
18770 # include <limits.h>
18772 # include <assert.h>
18777 /* Override any GCC internal prototype to avoid an error.
18778 Use char because int might match the return type of a GCC
18779 builtin and then its argument prototype would still apply. */
18784 /* The GNU C library defines this for functions which it implements
18785 to always fail with ENOSYS. Some functions are actually named
18786 something starting with __ and the normal name is an alias. */
18787 #if defined __stub_$ac_func || defined __stub___$ac_func
18794 return $ac_func ();
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (ac_try="$ac_link"
18801 case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_link") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } &&
18813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18814 { (case "(($ac_try" in
18815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816 *) ac_try_echo=$ac_try;;
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819 (eval "$ac_try") 2>&5
18821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); }; } &&
18823 { ac_try='test -s conftest$ac_exeext'
18824 { (case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_try") 2>&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 eval "$as_ac_var=yes"
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 eval "$as_ac_var=no"
18841 rm -f core conftest.err conftest.$ac_objext \
18842 conftest$ac_exeext conftest.$ac_ext
18844 ac_res=`eval echo '${'$as_ac_var'}'`
18845 { echo "$as_me:$LINENO: result: $ac_res" >&5
18846 echo "${ECHO_T}$ac_res" >&6; }
18847 if test `eval echo '${'$as_ac_var'}'` = yes; then
18848 cat >>confdefs.h <<_ACEOF
18849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18855 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18856 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18857 if test "${llvm_cv_c_printf_a+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18861 ac_cpp='$CPP $CPPFLAGS'
18862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18866 if test "$cross_compiling" = yes; then
18867 llvmac_cv_c_printf_a=no
18869 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18878 #include <stdlib.h>
18884 volatile double A, B;
18888 sprintf(Buffer, "%a", A);
18892 if (A != 0x1.999999999999ap-4)
18899 rm -f conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>&5
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18910 { (case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_try") 2>&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 llvm_cv_c_printf_a=yes
18921 echo "$as_me: program exited with status $ac_status" >&5
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 ( exit $ac_status )
18926 llvmac_cv_c_printf_a=no
18928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18933 ac_cpp='$CPP $CPPFLAGS'
18934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18940 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18941 if test "$llvm_cv_c_printf_a" = "yes"; then
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_PRINTF_A 1
18951 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18952 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18953 if test "${ac_cv_func_rand48+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 ac_cpp='$CXXCPP $CPPFLAGS'
18959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 #include <stdlib.h>
18973 srand48(0);lrand48();drand48();
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_compile") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_cv_func_rand48=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_func_rand48=no
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19029 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19030 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19032 if test "$ac_cv_func_rand48" = "yes" ; then
19034 cat >>confdefs.h <<\_ACEOF
19035 #define HAVE_RAND48 1
19041 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19042 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19043 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19052 $ac_includes_default
19057 char *p = (char *) strerror_s;
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_compile") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } &&
19079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19080 { (case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_try") 2>&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_try") 2>&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_have_decl_strerror_s=yes
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_have_decl_strerror_s=no
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19110 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19111 if test $ac_cv_have_decl_strerror_s = yes; then
19113 cat >>confdefs.h <<_ACEOF
19114 #define HAVE_DECL_STRERROR_S 1
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_DECL_STRERROR_S 0
19128 if test "$llvm_cv_os_type" = "MingW" ; then
19129 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19130 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19131 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_check_lib_save_LIBS=$LIBS
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_link") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } &&
19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19173 { (case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_try") 2>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_try") 2>&5
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_cv_lib_gcc__alloca=yes
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ac_cv_lib_gcc__alloca=no
19200 rm -f core conftest.err conftest.$ac_objext \
19201 conftest$ac_exeext conftest.$ac_ext
19202 LIBS=$ac_check_lib_save_LIBS
19204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19205 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19206 if test $ac_cv_lib_gcc__alloca = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE__ALLOCA 1
19214 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19215 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19216 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 ac_check_lib_save_LIBS=$LIBS
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19228 /* Override any GCC internal prototype to avoid an error.
19229 Use char because int might match the return type of a GCC
19230 builtin and then its argument prototype would still apply. */
19238 return __alloca ();
19243 rm -f conftest.$ac_objext conftest$ac_exeext
19244 if { (ac_try="$ac_link"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_link") 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
19257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19258 { (case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_try") 2>&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); }; } &&
19267 { ac_try='test -s conftest$ac_exeext'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_lib_gcc___alloca=yes
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_lib_gcc___alloca=no
19285 rm -f core conftest.err conftest.$ac_objext \
19286 conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19290 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19291 if test $ac_cv_lib_gcc___alloca = yes; then
19293 cat >>confdefs.h <<\_ACEOF
19294 #define HAVE___ALLOCA 1
19299 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19300 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19301 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 ac_check_lib_save_LIBS=$LIBS
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19313 /* Override any GCC internal prototype to avoid an error.
19314 Use char because int might match the return type of a GCC
19315 builtin and then its argument prototype would still apply. */
19323 return __chkstk ();
19328 rm -f conftest.$ac_objext conftest$ac_exeext
19329 if { (ac_try="$ac_link"
19330 case "(($ac_try" in
19331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_link") 2>conftest.er1
19337 grep -v '^ *+' conftest.er1 >conftest.err
19339 cat conftest.err >&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); } &&
19342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19343 { (case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_try") 2>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest$ac_exeext'
19353 { (case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_cv_lib_gcc___chkstk=yes
19364 echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_cv_lib_gcc___chkstk=no
19370 rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19375 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19376 if test $ac_cv_lib_gcc___chkstk = yes; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define HAVE___CHKSTK 1
19384 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19385 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19386 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 ac_check_lib_save_LIBS=$LIBS
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19398 /* Override any GCC internal prototype to avoid an error.
19399 Use char because int might match the return type of a GCC
19400 builtin and then its argument prototype would still apply. */
19408 return ___chkstk ();
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } &&
19427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428 { (case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_try") 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); }; } &&
19437 { ac_try='test -s conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
19447 ac_cv_lib_gcc____chkstk=yes
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_cv_lib_gcc____chkstk=no
19455 rm -f core conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19460 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19461 if test $ac_cv_lib_gcc____chkstk = yes; then
19463 cat >>confdefs.h <<\_ACEOF
19464 #define HAVE____CHKSTK 1
19470 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19471 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 ac_check_lib_save_LIBS=$LIBS
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19494 return __ashldi3 ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
19513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19514 { (case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_try") 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest$ac_exeext'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_cv_lib_gcc___ashldi3=yes
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_cv_lib_gcc___ashldi3=no
19541 rm -f core conftest.err conftest.$ac_objext \
19542 conftest$ac_exeext conftest.$ac_ext
19543 LIBS=$ac_check_lib_save_LIBS
19545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19546 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19547 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE___ASHLDI3 1
19555 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19556 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19557 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19558 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 ac_check_lib_save_LIBS=$LIBS
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19579 return __ashrdi3 ();
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (ac_try="$ac_link"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_link") 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } &&
19598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest$ac_exeext'
19609 { (case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_try") 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_lib_gcc___ashrdi3=yes
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_cv_lib_gcc___ashrdi3=no
19626 rm -f core conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19631 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19632 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE___ASHRDI3 1
19640 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19641 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19642 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19643 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 ac_check_lib_save_LIBS=$LIBS
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19664 return __divdi3 ();
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest$ac_exeext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_lib_gcc___divdi3=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_gcc___divdi3=no
19711 rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19716 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19717 if test $ac_cv_lib_gcc___divdi3 = yes; then
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE___DIVDI3 1
19725 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19726 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19727 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 ac_check_lib_save_LIBS=$LIBS
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19739 /* Override any GCC internal prototype to avoid an error.
19740 Use char because int might match the return type of a GCC
19741 builtin and then its argument prototype would still apply. */
19749 return __fixdfdi ();
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (ac_try="$ac_link"
19756 case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_link") 2>conftest.er1
19763 grep -v '^ *+' conftest.er1 >conftest.err
19765 cat conftest.err >&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19769 { (case "(($ac_try" in
19770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19771 *) ac_try_echo=$ac_try;;
19773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19774 (eval "$ac_try") 2>&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_try") 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_lib_gcc___fixdfdi=yes
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_cv_lib_gcc___fixdfdi=no
19796 rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798 LIBS=$ac_check_lib_save_LIBS
19800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19801 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19802 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE___FIXDFDI 1
19810 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19811 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19812 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 ac_check_lib_save_LIBS=$LIBS
19817 cat >conftest.$ac_ext <<_ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19824 /* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19834 return __fixsfdi ();
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } &&
19853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_try") 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_lib_gcc___fixsfdi=yes
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_cv_lib_gcc___fixsfdi=no
19881 rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883 LIBS=$ac_check_lib_save_LIBS
19885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19886 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19887 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE___FIXSFDI 1
19895 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19896 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19897 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 ac_check_lib_save_LIBS=$LIBS
19902 cat >conftest.$ac_ext <<_ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19909 /* Override any GCC internal prototype to avoid an error.
19910 Use char because int might match the return type of a GCC
19911 builtin and then its argument prototype would still apply. */
19915 char __floatdidf ();
19919 return __floatdidf ();
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_try") 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; } &&
19948 { ac_try='test -s conftest$ac_exeext'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19958 ac_cv_lib_gcc___floatdidf=yes
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19963 ac_cv_lib_gcc___floatdidf=no
19966 rm -f core conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19971 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19972 if test $ac_cv_lib_gcc___floatdidf = yes; then
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE___FLOATDIDF 1
19980 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19981 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19982 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_check_lib_save_LIBS=$LIBS
19987 cat >conftest.$ac_ext <<_ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19994 /* Override any GCC internal prototype to avoid an error.
19995 Use char because int might match the return type of a GCC
19996 builtin and then its argument prototype would still apply. */
20004 return __lshrdi3 ();
20009 rm -f conftest.$ac_objext conftest$ac_exeext
20010 if { (ac_try="$ac_link"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_link") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20024 { (case "(($ac_try" in
20025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026 *) ac_try_echo=$ac_try;;
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029 (eval "$ac_try") 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest$ac_exeext'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_cv_lib_gcc___lshrdi3=yes
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_lib_gcc___lshrdi3=no
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20056 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20057 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE___LSHRDI3 1
20065 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20066 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20067 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 ac_check_lib_save_LIBS=$LIBS
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20089 return __moddi3 ();
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest$ac_exeext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_lib_gcc___moddi3=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_lib_gcc___moddi3=no
20136 rm -f core conftest.err conftest.$ac_objext \
20137 conftest$ac_exeext conftest.$ac_ext
20138 LIBS=$ac_check_lib_save_LIBS
20140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20141 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20142 if test $ac_cv_lib_gcc___moddi3 = yes; then
20144 cat >>confdefs.h <<\_ACEOF
20145 #define HAVE___MODDI3 1
20150 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20151 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20152 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 ac_check_lib_save_LIBS=$LIBS
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20174 return __udivdi3 ();
20179 rm -f conftest.$ac_objext conftest$ac_exeext
20180 if { (ac_try="$ac_link"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_link") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20194 { (case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199 (eval "$ac_try") 2>&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest$ac_exeext'
20204 { (case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_try") 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_lib_gcc___udivdi3=yes
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_lib_gcc___udivdi3=no
20221 rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223 LIBS=$ac_check_lib_save_LIBS
20225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20226 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20227 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20229 cat >>confdefs.h <<\_ACEOF
20230 #define HAVE___UDIVDI3 1
20235 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20236 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20237 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 ac_check_lib_save_LIBS=$LIBS
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20259 return __umoddi3 ();
20264 rm -f conftest.$ac_objext conftest$ac_exeext
20265 if { (ac_try="$ac_link"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_link") 2>conftest.er1
20273 grep -v '^ *+' conftest.er1 >conftest.err
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } &&
20278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest$ac_exeext'
20289 { (case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_try") 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_lib_gcc___umoddi3=yes
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ac_cv_lib_gcc___umoddi3=no
20306 rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308 LIBS=$ac_check_lib_save_LIBS
20310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20311 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20312 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE___UMODDI3 1
20321 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20322 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20323 if test "${ac_cv_lib_gcc___main+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20326 ac_check_lib_save_LIBS=$LIBS
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 /* Override any GCC internal prototype to avoid an error.
20336 Use char because int might match the return type of a GCC
20337 builtin and then its argument prototype would still apply. */
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; } &&
20374 { ac_try='test -s conftest$ac_exeext'
20375 { (case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_try") 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 ac_cv_lib_gcc___main=yes
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 ac_cv_lib_gcc___main=no
20392 rm -f core conftest.err conftest.$ac_objext \
20393 conftest$ac_exeext conftest.$ac_ext
20394 LIBS=$ac_check_lib_save_LIBS
20396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20397 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20398 if test $ac_cv_lib_gcc___main = yes; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE___MAIN 1
20406 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20407 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20408 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 ac_check_lib_save_LIBS=$LIBS
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20420 /* Override any GCC internal prototype to avoid an error.
20421 Use char because int might match the return type of a GCC
20422 builtin and then its argument prototype would still apply. */
20430 return __cmpdi2 ();
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (ac_try="$ac_link"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_link") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20450 { (case "(($ac_try" in
20451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_try") 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; } &&
20459 { ac_try='test -s conftest$ac_exeext'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; }; then
20469 ac_cv_lib_gcc___cmpdi2=yes
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_cv_lib_gcc___cmpdi2=no
20477 rm -f core conftest.err conftest.$ac_objext \
20478 conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20482 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20483 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20485 cat >>confdefs.h <<\_ACEOF
20486 #define HAVE___CMPDI2 1
20493 if test "$llvm_cv_os_type" = "MingW" ; then
20494 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20495 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20496 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 #include <windows.h>
20505 #include <imagehlp.h>
20506 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20507 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_compile") 2>conftest.er1
20520 grep -v '^ *+' conftest.er1 >conftest.err
20522 cat conftest.err >&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); } &&
20525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20526 { (case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_try") 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20546 { echo "$as_me:$LINENO: result: yes" >&5
20547 echo "${ECHO_T}yes" >&6; }
20548 llvm_cv_win32_elmcb_pcstr="PCSTR"
20551 echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20555 { echo "$as_me:$LINENO: result: no" >&5
20556 echo "${ECHO_T}no" >&6; }
20557 llvm_cv_win32_elmcb_pcstr="PSTR"
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 cat >>confdefs.h <<_ACEOF
20564 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20571 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20572 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20573 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20574 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 ac_cpp='$CXXCPP $CPPFLAGS'
20579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1 >conftest.err
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest.$ac_objext'
20623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_func_isnan_in_math_h=yes
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_cv_func_isnan_in_math_h=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20650 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20653 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20655 cat >>confdefs.h <<\_ACEOF
20656 #define HAVE_ISNAN_IN_MATH_H 1
20662 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20663 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
20669 ac_cpp='$CXXCPP $CPPFLAGS'
20670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20689 rm -f conftest.$ac_objext
20690 if { (ac_try="$ac_compile"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_compile") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_cv_func_isnan_in_cmath=yes
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_cv_func_isnan_in_cmath=no
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 ac_cpp='$CPP $CPPFLAGS'
20734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20740 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20741 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20743 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ISNAN_IN_CMATH 1
20752 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20753 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20754 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 ac_cpp='$CXXCPP $CPPFLAGS'
20760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20774 float f; std::isnan(f);
20779 rm -f conftest.$ac_objext
20780 if { (ac_try="$ac_compile"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_compile") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } &&
20793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
20804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_cv_func_std_isnan_in_cmath=yes
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_cv_func_std_isnan_in_cmath=no
20821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 ac_cpp='$CPP $CPPFLAGS'
20824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20830 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20831 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20833 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20835 cat >>confdefs.h <<\_ACEOF
20836 #define HAVE_STD_ISNAN_IN_CMATH 1
20844 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20845 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20846 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 ac_cpp='$CXXCPP $CPPFLAGS'
20852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try='test -s conftest.$ac_objext'
20896 { (case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_try") 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_func_isinf_in_math_h=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20910 ac_cv_func_isinf_in_math_h=no
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 ac_cpp='$CPP $CPPFLAGS'
20916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20922 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20923 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20925 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_ISINF_IN_MATH_H 1
20934 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20935 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20936 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20937 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 ac_cpp='$CXXCPP $CPPFLAGS'
20942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_compile") 2>conftest.er1
20970 grep -v '^ *+' conftest.er1 >conftest.err
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
20975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20976 { (case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest.$ac_objext'
20986 { (case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_try") 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_func_isinf_in_cmath=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_cv_func_isinf_in_cmath=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 ac_cpp='$CPP $CPPFLAGS'
21006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21012 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21013 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21015 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define HAVE_ISINF_IN_CMATH 1
21024 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21025 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21026 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21031 ac_cpp='$CXXCPP $CPPFLAGS'
21032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21046 float f; std::isinf(f);
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
21065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_func_std_isinf_in_cmath=yes
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_cv_func_std_isinf_in_cmath=no
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 ac_cpp='$CPP $CPPFLAGS'
21096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21102 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21103 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21105 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21107 cat >>confdefs.h <<\_ACEOF
21108 #define HAVE_STD_ISINF_IN_CMATH 1
21114 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21115 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21116 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21117 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 ac_cpp='$CXXCPP $CPPFLAGS'
21122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 #include <ieeefp.h>
21136 float f; finite(f);
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21150 grep -v '^ *+' conftest.er1 >conftest.err
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } &&
21155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21156 { (case "(($ac_try" in
21157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158 *) ac_try_echo=$ac_try;;
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161 (eval "$ac_try") 2>&5
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
21166 { (case "(($ac_try" in
21167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21168 *) ac_try_echo=$ac_try;;
21170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21171 (eval "$ac_try") 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ac_cv_func_finite_in_ieeefp_h=yes
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ac_cv_func_finite_in_ieeefp_h=no
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 ac_cpp='$CPP $CPPFLAGS'
21186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21193 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21195 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21197 cat >>confdefs.h <<\_ACEOF
21198 #define HAVE_FINITE_IN_IEEEFP_H 1
21205 if test "$llvm_cv_platform_type" = "Unix" ; then
21208 for ac_header in stdlib.h unistd.h
21210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 ac_res=`eval echo '${'$as_ac_Header'}'`
21218 { echo "$as_me:$LINENO: result: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
21247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
21258 { (case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_try") 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_header_compiler=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_header_compiler=no
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6; }
21279 # Is the header present?
21280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 #include <$ac_header>
21290 if { (ac_try="$ac_cpp conftest.$ac_ext"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } >/dev/null; then
21303 if test -s conftest.err; then
21304 ac_cpp_err=$ac_c_preproc_warn_flag
21305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21312 if test -z "$ac_cpp_err"; then
21313 ac_header_preproc=yes
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21332 ac_header_preproc=yes
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21348 ## ------------------------------------ ##
21349 ## Report this to http://llvm.org/bugs/ ##
21350 ## ------------------------------------ ##
21352 ) | sed "s/^/$as_me: WARNING: /" >&2
21355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 eval "$as_ac_Header=\$ac_header_preproc"
21362 ac_res=`eval echo '${'$as_ac_Header'}'`
21363 { echo "$as_me:$LINENO: result: $ac_res" >&5
21364 echo "${ECHO_T}$ac_res" >&6; }
21367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21377 for ac_func in getpagesize
21379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21383 echo $ECHO_N "(cached) $ECHO_C" >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21393 #define $ac_func innocuous_$ac_func
21395 /* System header to define __stub macros and hopefully few prototypes,
21396 which can conflict with char $ac_func (); below.
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21398 <limits.h> exists even on freestanding compilers. */
21401 # include <limits.h>
21403 # include <assert.h>
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21415 /* The GNU C library defines this for functions which it implements
21416 to always fail with ENOSYS. Some functions are actually named
21417 something starting with __ and the normal name is an alias. */
21418 #if defined __stub_$ac_func || defined __stub___$ac_func
21425 return $ac_func ();
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_link") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } &&
21444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21445 { (case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_try") 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest$ac_exeext'
21455 { (case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_try") 2>&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; }; then
21464 eval "$as_ac_var=yes"
21466 echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 eval "$as_ac_var=no"
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21475 ac_res=`eval echo '${'$as_ac_var'}'`
21476 { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_var'}'` = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21486 { echo "$as_me:$LINENO: checking for working mmap" >&5
21487 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21488 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21489 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 if test "$cross_compiling" = yes; then
21492 ac_cv_func_mmap_fixed_mapped=no
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 $ac_includes_default
21501 /* malloc might have been renamed as rpl_malloc. */
21504 /* Thanks to Mike Haertel and Jim Avera for this test.
21505 Here is a matrix of mmap possibilities:
21506 mmap private not fixed
21507 mmap private fixed at somewhere currently unmapped
21508 mmap private fixed at somewhere already mapped
21509 mmap shared not fixed
21510 mmap shared fixed at somewhere currently unmapped
21511 mmap shared fixed at somewhere already mapped
21512 For private mappings, we should verify that changes cannot be read()
21513 back from the file, nor mmap's back from the file at a different
21514 address. (There have been systems where private was not correctly
21515 implemented like the infamous i386 svr4.0, and systems where the
21516 VM page cache was not coherent with the file system buffer cache
21517 like early versions of FreeBSD and possibly contemporary NetBSD.)
21518 For shared mappings, we should conversely verify that changes get
21519 propagated back to all the places they're supposed to be.
21521 Grep wants private fixed already mapped.
21522 The main things grep needs to know about mmap are:
21523 * does it exist and is it safe to write into the mmap'd area
21524 * how to use it (BSD variants) */
21527 #include <sys/mman.h>
21529 #if !STDC_HEADERS && !HAVE_STDLIB_H
21533 /* This mess was copied from the GNU getpagesize.h. */
21534 #if !HAVE_GETPAGESIZE
21535 /* Assume that all systems that can run configure have sys/param.h. */
21536 # if !HAVE_SYS_PARAM_H
21537 # define HAVE_SYS_PARAM_H 1
21540 # ifdef _SC_PAGESIZE
21541 # define getpagesize() sysconf(_SC_PAGESIZE)
21542 # else /* no _SC_PAGESIZE */
21543 # if HAVE_SYS_PARAM_H
21544 # include <sys/param.h>
21545 # ifdef EXEC_PAGESIZE
21546 # define getpagesize() EXEC_PAGESIZE
21547 # else /* no EXEC_PAGESIZE */
21549 # define getpagesize() NBPG * CLSIZE
21552 # endif /* no CLSIZE */
21553 # else /* no NBPG */
21555 # define getpagesize() NBPC
21556 # else /* no NBPC */
21558 # define getpagesize() PAGESIZE
21559 # endif /* PAGESIZE */
21560 # endif /* no NBPC */
21561 # endif /* no NBPG */
21562 # endif /* no EXEC_PAGESIZE */
21563 # else /* no HAVE_SYS_PARAM_H */
21564 # define getpagesize() 8192 /* punt totally */
21565 # endif /* no HAVE_SYS_PARAM_H */
21566 # endif /* no _SC_PAGESIZE */
21568 #endif /* no HAVE_GETPAGESIZE */
21573 char *data, *data2, *data3;
21577 pagesize = getpagesize ();
21579 /* First, make a file with some known garbage in it. */
21580 data = (char *) malloc (pagesize);
21583 for (i = 0; i < pagesize; ++i)
21584 *(data + i) = rand ();
21586 fd = creat ("conftest.mmap", 0600);
21589 if (write (fd, data, pagesize) != pagesize)
21593 /* Next, try to mmap the file at a fixed address which already has
21594 something else allocated at it. If we can, also make sure that
21595 we see the same garbage. */
21596 fd = open ("conftest.mmap", O_RDWR);
21599 data2 = (char *) malloc (2 * pagesize);
21602 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21603 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21604 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21606 for (i = 0; i < pagesize; ++i)
21607 if (*(data + i) != *(data2 + i))
21610 /* Finally, make sure that changes to the mapped area do not
21611 percolate back to the file as seen by read(). (This is a bug on
21612 some variants of i386 svr4.0.) */
21613 for (i = 0; i < pagesize; ++i)
21614 *(data2 + i) = *(data2 + i) + 1;
21615 data3 = (char *) malloc (pagesize);
21618 if (read (fd, data3, pagesize) != pagesize)
21620 for (i = 0; i < pagesize; ++i)
21621 if (*(data + i) != *(data3 + i))
21627 rm -f conftest$ac_exeext
21628 if { (ac_try="$ac_link"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_link") 2>&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_try") 2>&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 ac_cv_func_mmap_fixed_mapped=yes
21649 echo "$as_me: program exited with status $ac_status" >&5
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ( exit $ac_status )
21654 ac_cv_func_mmap_fixed_mapped=no
21656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21661 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21662 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21663 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_MMAP 1
21670 rm -f conftest.mmap
21672 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21673 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21674 if test "${ac_cv_func_mmap_file+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 ac_cpp='$CPP $CPPFLAGS'
21679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21683 if test "$cross_compiling" = yes; then
21684 ac_cv_func_mmap_file=no
21686 cat >conftest.$ac_ext <<_ACEOF
21690 cat confdefs.h >>conftest.$ac_ext
21691 cat >>conftest.$ac_ext <<_ACEOF
21692 /* end confdefs.h. */
21694 #include <sys/types.h>
21695 #include <sys/mman.h>
21703 fd = creat ("foo",0777);
21704 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21706 return (fd != (int) MAP_FAILED);
21711 rm -f conftest$ac_exeext
21712 if { (ac_try="$ac_link"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718 (eval "$ac_link") 2>&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21722 { (case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_try") 2>&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731 ac_cv_func_mmap_file=yes
21733 echo "$as_me: program exited with status $ac_status" >&5
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ( exit $ac_status )
21738 ac_cv_func_mmap_file=no
21740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745 ac_cpp='$CPP $CPPFLAGS'
21746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21752 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21753 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21754 if test "$ac_cv_func_mmap_file" = yes; then
21756 cat >>confdefs.h <<\_ACEOF
21757 #define HAVE_MMAP_FILE
21764 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21765 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21766 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21767 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 if test "$llvm_cv_os_type" = "Interix" ; then
21770 ac_cv_need_dev_zero_for_mmap=yes
21772 ac_cv_need_dev_zero_for_mmap=no
21776 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21777 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21778 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21780 cat >>confdefs.h <<\_ACEOF
21781 #define NEED_DEV_ZERO_FOR_MMAP 1
21786 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21788 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21789 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21791 if test "$ac_cv_func_mmap_file" = "no"
21793 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21794 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21798 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21799 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21801 ac_cpp='$CXXCPP $CPPFLAGS'
21802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21806 cat >conftest.$ac_ext <<_ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21815 volatile unsigned long val = 1;
21816 __sync_synchronize();
21817 __sync_val_compare_and_swap(&val, 1, 0);
21818 __sync_add_and_fetch(&val, 1);
21819 __sync_sub_and_fetch(&val, 1);
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_link") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21840 { (case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_try") 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } &&
21849 { ac_try='test -s conftest$ac_exeext'
21850 { (case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_try") 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21860 { echo "$as_me:$LINENO: result: yes" >&5
21861 echo "${ECHO_T}yes" >&6; }
21863 cat >>confdefs.h <<\_ACEOF
21864 #define LLVM_HAS_ATOMICS 1
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21873 { echo "$as_me:$LINENO: result: no" >&5
21874 echo "${ECHO_T}no" >&6; }
21876 cat >>confdefs.h <<\_ACEOF
21877 #define LLVM_HAS_ATOMICS 0
21880 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21881 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21885 rm -f core conftest.err conftest.$ac_objext \
21886 conftest$ac_exeext conftest.$ac_ext
21888 ac_cpp='$CPP $CPPFLAGS'
21889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21895 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21896 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21897 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21898 if test "${llvm_cv_linux_mixed+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21902 ac_cpp='$CPP $CPPFLAGS'
21903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21914 error: Not x86-64 even if uname says so!
21925 rm -f conftest.$ac_objext
21926 if { (ac_try="$ac_compile"
21927 case "(($ac_try" in
21928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929 *) ac_try_echo=$ac_try;;
21931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932 (eval "$ac_compile") 2>conftest.er1
21934 grep -v '^ *+' conftest.er1 >conftest.err
21936 cat conftest.err >&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
21939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21940 { (case "(($ac_try" in
21941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21942 *) ac_try_echo=$ac_try;;
21944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21945 (eval "$ac_try") 2>&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; } &&
21949 { ac_try='test -s conftest.$ac_objext'
21950 { (case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955 (eval "$ac_try") 2>&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 llvm_cv_linux_mixed=no
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964 llvm_cv_linux_mixed=yes
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21976 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21977 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21979 if test "$llvm_cv_linux_mixed" = "yes"; then
21980 llvm_cv_target_arch="x86"
21986 for ac_func in __dso_handle
21988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21992 echo $ECHO_N "(cached) $ECHO_C" >&6
21994 cat >conftest.$ac_ext <<_ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h. */
22000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22002 #define $ac_func innocuous_$ac_func
22004 /* System header to define __stub macros and hopefully few prototypes,
22005 which can conflict with char $ac_func (); below.
22006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22007 <limits.h> exists even on freestanding compilers. */
22010 # include <limits.h>
22012 # include <assert.h>
22017 /* Override any GCC internal prototype to avoid an error.
22018 Use char because int might match the return type of a GCC
22019 builtin and then its argument prototype would still apply. */
22024 /* The GNU C library defines this for functions which it implements
22025 to always fail with ENOSYS. Some functions are actually named
22026 something starting with __ and the normal name is an alias. */
22027 #if defined __stub_$ac_func || defined __stub___$ac_func
22034 return $ac_func ();
22039 rm -f conftest.$ac_objext conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_link") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } &&
22053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22054 { (case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_try") 2>&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); }; } &&
22063 { ac_try='test -s conftest$ac_exeext'
22064 { (case "(($ac_try" in
22065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_try") 2>&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22073 eval "$as_ac_var=yes"
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 eval "$as_ac_var=no"
22081 rm -f core conftest.err conftest.$ac_objext \
22082 conftest$ac_exeext conftest.$ac_ext
22084 ac_res=`eval echo '${'$as_ac_var'}'`
22085 { echo "$as_me:$LINENO: result: $ac_res" >&5
22086 echo "${ECHO_T}$ac_res" >&6; }
22087 if test `eval echo '${'$as_ac_var'}'` = yes; then
22088 cat >>confdefs.h <<_ACEOF
22089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22096 SHLIBEXT=$libltdl_cv_shlibext
22099 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22102 if test "${prefix}" = "NONE" ; then
22103 prefix="/usr/local"
22105 eval LLVM_PREFIX="${prefix}";
22106 eval LLVM_BINDIR="${prefix}/bin";
22107 eval LLVM_DATADIR="${prefix}/share/llvm";
22108 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22109 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22110 eval LLVM_INCLUDEDIR="${prefix}/include";
22111 eval LLVM_INFODIR="${prefix}/info";
22112 eval LLVM_MANDIR="${prefix}/man";
22113 LLVM_CONFIGTIME=`date`
22124 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22125 LLVM_CONFIGTIME="(timestamp not enabled)"
22129 cat >>confdefs.h <<_ACEOF
22130 #define LLVM_PREFIX "$LLVM_PREFIX"
22134 cat >>confdefs.h <<_ACEOF
22135 #define LLVM_BINDIR "$LLVM_BINDIR"
22139 cat >>confdefs.h <<_ACEOF
22140 #define LLVM_DATADIR "$LLVM_DATADIR"
22144 cat >>confdefs.h <<_ACEOF
22145 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22149 cat >>confdefs.h <<_ACEOF
22150 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22154 cat >>confdefs.h <<_ACEOF
22155 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22159 cat >>confdefs.h <<_ACEOF
22160 #define LLVM_INFODIR "$LLVM_INFODIR"
22164 cat >>confdefs.h <<_ACEOF
22165 #define LLVM_MANDIR "$LLVM_MANDIR"
22169 cat >>confdefs.h <<_ACEOF
22170 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22174 cat >>confdefs.h <<_ACEOF
22175 #define LLVM_HOST_TRIPLE "$host"
22179 cat >>confdefs.h <<_ACEOF
22180 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22184 if test "$BINDINGS_TO_BUILD" = auto ; then
22185 BINDINGS_TO_BUILD=""
22186 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22187 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22190 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22196 binding_prereqs_failed=0
22197 for a_binding in $BINDINGS_TO_BUILD ; do
22198 case "$a_binding" in
22200 if test "x$OCAMLC" = x ; then
22201 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22202 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22203 binding_prereqs_failed=1
22205 if test "x$OCAMLDEP" = x ; then
22206 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22207 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22208 binding_prereqs_failed=1
22210 if test "x$OCAMLOPT" = x ; then
22211 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22212 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22214 if test "x$with_ocaml_libdir" != xauto ; then
22215 OCAML_LIBDIR=$with_ocaml_libdir
22218 ocaml_stdlib="`"$OCAMLC" -where`"
22219 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22221 # ocaml stdlib is beneath our prefix; use stdlib
22222 OCAML_LIBDIR=$ocaml_stdlib
22225 # ocaml stdlib is outside our prefix; use libdir/ocaml
22226 OCAML_LIBDIR=${prefix}/lib/ocaml
22233 if test "$binding_prereqs_failed" = 1 ; then
22234 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22235 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22236 { (exit 1); exit 1; }; }
22239 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22240 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22241 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 ac_cpp='$CXXCPP $CPPFLAGS'
22246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22250 oldcxxflags="$CXXFLAGS"
22251 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22267 rm -f conftest.$ac_objext
22268 if { (ac_try="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_compile") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } &&
22281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22282 { (case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_try") 2>&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; } &&
22291 { ac_try='test -s conftest.$ac_objext'
22292 { (case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_try") 2>&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; }; then
22301 llvm_cv_cxx_visibility_inlines_hidden=yes
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22306 llvm_cv_cxx_visibility_inlines_hidden=no
22309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310 CXXFLAGS="$oldcxxflags"
22312 ac_cpp='$CPP $CPPFLAGS'
22313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22319 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22320 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22321 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22322 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22325 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22330 if test "$llvm_cv_link_use_r" = "yes" ; then
22337 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22338 RDYNAMIC="-rdynamic"
22345 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22352 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22354 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22356 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22358 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22360 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22363 ac_config_files="$ac_config_files Makefile.config"
22366 ac_config_files="$ac_config_files llvm.spec"
22369 ac_config_files="$ac_config_files docs/doxygen.cfg"
22372 if test "${clang_src_root}" = ""; then
22373 clang_src_root="$srcdir/tools/clang"
22375 if test -f ${clang_src_root}/README.txt; then
22376 configh="include/clang/Config/config.h"
22377 doxy="docs/doxygen.cfg"
22378 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22380 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22384 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22387 test "x$program_prefix" = "xNONE" && program_prefix=""
22391 ac_config_commands="$ac_config_commands setup"
22393 ac_config_commands="$ac_config_commands Makefile"
22396 ac_config_commands="$ac_config_commands Makefile.common"
22399 ac_config_commands="$ac_config_commands examples/Makefile"
22402 ac_config_commands="$ac_config_commands lib/Makefile"
22405 ac_config_commands="$ac_config_commands test/Makefile"
22408 ac_config_commands="$ac_config_commands test/Makefile.tests"
22411 ac_config_commands="$ac_config_commands unittests/Makefile"
22414 ac_config_commands="$ac_config_commands tools/Makefile"
22417 ac_config_commands="$ac_config_commands utils/Makefile"
22420 ac_config_commands="$ac_config_commands projects/Makefile"
22423 ac_config_commands="$ac_config_commands bindings/Makefile"
22426 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22430 cat >confcache <<\_ACEOF
22431 # This file is a shell script that caches the results of configure
22432 # tests run on this system so they can be shared between configure
22433 # scripts and configure runs, see configure's option --config-cache.
22434 # It is not useful on other systems. If it contains results you don't
22435 # want to keep, you may remove or edit it.
22437 # config.status only pays attention to the cache file if you give it
22438 # the --recheck option to rerun configure.
22440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22442 # following values.
22446 # The following way of writing the cache mishandles newlines in values,
22447 # but we know of no workaround that is simple, portable, and efficient.
22448 # So, we kill variables containing newlines.
22449 # Ultrix sh set writes to stderr and can't be redirected directly,
22450 # and sets the high bit in the cache file unless we assign to the vars.
22452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22453 eval ac_val=\$$ac_var
22457 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22458 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22461 _ | IFS | as_nl) ;; #(
22462 *) $as_unset $ac_var ;;
22468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22469 *${as_nl}ac_space=\ *)
22470 # `set' does not quote correctly, so add quotes (double-quote
22471 # substitution turns \\\\ into \\, and sed turns \\ into \).
22474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22477 # `set' quotes correctly as required by POSIX, so do not add quotes.
22478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22492 if test -w "$cache_file"; then
22493 test "x$cache_file" != "x/dev/null" &&
22494 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22495 echo "$as_me: updating cache $cache_file" >&6;}
22496 cat confcache >$cache_file
22498 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22499 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22505 # Let make expand exec_prefix.
22506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22508 DEFS=-DHAVE_CONFIG_H
22512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22513 # 1. Remove the extension, and $U if already installed.
22514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22515 ac_i=`echo "$ac_i" | sed "$ac_script"`
22516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22517 # will be set to the directory where LIBOBJS objects are built.
22518 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22519 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22521 LIBOBJS=$ac_libobjs
22523 LTLIBOBJS=$ac_ltlibobjs
22526 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22527 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22528 Usually this means the macro was only invoked conditionally." >&5
22529 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22530 Usually this means the macro was only invoked conditionally." >&2;}
22531 { (exit 1); exit 1; }; }
22533 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22534 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22535 Usually this means the macro was only invoked conditionally." >&5
22536 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22537 Usually this means the macro was only invoked conditionally." >&2;}
22538 { (exit 1); exit 1; }; }
22541 : ${CONFIG_STATUS=./config.status}
22542 ac_clean_files_save=$ac_clean_files
22543 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22544 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22545 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22546 cat >$CONFIG_STATUS <<_ACEOF
22548 # Generated by $as_me.
22549 # Run this file to recreate the current configuration.
22550 # Compiler output produced by configure, useful for debugging
22551 # configure, is in config.log if it exists.
22554 ac_cs_recheck=false
22556 SHELL=\${CONFIG_SHELL-$SHELL}
22559 cat >>$CONFIG_STATUS <<\_ACEOF
22560 ## --------------------- ##
22561 ## M4sh Initialization. ##
22562 ## --------------------- ##
22564 # Be Bourne compatible
22565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22569 # is contrary to our usage. Disable this feature.
22570 alias -g '${1+"$@"}'='"$@"'
22571 setopt NO_GLOB_SUBST
22573 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22575 BIN_SH=xpg4; export BIN_SH # for Tru64
22576 DUALCASE=1; export DUALCASE # for MKS sh
22580 # Avoid depending upon Character Ranges.
22581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22584 as_cr_digits='0123456789'
22585 as_cr_alnum=$as_cr_Letters$as_cr_digits
22587 # The user is always right.
22588 if test "${PATH_SEPARATOR+set}" != set; then
22589 echo "#! /bin/sh" >conf$$.sh
22590 echo "exit 0" >>conf$$.sh
22592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22600 # Support unset when possible.
22601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22609 # We need space, tab and new line, in precisely that order. Quoting is
22610 # there to prevent editors from complaining about space-tab.
22611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22612 # splitting by setting IFS to empty value.)
22617 # Find who we are. Look in the path if we contain no directory separator.
22619 *[\\/]* ) as_myself=$0 ;;
22620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22624 test -z "$as_dir" && as_dir=.
22625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22631 # We did not find ourselves, most probably we were run as `sh COMMAND'
22632 # in which case we are not to be found in the path.
22633 if test "x$as_myself" = x; then
22636 if test ! -f "$as_myself"; then
22637 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22638 { (exit 1); exit 1; }
22641 # Work around bugs in pre-3.0 UWIN ksh.
22642 for as_var in ENV MAIL MAILPATH
22643 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22651 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22652 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22653 LC_TELEPHONE LC_TIME
22655 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22656 eval $as_var=C; export $as_var
22658 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22662 # Required to use basename.
22663 if expr a : '\(a\)' >/dev/null 2>&1 &&
22664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22671 as_basename=basename
22677 # Name of the executable.
22678 as_me=`$as_basename -- "$0" ||
22679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22680 X"$0" : 'X\(//\)$' \| \
22681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22683 sed '/^.*\/\([^/][^/]*\)\/*$/{
22702 as_lineno_1=$LINENO
22703 as_lineno_2=$LINENO
22704 test "x$as_lineno_1" != "x$as_lineno_2" &&
22705 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22708 # uniformly replaced by the line number. The first 'sed' inserts a
22709 # line-number line after each line using $LINENO; the second 'sed'
22710 # does the real work. The second script uses 'N' to pair each
22711 # line-number line with the line containing $LINENO, and appends
22712 # trailing '-' during substitution so that $LINENO is not a special
22713 # case at line end.
22714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22715 # scripts with optimization help from Paolo Bonzini. Blame Lee
22716 # E. McMahon (1931-1989) for sed's syntax. :-)
22728 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22731 ' >$as_me.lineno &&
22732 chmod +x "$as_me.lineno" ||
22733 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22734 { (exit 1); exit 1; }; }
22736 # Don't try to exec as it changes $[0], causing all sort of problems
22737 # (the dirname of $[0] is not the place where we might find the
22738 # original and so on. Autoconf is especially sensitive to this).
22739 . "./$as_me.lineno"
22740 # Exit status is that of the last command.
22745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22751 ECHO_C= ECHO_N= ECHO_T=
22752 case `echo -n x` in
22754 case `echo 'x\c'` in
22755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22762 if expr a : '\(a\)' >/dev/null 2>&1 &&
22763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22769 rm -f conf$$ conf$$.exe conf$$.file
22770 if test -d conf$$.dir; then
22771 rm -f conf$$.dir/conf$$.file
22777 if ln -s conf$$.file conf$$ 2>/dev/null; then
22779 # ... but there are two gotchas:
22780 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22781 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22782 # In both cases, we have to default to `cp -p'.
22783 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22785 elif ln conf$$.file conf$$ 2>/dev/null; then
22790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22791 rmdir conf$$.dir 2>/dev/null
22793 if mkdir -p . 2>/dev/null; then
22796 test -d ./-p && rmdir ./-p
22800 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22801 # systems may use methods other than mode bits to determine executability.
22802 cat >conf$$.file <<_ASEOF
22806 chmod +x conf$$.file
22807 if test -x conf$$.file >/dev/null 2>&1; then
22808 as_executable_p="test -x"
22814 # Sed expression to map a string onto a valid CPP name.
22815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22817 # Sed expression to map a string onto a valid variable name.
22818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22823 # Save the log message, to keep $[0] and so on meaningful, and to
22824 # report actual input values of CONFIG_FILES etc. instead of their
22825 # values after options handling.
22827 This file was extended by LLVM $as_me 3.5svn, which was
22828 generated by GNU Autoconf 2.60. Invocation command line was
22830 CONFIG_FILES = $CONFIG_FILES
22831 CONFIG_HEADERS = $CONFIG_HEADERS
22832 CONFIG_LINKS = $CONFIG_LINKS
22833 CONFIG_COMMANDS = $CONFIG_COMMANDS
22836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22841 cat >>$CONFIG_STATUS <<_ACEOF
22842 # Files that config.status was made for.
22843 config_files="$ac_config_files"
22844 config_headers="$ac_config_headers"
22845 config_commands="$ac_config_commands"
22849 cat >>$CONFIG_STATUS <<\_ACEOF
22851 \`$as_me' instantiates files from templates according to the
22852 current configuration.
22854 Usage: $0 [OPTIONS] [FILE]...
22856 -h, --help print this help, then exit
22857 -V, --version print version number, then exit
22858 -q, --quiet do not print progress messages
22859 -d, --debug don't remove temporary files
22860 --recheck update $as_me by reconfiguring in the same conditions
22861 --file=FILE[:TEMPLATE]
22862 instantiate the configuration file FILE
22863 --header=FILE[:TEMPLATE]
22864 instantiate the configuration header FILE
22866 Configuration files:
22869 Configuration headers:
22872 Configuration commands:
22875 Report bugs to <bug-autoconf@gnu.org>."
22878 cat >>$CONFIG_STATUS <<_ACEOF
22880 LLVM config.status 3.5svn
22881 configured by $0, generated by GNU Autoconf 2.60,
22882 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22884 Copyright (C) 2006 Free Software Foundation, Inc.
22885 This config.status script is free software; the Free Software Foundation
22886 gives unlimited permission to copy, distribute and modify it."
22893 cat >>$CONFIG_STATUS <<\_ACEOF
22894 # If no file are specified by the user, then we need to provide default
22895 # value. By we need to know if files were specified by the user.
22901 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22902 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22913 # Handling of the options.
22914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22916 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22917 echo "$ac_cs_version"; exit ;;
22918 --debug | --debu | --deb | --de | --d | -d )
22920 --file | --fil | --fi | --f )
22922 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22923 ac_need_defaults=false;;
22924 --header | --heade | --head | --hea )
22926 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22927 ac_need_defaults=false;;
22929 # Conflict between --help and --header
22930 { echo "$as_me: error: ambiguous option: $1
22931 Try \`$0 --help' for more information." >&2
22932 { (exit 1); exit 1; }; };;
22933 --help | --hel | -h )
22934 echo "$ac_cs_usage"; exit ;;
22935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22939 # This is an error.
22940 -*) { echo "$as_me: error: unrecognized option: $1
22941 Try \`$0 --help' for more information." >&2
22942 { (exit 1); exit 1; }; } ;;
22944 *) ac_config_targets="$ac_config_targets $1"
22945 ac_need_defaults=false ;;
22951 ac_configure_extra_args=
22953 if $ac_cs_silent; then
22955 ac_configure_extra_args="$ac_configure_extra_args --silent"
22959 cat >>$CONFIG_STATUS <<_ACEOF
22960 if \$ac_cs_recheck; then
22961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22962 CONFIG_SHELL=$SHELL
22963 export CONFIG_SHELL
22964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22968 cat >>$CONFIG_STATUS <<\_ACEOF
22972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22973 ## Running $as_me. ##
22979 cat >>$CONFIG_STATUS <<_ACEOF
22983 llvm_src="${srcdir}"
22987 cat >>$CONFIG_STATUS <<\_ACEOF
22989 # Handling of arguments.
22990 for ac_config_target in $ac_config_targets
22992 case $ac_config_target in
22993 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22994 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22995 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22996 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22997 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22998 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22999 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23000 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23001 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23002 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23003 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23004 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23005 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23006 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23007 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23008 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23009 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23010 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23011 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23012 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23013 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23014 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23015 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23016 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23017 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23018 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23020 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23021 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23022 { (exit 1); exit 1; }; };;
23027 # If the user did not use the arguments to specify the items to instantiate,
23028 # then the envvar interface is used. Set only those that are not.
23029 # We use the long form for the default assignment because of an extremely
23030 # bizarre bug on SunOS 4.1.3.
23031 if $ac_need_defaults; then
23032 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23033 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23037 # Have a temporary directory for convenience. Make it in the build tree
23038 # simply because there is no reason against having it here, and in addition,
23039 # creating and moving files from /tmp can sometimes cause problems.
23040 # Hook for its removal unless debugging.
23041 # Note that there is a small window in which the directory will not be cleaned:
23042 # after its creation but before its name has been assigned to `$tmp'.
23046 trap 'exit_status=$?
23047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23049 trap '{ (exit 1); exit 1; }' 1 2 13 15
23051 # Create a (secure) tmp directory for tmp files.
23054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23055 test -n "$tmp" && test -d "$tmp"
23058 tmp=./conf$$-$RANDOM
23059 (umask 077 && mkdir "$tmp")
23062 echo "$me: cannot create a temporary directory in ." >&2
23063 { (exit 1); exit 1; }
23067 # Set up the sed scripts for CONFIG_FILES section.
23070 # No need to generate the scripts if there are no CONFIG_FILES.
23071 # This happens for instance when ./config.status config.h
23072 if test -n "$CONFIG_FILES"; then
23079 for ac_last_try in false false false false false :; do
23080 cat >conf$$subs.sed <<_ACEOF
23081 SHELL!$SHELL$ac_delim
23082 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23083 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23084 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23085 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23086 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23087 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23088 exec_prefix!$exec_prefix$ac_delim
23089 prefix!$prefix$ac_delim
23090 program_transform_name!$program_transform_name$ac_delim
23091 bindir!$bindir$ac_delim
23092 sbindir!$sbindir$ac_delim
23093 libexecdir!$libexecdir$ac_delim
23094 datarootdir!$datarootdir$ac_delim
23095 datadir!$datadir$ac_delim
23096 sysconfdir!$sysconfdir$ac_delim
23097 sharedstatedir!$sharedstatedir$ac_delim
23098 localstatedir!$localstatedir$ac_delim
23099 includedir!$includedir$ac_delim
23100 oldincludedir!$oldincludedir$ac_delim
23101 docdir!$docdir$ac_delim
23102 infodir!$infodir$ac_delim
23103 htmldir!$htmldir$ac_delim
23104 dvidir!$dvidir$ac_delim
23105 pdfdir!$pdfdir$ac_delim
23106 psdir!$psdir$ac_delim
23107 libdir!$libdir$ac_delim
23108 localedir!$localedir$ac_delim
23109 mandir!$mandir$ac_delim
23110 DEFS!$DEFS$ac_delim
23111 ECHO_C!$ECHO_C$ac_delim
23112 ECHO_N!$ECHO_N$ac_delim
23113 ECHO_T!$ECHO_T$ac_delim
23114 LIBS!$LIBS$ac_delim
23115 build_alias!$build_alias$ac_delim
23116 host_alias!$host_alias$ac_delim
23117 target_alias!$target_alias$ac_delim
23118 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23120 CFLAGS!$CFLAGS$ac_delim
23121 LDFLAGS!$LDFLAGS$ac_delim
23122 CPPFLAGS!$CPPFLAGS$ac_delim
23123 ac_ct_CC!$ac_ct_CC$ac_delim
23124 EXEEXT!$EXEEXT$ac_delim
23125 OBJEXT!$OBJEXT$ac_delim
23127 CXXFLAGS!$CXXFLAGS$ac_delim
23128 ac_ct_CXX!$ac_ct_CXX$ac_delim
23130 subdirs!$subdirs$ac_delim
23131 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23132 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23133 build!$build$ac_delim
23134 build_cpu!$build_cpu$ac_delim
23135 build_vendor!$build_vendor$ac_delim
23136 build_os!$build_os$ac_delim
23137 host!$host$ac_delim
23138 host_cpu!$host_cpu$ac_delim
23139 host_vendor!$host_vendor$ac_delim
23140 host_os!$host_os$ac_delim
23141 target!$target$ac_delim
23142 target_cpu!$target_cpu$ac_delim
23143 target_vendor!$target_vendor$ac_delim
23144 target_os!$target_os$ac_delim
23146 HOST_OS!$HOST_OS$ac_delim
23147 TARGET_OS!$TARGET_OS$ac_delim
23148 LINKALL!$LINKALL$ac_delim
23149 NOLINKALL!$NOLINKALL$ac_delim
23150 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23151 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23152 ARCH!$ARCH$ac_delim
23153 HOST_ARCH!$HOST_ARCH$ac_delim
23154 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23155 BUILD_CC!$BUILD_CC$ac_delim
23156 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23157 BUILD_CXX!$BUILD_CXX$ac_delim
23158 CVSBUILD!$CVSBUILD$ac_delim
23159 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23160 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23161 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23162 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23163 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23164 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23165 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23166 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23167 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23168 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23169 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23170 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23171 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23172 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23173 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23175 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23176 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23177 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23182 elif $ac_last_try; then
23183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23185 { (exit 1); exit 1; }; }
23187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23192 if test -n "$ac_eof"; then
23193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23194 ac_eof=`expr $ac_eof + 1`
23197 cat >>$CONFIG_STATUS <<_ACEOF
23198 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23203 s/^/s,@/; s/!/@,|#_!!_#|/
23206 s/'"$ac_delim"'$/,g/; t
23208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23209 ' >>$CONFIG_STATUS <conf$$subs.sed
23210 rm -f conf$$subs.sed
23211 cat >>$CONFIG_STATUS <<_ACEOF
23217 for ac_last_try in false false false false false :; do
23218 cat >conf$$subs.sed <<_ACEOF
23219 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23220 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23221 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23222 ENABLE_PIC!$ENABLE_PIC$ac_delim
23223 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23224 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23225 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23226 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23227 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23228 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23229 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23230 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23231 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23232 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23233 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23234 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23235 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23236 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23238 ifGNUmake!$ifGNUmake$ac_delim
23239 LN_S!$LN_S$ac_delim
23242 DATE!$DATE$ac_delim
23243 FIND!$FIND$ac_delim
23244 GREP!$GREP$ac_delim
23245 MKDIR!$MKDIR$ac_delim
23247 RANLIB!$RANLIB$ac_delim
23252 BINPWD!$BINPWD$ac_delim
23253 GRAPHVIZ!$GRAPHVIZ$ac_delim
23256 NEATO!$NEATO$ac_delim
23257 TWOPI!$TWOPI$ac_delim
23258 CIRCO!$CIRCO$ac_delim
23260 DOTTY!$DOTTY$ac_delim
23261 XDOT!$XDOT$ac_delim
23262 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23263 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23264 INSTALL_DATA!$INSTALL_DATA$ac_delim
23265 BZIP2!$BZIP2$ac_delim
23267 DOXYGEN!$DOXYGEN$ac_delim
23268 GROFF!$GROFF$ac_delim
23269 GZIPBIN!$GZIPBIN$ac_delim
23270 PDFROFF!$PDFROFF$ac_delim
23272 OCAMLC!$OCAMLC$ac_delim
23273 OCAMLOPT!$OCAMLOPT$ac_delim
23274 OCAMLDEP!$OCAMLDEP$ac_delim
23275 OCAMLDOC!$OCAMLDOC$ac_delim
23277 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23278 EGREP!$EGREP$ac_delim
23279 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23280 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23281 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23282 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23283 LIBADD_DL!$LIBADD_DL$ac_delim
23284 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23285 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23286 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23287 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23288 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23289 PYTHON!$PYTHON$ac_delim
23290 USE_UDIS86!$USE_UDIS86$ac_delim
23291 USE_OPROFILE!$USE_OPROFILE$ac_delim
23292 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23293 XML2CONFIG!$XML2CONFIG$ac_delim
23294 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23295 LIBXML2_INC!$LIBXML2_INC$ac_delim
23296 CXXCPP!$CXXCPP$ac_delim
23297 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23298 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23299 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23300 MMAP_FILE!$MMAP_FILE$ac_delim
23301 SHLIBEXT!$SHLIBEXT$ac_delim
23302 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23303 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23304 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23305 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23306 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23307 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23308 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23309 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23310 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23311 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23312 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23313 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23314 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23315 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23320 elif $ac_last_try; then
23321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23323 { (exit 1); exit 1; }; }
23325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23330 if test -n "$ac_eof"; then
23331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23332 ac_eof=`expr $ac_eof + 1`
23335 cat >>$CONFIG_STATUS <<_ACEOF
23336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23341 s/^/s,@/; s/!/@,|#_!!_#|/
23344 s/'"$ac_delim"'$/,g/; t
23346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23347 ' >>$CONFIG_STATUS <conf$$subs.sed
23348 rm -f conf$$subs.sed
23349 cat >>$CONFIG_STATUS <<_ACEOF
23355 for ac_last_try in false false false false false :; do
23356 cat >conf$$subs.sed <<_ACEOF
23357 RPATH!$RPATH$ac_delim
23358 RDYNAMIC!$RDYNAMIC$ac_delim
23359 program_prefix!$program_prefix$ac_delim
23360 LIBOBJS!$LIBOBJS$ac_delim
23361 LTLIBOBJS!$LTLIBOBJS$ac_delim
23364 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23366 elif $ac_last_try; then
23367 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23369 { (exit 1); exit 1; }; }
23371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23376 if test -n "$ac_eof"; then
23377 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23378 ac_eof=`expr $ac_eof + 1`
23381 cat >>$CONFIG_STATUS <<_ACEOF
23382 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23387 s/^/s,@/; s/!/@,|#_!!_#|/
23390 s/'"$ac_delim"'$/,g/; t
23392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23393 ' >>$CONFIG_STATUS <conf$$subs.sed
23394 rm -f conf$$subs.sed
23395 cat >>$CONFIG_STATUS <<_ACEOF
23402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23404 # trailing colons and then remove the whole line if VPATH becomes empty
23405 # (actually we leave an empty line to preserve line numbers).
23406 if test "x$srcdir" = x.; then
23407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23408 s/:*\$(srcdir):*/:/
23409 s/:*\${srcdir}:*/:/
23411 s/^\([^=]*=[ ]*\):*/\1/
23417 cat >>$CONFIG_STATUS <<\_ACEOF
23418 fi # test -n "$CONFIG_FILES"
23421 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23424 :[FHLC]) ac_mode=$ac_tag; continue;;
23426 case $ac_mode$ac_tag in
23428 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23429 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23430 { (exit 1); exit 1; }; };;
23431 :[FH]-) ac_tag=-:-;;
23432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23449 -) ac_f="$tmp/stdin";;
23450 *) # Look for the file first in the build tree, then in the source tree
23451 # (if the path is not absolute). The absolute path cannot be DOS-style,
23452 # because $ac_f cannot contain `:'.
23456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23458 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23459 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23460 { (exit 1); exit 1; }; };;
23462 ac_file_inputs="$ac_file_inputs $ac_f"
23465 # Let's still pretend it is `configure' which instantiates (i.e., don't
23466 # use $as_me), people would be surprised to read:
23467 # /* config.h. Generated by config.status. */
23468 configure_input="Generated from "`IFS=:
23469 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23470 if test x"$ac_file" != x-; then
23471 configure_input="$ac_file. $configure_input"
23472 { echo "$as_me:$LINENO: creating $ac_file" >&5
23473 echo "$as_me: creating $ac_file" >&6;}
23477 *:-:* | *:-) cat >"$tmp/stdin";;
23482 ac_dir=`$as_dirname -- "$ac_file" ||
23483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23484 X"$ac_file" : 'X\(//\)[^/]' \| \
23485 X"$ac_file" : 'X\(//\)$' \| \
23486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23492 /^X\(\/\/\)[^/].*/{
23507 -*) as_dir=./$as_dir;;
23509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23514 *) as_qdir=$as_dir;;
23516 as_dirs="'$as_qdir' $as_dirs"
23517 as_dir=`$as_dirname -- "$as_dir" ||
23518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23519 X"$as_dir" : 'X\(//\)[^/]' \| \
23520 X"$as_dir" : 'X\(//\)$' \| \
23521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23527 /^X\(\/\/\)[^/].*/{
23540 test -d "$as_dir" && break
23542 test -z "$as_dirs" || eval "mkdir $as_dirs"
23543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23545 { (exit 1); exit 1; }; }; }
23549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23552 # A ".." for each directory in $ac_dir_suffix.
23553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23554 case $ac_top_builddir_sub in
23555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23559 ac_abs_top_builddir=$ac_pwd
23560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23561 # for backward compatibility:
23562 ac_top_builddir=$ac_top_build_prefix
23565 .) # We are building in place.
23567 ac_top_srcdir=$ac_top_builddir_sub
23568 ac_abs_top_srcdir=$ac_pwd ;;
23569 [\\/]* | ?:[\\/]* ) # Absolute name.
23570 ac_srcdir=$srcdir$ac_dir_suffix;
23571 ac_top_srcdir=$srcdir
23572 ac_abs_top_srcdir=$srcdir ;;
23573 *) # Relative name.
23574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23575 ac_top_srcdir=$ac_top_build_prefix$srcdir
23576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 # If the template does not know about datarootdir, expand it.
23595 # FIXME: This hack should be removed a few years after 2.60.
23596 ac_datarootdir_hack=; ac_datarootdir_seen=
23598 case `sed -n '/datarootdir/ {
23607 ' $ac_file_inputs` in
23608 *datarootdir*) ac_datarootdir_seen=yes;;
23609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23610 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23611 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23613 cat >>$CONFIG_STATUS <<_ACEOF
23614 ac_datarootdir_hack='
23615 s&@datadir@&$datadir&g
23616 s&@docdir@&$docdir&g
23617 s&@infodir@&$infodir&g
23618 s&@localedir@&$localedir&g
23619 s&@mandir@&$mandir&g
23620 s&\\\${datarootdir}&$datarootdir&g' ;;
23624 # Neutralize VPATH when `$srcdir' = `.'.
23625 # Shell code in configure.ac might set extrasub.
23626 # FIXME: do we really want to maintain this feature?
23627 cat >>$CONFIG_STATUS <<_ACEOF
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23634 s&@configure_input@&$configure_input&;t t
23635 s&@top_builddir@&$ac_top_builddir_sub&;t t
23636 s&@srcdir@&$ac_srcdir&;t t
23637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23638 s&@top_srcdir@&$ac_top_srcdir&;t t
23639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23640 s&@builddir@&$ac_builddir&;t t
23641 s&@abs_builddir@&$ac_abs_builddir&;t t
23642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23643 s&@INSTALL@&$ac_INSTALL&;t t
23644 $ac_datarootdir_hack
23645 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23648 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23650 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23651 which seems to be undefined. Please make sure it is defined." >&5
23652 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23653 which seems to be undefined. Please make sure it is defined." >&2;}
23657 -) cat "$tmp/out"; rm -f "$tmp/out";;
23658 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23667 # Transform confdefs.h into a sed script `conftest.defines', that
23668 # substitutes the proper values into config.h.in to produce config.h.
23669 rm -f conftest.defines conftest.tail
23670 # First, append a space to every undef/define line, to ease matching.
23671 echo 's/$/ /' >conftest.defines
23672 # Then, protect against being on the right side of a sed subst, or in
23673 # an unquoted here document, in config.status. If some macros were
23674 # called several times there might be several #defines for the same
23675 # symbol, which is useless. But do not sort them, since the last
23676 # AC_DEFINE must be honored.
23677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23678 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23679 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23680 # PARAMS is the parameter list in the macro definition--in most cases, it's
23681 # just an empty string.
23682 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23683 ac_dB='\\)[ (].*,\\1define\\2'
23691 s/^[ ]*#[ ]*define[ ][ ]*//
23696 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23697 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23698 ' >>conftest.defines
23700 # Remove the space that was appended to ease matching.
23701 # Then replace #undef with comments. This is necessary, for
23702 # example, in the case of _POSIX_SOURCE, which is predefined and required
23703 # on some systems where configure will not decide to define it.
23704 # (The regexp can be short, since the line contains either #define or #undef.)
23706 s,^[ #]*u.*,/* & */,' >>conftest.defines
23708 # Break up conftest.defines:
23709 ac_max_sed_lines=50
23711 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23712 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23713 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23715 ac_in='$ac_file_inputs'
23716 ac_out='"$tmp/out1"'
23717 ac_nxt='"$tmp/out2"'
23721 # Write a here document:
23722 cat >>$CONFIG_STATUS <<_ACEOF
23723 # First, check the format of the line:
23724 cat >"\$tmp/defines.sed" <<\\CEOF
23725 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23726 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23730 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23732 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23733 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23734 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23735 grep . conftest.tail >/dev/null || break
23736 rm -f conftest.defines
23737 mv conftest.tail conftest.defines
23739 rm -f conftest.defines conftest.tail
23741 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23742 cat >>$CONFIG_STATUS <<\_ACEOF
23743 if test x"$ac_file" != x-; then
23744 echo "/* $configure_input */" >"$tmp/config.h"
23745 cat "$ac_result" >>"$tmp/config.h"
23746 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23747 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23748 echo "$as_me: $ac_file is unchanged" >&6;}
23751 mv "$tmp/config.h" $ac_file
23754 echo "/* $configure_input */"
23760 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23761 echo "$as_me: executing $ac_file commands" >&6;}
23766 case $ac_file$ac_mode in
23767 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23768 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23769 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23770 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23771 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23772 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23773 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23774 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23775 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23776 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23777 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23778 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23779 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23780 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23781 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23782 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23783 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23784 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23785 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23786 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23787 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23788 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23789 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23790 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23796 { (exit 0); exit 0; }
23798 chmod +x $CONFIG_STATUS
23799 ac_clean_files=$ac_clean_files_save
23802 # configure is writing to config.log, and then calls config.status.
23803 # config.status does its own redirection, appending to config.log.
23804 # Unfortunately, on DOS this fails, as config.log is still kept open
23805 # by configure, so config.status won't be able to write to it; its
23806 # output is simply discarded. So we exec the FD to /dev/null,
23807 # effectively closing config.log, so it can be properly (re)opened and
23808 # appended to by config.status. When coming back to configure, we
23809 # need to make the FD available again.
23810 if test "$no_create" != yes; then
23812 ac_config_status_args=
23813 test "$silent" = yes &&
23814 ac_config_status_args="$ac_config_status_args --quiet"
23816 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23818 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23819 # would make configure fail if this is the last instruction.
23820 $ac_cs_success || { (exit 1); exit 1; }
23824 # CONFIG_SUBDIRS section.
23826 if test "$no_recursion" != yes; then
23828 # Remove --cache-file and --srcdir arguments so they do not pile up.
23829 ac_sub_configure_args=
23831 eval "set x $ac_configure_args"
23835 if test -n "$ac_prev"; then
23840 -cache-file | --cache-file | --cache-fil | --cache-fi \
23841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23842 ac_prev=cache_file ;;
23843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23847 --config-cache | -C)
23849 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23851 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23853 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23855 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23859 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23861 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23865 # Always prepend --prefix to ensure using the same prefix
23866 # in subdir configurations.
23867 ac_arg="--prefix=$prefix"
23869 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23871 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23874 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23876 # Do not complain, so a configure script can configure whichever
23877 # parts of a large source tree are present.
23878 test -d "$srcdir/$ac_dir" || continue
23880 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23881 echo "$as_me:$LINENO: $ac_msg" >&5
23885 -*) as_dir=./$as_dir;;
23887 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23891 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23892 *) as_qdir=$as_dir;;
23894 as_dirs="'$as_qdir' $as_dirs"
23895 as_dir=`$as_dirname -- "$as_dir" ||
23896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23897 X"$as_dir" : 'X\(//\)[^/]' \| \
23898 X"$as_dir" : 'X\(//\)$' \| \
23899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23905 /^X\(\/\/\)[^/].*/{
23918 test -d "$as_dir" && break
23920 test -z "$as_dirs" || eval "mkdir $as_dirs"
23921 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23922 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23923 { (exit 1); exit 1; }; }; }
23927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23930 # A ".." for each directory in $ac_dir_suffix.
23931 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23932 case $ac_top_builddir_sub in
23933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23937 ac_abs_top_builddir=$ac_pwd
23938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23939 # for backward compatibility:
23940 ac_top_builddir=$ac_top_build_prefix
23943 .) # We are building in place.
23945 ac_top_srcdir=$ac_top_builddir_sub
23946 ac_abs_top_srcdir=$ac_pwd ;;
23947 [\\/]* | ?:[\\/]* ) # Absolute name.
23948 ac_srcdir=$srcdir$ac_dir_suffix;
23949 ac_top_srcdir=$srcdir
23950 ac_abs_top_srcdir=$srcdir ;;
23951 *) # Relative name.
23952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23953 ac_top_srcdir=$ac_top_build_prefix$srcdir
23954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23961 # Check for guested configure; otherwise get Cygnus style configure.
23962 if test -f "$ac_srcdir/configure.gnu"; then
23963 ac_sub_configure=$ac_srcdir/configure.gnu
23964 elif test -f "$ac_srcdir/configure"; then
23965 ac_sub_configure=$ac_srcdir/configure
23966 elif test -f "$ac_srcdir/configure.in"; then
23967 # This should be Cygnus configure.
23968 ac_sub_configure=$ac_aux_dir/configure
23970 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23975 # The recursion is here.
23976 if test -n "$ac_sub_configure"; then
23977 # Make the cache file name correct relative to the subdirectory.
23978 case $cache_file in
23979 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23980 *) # Relative name.
23981 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23984 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23985 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23986 # The eval makes quoting arguments work.
23987 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23988 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23989 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23990 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23991 { (exit 1); exit 1; }; }