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
3876 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3877 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3886 #error This version of GCC is too old to build LLVM
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest.$ac_objext'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_try") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 { echo "$as_me:$LINENO: result: yes" >&5
3925 echo "${ECHO_T}yes" >&6; }
3927 echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3930 { echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6; }
3932 { { echo "$as_me:$LINENO: error:
3933 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3934 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3935 bypass these sanity checks." >&5
3936 echo "$as_me: error:
3937 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3938 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3939 bypass these sanity checks." >&2;}
3940 { (exit 1); exit 1; }; }
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3957 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3958 { (exit 1); exit 1; }; }
3964 if test -d ${srcdir}/projects/test-suite ; then
3965 subdirs="$subdirs projects/test-suite"
3969 if test -d ${srcdir}/projects/llvm-test ; then
3970 subdirs="$subdirs projects/llvm-test"
3974 if test -d ${srcdir}/projects/poolalloc ; then
3975 subdirs="$subdirs projects/poolalloc"
3979 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3980 subdirs="$subdirs projects/llvm-poolalloc"
3984 for i in `ls ${srcdir}/projects`
3986 if test -d ${srcdir}/projects/${i} ; then
3988 sample) subdirs="$subdirs projects/sample"
3990 safecode) subdirs="$subdirs projects/safecode"
3998 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3999 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
4005 # Check whether --enable-polly was given.
4006 if test "${enable_polly+set}" = set; then
4007 enableval=$enable_polly;
4012 case "$enableval" in
4017 default) ENABLE_POLLY=1
4019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
4020 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
4021 { (exit 1); exit 1; }; } ;;
4025 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
4028 subdirs="$subdirs tools/polly"
4033 # Make sure we can run config.sub.
4034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4035 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4036 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4037 { (exit 1); exit 1; }; }
4039 { echo "$as_me:$LINENO: checking build system type" >&5
4040 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4041 if test "${ac_cv_build+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 ac_build_alias=$build_alias
4045 test "x$ac_build_alias" = x &&
4046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4047 test "x$ac_build_alias" = x &&
4048 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4049 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4050 { (exit 1); exit 1; }; }
4051 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4052 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4053 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4054 { (exit 1); exit 1; }; }
4057 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4058 echo "${ECHO_T}$ac_cv_build" >&6; }
4059 case $ac_cv_build in
4061 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4062 echo "$as_me: error: invalid value of canonical build" >&2;}
4063 { (exit 1); exit 1; }; };;
4066 ac_save_IFS=$IFS; IFS='-'
4072 # Remember, the first character of IFS is used to create $*,
4073 # except with old shells:
4076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4079 { echo "$as_me:$LINENO: checking host system type" >&5
4080 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4081 if test "${ac_cv_host+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 if test "x$host_alias" = x; then
4085 ac_cv_host=$ac_cv_build
4087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4089 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4090 { (exit 1); exit 1; }; }
4094 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4095 echo "${ECHO_T}$ac_cv_host" >&6; }
4098 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4099 echo "$as_me: error: invalid value of canonical host" >&2;}
4100 { (exit 1); exit 1; }; };;
4103 ac_save_IFS=$IFS; IFS='-'
4109 # Remember, the first character of IFS is used to create $*,
4110 # except with old shells:
4113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4116 { echo "$as_me:$LINENO: checking target system type" >&5
4117 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4118 if test "${ac_cv_target+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 if test "x$target_alias" = x; then
4122 ac_cv_target=$ac_cv_host
4124 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4125 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4126 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4127 { (exit 1); exit 1; }; }
4131 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4132 echo "${ECHO_T}$ac_cv_target" >&6; }
4133 case $ac_cv_target in
4135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4136 echo "$as_me: error: invalid value of canonical target" >&2;}
4137 { (exit 1); exit 1; }; };;
4139 target=$ac_cv_target
4140 ac_save_IFS=$IFS; IFS='-'
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4150 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4153 # The aliases save the names the user supplied, while $host etc.
4154 # will get canonicalized.
4155 test -n "$target_alias" &&
4156 test "$program_prefix$program_suffix$program_transform_name" = \
4158 program_prefix=${target_alias}-
4160 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4161 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4162 if test "${llvm_cv_os_type+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 llvm_cv_link_all_option="-Wl,--whole-archive"
4168 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4169 llvm_cv_os_type="AIX"
4170 llvm_cv_platform_type="Unix" ;;
4172 llvm_cv_link_all_option="-Wl,--whole-archive"
4173 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4174 llvm_cv_os_type="IRIX"
4175 llvm_cv_platform_type="Unix" ;;
4177 llvm_cv_link_all_option="-Wl,--whole-archive"
4178 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4179 llvm_cv_os_type="Cygwin"
4180 llvm_cv_platform_type="Unix" ;;
4182 llvm_cv_link_all_option="-Wl,-all_load"
4183 llvm_cv_no_link_all_option="-Wl,-noall_load"
4184 llvm_cv_os_type="Darwin"
4185 llvm_cv_platform_type="Unix" ;;
4187 llvm_cv_link_all_option="-Wl,-all_load"
4188 llvm_cv_no_link_all_option="-Wl,-noall_load"
4189 llvm_cv_os_type="Minix"
4190 llvm_cv_platform_type="Unix" ;;
4192 llvm_cv_link_all_option="-Wl,--whole-archive"
4193 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4194 llvm_cv_os_type="FreeBSD"
4195 llvm_cv_platform_type="Unix" ;;
4197 llvm_cv_link_all_option="-Wl,--whole-archive"
4198 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4199 llvm_cv_os_type="GNU/kFreeBSD"
4200 llvm_cv_platform_type="Unix" ;;
4202 llvm_cv_link_all_option="-Wl,--whole-archive"
4203 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4204 llvm_cv_os_type="OpenBSD"
4205 llvm_cv_platform_type="Unix" ;;
4207 llvm_cv_link_all_option="-Wl,--whole-archive"
4208 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4209 llvm_cv_os_type="NetBSD"
4210 llvm_cv_platform_type="Unix" ;;
4212 llvm_cv_link_all_option="-Wl,--whole-archive"
4213 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4214 llvm_cv_os_type="DragonFly"
4215 llvm_cv_platform_type="Unix" ;;
4217 llvm_cv_link_all_option="-Wl,--whole-archive"
4218 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4219 llvm_cv_os_type="HP-UX"
4220 llvm_cv_platform_type="Unix" ;;
4222 llvm_cv_link_all_option="-Wl,--whole-archive"
4223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4224 llvm_cv_os_type="Interix"
4225 llvm_cv_platform_type="Unix" ;;
4227 llvm_cv_link_all_option="-Wl,--whole-archive"
4228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4229 llvm_cv_os_type="Linux"
4230 llvm_cv_platform_type="Unix" ;;
4232 llvm_cv_link_all_option="-Wl,--whole-archive"
4233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4234 llvm_cv_os_type="GNU"
4235 llvm_cv_platform_type="Unix" ;;
4237 llvm_cv_link_all_option="-Wl,-z,allextract"
4238 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4239 llvm_cv_os_type="SunOS"
4240 llvm_cv_platform_type="Unix" ;;
4242 llvm_cv_link_all_option="-Wl,-z,allextract"
4243 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4244 llvm_cv_os_type="AuroraUX"
4245 llvm_cv_platform_type="Unix" ;;
4247 llvm_cv_link_all_option="-Wl,--whole-archive"
4248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4249 llvm_cv_os_type="Win32"
4250 llvm_cv_platform_type="Win32" ;;
4252 llvm_cv_link_all_option="-Wl,--whole-archive"
4253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4254 llvm_cv_os_type="MingW"
4255 llvm_cv_platform_type="Win32" ;;
4257 llvm_cv_link_all_option="-Wl,--whole-archive"
4258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4259 llvm_cv_os_type="Haiku"
4260 llvm_cv_platform_type="Unix" ;;
4262 llvm_cv_link_all_option="-Wl,--whole-archive"
4263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4264 llvm_cv_os_type="Freestanding"
4265 llvm_cv_platform_type="Unix" ;;
4267 llvm_cv_link_all_option="-Wl,--whole-archive"
4268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4269 llvm_cv_os_type="Freestanding"
4270 llvm_cv_platform_type="Unix" ;;
4272 llvm_cv_link_all_option=""
4273 llvm_cv_no_link_all_option=""
4274 llvm_cv_os_type="Unknown"
4275 llvm_cv_platform_type="Unknown" ;;
4278 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4279 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4281 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4282 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4283 if test "${llvm_cv_target_os_type+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 llvm_cv_target_os_type="AIX" ;;
4290 llvm_cv_target_os_type="IRIX" ;;
4292 llvm_cv_target_os_type="Cygwin" ;;
4294 llvm_cv_target_os_type="Darwin" ;;
4296 llvm_cv_target_os_type="Minix" ;;
4298 llvm_cv_target_os_type="FreeBSD" ;;
4300 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4302 llvm_cv_target_os_type="OpenBSD" ;;
4304 llvm_cv_target_os_type="NetBSD" ;;
4306 llvm_cv_target_os_type="DragonFly" ;;
4308 llvm_cv_target_os_type="HP-UX" ;;
4310 llvm_cv_target_os_type="Interix" ;;
4312 llvm_cv_target_os_type="Linux" ;;
4314 llvm_cv_target_os_type="GNU" ;;
4316 llvm_cv_target_os_type="SunOS" ;;
4318 llvm_cv_target_os_type="AuroraUX" ;;
4320 llvm_cv_target_os_type="Win32" ;;
4322 llvm_cv_target_os_type="MingW" ;;
4324 llvm_cv_target_os_type="Haiku" ;;
4326 llvm_cv_target_os_type="RTEMS" ;;
4328 llvm_cv_target_os_type="NativeClient" ;;
4330 llvm_cv_target_os_type="Freestanding" ;;
4332 llvm_cv_target_os_type="Unknown" ;;
4335 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4336 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4338 if test "$llvm_cv_os_type" = "Unknown" ; then
4339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4340 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4341 { (exit 1); exit 1; }; }
4346 HOST_OS=$llvm_cv_os_type
4348 TARGET_OS=$llvm_cv_target_os_type
4351 LINKALL=$llvm_cv_link_all_option
4353 NOLINKALL=$llvm_cv_no_link_all_option
4356 case $llvm_cv_platform_type in
4359 cat >>confdefs.h <<\_ACEOF
4360 #define LLVM_ON_UNIX 1
4370 cat >>confdefs.h <<\_ACEOF
4371 #define LLVM_ON_WIN32 1
4381 { echo "$as_me:$LINENO: checking target architecture" >&5
4382 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4383 if test "${llvm_cv_target_arch+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 i?86-*) llvm_cv_target_arch="x86" ;;
4388 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4389 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4390 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4391 arm*-*) llvm_cv_target_arch="ARM" ;;
4392 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4393 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4394 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4395 xcore-*) llvm_cv_target_arch="XCore" ;;
4396 msp430-*) llvm_cv_target_arch="MSP430" ;;
4397 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4398 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4399 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4400 *) llvm_cv_target_arch="Unknown" ;;
4403 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4404 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4406 if test "$llvm_cv_target_arch" = "Unknown" ; then
4407 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4408 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4411 case "$llvm_cv_target_arch" in
4412 x86) LLVM_NATIVE_ARCH="X86" ;;
4413 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4414 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4417 ARCH=$llvm_cv_target_arch
4421 i?86-*) host_arch="x86" ;;
4422 amd64-* | x86_64-*) host_arch="x86_64" ;;
4423 sparc*-*) host_arch="Sparc" ;;
4424 powerpc*-*) host_arch="PowerPC" ;;
4425 arm*-*) host_arch="ARM" ;;
4426 aarch64*-*) host_arch="AArch64" ;;
4427 mips-* | mips64-*) host_arch="Mips" ;;
4428 mipsel-* | mips64el-*) host_arch="Mips" ;;
4429 xcore-*) host_arch="XCore" ;;
4430 msp430-*) host_arch="MSP430" ;;
4431 hexagon-*) host_arch="Hexagon" ;;
4432 s390x-*) host_arch="SystemZ" ;;
4433 *) host_arch="Unknown" ;;
4436 if test "$host_arch" = "Unknown" ; then
4437 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4438 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4441 HOST_ARCH=$host_arch
4444 if test "$cross_compiling" = yes; then
4445 LLVM_CROSS_COMPILING=1
4448 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4449 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4450 if test "${ac_cv_build_exeext+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4454 ac_cv_build_exeext=.exe
4456 ac_build_prefix=${build_alias}-
4458 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4459 set dummy ${ac_build_prefix}gcc; ac_word=$2
4460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4462 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -n "$BUILD_CC"; then
4466 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 BUILD_CC=$ac_cv_prog_BUILD_CC
4486 if test -n "$BUILD_CC"; then
4487 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4488 echo "${ECHO_T}$BUILD_CC" >&6; }
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 if test -z "$BUILD_CC"; then
4496 # Extract the first word of "gcc", so it can be a program name with args.
4497 set dummy gcc; ac_word=$2
4498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4500 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$BUILD_CC"; then
4504 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_BUILD_CC="gcc"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 BUILD_CC=$ac_cv_prog_BUILD_CC
4524 if test -n "$BUILD_CC"; then
4525 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4526 echo "${ECHO_T}$BUILD_CC" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4533 if test -z "$BUILD_CC"; then
4534 # Extract the first word of "cc", so it can be a program name with args.
4535 set dummy cc; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test -n "$BUILD_CC"; then
4542 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4553 ac_prog_rejected=yes
4556 ac_cv_prog_BUILD_CC="cc"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 if test $ac_prog_rejected = yes; then
4565 # We found a bogon in the path, so make sure we never use it.
4566 set dummy $ac_cv_prog_BUILD_CC
4568 if test $# != 0; then
4569 # We chose a different compiler from the bogus one.
4570 # However, it has the same basename, so the bogon will be chosen
4571 # first if we set BUILD_CC to just the basename; use the full file name.
4573 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4578 BUILD_CC=$ac_cv_prog_BUILD_CC
4579 if test -n "$BUILD_CC"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4581 echo "${ECHO_T}$BUILD_CC" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4590 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4591 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4592 { (exit 1); exit 1; }; }
4593 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4595 echo 'int main () { return 0; }' > conftest.$ac_ext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4598 (eval $ac_build_link) 2>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; then
4602 for file in conftest.*; do
4604 *.c | *.o | *.obj | *.dSYM) ;;
4605 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4609 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4610 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4611 { (exit 1); exit 1; }; }
4614 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4619 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4620 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4621 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4622 ac_build_exeext=$BUILD_EXEEXT
4624 ac_build_prefix=${build_alias}-
4625 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4626 set dummy ${ac_build_prefix}g++; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$BUILD_CXX"; then
4633 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4653 if test -n "$BUILD_CXX"; then
4654 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4655 echo "${ECHO_T}$BUILD_CXX" >&6; }
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4662 if test -z "$BUILD_CXX"; then
4663 # Extract the first word of "g++", so it can be a program name with args.
4664 set dummy g++; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 if test -n "$BUILD_CXX"; then
4671 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_BUILD_CXX="g++"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4691 if test -n "$BUILD_CXX"; then
4692 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4693 echo "${ECHO_T}$BUILD_CXX" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 if test -z "$BUILD_CXX"; then
4701 # Extract the first word of "c++", so it can be a program name with args.
4702 set dummy c++; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 if test -n "$BUILD_CXX"; then
4709 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4720 ac_prog_rejected=yes
4723 ac_cv_prog_BUILD_CXX="c++"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 if test $ac_prog_rejected = yes; then
4732 # We found a bogon in the path, so make sure we never use it.
4733 set dummy $ac_cv_prog_BUILD_CXX
4735 if test $# != 0; then
4736 # We chose a different compiler from the bogus one.
4737 # However, it has the same basename, so the bogon will be chosen
4738 # first if we set BUILD_CXX to just the basename; use the full file name.
4740 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4745 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4746 if test -n "$BUILD_CXX"; then
4747 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4748 echo "${ECHO_T}$BUILD_CXX" >&6; }
4750 { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4758 LLVM_CROSS_COMPILING=0
4762 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4773 # Check whether --enable-libcpp was given.
4774 if test "${enable_libcpp+set}" = set; then
4775 enableval=$enable_libcpp;
4780 case "$enableval" in
4781 yes) ENABLE_LIBCPP=1
4785 default) ENABLE_LIBCPP=0
4787 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4788 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4792 # Check whether --enable-cxx11 was given.
4793 if test "${enable_cxx11+set}" = set; then
4794 enableval=$enable_cxx11;
4799 case "$enableval" in
4804 default) ENABLE_CXX11=0
4806 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4807 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4808 { (exit 1); exit 1; }; } ;;
4811 # Check whether --enable-split-dwarf was given.
4812 if test "${enable_split_dwarf+set}" = set; then
4813 enableval=$enable_split_dwarf;
4818 case "$enableval" in
4819 yes) ENABLE_SPLIT_DWARF=1
4821 no) ENABLE_SPLIT_DWARF=0
4823 default) ENABLE_SPLIT_DWARF=0
4825 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4826 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4827 { (exit 1); exit 1; }; } ;;
4831 # Check whether --enable-clang-arcmt was given.
4832 if test "${enable_clang_arcmt+set}" = set; then
4833 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4838 case "$enableval" in
4839 yes) ENABLE_CLANG_ARCMT=1
4841 no) ENABLE_CLANG_ARCMT=0
4843 default) ENABLE_CLANG_ARCMT=1
4845 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4846 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4847 { (exit 1); exit 1; }; } ;;
4850 clang_static_analyzer="yes"
4851 # Check whether --enable-clang-static-analyzer was given.
4852 if test "${enable_clang_static_analyzer+set}" = set; then
4853 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4858 case "$enableval" in
4859 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4862 if test ${clang_arcmt} != "no" ; then
4863 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4864 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4865 { (exit 1); exit 1; }; }
4867 ENABLE_CLANG_STATIC_ANALYZER=0
4870 default) ENABLE_CLANG_STATIC_ANALYZER=1
4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
4877 # Check whether --enable-clang-rewriter was given.
4878 if test "${enable_clang_rewriter+set}" = set; then
4879 enableval=$enable_clang_rewriter;
4884 case "$enableval" in
4885 yes) ENABLE_CLANG_REWRITER=1
4888 if test ${clang_arcmt} != "no" ; then
4889 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4890 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4891 { (exit 1); exit 1; }; }
4893 if test ${clang_static_analyzer} != "no" ; then
4894 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4895 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4896 { (exit 1); exit 1; }; }
4898 ENABLE_CLANG_REWRITER=0
4901 default) ENABLE_CLANG_REWRITER=1
4903 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4904 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4908 # Check whether --enable-optimized was given.
4909 if test "${enable_optimized+set}" = set; then
4910 enableval=$enable_optimized;
4915 if test ${enableval} = "no" ; then
4919 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4923 # Check whether --enable-profiling was given.
4924 if test "${enable_profiling+set}" = set; then
4925 enableval=$enable_profiling;
4930 if test ${enableval} = "no" ; then
4934 ENABLE_PROFILING=ENABLE_PROFILING=1
4938 # Check whether --enable-assertions was given.
4939 if test "${enable_assertions+set}" = set; then
4940 enableval=$enable_assertions;
4945 if test ${enableval} = "yes" ; then
4949 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4953 # Check whether --enable-werror was given.
4954 if test "${enable_werror+set}" = set; then
4955 enableval=$enable_werror;
4960 case "$enableval" in
4961 yes) ENABLE_WERROR=1
4965 default) ENABLE_WERROR=0
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4968 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4972 # Check whether --enable-expensive-checks was given.
4973 if test "${enable_expensive_checks+set}" = set; then
4974 enableval=$enable_expensive_checks;
4979 if test ${enableval} = "yes" ; then
4980 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4982 EXPENSIVE_CHECKS=yes
4985 ENABLE_EXPENSIVE_CHECKS=
4991 # Check whether --enable-debug-runtime was given.
4992 if test "${enable_debug_runtime+set}" = set; then
4993 enableval=$enable_debug_runtime;
4998 if test ${enableval} = "no" ; then
5002 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5006 # Check whether --enable-debug-symbols was given.
5007 if test "${enable_debug_symbols+set}" = set; then
5008 enableval=$enable_debug_symbols;
5013 if test ${enableval} = "no" ; then
5017 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5021 # Check whether --enable-keep-symbols was given.
5022 if test "${enable_keep_symbols+set}" = set; then
5023 enableval=$enable_keep_symbols;
5028 if test ${enableval} = "no" ; then
5032 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5036 # Check whether --enable-jit was given.
5037 if test "${enable_jit+set}" = set; then
5038 enableval=$enable_jit;
5043 if test ${enableval} = "no"
5048 case "$llvm_cv_target_arch" in
5049 x86) TARGET_HAS_JIT=1
5051 Sparc) TARGET_HAS_JIT=0
5053 PowerPC) TARGET_HAS_JIT=1
5055 x86_64) TARGET_HAS_JIT=1
5057 ARM) TARGET_HAS_JIT=1
5059 AArch64) TARGET_HAS_JIT=0
5061 Mips) TARGET_HAS_JIT=1
5063 XCore) TARGET_HAS_JIT=0
5065 MSP430) TARGET_HAS_JIT=0
5067 Hexagon) TARGET_HAS_JIT=0
5069 NVPTX) TARGET_HAS_JIT=0
5071 SystemZ) TARGET_HAS_JIT=1
5078 # Check whether --enable-docs was given.
5079 if test "${enable_docs+set}" = set; then
5080 enableval=$enable_docs;
5085 case "$enableval" in
5090 default) ENABLE_DOCS=1
5092 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5093 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5094 { (exit 1); exit 1; }; } ;;
5097 # Check whether --enable-doxygen was given.
5098 if test "${enable_doxygen+set}" = set; then
5099 enableval=$enable_doxygen;
5104 case "$enableval" in
5105 yes) ENABLE_DOXYGEN=1
5107 no) ENABLE_DOXYGEN=0
5109 default) ENABLE_DOXYGEN=0
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 # Check whether --enable-threads was given.
5117 if test "${enable_threads+set}" = set; then
5118 enableval=$enable_threads;
5123 case "$enableval" in
5124 yes) LLVM_ENABLE_THREADS=1
5126 no) LLVM_ENABLE_THREADS=0
5128 default) LLVM_ENABLE_THREADS=1
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 cat >>confdefs.h <<_ACEOF
5136 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5140 # Check whether --enable-pthreads was given.
5141 if test "${enable_pthreads+set}" = set; then
5142 enableval=$enable_pthreads;
5147 case "$enableval" in
5148 yes) ENABLE_PTHREADS=1
5150 no) ENABLE_PTHREADS=0
5152 default) ENABLE_PTHREADS=1
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5159 # Check whether --enable-zlib was given.
5160 if test "${enable_zlib+set}" = set; then
5161 enableval=$enable_zlib;
5166 case "$enableval" in
5167 yes) LLVM_ENABLE_ZLIB=1
5169 no) LLVM_ENABLE_ZLIB=0
5171 default) LLVM_ENABLE_ZLIB=1
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 cat >>confdefs.h <<_ACEOF
5179 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5183 # Check whether --enable-pic was given.
5184 if test "${enable_pic+set}" = set; then
5185 enableval=$enable_pic;
5190 case "$enableval" in
5195 default) ENABLE_PIC=1
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5198 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5202 cat >>confdefs.h <<_ACEOF
5203 #define ENABLE_PIC $ENABLE_PIC
5207 # Check whether --enable-shared was given.
5208 if test "${enable_shared+set}" = set; then
5209 enableval=$enable_shared;
5214 case "$enableval" in
5215 yes) ENABLE_SHARED=1
5219 default) ENABLE_SHARED=0
5221 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5222 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5226 # Check whether --enable-embed-stdcxx was given.
5227 if test "${enable_embed_stdcxx+set}" = set; then
5228 enableval=$enable_embed_stdcxx;
5233 case "$enableval" in
5234 yes) ENABLE_EMBED_STDCXX=1
5236 no) ENABLE_EMBED_STDCXX=0
5238 default) ENABLE_EMBED_STDCXX=0
5240 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5241 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5242 { (exit 1); exit 1; }; } ;;
5245 # Check whether --enable-timestamps was given.
5246 if test "${enable_timestamps+set}" = set; then
5247 enableval=$enable_timestamps;
5252 case "$enableval" in
5253 yes) ENABLE_TIMESTAMPS=1
5255 no) ENABLE_TIMESTAMPS=0
5257 default) ENABLE_TIMESTAMPS=1
5259 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5260 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5264 cat >>confdefs.h <<_ACEOF
5265 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5269 # Check whether --enable-backtraces was given.
5270 if test "${enable_backtraces+set}" = set; then
5271 enableval=$enable_backtraces; case "$enableval" in
5272 yes) llvm_cv_enable_backtraces="yes" ;;
5273 no) llvm_cv_enable_backtraces="no" ;;
5274 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5275 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5276 { (exit 1); exit 1; }; } ;;
5279 llvm_cv_enable_backtraces="yes"
5282 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5284 cat >>confdefs.h <<\_ACEOF
5285 #define ENABLE_BACKTRACES 1
5290 # Check whether --enable-crash-overrides was given.
5291 if test "${enable_crash_overrides+set}" = set; then
5292 enableval=$enable_crash_overrides; case "$enableval" in
5293 yes) llvm_cv_enable_crash_overrides="yes" ;;
5294 no) llvm_cv_enable_crash_overrides="no" ;;
5295 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5296 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5297 { (exit 1); exit 1; }; } ;;
5300 llvm_cv_enable_crash_overrides="yes"
5303 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5305 cat >>confdefs.h <<\_ACEOF
5306 #define ENABLE_CRASH_OVERRIDES 1
5312 # Check whether --enable-targets was given.
5313 if test "${enable_targets+set}" = set; then
5314 enableval=$enable_targets;
5319 if test "$enableval" = host-only ; then
5322 case "$enableval" in
5323 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5324 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5326 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5327 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5328 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5329 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5330 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5331 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5332 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5333 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5334 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5339 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5340 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5341 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5342 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5343 host) case "$llvm_cv_target_arch" in
5344 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5345 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5346 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5347 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5348 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5349 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5350 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5351 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5352 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5353 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5354 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5355 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5356 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5357 echo "$as_me: error: Can not set target to build" >&2;}
5358 { (exit 1); exit 1; }; } ;;
5360 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5361 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5362 { (exit 1); exit 1; }; } ;;
5368 # Check whether --enable-experimental-targets was given.
5369 if test "${enable_experimental_targets+set}" = set; then
5370 enableval=$enable_experimental_targets;
5376 if test ${enableval} != "disable"
5378 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5381 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5384 for a_target in $TARGETS_TO_BUILD; do
5385 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5391 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5392 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5393 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5394 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5395 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5396 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5398 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5399 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5402 cat >>confdefs.h <<_ACEOF
5403 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5407 cat >>confdefs.h <<_ACEOF
5408 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5412 cat >>confdefs.h <<_ACEOF
5413 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5421 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5428 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5447 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5450 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462 withval=$with_optimize_option;
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5471 case "$llvm_cv_os_type" in
5472 FreeBSD) optimize_option=-O2 ;;
5473 MingW) optimize_option=-O2 ;;
5474 *) optimize_option=-O3 ;;
5476 *) optimize_option="$withval" ;;
5478 OPTIMIZE_OPTION=$optimize_option
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486 withval=$with_extra_options;
5492 default) EXTRA_OPTIONS= ;;
5493 *) EXTRA_OPTIONS=$withval ;;
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501 withval=$with_extra_ld_options;
5507 default) EXTRA_LD_OPTIONS= ;;
5508 *) EXTRA_LD_OPTIONS=$withval ;;
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515 enableval=$enable_bindings;
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523 all ) BINDINGS_TO_BUILD="ocaml" ;;
5524 none | no) BINDINGS_TO_BUILD="" ;;
5525 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526 case "$a_binding" in
5527 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530 { (exit 1); exit 1; }; } ;;
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539 withval=$with_ocaml_libdir;
5545 auto) with_ocaml_libdir="$withval" ;;
5546 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549 { (exit 1); exit 1; }; } ;;
5553 # Check whether --with-clang-srcdir was given.
5554 if test "${with_clang_srcdir+set}" = set; then
5555 withval=$with_clang_srcdir;
5561 -) clang_src_root="" ;;
5562 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5563 *) clang_src_root="$ac_pwd/$withval" ;;
5565 CLANG_SRC_ROOT=$clang_src_root
5569 # Check whether --with-clang-resource-dir was given.
5570 if test "${with_clang_resource_dir+set}" = set; then
5571 withval=$with_clang_resource_dir;
5577 cat >>confdefs.h <<_ACEOF
5578 #define CLANG_RESOURCE_DIR "$withval"
5583 # Check whether --with-c-include-dirs was given.
5584 if test "${with_c_include_dirs+set}" = set; then
5585 withval=$with_c_include_dirs;
5591 cat >>confdefs.h <<_ACEOF
5592 #define C_INCLUDE_DIRS "$withval"
5596 # Clang normally uses the system c++ headers and libraries. With this option,
5597 # clang will use the ones provided by a gcc installation instead. This option should
5598 # be passed the same value that was used with --prefix when configuring gcc.
5600 # Check whether --with-gcc-toolchain was given.
5601 if test "${with_gcc_toolchain+set}" = set; then
5602 withval=$with_gcc_toolchain;
5608 cat >>confdefs.h <<_ACEOF
5609 #define GCC_INSTALL_PREFIX "$withval"
5614 # Check whether --with-default-sysroot was given.
5615 if test "${with_default_sysroot+set}" = set; then
5616 withval=$with_default_sysroot;
5622 cat >>confdefs.h <<_ACEOF
5623 #define DEFAULT_SYSROOT "$withval"
5628 # Check whether --with-binutils-include was given.
5629 if test "${with_binutils_include+set}" = set; then
5630 withval=$with_binutils_include;
5636 default) WITH_BINUTILS_INCDIR=default ;;
5637 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5638 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5639 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5640 { (exit 1); exit 1; }; } ;;
5642 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5643 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5645 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5646 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5647 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5648 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5649 { (exit 1); exit 1; }; };
5654 # Check whether --with-bug-report-url was given.
5655 if test "${with_bug_report_url+set}" = set; then
5656 withval=$with_bug_report_url;
5658 withval="http://llvm.org/bugs/"
5662 cat >>confdefs.h <<_ACEOF
5663 #define BUG_REPORT_URL "$withval"
5667 # Check whether --enable-terminfo was given.
5668 if test "${enable_terminfo+set}" = set; then
5669 enableval=$enable_terminfo; case "$enableval" in
5670 yes) llvm_cv_enable_terminfo="yes" ;;
5671 no) llvm_cv_enable_terminfo="no" ;;
5672 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5673 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5674 { (exit 1); exit 1; }; } ;;
5677 llvm_cv_enable_terminfo="yes"
5681 # Check whether --enable-libffi was given.
5682 if test "${enable_libffi+set}" = set; then
5683 enableval=$enable_libffi; case "$enableval" in
5684 yes) llvm_cv_enable_libffi="yes" ;;
5685 no) llvm_cv_enable_libffi="no" ;;
5686 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5687 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5688 { (exit 1); exit 1; }; } ;;
5691 llvm_cv_enable_libffi=no
5696 # Check whether --with-internal-prefix was given.
5697 if test "${with_internal_prefix+set}" = set; then
5698 withval=$with_internal_prefix;
5703 INTERNAL_PREFIX=$withval
5707 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5708 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5709 if test "${lt_cv_path_NM+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 if test -n "$NM"; then
5713 # Let the user override the test.
5716 lt_nm_to_check="${ac_tool_prefix}nm"
5717 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5718 lt_nm_to_check="$lt_nm_to_check nm"
5720 for lt_tmp_nm in $lt_nm_to_check; do
5721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5722 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5724 test -z "$ac_dir" && ac_dir=.
5725 tmp_nm="$ac_dir/$lt_tmp_nm"
5726 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5727 # Check to see if the nm accepts a BSD-compat flag.
5728 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5729 # nm: unknown option "B" ignored
5730 # Tru64's nm complains that /dev/null is an invalid object file
5731 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5732 */dev/null* | *'Invalid file or object type'*)
5733 lt_cv_path_NM="$tmp_nm -B"
5737 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5739 lt_cv_path_NM="$tmp_nm -p"
5743 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5744 continue # so that we can try to find one that supports BSD flags
5753 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5756 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5757 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5762 { echo "$as_me:$LINENO: checking for GNU make" >&5
5763 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5764 if test "${llvm_cv_gnu_make_command+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 llvm_cv_gnu_make_command=''
5768 for a in "$MAKE" make gmake gnumake ; do
5769 if test -z "$a" ; then continue ; fi ;
5770 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5772 llvm_cv_gnu_make_command=$a ;
5777 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5778 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5779 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5783 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5784 echo "${ECHO_T}\"Not found\"" >&6; };
5788 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5791 if test "$LN_S" = "ln -s"; then
5792 { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5795 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5796 echo "${ECHO_T}no, using $LN_S" >&6; }
5799 # Extract the first word of "cmp", so it can be a program name with args.
5800 set dummy cmp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CMP+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5831 if test -n "$CMP"; then
5832 { echo "$as_me:$LINENO: result: $CMP" >&5
5833 echo "${ECHO_T}$CMP" >&6; }
5835 { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5840 # Extract the first word of "cp", so it can be a program name with args.
5841 set dummy cp; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_CP+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5872 if test -n "$CP"; then
5873 { echo "$as_me:$LINENO: result: $CP" >&5
5874 echo "${ECHO_T}$CP" >&6; }
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5881 # Extract the first word of "date", so it can be a program name with args.
5882 set dummy date; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_DATE+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5912 DATE=$ac_cv_path_DATE
5913 if test -n "$DATE"; then
5914 { echo "$as_me:$LINENO: result: $DATE" >&5
5915 echo "${ECHO_T}$DATE" >&6; }
5917 { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5922 # Extract the first word of "find", so it can be a program name with args.
5923 set dummy find; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_FIND+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5953 FIND=$ac_cv_path_FIND
5954 if test -n "$FIND"; then
5955 { echo "$as_me:$LINENO: result: $FIND" >&5
5956 echo "${ECHO_T}$FIND" >&6; }
5958 { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5963 # Extract the first word of "grep", so it can be a program name with args.
5964 set dummy grep; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_GREP+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5994 GREP=$ac_cv_path_GREP
5995 if test -n "$GREP"; then
5996 { echo "$as_me:$LINENO: result: $GREP" >&5
5997 echo "${ECHO_T}$GREP" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 # Extract the first word of "mkdir", so it can be a program name with args.
6005 set dummy mkdir; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MKDIR+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6035 MKDIR=$ac_cv_path_MKDIR
6036 if test -n "$MKDIR"; then
6037 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6038 echo "${ECHO_T}$MKDIR" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6045 # Extract the first word of "mv", so it can be a program name with args.
6046 set dummy mv; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_MV+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6077 if test -n "$MV"; then
6078 { echo "$as_me:$LINENO: result: $MV" >&5
6079 echo "${ECHO_T}$MV" >&6; }
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6086 if test -n "$ac_tool_prefix"; then
6087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_RANLIB+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$RANLIB"; then
6095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 RANLIB=$ac_cv_prog_RANLIB
6115 if test -n "$RANLIB"; then
6116 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6117 echo "${ECHO_T}$RANLIB" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6125 if test -z "$ac_cv_prog_RANLIB"; then
6126 ac_ct_RANLIB=$RANLIB
6127 # Extract the first word of "ranlib", so it can be a program name with args.
6128 set dummy ranlib; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 if test -n "$ac_ct_RANLIB"; then
6135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_ac_ct_RANLIB="ranlib"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6155 if test -n "$ac_ct_RANLIB"; then
6156 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6157 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6163 if test "x$ac_ct_RANLIB" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6169 whose name does not start with the host triplet. If you think this
6170 configuration is useful to you, please write to autoconf@gnu.org." >&5
6171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6172 whose name does not start with the host triplet. If you think this
6173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6174 ac_tool_warned=yes ;;
6176 RANLIB=$ac_ct_RANLIB
6179 RANLIB="$ac_cv_prog_RANLIB"
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}ar; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_AR+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 if test -n "$AR"; then
6191 ac_cv_prog_AR="$AR" # Let the user override the test.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_AR="${ac_tool_prefix}ar"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 if test -n "$AR"; then
6212 { echo "$as_me:$LINENO: result: $AR" >&5
6213 echo "${ECHO_T}$AR" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6221 if test -z "$ac_cv_prog_AR"; then
6223 # Extract the first word of "ar", so it can be a program name with args.
6224 set dummy ar; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 if test -n "$ac_ct_AR"; then
6231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_ac_ct_AR="ar"
6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6251 if test -n "$ac_ct_AR"; then
6252 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6253 echo "${ECHO_T}$ac_ct_AR" >&6; }
6255 { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6259 if test "x$ac_ct_AR" = x; then
6262 case $cross_compiling:$ac_tool_warned in
6264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6265 whose name does not start with the host triplet. If you think this
6266 configuration is useful to you, please write to autoconf@gnu.org." >&5
6267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6268 whose name does not start with the host triplet. If you think this
6269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6270 ac_tool_warned=yes ;;
6278 # Extract the first word of "rm", so it can be a program name with args.
6279 set dummy rm; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_RM+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6310 if test -n "$RM"; then
6311 { echo "$as_me:$LINENO: result: $RM" >&5
6312 echo "${ECHO_T}$RM" >&6; }
6314 { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6319 # Extract the first word of "sed", so it can be a program name with args.
6320 set dummy sed; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_SED+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6351 if test -n "$SED"; then
6352 { echo "$as_me:$LINENO: result: $SED" >&5
6353 echo "${ECHO_T}$SED" >&6; }
6355 { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6360 # Extract the first word of "tar", so it can be a program name with args.
6361 set dummy tar; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_TAR+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6392 if test -n "$TAR"; then
6393 { echo "$as_me:$LINENO: result: $TAR" >&5
6394 echo "${ECHO_T}$TAR" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6401 # Extract the first word of "pwd", so it can be a program name with args.
6402 set dummy pwd; ac_word=$2
6403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6405 if test "${ac_cv_path_BINPWD+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6432 BINPWD=$ac_cv_path_BINPWD
6433 if test -n "$BINPWD"; then
6434 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6435 echo "${ECHO_T}$BINPWD" >&6; }
6437 { echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6; }
6443 # Extract the first word of "Graphviz", so it can be a program name with args.
6444 set dummy Graphviz; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6474 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6475 if test -n "$GRAPHVIZ"; then
6476 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6477 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6479 { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6484 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6486 cat >>confdefs.h <<\_ACEOF
6487 #define HAVE_GRAPHVIZ 1
6490 if test "$llvm_cv_os_type" = "MingW" ; then
6491 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6494 cat >>confdefs.h <<_ACEOF
6495 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6499 # Extract the first word of "dot", so it can be a program name with args.
6500 set dummy dot; ac_word=$2
6501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503 if test "${ac_cv_path_DOT+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6531 if test -n "$DOT"; then
6532 { echo "$as_me:$LINENO: result: $DOT" >&5
6533 echo "${ECHO_T}$DOT" >&6; }
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 if test "$DOT" != "echo dot" ; then
6542 cat >>confdefs.h <<\_ACEOF
6546 if test "$llvm_cv_os_type" = "MingW" ; then
6547 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6550 cat >>confdefs.h <<_ACEOF
6551 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6555 # Extract the first word of "fdp", so it can be a program name with args.
6556 set dummy fdp; ac_word=$2
6557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559 if test "${ac_cv_path_FDP+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6574 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6587 if test -n "$FDP"; then
6588 { echo "$as_me:$LINENO: result: $FDP" >&5
6589 echo "${ECHO_T}$FDP" >&6; }
6591 { echo "$as_me:$LINENO: result: no" >&5
6592 echo "${ECHO_T}no" >&6; }
6596 if test "$FDP" != "echo fdp" ; then
6598 cat >>confdefs.h <<\_ACEOF
6602 if test "$llvm_cv_os_type" = "MingW" ; then
6603 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6606 cat >>confdefs.h <<_ACEOF
6607 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6611 # Extract the first word of "neato", so it can be a program name with args.
6612 set dummy neato; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_path_NEATO+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6642 NEATO=$ac_cv_path_NEATO
6643 if test -n "$NEATO"; then
6644 { echo "$as_me:$LINENO: result: $NEATO" >&5
6645 echo "${ECHO_T}$NEATO" >&6; }
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6652 if test "$NEATO" != "echo neato" ; then
6654 cat >>confdefs.h <<\_ACEOF
6655 #define HAVE_NEATO 1
6658 if test "$llvm_cv_os_type" = "MingW" ; then
6659 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6662 cat >>confdefs.h <<_ACEOF
6663 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6667 # Extract the first word of "twopi", so it can be a program name with args.
6668 set dummy twopi; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_TWOPI+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6698 TWOPI=$ac_cv_path_TWOPI
6699 if test -n "$TWOPI"; then
6700 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6701 echo "${ECHO_T}$TWOPI" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6708 if test "$TWOPI" != "echo twopi" ; then
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_TWOPI 1
6714 if test "$llvm_cv_os_type" = "MingW" ; then
6715 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6718 cat >>confdefs.h <<_ACEOF
6719 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6723 # Extract the first word of "circo", so it can be a program name with args.
6724 set dummy circo; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_CIRCO+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6754 CIRCO=$ac_cv_path_CIRCO
6755 if test -n "$CIRCO"; then
6756 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6757 echo "${ECHO_T}$CIRCO" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6764 if test "$CIRCO" != "echo circo" ; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_CIRCO 1
6770 if test "$llvm_cv_os_type" = "MingW" ; then
6771 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6774 cat >>confdefs.h <<_ACEOF
6775 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6779 for ac_prog in gv gsview32
6781 # Extract the first word of "$ac_prog", so it can be a program name with args.
6782 set dummy $ac_prog; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_GV+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 if test -n "$GV"; then
6813 { echo "$as_me:$LINENO: result: $GV" >&5
6814 echo "${ECHO_T}$GV" >&6; }
6816 { echo "$as_me:$LINENO: result: no" >&5
6817 echo "${ECHO_T}no" >&6; }
6821 test -n "$GV" && break
6823 test -n "$GV" || GV="echo gv"
6825 if test "$GV" != "echo gv" ; then
6827 cat >>confdefs.h <<\_ACEOF
6831 if test "$llvm_cv_os_type" = "MingW" ; then
6832 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_GV "$GV${EXEEXT}"
6840 # Extract the first word of "dotty", so it can be a program name with args.
6841 set dummy dotty; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_path_DOTTY+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6871 DOTTY=$ac_cv_path_DOTTY
6872 if test -n "$DOTTY"; then
6873 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6874 echo "${ECHO_T}$DOTTY" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6881 if test "$DOTTY" != "echo dotty" ; then
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_DOTTY 1
6887 if test "$llvm_cv_os_type" = "MingW" ; then
6888 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6891 cat >>confdefs.h <<_ACEOF
6892 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6896 for ac_prog in xdot xdot.py
6898 # Extract the first word of "$ac_prog", so it can be a program name with args.
6899 set dummy $ac_prog; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_XDOT+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 XDOT=$ac_cv_path_XDOT
6929 if test -n "$XDOT"; then
6930 { echo "$as_me:$LINENO: result: $XDOT" >&5
6931 echo "${ECHO_T}$XDOT" >&6; }
6933 { echo "$as_me:$LINENO: result: no" >&5
6934 echo "${ECHO_T}no" >&6; }
6938 test -n "$XDOT" && break
6940 test -n "$XDOT" || XDOT="echo xdot"
6942 if test "$XDOT" != "echo xdot" ; then
6944 cat >>confdefs.h <<\_ACEOF
6948 if test "$llvm_cv_os_type" = "MingW" ; then
6949 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6952 cat >>confdefs.h <<_ACEOF
6953 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6958 # Find a good install program. We prefer a C program (faster),
6959 # so one script is as good as another. But avoid the broken or
6960 # incompatible versions:
6961 # SysV /etc/install, /usr/sbin/install
6962 # SunOS /usr/etc/install
6963 # IRIX /sbin/install
6965 # AmigaOS /C/install, which installs bootblocks on floppy discs
6966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6969 # OS/2's system install, which has a completely different semantic
6970 # ./install, which can be erroneously created by make from ./install.sh.
6971 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6972 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6973 if test -z "$INSTALL"; then
6974 if test "${ac_cv_path_install+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 # Account for people who put trailing slashes in PATH elements.
6984 ./ | .// | /cC/* | \
6985 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6986 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6989 # OSF1 and SCO ODT 3.0 have their own names for install.
6990 # Don't use installbsd from OSF since it installs stuff as root
6992 for ac_prog in ginstall scoinst install; do
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6995 if test $ac_prog = install &&
6996 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6997 # AIX install. It has an incompatible calling convention.
6999 elif test $ac_prog = install &&
7000 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7001 # program-specific install script used by HP pwplus--don't use.
7004 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7017 if test "${ac_cv_path_install+set}" = set; then
7018 INSTALL=$ac_cv_path_install
7020 # As a last resort, use the slow shell script. Don't cache a
7021 # value for INSTALL within a source directory, because that will
7022 # break other packages using the cache if that directory is
7023 # removed, or if the value is a relative name.
7024 INSTALL=$ac_install_sh
7027 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7028 echo "${ECHO_T}$INSTALL" >&6; }
7030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7031 # It thinks the first close brace ends the variable substitution.
7032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7036 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7039 [\\/$]* | ?:[\\/]* ) ;;
7040 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7043 # Extract the first word of "bzip2", so it can be a program name with args.
7044 set dummy bzip2; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_BZIP2+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 BZIP2=$ac_cv_path_BZIP2
7074 if test -n "$BZIP2"; then
7075 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7076 echo "${ECHO_T}$BZIP2" >&6; }
7078 { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7083 # Extract the first word of "cat", so it can be a program name with args.
7084 set dummy cat; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_CAT+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 if test -n "$CAT"; then
7115 { echo "$as_me:$LINENO: result: $CAT" >&5
7116 echo "${ECHO_T}$CAT" >&6; }
7118 { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7123 # Extract the first word of "doxygen", so it can be a program name with args.
7124 set dummy doxygen; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 DOXYGEN=$ac_cv_path_DOXYGEN
7154 if test -n "$DOXYGEN"; then
7155 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7156 echo "${ECHO_T}$DOXYGEN" >&6; }
7158 { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7163 # Extract the first word of "groff", so it can be a program name with args.
7164 set dummy groff; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_GROFF+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 GROFF=$ac_cv_path_GROFF
7194 if test -n "$GROFF"; then
7195 { echo "$as_me:$LINENO: result: $GROFF" >&5
7196 echo "${ECHO_T}$GROFF" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 # Extract the first word of "gzip", so it can be a program name with args.
7204 set dummy gzip; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 GZIPBIN=$ac_cv_path_GZIPBIN
7234 if test -n "$GZIPBIN"; then
7235 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7236 echo "${ECHO_T}$GZIPBIN" >&6; }
7238 { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7243 # Extract the first word of "pdfroff", so it can be a program name with args.
7244 set dummy pdfroff; ac_word=$2
7245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247 if test "${ac_cv_path_PDFROFF+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 PDFROFF=$ac_cv_path_PDFROFF
7274 if test -n "$PDFROFF"; then
7275 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7276 echo "${ECHO_T}$PDFROFF" >&6; }
7278 { echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6; }
7283 # Extract the first word of "zip", so it can be a program name with args.
7284 set dummy zip; ac_word=$2
7285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287 if test "${ac_cv_path_ZIP+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 if test -n "$ZIP"; then
7315 { echo "$as_me:$LINENO: result: $ZIP" >&5
7316 echo "${ECHO_T}$ZIP" >&6; }
7318 { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7323 for ac_prog in ocamlc
7325 # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_path_OCAMLC+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 OCAMLC=$ac_cv_path_OCAMLC
7356 if test -n "$OCAMLC"; then
7357 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7358 echo "${ECHO_T}$OCAMLC" >&6; }
7360 { echo "$as_me:$LINENO: result: no" >&5
7361 echo "${ECHO_T}no" >&6; }
7365 test -n "$OCAMLC" && break
7368 for ac_prog in ocamlopt
7370 # Extract the first word of "$ac_prog", so it can be a program name with args.
7371 set dummy $ac_prog; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 OCAMLOPT=$ac_cv_path_OCAMLOPT
7401 if test -n "$OCAMLOPT"; then
7402 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7403 echo "${ECHO_T}$OCAMLOPT" >&6; }
7405 { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7410 test -n "$OCAMLOPT" && break
7413 for ac_prog in ocamldep
7415 # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 OCAMLDEP=$ac_cv_path_OCAMLDEP
7446 if test -n "$OCAMLDEP"; then
7447 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7448 echo "${ECHO_T}$OCAMLDEP" >&6; }
7450 { echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6; }
7455 test -n "$OCAMLDEP" && break
7458 for ac_prog in ocamldoc
7460 # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 OCAMLDOC=$ac_cv_path_OCAMLDOC
7491 if test -n "$OCAMLDOC"; then
7492 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7493 echo "${ECHO_T}$OCAMLDOC" >&6; }
7495 { echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6; }
7500 test -n "$OCAMLDOC" && break
7503 for ac_prog in gas as
7505 # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy $ac_prog; ac_word=$2
7507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509 if test "${ac_cv_path_GAS+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536 if test -n "$GAS"; then
7537 { echo "$as_me:$LINENO: result: $GAS" >&5
7538 echo "${ECHO_T}$GAS" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7545 test -n "$GAS" && break
7549 { echo "$as_me:$LINENO: checking for linker version" >&5
7550 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7551 if test "${llvm_cv_link_version+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 version_string="$(ld -v 2>&1 | head -1)"
7558 if (echo "$version_string" | grep -q "ld64"); then
7559 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7561 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7565 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7566 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7568 cat >>confdefs.h <<_ACEOF
7569 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7575 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7576 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7577 if test "${llvm_cv_link_use_r+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 CFLAGS="$CFLAGS -Wl,-R."
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } &&
7617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618 { (case "(($ac_try" in
7619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_try") 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_try") 2>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 llvm_cv_link_use_r=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7642 llvm_cv_link_use_r=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7657 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7658 if test "$llvm_cv_link_use_r" = yes ; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_LINK_R 1
7667 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7668 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7669 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679 CFLAGS="$CFLAGS -rdynamic"
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7695 rm -f conftest.$ac_objext conftest$ac_exeext
7696 if { (ac_try="$ac_link"
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_link") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7710 { (case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_try") 2>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest$ac_exeext'
7720 { (case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_try") 2>&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 llvm_cv_link_use_export_dynamic=yes
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 llvm_cv_link_use_export_dynamic=no
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7741 ac_cpp='$CPP $CPPFLAGS'
7742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7749 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7750 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_LINK_EXPORT_DYNAMIC 1
7759 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7760 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7761 if test "${llvm_cv_link_use_version_script+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 ac_cpp='$CPP $CPPFLAGS'
7766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772 # The following code is from the autoconf manual,
7773 # "11.13: Limitations of Usual Tools".
7774 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7775 # Use mktemp if possible; otherwise fall back on mkdir,
7776 # with $RANDOM to make collisions less likely.
7780 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7782 test -n "$tmp" && test -d "$tmp"
7784 tmp=$TMPDIR/foo$$-$RANDOM
7785 (umask 077 && mkdir "$tmp")
7788 echo "{" > "$tmp/export.map"
7789 echo " global: main;" >> "$tmp/export.map"
7790 echo " local: *;" >> "$tmp/export.map"
7791 echo "};" >> "$tmp/export.map"
7793 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7794 cat >conftest.$ac_ext <<_ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7824 { (case "(($ac_try" in
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_try") 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 llvm_cv_link_use_version_script=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 llvm_cv_link_use_version_script=no
7851 rm -f core conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7853 rm "$tmp/export.map"
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7865 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7866 if test "$llvm_cv_link_use_version_script" = yes ; then
7867 HAVE_LINK_VERSION_SCRIPT=1
7874 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7875 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7876 if test "${ac_cv_c_const+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7889 /* FIXME: Include the comments suggested by Paul. */
7891 /* Ultrix mips cc rejects this. */
7892 typedef int charset[2];
7894 /* SunOS 4.1.1 cc rejects this. */
7895 char const *const *ccp;
7897 /* NEC SVR4.0.2 mips cc rejects this. */
7898 struct point {int x, y;};
7899 static struct point const zero = {0,0};
7900 /* AIX XL C 1.02.0.0 rejects this.
7901 It does not let you subtract one const X* pointer from another in
7902 an arm of an if-expression whose if-part is not a constant
7904 const char *g = "string";
7905 ccp = &g + (g ? g-g : 0);
7906 /* HPUX 7.0 cc rejects these. */
7909 ccp = (char const *const *) p;
7910 { /* SCO 3.2v4 cc rejects this. */
7912 char const *s = 0 ? (char *) 0 : (char const *) 0;
7917 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7919 const int *foo = &x[0];
7922 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7923 typedef const int *iptr;
7927 { /* AIX XL C 1.02.0.0 rejects this saying
7928 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7929 struct s { int j; const int *ap[3]; };
7930 struct s *b; b->j = 5;
7932 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7936 return !x[0] && !zero.x;
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7958 { (case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_try") 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_try") 2>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7988 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7989 if test $ac_cv_c_const = no; then
7991 cat >>confdefs.h <<\_ACEOF
7998 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7999 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8000 if test "${ac_cv_path_GREP+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 # Extract the first word of "grep ggrep" to use in msg output
8004 if test -z "$GREP"; then
8005 set dummy grep ggrep; ac_prog_name=$2
8006 if test "${ac_cv_path_GREP+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 ac_path_GREP_found=false
8010 # Loop through the user's path and test for each of PROGNAME-LIST
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8015 test -z "$as_dir" && as_dir=.
8016 for ac_prog in grep ggrep; do
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8019 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8020 # Check for GNU ac_path_GREP and select it if it is found.
8021 # Check for GNU $ac_path_GREP
8022 case `"$ac_path_GREP" --version 2>&1` in
8024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8027 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8030 cat "conftest.in" "conftest.in" >"conftest.tmp"
8031 mv "conftest.tmp" "conftest.in"
8032 cp "conftest.in" "conftest.nl"
8033 echo 'GREP' >> "conftest.nl"
8034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8036 ac_count=`expr $ac_count + 1`
8037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8038 # Best one so far, save it but keep looking for a better one
8039 ac_cv_path_GREP="$ac_path_GREP"
8040 ac_path_GREP_max=$ac_count
8042 # 10*(2^10) chars as input seems more than enough
8043 test $ac_count -gt 10 && break
8045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8049 $ac_path_GREP_found && break 3
8059 GREP="$ac_cv_path_GREP"
8060 if test -z "$GREP"; then
8061 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8063 { (exit 1); exit 1; }; }
8067 ac_cv_path_GREP=$GREP
8072 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8073 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8074 GREP="$ac_cv_path_GREP"
8077 { echo "$as_me:$LINENO: checking for egrep" >&5
8078 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8079 if test "${ac_cv_path_EGREP+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8083 then ac_cv_path_EGREP="$GREP -E"
8085 # Extract the first word of "egrep" to use in msg output
8086 if test -z "$EGREP"; then
8087 set dummy egrep; ac_prog_name=$2
8088 if test "${ac_cv_path_EGREP+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 ac_path_EGREP_found=false
8092 # Loop through the user's path and test for each of PROGNAME-LIST
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8097 test -z "$as_dir" && as_dir=.
8098 for ac_prog in egrep; do
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8101 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8102 # Check for GNU ac_path_EGREP and select it if it is found.
8103 # Check for GNU $ac_path_EGREP
8104 case `"$ac_path_EGREP" --version 2>&1` in
8106 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8109 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8112 cat "conftest.in" "conftest.in" >"conftest.tmp"
8113 mv "conftest.tmp" "conftest.in"
8114 cp "conftest.in" "conftest.nl"
8115 echo 'EGREP' >> "conftest.nl"
8116 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8118 ac_count=`expr $ac_count + 1`
8119 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8120 # Best one so far, save it but keep looking for a better one
8121 ac_cv_path_EGREP="$ac_path_EGREP"
8122 ac_path_EGREP_max=$ac_count
8124 # 10*(2^10) chars as input seems more than enough
8125 test $ac_count -gt 10 && break
8127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8131 $ac_path_EGREP_found && break 3
8141 EGREP="$ac_cv_path_EGREP"
8142 if test -z "$EGREP"; then
8143 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8144 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8145 { (exit 1); exit 1; }; }
8149 ac_cv_path_EGREP=$EGREP
8155 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8156 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8157 EGREP="$ac_cv_path_EGREP"
8160 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } &&
8198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8199 { (case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_try") 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_try") 2>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 ac_cv_header_stdc=yes
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_cv_header_stdc=no
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 if test $ac_cv_header_stdc = yes; then
8229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8240 $EGREP "memchr" >/dev/null 2>&1; then
8243 ac_cv_header_stdc=no
8249 if test $ac_cv_header_stdc = yes; then
8250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8261 $EGREP "free" >/dev/null 2>&1; then
8264 ac_cv_header_stdc=no
8270 if test $ac_cv_header_stdc = yes; then
8271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8272 if test "$cross_compiling" = yes; then
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8283 #if ((' ' & 0x0FF) == 0x020)
8284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8287 # define ISLOWER(c) \
8288 (('a' <= (c) && (c) <= 'i') \
8289 || ('j' <= (c) && (c) <= 'r') \
8290 || ('s' <= (c) && (c) <= 'z'))
8291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8299 for (i = 0; i < 256; i++)
8300 if (XOR (islower (i), ISLOWER (i))
8301 || toupper (i) != TOUPPER (i))
8306 rm -f conftest$ac_exeext
8307 if { (ac_try="$ac_link"
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_link") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8328 echo "$as_me: program exited with status $ac_status" >&5
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_cv_header_stdc=no
8335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8343 if test $ac_cv_header_stdc = yes; then
8345 cat >>confdefs.h <<\_ACEOF
8346 #define STDC_HEADERS 1
8357 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8358 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8359 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8360 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 #include <sys/types.h>
8382 rm -f conftest.$ac_objext
8383 if { (ac_try="$ac_compile"
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389 (eval "$ac_compile") 2>conftest.er1
8391 grep -v '^ *+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8397 { (case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_try") 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 eval "$as_ac_Header=yes"
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 eval "$as_ac_Header=no"
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 ac_res=`eval echo '${'$as_ac_Header'}'`
8427 { echo "$as_me:$LINENO: result: $ac_res" >&5
8428 echo "${ECHO_T}$ac_res" >&6; }
8429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8434 ac_header_dirent=$ac_hdr; break
8438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8439 if test $ac_header_dirent = dirent.h; then
8440 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8441 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8442 if test "${ac_cv_search_opendir+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 ac_func_search_save_LIBS=$LIBS
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8453 /* Override any GCC internal prototype to avoid an error.
8454 Use char because int might match the return type of a GCC
8455 builtin and then its argument prototype would still apply. */
8468 for ac_lib in '' dir; do
8469 if test -z "$ac_lib"; then
8470 ac_res="none required"
8473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (ac_try="$ac_link"
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_link") 2>conftest.er1
8484 grep -v '^ *+' conftest.er1 >conftest.err
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8490 { (case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_try") 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8505 (eval "$ac_try") 2>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_search_opendir=$ac_res
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8517 rm -f core conftest.err conftest.$ac_objext \
8519 if test "${ac_cv_search_opendir+set}" = set; then
8523 if test "${ac_cv_search_opendir+set}" = set; then
8526 ac_cv_search_opendir=no
8529 LIBS=$ac_func_search_save_LIBS
8531 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8532 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8533 ac_res=$ac_cv_search_opendir
8534 if test "$ac_res" != no; then
8535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8540 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8542 if test "${ac_cv_search_opendir+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 ac_func_search_save_LIBS=$LIBS
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 /* Override any GCC internal prototype to avoid an error.
8554 Use char because int might match the return type of a GCC
8555 builtin and then its argument prototype would still apply. */
8568 for ac_lib in '' x; do
8569 if test -z "$ac_lib"; then
8570 ac_res="none required"
8573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8575 rm -f conftest.$ac_objext conftest$ac_exeext
8576 if { (ac_try="$ac_link"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_link") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590 { (case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_try") 2>&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest$ac_exeext'
8600 { (case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_try") 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 ac_cv_search_opendir=$ac_res
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8617 rm -f core conftest.err conftest.$ac_objext \
8619 if test "${ac_cv_search_opendir+set}" = set; then
8623 if test "${ac_cv_search_opendir+set}" = set; then
8626 ac_cv_search_opendir=no
8629 LIBS=$ac_func_search_save_LIBS
8631 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8632 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8633 ac_res=$ac_cv_search_opendir
8634 if test "$ac_res" != no; then
8635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8641 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8651 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8652 inttypes.h stdint.h unistd.h
8654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8668 #include <$ac_header>
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_compile") 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 eval "$as_ac_Header=yes"
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 eval "$as_ac_Header=no"
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 ac_res=`eval echo '${'$as_ac_Header'}'`
8715 { echo "$as_me:$LINENO: result: $ac_res" >&5
8716 echo "${ECHO_T}$ac_res" >&6; }
8717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8718 cat >>confdefs.h <<_ACEOF
8719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8728 for ac_header in dlfcn.h
8730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 ac_res=`eval echo '${'$as_ac_Header'}'`
8738 { echo "$as_me:$LINENO: result: $ac_res" >&5
8739 echo "${ECHO_T}$ac_res" >&6; }
8741 # Is the header compilable?
8742 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 #include <$ac_header>
8753 rm -f conftest.$ac_objext
8754 if { (ac_try="$ac_compile"
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_try") 2>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_try") 2>&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
8787 ac_header_compiler=yes
8789 echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 ac_header_compiler=no
8795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8797 echo "${ECHO_T}$ac_header_compiler" >&6; }
8799 # Is the header present?
8800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 #include <$ac_header>
8810 if { (ac_try="$ac_cpp conftest.$ac_ext"
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1 >conftest.err
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } >/dev/null; then
8823 if test -s conftest.err; then
8824 ac_cpp_err=$ac_c_preproc_warn_flag
8825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8832 if test -z "$ac_cpp_err"; then
8833 ac_header_preproc=yes
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_header_preproc=no
8841 rm -f conftest.err conftest.$ac_ext
8842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8843 echo "${ECHO_T}$ac_header_preproc" >&6; }
8845 # So? What about this header?
8846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8852 ac_header_preproc=yes
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8868 ## ------------------------------------ ##
8869 ## Report this to http://llvm.org/bugs/ ##
8870 ## ------------------------------------ ##
8872 ) | sed "s/^/$as_me: WARNING: /" >&2
8875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 eval "$as_ac_Header=\$ac_header_preproc"
8882 ac_res=`eval echo '${'$as_ac_Header'}'`
8883 { echo "$as_me:$LINENO: result: $ac_res" >&5
8884 echo "${ECHO_T}$ac_res" >&6; }
8887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8888 cat >>confdefs.h <<_ACEOF
8889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896 # Check whether --enable-ltdl-install was given.
8897 if test "${enable_ltdl_install+set}" = set; then
8898 enableval=$enable_ltdl_install;
8904 if test x"${enable_ltdl_install-no}" != xno; then
8906 INSTALL_LTDL_FALSE='#'
8908 INSTALL_LTDL_TRUE='#'
8914 if test x"${enable_ltdl_convenience-no}" != xno; then
8915 CONVENIENCE_LTDL_TRUE=
8916 CONVENIENCE_LTDL_FALSE='#'
8918 CONVENIENCE_LTDL_TRUE='#'
8919 CONVENIENCE_LTDL_FALSE=
8923 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8926 libname_spec='lib$name'
8934 shlibpath_overrides_runpath=unknown
8936 dynamic_linker="$host_os ld.so"
8937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8938 if test "$GCC" = yes; then
8939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8940 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8941 # if the path contains ";" then we assume it to be the separator
8942 # otherwise default to the standard path separator (i.e. ":") - it is
8943 # assumed that no part of a normal pathname contains ";" but that should
8944 # okay in the real world where ";" in dirpaths is itself problematic.
8945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8952 need_lib_prefix=unknown
8953 hardcode_into_libs=no
8955 # when you set need_version to no, make sure it does not cause -set_version
8956 # flags to be left without arguments
8957 need_version=unknown
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8963 shlibpath_var=LIBPATH
8965 # AIX 3 has no versioning support, so we append a major version to the name.
8966 soname_spec='${libname}${release}${shared_ext}$major'
8973 hardcode_into_libs=yes
8974 if test "$host_cpu" = ia64; then
8975 # AIX 5 supports IA64
8976 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8977 shlibpath_var=LD_LIBRARY_PATH
8979 # With GCC up to 2.95.x, collect2 would create an import file
8980 # for dependence libraries. The import file would start with
8981 # the line `#! .'. This would cause the generated library to
8982 # depend on `.', always an invalid library. This was fixed in
8983 # development snapshots of GCC prior to 3.0.
8985 aix4 | aix4.[01] | aix4.[01].*)
8986 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8988 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8995 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8996 # soname into executable. Probably we can add versioning support to
8997 # collect2, so additional links can be useful in future.
8998 if test "$aix_use_runtimelinking" = yes; then
8999 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9000 # instead of lib<name>.a to let people know that these are not
9001 # typical AIX shared libraries.
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9004 # We preserve .a as extension for shared libraries through AIX4.2
9005 # and later when we are not doing run time linking.
9006 library_names_spec='${libname}${release}.a $libname.a'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LIBPATH
9014 library_names_spec='$libname.ixlibrary $libname.a'
9015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9016 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'
9020 library_names_spec='${libname}${shared_ext}'
9021 dynamic_linker="$host_os ld.so"
9022 shlibpath_var=LIBRARY_PATH
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9034 # the default ld.so.conf also contains /usr/contrib/lib and
9035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9036 # libtool to hard-code these into programs
9039 cygwin* | mingw* | pw32*)
9040 version_type=windows
9045 case $GCC,$host_os in
9046 yes,cygwin* | yes,mingw* | yes,pw32*)
9047 library_names_spec='$libname.dll.a'
9048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9049 postinstall_cmds='base_file=`basename \${file}`~
9050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9051 dldir=$destdir/`dirname \$dlpath`~
9052 test -d \$dldir || mkdir -p \$dldir~
9053 $install_prog $dir/$dlname \$dldir/$dlname~
9054 chmod a+x \$dldir/$dlname'
9055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9056 dlpath=$dir/\$dldll~
9058 shlibpath_overrides_runpath=yes
9062 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9063 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9064 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9067 # MinGW DLLs use traditional 'lib' prefix
9068 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9070 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9071 # It is most probably a Windows format PATH printed by
9072 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9073 # path with ; separators, and with drive letters. We can handle the
9074 # drive letters (cygwin fileutils understands them), so leave them,
9075 # especially as we might pass files found there to a mingw objdump,
9076 # which wouldn't understand a cygwinified path. Ahh.
9077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9083 # pw32 DLLs use 'pw' prefix rather than 'lib'
9084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9093 dynamic_linker='Win32 ld.exe'
9094 # FIXME: first we should search . and the directory the executable is in
9098 darwin* | rhapsody*)
9099 dynamic_linker="$host_os dyld"
9103 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9104 soname_spec='${libname}${release}${major}$shared_ext'
9105 shlibpath_overrides_runpath=yes
9106 shlibpath_var=DYLD_LIBRARY_PATH
9107 shrext_cmds='.dylib'
9108 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9109 if test "$GCC" = yes; then
9110 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"`
9112 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=no
9138 hardcode_into_libs=yes
9139 dynamic_linker='GNU ld.so'
9142 freebsd* | dragonfly*)
9143 # DragonFly does not have aout. When/if they implement a new
9144 # versioning mechanism, adjust this.
9145 if test -x /usr/bin/objformat; then
9146 objformat=`/usr/bin/objformat`
9149 freebsd[123].*) objformat=aout ;;
9153 version_type=freebsd-$objformat
9154 case $version_type in
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9165 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9170 freebsd3.[01]* | freebsdelf3.[01]*)
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9176 shlibpath_overrides_runpath=no
9177 hardcode_into_libs=yes
9179 freebsd*) # from 4.6 on
9180 shlibpath_overrides_runpath=yes
9181 hardcode_into_libs=yes
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 hardcode_into_libs=yes
9196 hpux9* | hpux10* | hpux11*)
9197 # Give a soname corresponding to the major version so that dld.sl refuses to
9198 # link against other versions.
9205 hardcode_into_libs=yes
9206 dynamic_linker="$host_os dld.so"
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 if test "X$HPUX_IA64_MODE" = X32; then
9212 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9214 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9220 hardcode_into_libs=yes
9221 dynamic_linker="$host_os dld.sl"
9222 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 soname_spec='${libname}${release}${shared_ext}$major'
9226 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9231 dynamic_linker="$host_os dld.sl"
9232 shlibpath_var=SHLIB_PATH
9233 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 soname_spec='${libname}${release}${shared_ext}$major'
9238 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9239 postinstall_cmds='chmod 555 $lib'
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9249 shlibpath_var=LD_LIBRARY_PATH
9250 shlibpath_overrides_runpath=no
9251 hardcode_into_libs=yes
9254 irix5* | irix6* | nonstopux*)
9256 nonstopux*) version_type=nonstopux ;;
9258 if test "$lt_cv_prog_gnu_ld" = yes; then
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9269 irix5* | nonstopux*)
9273 case $LD in # libtool.m4 will add one of these switches to LD
9274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9275 libsuff= shlibsuff= libmagic=32-bit;;
9276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9277 libsuff=32 shlibsuff=N32 libmagic=N32;;
9278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9280 *) libsuff= shlibsuff= libmagic=never-match;;
9284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9285 shlibpath_overrides_runpath=no
9286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9288 hardcode_into_libs=yes
9291 # No shared lib support for Linux oldld, aout, or coff.
9292 linux*oldld* | linux*aout* | linux*coff*)
9296 # This must be Linux ELF.
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=no
9306 # This implies no fast_install, which is unacceptable.
9307 # Some rework will be needed to allow for fast_install
9308 # before this can be enabled.
9309 hardcode_into_libs=yes
9311 # Append ld.so.conf contents to the search path
9312 if test -f /etc/ld.so.conf; then
9313 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' ' '`
9314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9317 # We used to test for /lib/ld.so.1 and disable shared libraries on
9318 # powerpc, because MkLinux only supported shared libraries with the
9319 # GNU dynamic linker. Since this was broken with cross compilers,
9320 # most powerpc-linux boxes support dynamic linking these days and
9321 # people can always --disable-shared, the test was removed, and we
9322 # assume the GNU/Linux dynamic linker is in use.
9323 dynamic_linker='GNU/Linux ld.so'
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 shlibpath_overrides_runpath=no
9334 hardcode_into_libs=yes
9335 dynamic_linker='GNU ld.so'
9342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9345 dynamic_linker='NetBSD (a.out) ld.so'
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 dynamic_linker='NetBSD ld.elf_so'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 shlibpath_overrides_runpath=yes
9353 hardcode_into_libs=yes
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 shlibpath_overrides_runpath=yes
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 shlibpath_overrides_runpath=yes
9375 sys_lib_dlsearch_path_spec="/usr/lib"
9377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9380 *) need_version=no ;;
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9387 openbsd2.[89] | openbsd2.[89].*)
9388 shlibpath_overrides_runpath=no
9391 shlibpath_overrides_runpath=yes
9395 shlibpath_overrides_runpath=yes
9400 libname_spec='$name'
9403 library_names_spec='$libname${shared_ext} $libname.a'
9404 dynamic_linker='OS/2 ld.exe'
9405 shlibpath_var=LIBPATH
9408 osf3* | osf4* | osf5*)
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 shlibpath_overrides_runpath=yes
9427 hardcode_into_libs=yes
9428 # ldd complains unless libraries are executable
9429 postinstall_cmds='chmod +x $lib'
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 shlibpath_overrides_runpath=yes
9438 if test "$with_gnu_ld" = yes; then
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 case $host_vendor in
9451 shlibpath_overrides_runpath=no
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9454 runpath_var=LD_RUN_PATH
9462 shlibpath_overrides_runpath=no
9463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9469 if test -d /usr/nec ;then
9471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9472 soname_spec='$libname${shared_ext}.$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9478 version_type=freebsd-elf
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 hardcode_into_libs=yes
9485 if test "$with_gnu_ld" = yes; then
9486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9487 shlibpath_overrides_runpath=no
9489 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9490 shlibpath_overrides_runpath=yes
9493 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9497 sys_lib_dlsearch_path_spec='/usr/lib'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9511 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9512 echo "${ECHO_T}$dynamic_linker" >&6; }
9513 test "$dynamic_linker" = no && can_build_shared=no
9515 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9516 if test "$GCC" = yes; then
9517 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9521 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9522 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9523 if test "${libltdl_cv_shlibext+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 eval libltdl_cv_shlibext=$shrext_cmds
9531 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9532 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9533 if test -n "$libltdl_cv_shlibext"; then
9535 cat >>confdefs.h <<_ACEOF
9536 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9542 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9543 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9544 if test "${libltdl_cv_sys_search_path+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9550 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9551 if test -n "$libltdl_cv_sys_search_path"; then
9553 for dir in $libltdl_cv_sys_search_path; do
9554 if test -z "$sys_search_path"; then
9555 sys_search_path="$dir"
9557 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9561 cat >>confdefs.h <<_ACEOF
9562 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9567 { echo "$as_me:$LINENO: checking for objdir" >&5
9568 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9569 if test "${libltdl_cv_objdir+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 libltdl_cv_objdir="$objdir"
9573 if test -n "$objdir"; then
9576 rm -f .libs 2>/dev/null
9577 mkdir .libs 2>/dev/null
9578 if test -d .libs; then
9579 libltdl_cv_objdir=.libs
9581 # MS-DOS does not allow filenames that begin with a dot.
9582 libltdl_cv_objdir=_libs
9584 rmdir .libs 2>/dev/null
9588 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9589 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9591 cat >>confdefs.h <<_ACEOF
9592 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9600 # Check for command to grab the raw symbol name followed by C symbol from nm.
9601 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9607 # These are sane defaults that work on at least a few old systems.
9608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9610 # Character class describing NM global symbol codes.
9611 symcode='[BCDEGRST]'
9613 # Regexp to match symbols that can be accessed directly from C.
9614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9616 # Transform an extracted symbol line into a proper C declaration
9617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9619 # Transform an extracted symbol line into symbol name and symbol address
9620 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'"
9622 # Define system-specific variables.
9627 cygwin* | mingw* | pw32*)
9628 symcode='[ABCDGISTW]'
9630 hpux*) # Its linker distinguishes data from code symbols
9631 if test "$host_cpu" = ia64; then
9632 symcode='[ABCDEGRST]'
9634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9635 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'"
9638 if test "$host_cpu" = ia64; then
9639 symcode='[ABCDGIRSTW]'
9640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9641 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'"
9645 symcode='[BCDEGRST]'
9648 symcode='[BCDEGQRST]'
9659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9667 # Handle CRLF in mingw tool chain
9671 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9675 # If we're using GNU nm, then use its standard symbol codes.
9676 case `$NM -V 2>&1` in
9677 *GNU* | *'with BFD'*)
9678 symcode='[ABCDGIRSTW]' ;;
9681 # Try without a prefix undercore, then with it.
9682 for ac_symprfx in "" "_"; do
9684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9685 symxfrm="\\1 $ac_symprfx\\2 \\2"
9687 # Write the raw and C identifiers.
9688 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9690 # Check to see that the pipe works correctly.
9694 cat > conftest.$ac_ext <<EOF
9699 void nm_test_func(){}
9703 int main(){nm_test_var='a';nm_test_func();return(0);}
9706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707 (eval $ac_compile) 2>&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; then
9711 # Now try to grab the symbols.
9713 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9714 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && test -s "$nlist"; then
9718 # Try sorting and uniquifying the output.
9719 if sort "$nlist" | uniq > "$nlist"T; then
9720 mv -f "$nlist"T "$nlist"
9725 # Make sure that we snagged all the symbols we need.
9726 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9727 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9728 cat <<EOF > conftest.$ac_ext
9734 # Now generate the symbol file.
9735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9737 cat <<EOF >> conftest.$ac_ext
9738 #if defined (__STDC__) && __STDC__
9739 # define lt_ptr_t void *
9741 # define lt_ptr_t char *
9745 /* The mapping between symbol names and symbols. */
9750 lt_preloaded_symbols[] =
9753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9754 cat <<\EOF >> conftest.$ac_ext
9762 # Now try linking the two files.
9763 mv conftest.$ac_objext conftstm.$ac_objext
9764 lt_save_LIBS="$LIBS"
9765 lt_save_CFLAGS="$CFLAGS"
9766 LIBS="conftstm.$ac_objext"
9767 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9775 LIBS="$lt_save_LIBS"
9776 CFLAGS="$lt_save_CFLAGS"
9778 echo "cannot find nm_test_func in $nlist" >&5
9781 echo "cannot find nm_test_var in $nlist" >&5
9784 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9787 echo "$progname: failed program was:" >&5
9788 cat conftest.$ac_ext >&5
9790 rm -f conftest* conftst*
9792 # Do not use the global_symbol_pipe unless it works.
9793 if test "$pipe_works" = yes; then
9796 lt_cv_sys_global_symbol_pipe=
9802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9803 lt_cv_sys_global_symbol_to_cdecl=
9805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9806 { echo "$as_me:$LINENO: result: failed" >&5
9807 echo "${ECHO_T}failed" >&6; }
9809 { echo "$as_me:$LINENO: result: ok" >&5
9810 echo "${ECHO_T}ok" >&6; }
9814 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9815 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9816 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9820 libltdl_cv_preloaded_symbols=yes
9822 libltdl_cv_preloaded_symbols=no
9826 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9827 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9828 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9830 cat >>confdefs.h <<\_ACEOF
9831 #define HAVE_PRELOADED_SYMBOLS 1
9839 ac_cpp='$CPP $CPPFLAGS'
9840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9845 { echo "$as_me:$LINENO: checking for shl_load" >&5
9846 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_shl_load+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9858 #define shl_load innocuous_shl_load
9860 /* System header to define __stub macros and hopefully few prototypes,
9861 which can conflict with char shl_load (); below.
9862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9863 <limits.h> exists even on freestanding compilers. */
9866 # include <limits.h>
9868 # include <assert.h>
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9880 /* The GNU C library defines this for functions which it implements
9881 to always fail with ENOSYS. Some functions are actually named
9882 something starting with __ and the normal name is an alias. */
9883 #if defined __stub_shl_load || defined __stub___shl_load
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } &&
9909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9910 { (case "(($ac_try" in
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_try") 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (case "(($ac_try" in
9921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922 *) ac_try_echo=$ac_try;;
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925 (eval "$ac_try") 2>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_func_shl_load=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_cv_func_shl_load=no
9937 rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9941 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9942 if test $ac_cv_func_shl_load = yes; then
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_SHL_LOAD 1
9949 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9950 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9951 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 ac_check_lib_save_LIBS=$LIBS
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9963 /* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_lib_dld_shl_load=yes
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 ac_cv_lib_dld_shl_load=no
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 LIBS=$ac_check_lib_save_LIBS
10024 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10025 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10026 if test $ac_cv_lib_dld_shl_load = yes; then
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_SHL_LOAD 1
10032 LIBADD_DL="$LIBADD_DL -ldld"
10034 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 ac_check_lib_save_LIBS=$LIBS
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 /* Override any GCC internal prototype to avoid an error.
10049 Use char because int might match the return type of a GCC
10050 builtin and then its argument prototype would still apply. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_link") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10078 { (case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_try") 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; } &&
10087 { ac_try='test -s conftest$ac_exeext'
10088 { (case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_try") 2>&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_lib_dl_dlopen=yes
10099 echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 ac_cv_lib_dl_dlopen=no
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10111 if test $ac_cv_lib_dl_dlopen = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_LIBDL 1
10117 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 # include <dlfcn.h>
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (ac_try="$ac_link"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_link") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest$ac_exeext'
10162 { (case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_try") 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_LIBDL 1
10175 libltdl_cv_func_dlopen="yes"
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-lsvld $LIBS"
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
10218 grep -v '^ *+' conftest.er1 >conftest.err
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10224 { (case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_try") 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest$ac_exeext'
10234 { (case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_lib_svld_dlopen=yes
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10248 ac_cv_lib_svld_dlopen=no
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10255 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10256 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10257 if test $ac_cv_lib_svld_dlopen = yes; then
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HAVE_LIBDL 1
10263 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10265 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10266 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS=$LIBS
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10289 return dld_link ();
10294 rm -f conftest.$ac_objext conftest$ac_exeext
10295 if { (ac_try="$ac_link"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_link") 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_lib_dld_dld_link=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 ac_cv_lib_dld_dld_link=no
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10344 cat >>confdefs.h <<\_ACEOF
10348 LIBADD_DL="$LIBADD_DL -ldld"
10350 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10351 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10352 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363 #define _dyld_func_lookup innocuous__dyld_func_lookup
10365 /* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char _dyld_func_lookup (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10371 # include <limits.h>
10373 # include <assert.h>
10376 #undef _dyld_func_lookup
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10384 char _dyld_func_lookup ();
10385 /* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10395 return _dyld_func_lookup ();
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_func__dyld_func_lookup=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_func__dyld_func_lookup=no
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10446 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10447 if test $ac_cv_func__dyld_func_lookup = yes; then
10449 cat >>confdefs.h <<\_ACEOF
10450 #define HAVE_DYLD 1
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10476 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10478 lt_save_LIBS="$LIBS"
10479 LIBS="$LIBS $LIBADD_DL"
10481 for ac_func in dlerror
10483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cat >conftest.$ac_ext <<_ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10497 #define $ac_func innocuous_$ac_func
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char $ac_func (); below.
10501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502 <limits.h> exists even on freestanding compilers. */
10505 # include <limits.h>
10507 # include <assert.h>
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined __stub_$ac_func || defined __stub___$ac_func
10529 return $ac_func ();
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 eval "$as_ac_var=yes"
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 eval "$as_ac_var=no"
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10579 ac_res=`eval echo '${'$as_ac_var'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10590 LIBS="$lt_save_LIBS"
10593 ac_cpp='$CPP $CPPFLAGS'
10594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10601 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10602 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 ac_cv_sys_symbol_underscore=no
10606 cat > conftest.$ac_ext <<EOF
10607 void nm_test_func(){}
10608 int main(){nm_test_func;return 0;}
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; then
10615 # Now try to grab the symbols.
10616 ac_nlist=conftest.nm
10617 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10618 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && test -s "$ac_nlist"; then
10622 # See whether the symbols have a leading underscore.
10623 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10624 ac_cv_sys_symbol_underscore=yes
10626 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10629 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10633 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10636 echo "configure: failed program was:" >&5
10642 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10643 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10646 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10647 if test x"$libltdl_cv_func_dlopen" = xyes ||
10648 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10649 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10650 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10651 if test "${libltdl_cv_need_uscore+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 libltdl_cv_need_uscore=unknown
10656 LIBS="$LIBS $LIBADD_DL"
10657 if test "$cross_compiling" = yes; then :
10658 libltdl_cv_need_uscore=cross
10660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10661 lt_status=$lt_dlunknown
10662 cat > conftest.$ac_ext <<EOF
10663 #line 10663 "configure"
10664 #include "confdefs.h"
10673 # define LT_DLGLOBAL RTLD_GLOBAL
10676 # define LT_DLGLOBAL DL_GLOBAL
10678 # define LT_DLGLOBAL 0
10682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10683 find out it does not work in some platform. */
10684 #ifndef LT_DLLAZY_OR_NOW
10686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10689 # define LT_DLLAZY_OR_NOW DL_LAZY
10692 # define LT_DLLAZY_OR_NOW RTLD_NOW
10695 # define LT_DLLAZY_OR_NOW DL_NOW
10697 # define LT_DLLAZY_OR_NOW 0
10705 extern "C" void exit (int);
10708 void fnord() { int i=42;}
10711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10712 int status = $lt_dlunknown;
10716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10717 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10718 /* dlclose (self); */
10726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10727 (eval $ac_link) 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10731 (./conftest; exit; ) >&5 2>/dev/null
10733 case x$lt_status in
10734 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10735 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10736 x$lt_dlunknown|x*) ;;
10739 # compilation failed
10748 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10749 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10753 if test x"$libltdl_cv_need_uscore" = xyes; then
10755 cat >>confdefs.h <<\_ACEOF
10756 #define NEED_USCORE 1
10762 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10763 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10764 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 # PORTME does your system automatically load deplibs for dlopen?
10768 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10769 # For now, we just catch OSes we know something about -- in the
10770 # future, we'll try test this programmatically.
10771 libltdl_cv_sys_dlopen_deplibs=unknown
10773 aix3*|aix4.1.*|aix4.2.*)
10774 # Unknown whether this is true for these versions of AIX, but
10775 # we want this `case' here to explicitly catch those versions.
10776 libltdl_cv_sys_dlopen_deplibs=unknown
10779 libltdl_cv_sys_dlopen_deplibs=yes
10782 # Assuming the user has installed a libdl from somewhere, this is true
10783 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10784 libltdl_cv_sys_dlopen_deplibs=yes
10786 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10787 # GNU and its variants, using gnu ld.so (Glibc)
10788 libltdl_cv_sys_dlopen_deplibs=yes
10791 libltdl_cv_sys_dlopen_deplibs=yes
10794 libltdl_cv_sys_dlopen_deplibs=yes
10796 irix[12345]*|irix6.[01]*)
10797 # Catch all versions of IRIX before 6.2, and indicate that we don't
10798 # know how it worked for any of those versions.
10799 libltdl_cv_sys_dlopen_deplibs=unknown
10802 # The case above catches anything before 6.2, and it's known that
10803 # at 6.2 and later dlopen does load deplibs.
10804 libltdl_cv_sys_dlopen_deplibs=yes
10807 libltdl_cv_sys_dlopen_deplibs=yes
10810 libltdl_cv_sys_dlopen_deplibs=yes
10813 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10814 # it did *not* use an RPATH in a shared library to find objects the
10815 # library depends on, so we explicitly say `no'.
10816 libltdl_cv_sys_dlopen_deplibs=no
10818 osf5.0|osf5.0a|osf5.1)
10819 # dlopen *does* load deplibs and with the right loader patch applied
10820 # it even uses RPATH in a shared library to search for shared objects
10821 # that the library depends on, but there's no easy way to know if that
10822 # patch is installed. Since this is the case, all we can really
10823 # say is unknown -- it depends on the patch being installed. If
10824 # it is, this changes to `yes'. Without it, it would be `no'.
10825 libltdl_cv_sys_dlopen_deplibs=unknown
10828 # the two cases above should catch all versions of osf <= 5.1. Read
10829 # the comments above for what we know about them.
10830 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10831 # is used to find them so we can finally say `yes'.
10832 libltdl_cv_sys_dlopen_deplibs=yes
10835 libltdl_cv_sys_dlopen_deplibs=yes
10837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10838 libltdl_cv_sys_dlopen_deplibs=yes
10843 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10844 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10845 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define LTDL_DLOPEN_DEPLIBS 1
10854 for ac_header in argz.h
10856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 ac_res=`eval echo '${'$as_ac_Header'}'`
10864 { echo "$as_me:$LINENO: result: $ac_res" >&5
10865 echo "${ECHO_T}$ac_res" >&6; }
10867 # Is the header compilable?
10868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 #include <$ac_header>
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest.$ac_objext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_header_compiler=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 ac_header_compiler=no
10921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10923 echo "${ECHO_T}$ac_header_compiler" >&6; }
10925 # Is the header present?
10926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10928 cat >conftest.$ac_ext <<_ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 #include <$ac_header>
10936 if { (ac_try="$ac_cpp conftest.$ac_ext"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10944 grep -v '^ *+' conftest.er1 >conftest.err
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } >/dev/null; then
10949 if test -s conftest.err; then
10950 ac_cpp_err=$ac_c_preproc_warn_flag
10951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10958 if test -z "$ac_cpp_err"; then
10959 ac_header_preproc=yes
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_header_preproc=no
10967 rm -f conftest.err conftest.$ac_ext
10968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10969 echo "${ECHO_T}$ac_header_preproc" >&6; }
10971 # So? What about this header?
10972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10978 ac_header_preproc=yes
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10994 ## ------------------------------------ ##
10995 ## Report this to http://llvm.org/bugs/ ##
10996 ## ------------------------------------ ##
10998 ) | sed "s/^/$as_me: WARNING: /" >&2
11001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 eval "$as_ac_Header=\$ac_header_preproc"
11008 ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010 echo "${ECHO_T}$ac_res" >&6; }
11013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11014 cat >>confdefs.h <<_ACEOF
11015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11023 { echo "$as_me:$LINENO: checking for error_t" >&5
11024 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11025 if test "${ac_cv_type_error_t+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11038 typedef error_t ac__type_new_;
11042 if ((ac__type_new_ *) 0)
11044 if (sizeof (ac__type_new_))
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_compile") 2>conftest.er1
11059 grep -v '^ *+' conftest.er1 >conftest.err
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest.$ac_objext'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
11084 ac_cv_type_error_t=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_cv_type_error_t=no
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11095 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11096 if test $ac_cv_type_error_t = yes; then
11098 cat >>confdefs.h <<_ACEOF
11099 #define HAVE_ERROR_T 1
11105 cat >>confdefs.h <<\_ACEOF
11106 #define error_t int
11117 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11133 #define $ac_func innocuous_$ac_func
11135 /* System header to define __stub macros and hopefully few prototypes,
11136 which can conflict with char $ac_func (); below.
11137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11138 <limits.h> exists even on freestanding compilers. */
11141 # include <limits.h>
11143 # include <assert.h>
11148 /* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11155 /* The GNU C library defines this for functions which it implements
11156 to always fail with ENOSYS. Some functions are actually named
11157 something starting with __ and the normal name is an alias. */
11158 #if defined __stub_$ac_func || defined __stub___$ac_func
11165 return $ac_func ();
11170 rm -f conftest.$ac_objext conftest$ac_exeext
11171 if { (ac_try="$ac_link"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_link") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1 >conftest.err
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } &&
11184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11185 { (case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_try") 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try='test -s conftest$ac_exeext'
11195 { (case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_try") 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 eval "$as_ac_var=yes"
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 eval "$as_ac_var=no"
11212 rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11215 ac_res=`eval echo '${'$as_ac_var'}'`
11216 { echo "$as_me:$LINENO: result: $ac_res" >&5
11217 echo "${ECHO_T}$ac_res" >&6; }
11218 if test `eval echo '${'$as_ac_var'}'` = yes; then
11219 cat >>confdefs.h <<_ACEOF
11220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 for ac_header in errno.h malloc.h memory.h unistd.h
11250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 ac_res=`eval echo '${'$as_ac_Header'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11261 # Is the header compilable?
11262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11264 cat >conftest.$ac_ext <<_ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h. */
11270 $ac_includes_default
11271 #include <$ac_header>
11273 rm -f conftest.$ac_objext
11274 if { (ac_try="$ac_compile"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_compile") 2>conftest.er1
11282 grep -v '^ *+' conftest.er1 >conftest.err
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (case "(($ac_try" in
11299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_try") 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_header_compiler=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_compiler=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11352 if test -z "$ac_cpp_err"; then
11353 ac_header_preproc=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_preproc=no
11361 rm -f conftest.err conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11363 echo "${ECHO_T}$ac_header_preproc" >&6; }
11365 # So? What about this header?
11366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11372 ac_header_preproc=yes
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388 ## ------------------------------------ ##
11389 ## Report this to http://llvm.org/bugs/ ##
11390 ## ------------------------------------ ##
11392 ) | sed "s/^/$as_me: WARNING: /" >&2
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 eval "$as_ac_Header=\$ac_header_preproc"
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403 { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 for ac_header in mach-o/dyld.h
11419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 ac_res=`eval echo '${'$as_ac_Header'}'`
11427 { echo "$as_me:$LINENO: result: $ac_res" >&5
11428 echo "${ECHO_T}$ac_res" >&6; }
11430 # Is the header compilable?
11431 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11433 cat >conftest.$ac_ext <<_ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 $ac_includes_default
11440 #include <$ac_header>
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_header_compiler=yes
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_compiler=no
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11486 echo "${ECHO_T}$ac_header_compiler" >&6; }
11488 # Is the header present?
11489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h. */
11497 #include <$ac_header>
11499 if { (ac_try="$ac_cpp conftest.$ac_ext"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } >/dev/null; then
11512 if test -s conftest.err; then
11513 ac_cpp_err=$ac_c_preproc_warn_flag
11514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11521 if test -z "$ac_cpp_err"; then
11522 ac_header_preproc=yes
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 ac_header_preproc=no
11530 rm -f conftest.err conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11532 echo "${ECHO_T}$ac_header_preproc" >&6; }
11534 # So? What about this header?
11535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11541 ac_header_preproc=yes
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11557 ## ------------------------------------ ##
11558 ## Report this to http://llvm.org/bugs/ ##
11559 ## ------------------------------------ ##
11561 ) | sed "s/^/$as_me: WARNING: /" >&2
11564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 eval "$as_ac_Header=\$ac_header_preproc"
11571 ac_res=`eval echo '${'$as_ac_Header'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11577 cat >>confdefs.h <<_ACEOF
11578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11589 for ac_func in closedir opendir readdir
11591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11605 #define $ac_func innocuous_$ac_func
11607 /* System header to define __stub macros and hopefully few prototypes,
11608 which can conflict with char $ac_func (); below.
11609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610 <limits.h> exists even on freestanding compilers. */
11613 # include <limits.h>
11615 # include <assert.h>
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11627 /* The GNU C library defines this for functions which it implements
11628 to always fail with ENOSYS. Some functions are actually named
11629 something starting with __ and the normal name is an alias. */
11630 #if defined __stub_$ac_func || defined __stub___$ac_func
11637 return $ac_func ();
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646 *) ac_try_echo=$ac_try;;
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649 (eval "$ac_link") 2>conftest.er1
11651 grep -v '^ *+' conftest.er1 >conftest.err
11653 cat conftest.err >&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657 { (case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_try") 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest$ac_exeext'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 eval "$as_ac_var=yes"
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 eval "$as_ac_var=no"
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11687 ac_res=`eval echo '${'$as_ac_var'}'`
11688 { echo "$as_me:$LINENO: result: $ac_res" >&5
11689 echo "${ECHO_T}$ac_res" >&6; }
11690 if test `eval echo '${'$as_ac_var'}'` = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11700 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11701 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11714 if test "$GCC" != "yes" && test "$ICC" != "yes"
11716 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11717 echo "$as_me: error: gcc|icc required but not found" >&2;}
11718 { (exit 1); exit 1; }; }
11721 if test "$GXX" != "yes" && test "$IXX" != "yes"
11723 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11724 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11725 { (exit 1); exit 1; }; }
11728 if test "$GCC" = "yes"
11730 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11738 #if !defined(__GNUC__) || __GNUC__ < 3
11739 #error Unsupported GCC version
11744 rm -f conftest.$ac_objext
11745 if { (ac_try="$ac_compile"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_compile") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest.$ac_objext'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11784 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11785 { (exit 1); exit 1; }; }
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11791 if test -z "$llvm_cv_gnu_make_command"
11793 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11794 echo "$as_me: error: GNU Make required but not found" >&2;}
11795 { (exit 1); exit 1; }; }
11798 { echo "$as_me:$LINENO: result: ok" >&5
11799 echo "${ECHO_T}ok" >&6; }
11801 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11802 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11803 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11805 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11807 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11811 NO_MAYBE_UNINITIALIZED=
11812 if test "$GXX" = "yes"
11814 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11816 if test -z "$NO_MAYBE_UNINITIALIZED"
11818 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11822 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11823 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11826 # Check whether --with-python was given.
11827 if test "${with_python+set}" = set; then
11828 withval=$with_python; PYTHON="$withval"
11832 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11833 { echo "$as_me:$LINENO: checking for python" >&5
11834 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11835 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11836 echo "${ECHO_T}user defined: $with_python" >&6; }
11838 if test -n "$PYTHON" ; then
11839 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11840 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11843 # Extract the first word of "python python2 python26", so it can be a program name with args.
11844 set dummy python python2 python26; ac_word=$2
11845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11847 if test "${ac_cv_path_PYTHON+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11859 test -z "$as_dir" && as_dir=.
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11862 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11871 echo "${ECHO_T}not found" >&6; }
11872 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11873 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11874 { (exit 1); exit 1; }; }"
11878 PYTHON=$ac_cv_path_PYTHON
11879 if test -n "$PYTHON"; then
11880 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11881 echo "${ECHO_T}$PYTHON" >&6; }
11883 { echo "$as_me:$LINENO: result: no" >&5
11884 echo "${ECHO_T}no" >&6; }
11890 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11891 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11892 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11893 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11894 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11895 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11896 if test "$ac_python_version_major" -gt "2" || \
11897 (test "$ac_python_version_major" -eq "2" && \
11898 test "$ac_python_version_minor" -ge "5") ; then
11899 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11900 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11902 { echo "$as_me:$LINENO: result: not found" >&5
11903 echo "${ECHO_T}not found" >&6; }
11904 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11905 See \`config.log' for more details." >&5
11906 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11907 See \`config.log' for more details." >&2;}
11908 { (exit 1); exit 1; }; }
11913 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11914 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11915 if test "${ac_cv_lib_m_sin+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 ac_check_lib_save_LIBS=$LIBS
11920 cat >conftest.$ac_ext <<_ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (ac_try="$ac_link"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_lib_m_sin=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11988 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11989 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11990 if test $ac_cv_lib_m_sin = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define HAVE_LIBM 1
11999 if test "$llvm_cv_os_type" = "MingW" ; then
12001 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12002 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12003 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-limagehlp $LIBS"
12008 cat >conftest.$ac_ext <<_ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (ac_try="$ac_link"
12026 case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_link") 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
12049 { (case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_try") 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_lib_imagehlp_main=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ac_cv_lib_imagehlp_main=no
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 LIBS=$ac_check_lib_save_LIBS
12070 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12071 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12072 if test $ac_cv_lib_imagehlp_main = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define HAVE_LIBIMAGEHLP 1
12077 LIBS="-limagehlp $LIBS"
12082 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12083 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12084 if test "${ac_cv_lib_psapi_main+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-lpsapi $LIBS"
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109 *) ac_try_echo=$ac_try;;
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112 (eval "$ac_link") 2>conftest.er1
12114 grep -v '^ *+' conftest.er1 >conftest.err
12116 cat conftest.err >&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
12119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120 { (case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_try") 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_try") 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_cv_lib_psapi_main=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 ac_cv_lib_psapi_main=no
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12151 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12152 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12153 if test $ac_cv_lib_psapi_main = yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define HAVE_LIBPSAPI 1
12158 LIBS="-lpsapi $LIBS"
12163 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12164 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12165 if test "${ac_cv_lib_shell32_main+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 ac_check_lib_save_LIBS=$LIBS
12169 LIBS="-lshell32 $LIBS"
12170 cat >conftest.$ac_ext <<_ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (ac_try="$ac_link"
12188 case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_link") 2>conftest.er1
12195 grep -v '^ *+' conftest.er1 >conftest.err
12197 cat conftest.err >&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12201 { (case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_try") 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest$ac_exeext'
12211 { (case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_try") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_cv_lib_shell32_main=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ac_cv_lib_shell32_main=no
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12232 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12233 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12234 if test $ac_cv_lib_shell32_main = yes; then
12235 cat >>confdefs.h <<_ACEOF
12236 #define HAVE_LIBSHELL32 1
12239 LIBS="-lshell32 $LIBS"
12245 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12246 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12247 if test "${ac_cv_search_dlopen+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 ac_func_search_save_LIBS=$LIBS
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12273 for ac_lib in '' dl; do
12274 if test -z "$ac_lib"; then
12275 ac_res="none required"
12278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_try") 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_cv_search_dlopen=$ac_res
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12322 rm -f core conftest.err conftest.$ac_objext \
12324 if test "${ac_cv_search_dlopen+set}" = set; then
12328 if test "${ac_cv_search_dlopen+set}" = set; then
12331 ac_cv_search_dlopen=no
12333 rm conftest.$ac_ext
12334 LIBS=$ac_func_search_save_LIBS
12336 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12337 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12338 ac_res=$ac_cv_search_dlopen
12339 if test "$ac_res" != no; then
12340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12342 cat >>confdefs.h <<\_ACEOF
12343 #define HAVE_DLOPEN 1
12347 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12348 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12352 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12353 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12354 if test "${ac_cv_search_clock_gettime+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 ac_func_search_save_LIBS=$LIBS
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12371 char clock_gettime ();
12375 return clock_gettime ();
12380 for ac_lib in '' rt; do
12381 if test -z "$ac_lib"; then
12382 ac_res="none required"
12385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_link") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402 { (case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_try") 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_try") 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_search_clock_gettime=$ac_res
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12429 rm -f core conftest.err conftest.$ac_objext \
12431 if test "${ac_cv_search_clock_gettime+set}" = set; then
12435 if test "${ac_cv_search_clock_gettime+set}" = set; then
12438 ac_cv_search_clock_gettime=no
12440 rm conftest.$ac_ext
12441 LIBS=$ac_func_search_save_LIBS
12443 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12444 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12445 ac_res=$ac_cv_search_clock_gettime
12446 if test "$ac_res" != no; then
12447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12452 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12453 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12454 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12455 if test "${ac_cv_search_setupterm+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 ac_func_search_save_LIBS=$LIBS
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12476 return setupterm ();
12481 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12482 if test -z "$ac_lib"; then
12483 ac_res="none required"
12486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 if { (ac_try="$ac_link"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_link") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12503 { (case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_try") 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest$ac_exeext'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_search_setupterm=$ac_res
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12530 rm -f core conftest.err conftest.$ac_objext \
12532 if test "${ac_cv_search_setupterm+set}" = set; then
12536 if test "${ac_cv_search_setupterm+set}" = set; then
12539 ac_cv_search_setupterm=no
12541 rm conftest.$ac_ext
12542 LIBS=$ac_func_search_save_LIBS
12544 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12545 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12546 ac_res=$ac_cv_search_setupterm
12547 if test "$ac_res" != no; then
12548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12550 cat >>confdefs.h <<\_ACEOF
12551 #define HAVE_TERMINFO 1
12558 if test "$llvm_cv_enable_libffi" = "yes" ; then
12559 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12560 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12561 if test "${ac_cv_search_ffi_call+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 ac_func_search_save_LIBS=$LIBS
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12572 /* Override any GCC internal prototype to avoid an error.
12573 Use char because int might match the return type of a GCC
12574 builtin and then its argument prototype would still apply. */
12582 return ffi_call ();
12587 for ac_lib in '' ffi; do
12588 if test -z "$ac_lib"; then
12589 ac_res="none required"
12592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (ac_try="$ac_link"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_link") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12609 { (case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_try") 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624 (eval "$ac_try") 2>&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_search_ffi_call=$ac_res
12630 echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12636 rm -f core conftest.err conftest.$ac_objext \
12638 if test "${ac_cv_search_ffi_call+set}" = set; then
12642 if test "${ac_cv_search_ffi_call+set}" = set; then
12645 ac_cv_search_ffi_call=no
12647 rm conftest.$ac_ext
12648 LIBS=$ac_func_search_save_LIBS
12650 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12651 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12652 ac_res=$ac_cv_search_ffi_call
12653 if test "$ac_res" != no; then
12654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_FFI_CALL 1
12661 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12662 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12663 { (exit 1); exit 1; }; }
12668 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12669 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12670 if test "${ac_cv_search_mallinfo+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_func_search_save_LIBS=$LIBS
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12691 return mallinfo ();
12696 for ac_lib in '' malloc; do
12697 if test -z "$ac_lib"; then
12698 ac_res="none required"
12701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12703 rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (ac_try="$ac_link"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_link") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12718 { (case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_try") 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest$ac_exeext'
12728 { (case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_try") 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_search_mallinfo=$ac_res
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12745 rm -f core conftest.err conftest.$ac_objext \
12747 if test "${ac_cv_search_mallinfo+set}" = set; then
12751 if test "${ac_cv_search_mallinfo+set}" = set; then
12754 ac_cv_search_mallinfo=no
12756 rm conftest.$ac_ext
12757 LIBS=$ac_func_search_save_LIBS
12759 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12760 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12761 ac_res=$ac_cv_search_mallinfo
12762 if test "$ac_res" != no; then
12763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_MALLINFO 1
12772 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12774 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12775 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12776 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-lpthread $LIBS"
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12794 char pthread_mutex_init ();
12798 return pthread_mutex_init ();
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12818 { (case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_try") 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } &&
12827 { ac_try='test -s conftest$ac_exeext'
12828 { (case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_try") 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_cv_lib_pthread_pthread_mutex_init=yes
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 ac_cv_lib_pthread_pthread_mutex_init=no
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12849 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12850 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12851 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_LIBPTHREAD 1
12856 LIBS="-lpthread $LIBS"
12860 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12861 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12862 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_func_search_save_LIBS=$LIBS
12866 cat >conftest.$ac_ext <<_ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12873 /* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12879 char pthread_mutex_lock ();
12883 return pthread_mutex_lock ();
12888 for ac_lib in '' pthread; do
12889 if test -z "$ac_lib"; then
12890 ac_res="none required"
12893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12904 grep -v '^ *+' conftest.er1 >conftest.err
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12910 { (case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_try") 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest$ac_exeext'
12920 { (case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_try") 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 ac_cv_search_pthread_mutex_lock=$ac_res
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12937 rm -f core conftest.err conftest.$ac_objext \
12939 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12943 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12946 ac_cv_search_pthread_mutex_lock=no
12948 rm conftest.$ac_ext
12949 LIBS=$ac_func_search_save_LIBS
12951 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12952 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12953 ac_res=$ac_cv_search_pthread_mutex_lock
12954 if test "$ac_res" != no; then
12955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12957 cat >>confdefs.h <<\_ACEOF
12958 #define HAVE_PTHREAD_MUTEX_LOCK 1
12963 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12964 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12965 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 ac_func_search_save_LIBS=$LIBS
12969 cat >conftest.$ac_ext <<_ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12976 /* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12982 char pthread_rwlock_init ();
12986 return pthread_rwlock_init ();
12991 for ac_lib in '' pthread; do
12992 if test -z "$ac_lib"; then
12993 ac_res="none required"
12996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12998 rm -f conftest.$ac_objext conftest$ac_exeext
12999 if { (ac_try="$ac_link"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_link") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013 { (case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_try") 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest$ac_exeext'
13023 { (case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_try") 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_cv_search_pthread_rwlock_init=$ac_res
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13040 rm -f core conftest.err conftest.$ac_objext \
13042 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13046 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13049 ac_cv_search_pthread_rwlock_init=no
13051 rm conftest.$ac_ext
13052 LIBS=$ac_func_search_save_LIBS
13054 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13055 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13056 ac_res=$ac_cv_search_pthread_rwlock_init
13057 if test "$ac_res" != no; then
13058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_PTHREAD_RWLOCK_INIT 1
13066 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13067 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13068 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_func_search_save_LIBS=$LIBS
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13085 char pthread_getspecific ();
13089 return pthread_getspecific ();
13094 for ac_lib in '' pthread; do
13095 if test -z "$ac_lib"; then
13096 ac_res="none required"
13099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_search_pthread_getspecific=$ac_res
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13143 rm -f core conftest.err conftest.$ac_objext \
13145 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13149 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13152 ac_cv_search_pthread_getspecific=no
13154 rm conftest.$ac_ext
13155 LIBS=$ac_func_search_save_LIBS
13157 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13158 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13159 ac_res=$ac_cv_search_pthread_getspecific
13160 if test "$ac_res" != no; then
13161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13163 cat >>confdefs.h <<\_ACEOF
13164 #define HAVE_PTHREAD_GETSPECIFIC 1
13171 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13173 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13174 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13175 if test "${ac_cv_lib_z_compress2+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 ac_check_lib_save_LIBS=$LIBS
13180 cat >conftest.$ac_ext <<_ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13197 return compress2 ();
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (ac_try="$ac_link"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_link") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217 { (case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_try") 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
13236 ac_cv_lib_z_compress2=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_cv_lib_z_compress2=no
13244 rm -f core conftest.err conftest.$ac_objext \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13249 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13250 if test $ac_cv_lib_z_compress2 = yes; then
13251 cat >>confdefs.h <<_ACEOF
13252 #define HAVE_LIBZ 1
13262 # Check whether --with-udis86 was given.
13263 if test "${with_udis86+set}" = set; then
13264 withval=$with_udis86;
13269 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13272 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13273 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13274 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_check_lib_save_LIBS=$LIBS
13278 LIBS="-ludis86 $LIBS"
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 /* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13301 rm -f conftest.$ac_objext conftest$ac_exeext
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_link") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13316 { (case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_try") 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest$ac_exeext'
13326 { (case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_try") 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_cv_lib_udis86_ud_init=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_cv_lib_udis86_ud_init=no
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13347 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13348 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13349 if test $ac_cv_lib_udis86_ud_init = yes; then
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_LIBUDIS86 1
13354 LIBS="-ludis86 $LIBS"
13358 echo "Error! You need to have libudis86 around."
13370 cat >>confdefs.h <<_ACEOF
13371 #define USE_UDIS86 $USE_UDIS86
13376 # Check whether --with-oprofile was given.
13377 if test "${with_oprofile+set}" = set; then
13378 withval=$with_oprofile;
13382 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13383 no) llvm_cv_oppath=
13386 *) llvm_cv_oppath="${withval}/lib/oprofile"
13387 CPPFLAGS="-I${withval}/include";;
13389 case $llvm_cv_os_type in
13391 if test -n "$llvm_cv_oppath" ; then
13392 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13393 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13394 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13395 if test "${ac_cv_search_bfd_init+set}" = set; then
13396 echo $ECHO_N "(cached) $ECHO_C" >&6
13398 ac_func_search_save_LIBS=$LIBS
13399 cat >conftest.$ac_ext <<_ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13406 /* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
13416 return bfd_init ();
13421 for ac_lib in '' bfd; do
13422 if test -z "$ac_lib"; then
13423 ac_res="none required"
13426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13428 rm -f conftest.$ac_objext conftest$ac_exeext
13429 if { (ac_try="$ac_link"
13430 case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_link") 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13443 { (case "(($ac_try" in
13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445 *) ac_try_echo=$ac_try;;
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448 (eval "$ac_try") 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; } &&
13452 { ac_try='test -s conftest$ac_exeext'
13453 { (case "(($ac_try" in
13454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13455 *) ac_try_echo=$ac_try;;
13457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13458 (eval "$ac_try") 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_cv_search_bfd_init=$ac_res
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13470 rm -f core conftest.err conftest.$ac_objext \
13472 if test "${ac_cv_search_bfd_init+set}" = set; then
13476 if test "${ac_cv_search_bfd_init+set}" = set; then
13479 ac_cv_search_bfd_init=no
13481 rm conftest.$ac_ext
13482 LIBS=$ac_func_search_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13485 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13486 ac_res=$ac_cv_search_bfd_init
13487 if test "$ac_res" != no; then
13488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13492 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13493 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13494 if test "${ac_cv_search_op_open_agent+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 ac_func_search_save_LIBS=$LIBS
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13505 /* Override any GCC internal prototype to avoid an error.
13506 Use char because int might match the return type of a GCC
13507 builtin and then its argument prototype would still apply. */
13511 char op_open_agent ();
13515 return op_open_agent ();
13520 for ac_lib in '' opagent; do
13521 if test -z "$ac_lib"; then
13522 ac_res="none required"
13525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13527 rm -f conftest.$ac_objext conftest$ac_exeext
13528 if { (ac_try="$ac_link"
13529 case "(($ac_try" in
13530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531 *) ac_try_echo=$ac_try;;
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534 (eval "$ac_link") 2>conftest.er1
13536 grep -v '^ *+' conftest.er1 >conftest.err
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13542 { (case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_try") 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest$ac_exeext'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_search_op_open_agent=$ac_res
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13569 rm -f core conftest.err conftest.$ac_objext \
13571 if test "${ac_cv_search_op_open_agent+set}" = set; then
13575 if test "${ac_cv_search_op_open_agent+set}" = set; then
13578 ac_cv_search_op_open_agent=no
13580 rm conftest.$ac_ext
13581 LIBS=$ac_func_search_save_LIBS
13583 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13584 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13585 ac_res=$ac_cv_search_op_open_agent
13586 if test "$ac_res" != no; then
13587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13591 echo "Error! You need to have libopagent around."
13596 if test "${ac_cv_header_opagent_h+set}" = set; then
13597 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13598 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13599 if test "${ac_cv_header_opagent_h+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13603 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13605 # Is the header compilable?
13606 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13607 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13615 #include <opagent.h>
13617 rm -f conftest.$ac_objext
13618 if { (ac_try="$ac_compile"
13619 case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_compile") 2>conftest.er1
13626 grep -v '^ *+' conftest.er1 >conftest.err
13628 cat conftest.err >&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); } &&
13631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13632 { (case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_try") 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_try") 2>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 ac_header_compiler=yes
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13656 ac_header_compiler=no
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13661 echo "${ECHO_T}$ac_header_compiler" >&6; }
13663 # Is the header present?
13664 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13665 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <opagent.h>
13674 if { (ac_try="$ac_cpp conftest.$ac_ext"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } >/dev/null; then
13687 if test -s conftest.err; then
13688 ac_cpp_err=$ac_c_preproc_warn_flag
13689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13696 if test -z "$ac_cpp_err"; then
13697 ac_header_preproc=yes
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13702 ac_header_preproc=no
13705 rm -f conftest.err conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13707 echo "${ECHO_T}$ac_header_preproc" >&6; }
13709 # So? What about this header?
13710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13712 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13713 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13715 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13716 ac_header_preproc=yes
13719 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13720 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13721 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13722 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13724 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13725 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13726 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13728 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13730 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13732 ## ------------------------------------ ##
13733 ## Report this to http://llvm.org/bugs/ ##
13734 ## ------------------------------------ ##
13736 ) | sed "s/^/$as_me: WARNING: /" >&2
13739 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13740 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_opagent_h+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 ac_cv_header_opagent_h=$ac_header_preproc
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13750 if test $ac_cv_header_opagent_h = yes; then
13754 echo "Error! You need to have opagent.h around."
13762 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13763 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13764 { (exit 1); exit 1; }; } ;;
13775 cat >>confdefs.h <<_ACEOF
13776 #define LLVM_USE_OPROFILE $USE_OPROFILE
13781 # Check whether --with-intel-jitevents was given.
13782 if test "${with_intel_jitevents+set}" = set; then
13783 withval=$with_intel_jitevents;
13785 yes) USE_INTEL_JITEVENTS=1
13787 no) USE_INTEL_JITEVENTS=0
13789 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13790 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13791 { (exit 1); exit 1; }; };;
13794 case $llvm_cv_os_type in
13795 Linux|Win32|Cygwin|MingW) ;;
13796 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13797 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13798 { (exit 1); exit 1; }; };;
13801 case "$llvm_cv_target_arch" in
13803 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13804 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13805 { (exit 1); exit 1; }; };;
13810 USE_INTEL_JITEVENTS=0
13816 cat >>confdefs.h <<_ACEOF
13817 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13821 for ac_prog in xml2-config
13823 # Extract the first word of "$ac_prog", so it can be a program name with args.
13824 set dummy $ac_prog; ac_word=$2
13825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13827 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 if test -n "$XML2CONFIG"; then
13831 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_XML2CONFIG="$ac_prog"
13841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13851 if test -n "$XML2CONFIG"; then
13852 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13853 echo "${ECHO_T}$XML2CONFIG" >&6; }
13855 { echo "$as_me:$LINENO: result: no" >&5
13856 echo "${ECHO_T}no" >&6; }
13860 test -n "$XML2CONFIG" && break
13864 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13865 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13866 if test "x$XML2CONFIG" = "x"; then
13867 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13868 echo "${ECHO_T}xml2-config not found" >&6; }
13870 LIBXML2_INC=`$XML2CONFIG --cflags`
13871 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13872 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13873 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13874 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13875 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_check_lib_save_LIBS=$LIBS
13879 LIBS="-lxml2 $LIBS"
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13887 /* Override any GCC internal prototype to avoid an error.
13888 Use char because int might match the return type of a GCC
13889 builtin and then its argument prototype would still apply. */
13893 char xmlReadFile ();
13897 return xmlReadFile ();
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (ac_try="$ac_link"
13904 case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_link") 2>conftest.er1
13911 grep -v '^ *+' conftest.er1 >conftest.err
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13917 { (case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_try") 2>&5
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (case "(($ac_try" in
13928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13929 *) ac_try_echo=$ac_try;;
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_try") 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_xml2_xmlReadFile=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_lib_xml2_xmlReadFile=no
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13948 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13949 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13950 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define CLANG_HAVE_LIBXML 1
13956 LIBXML2_LIBS="-lxml2"
13969 ac_header_dirent=no
13970 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13971 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13972 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13973 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 cat >conftest.$ac_ext <<_ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 #include <sys/types.h>
13995 rm -f conftest.$ac_objext
13996 if { (ac_try="$ac_compile"
13997 case "(($ac_try" in
13998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999 *) ac_try_echo=$ac_try;;
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002 (eval "$ac_compile") 2>conftest.er1
14004 grep -v '^ *+' conftest.er1 >conftest.err
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14010 { (case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_try") 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_try") 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 eval "$as_ac_Header=yes"
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 eval "$as_ac_Header=no"
14037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 ac_res=`eval echo '${'$as_ac_Header'}'`
14040 { echo "$as_me:$LINENO: result: $ac_res" >&5
14041 echo "${ECHO_T}$ac_res" >&6; }
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14047 ac_header_dirent=$ac_hdr; break
14051 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14052 if test $ac_header_dirent = dirent.h; then
14053 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14055 if test "${ac_cv_search_opendir+set}" = set; then
14056 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 ac_func_search_save_LIBS=$LIBS
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14081 for ac_lib in '' dir; do
14082 if test -z "$ac_lib"; then
14083 ac_res="none required"
14086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14088 rm -f conftest.$ac_objext conftest$ac_exeext
14089 if { (ac_try="$ac_link"
14090 case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_link") 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14103 { (case "(($ac_try" in
14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_try") 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; } &&
14112 { ac_try='test -s conftest$ac_exeext'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_search_opendir=$ac_res
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14130 rm -f core conftest.err conftest.$ac_objext \
14132 if test "${ac_cv_search_opendir+set}" = set; then
14136 if test "${ac_cv_search_opendir+set}" = set; then
14139 ac_cv_search_opendir=no
14141 rm conftest.$ac_ext
14142 LIBS=$ac_func_search_save_LIBS
14144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14146 ac_res=$ac_cv_search_opendir
14147 if test "$ac_res" != no; then
14148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14153 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14154 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14155 if test "${ac_cv_search_opendir+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 ac_func_search_save_LIBS=$LIBS
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 /* Override any GCC internal prototype to avoid an error.
14167 Use char because int might match the return type of a GCC
14168 builtin and then its argument prototype would still apply. */
14181 for ac_lib in '' x; do
14182 if test -z "$ac_lib"; then
14183 ac_res="none required"
14186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14188 rm -f conftest.$ac_objext conftest$ac_exeext
14189 if { (ac_try="$ac_link"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_link") 2>conftest.er1
14197 grep -v '^ *+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
14202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14203 { (case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_try") 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_try") 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_search_opendir=$ac_res
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14230 rm -f core conftest.err conftest.$ac_objext \
14232 if test "${ac_cv_search_opendir+set}" = set; then
14236 if test "${ac_cv_search_opendir+set}" = set; then
14239 ac_cv_search_opendir=no
14241 rm conftest.$ac_ext
14242 LIBS=$ac_func_search_save_LIBS
14244 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14245 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14246 ac_res=$ac_cv_search_opendir
14247 if test "$ac_res" != no; then
14248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14254 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14255 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14256 if test "${ac_cv_header_mmap_anon+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <sys/mman.h>
14272 #include <unistd.h>
14277 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14282 rm -f conftest.$ac_objext
14283 if { (ac_try="$ac_compile"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_compile") 2>conftest.er1
14291 grep -v '^ *+' conftest.er1 >conftest.err
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_try") 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_try") 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; }; then
14316 ac_cv_header_mmap_anon=yes
14318 echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14321 ac_cv_header_mmap_anon=no
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 ac_cpp='$CPP $CPPFLAGS'
14327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14333 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14334 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14335 if test "$ac_cv_header_mmap_anon" = yes; then
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_MMAP_ANONYMOUS 1
14343 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14344 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14345 if test "${ac_cv_header_stat_broken+set}" = set; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <sys/types.h>
14355 #include <sys/stat.h>
14357 #if defined S_ISBLK && defined S_IFDIR
14358 # if S_ISBLK (S_IFDIR)
14363 #if defined S_ISBLK && defined S_IFCHR
14364 # if S_ISBLK (S_IFCHR)
14369 #if defined S_ISLNK && defined S_IFREG
14370 # if S_ISLNK (S_IFREG)
14375 #if defined S_ISSOCK && defined S_IFREG
14376 # if S_ISSOCK (S_IFREG)
14382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14383 $EGREP "You lose" >/dev/null 2>&1; then
14384 ac_cv_header_stat_broken=yes
14386 ac_cv_header_stat_broken=no
14391 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14392 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14393 if test $ac_cv_header_stat_broken = yes; then
14395 cat >>confdefs.h <<\_ACEOF
14396 #define STAT_MACROS_BROKEN 1
14401 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14402 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14403 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <sys/types.h>
14413 #include <sys/wait.h>
14414 #ifndef WEXITSTATUS
14415 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14418 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14426 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14431 rm -f conftest.$ac_objext
14432 if { (ac_try="$ac_compile"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_compile") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } &&
14445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; } &&
14455 { ac_try='test -s conftest.$ac_objext'
14456 { (case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_try") 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_cv_header_sys_wait_h=yes
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14470 ac_cv_header_sys_wait_h=no
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14476 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14477 if test $ac_cv_header_sys_wait_h = yes; then
14479 cat >>confdefs.h <<\_ACEOF
14480 #define HAVE_SYS_WAIT_H 1
14485 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14486 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14487 if test "${ac_cv_header_time+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 #include <sys/types.h>
14497 #include <sys/time.h>
14503 if ((struct tm *) 0)
14509 rm -f conftest.$ac_objext
14510 if { (ac_try="$ac_compile"
14511 case "(($ac_try" in
14512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14513 *) ac_try_echo=$ac_try;;
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_compile") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } &&
14523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_try") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_header_time=yes
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ac_cv_header_time=no
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14554 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14555 if test $ac_cv_header_time = yes; then
14557 cat >>confdefs.h <<\_ACEOF
14558 #define TIME_WITH_SYS_TIME 1
14565 ac_cpp='$CXXCPP $CPPFLAGS'
14566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14571 ac_cpp='$CXXCPP $CPPFLAGS'
14572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14575 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14576 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14577 if test -z "$CXXCPP"; then
14578 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 # Double quotes because CXXCPP needs to be expanded
14582 for CXXCPP in "$CXX -E" "/lib/cpp"
14584 ac_preproc_ok=false
14585 for ac_cxx_preproc_warn_flag in '' yes
14587 # Use a header file that comes with gcc, so configuring glibc
14588 # with a fresh cross-compiler works.
14589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14590 # <limits.h> exists even on freestanding compilers.
14591 # On the NeXT, cc -E runs the code through the compiler's parser,
14592 # not just through cpp. "Syntax error" is here to catch this case.
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14600 # include <limits.h>
14602 # include <assert.h>
14606 if { (ac_try="$ac_cpp conftest.$ac_ext"
14607 case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14614 grep -v '^ *+' conftest.er1 >conftest.err
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } >/dev/null; then
14619 if test -s conftest.err; then
14620 ac_cpp_err=$ac_cxx_preproc_warn_flag
14621 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14628 if test -z "$ac_cpp_err"; then
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 # Broken: fails on valid input.
14638 rm -f conftest.err conftest.$ac_ext
14640 # OK, works on sane cases. Now check whether nonexistent headers
14641 # can be detected and how.
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14648 #include <ac_nonexistent.h>
14650 if { (ac_try="$ac_cpp conftest.$ac_ext"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } >/dev/null; then
14663 if test -s conftest.err; then
14664 ac_cpp_err=$ac_cxx_preproc_warn_flag
14665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14672 if test -z "$ac_cpp_err"; then
14673 # Broken: success on invalid input.
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 # Passes both tests.
14684 rm -f conftest.err conftest.$ac_ext
14687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14688 rm -f conftest.err conftest.$ac_ext
14689 if $ac_preproc_ok; then
14694 ac_cv_prog_CXXCPP=$CXXCPP
14697 CXXCPP=$ac_cv_prog_CXXCPP
14699 ac_cv_prog_CXXCPP=$CXXCPP
14701 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14702 echo "${ECHO_T}$CXXCPP" >&6; }
14703 ac_preproc_ok=false
14704 for ac_cxx_preproc_warn_flag in '' yes
14706 # Use a header file that comes with gcc, so configuring glibc
14707 # with a fresh cross-compiler works.
14708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14709 # <limits.h> exists even on freestanding compilers.
14710 # On the NeXT, cc -E runs the code through the compiler's parser,
14711 # not just through cpp. "Syntax error" is here to catch this case.
14712 cat >conftest.$ac_ext <<_ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14719 # include <limits.h>
14721 # include <assert.h>
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null; then
14738 if test -s conftest.err; then
14739 ac_cpp_err=$ac_cxx_preproc_warn_flag
14740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14747 if test -z "$ac_cpp_err"; then
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14753 # Broken: fails on valid input.
14757 rm -f conftest.err conftest.$ac_ext
14759 # OK, works on sane cases. Now check whether nonexistent headers
14760 # can be detected and how.
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <ac_nonexistent.h>
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } >/dev/null; then
14782 if test -s conftest.err; then
14783 ac_cpp_err=$ac_cxx_preproc_warn_flag
14784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14791 if test -z "$ac_cpp_err"; then
14792 # Broken: success on invalid input.
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 # Passes both tests.
14803 rm -f conftest.err conftest.$ac_ext
14806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14807 rm -f conftest.err conftest.$ac_ext
14808 if $ac_preproc_ok; then
14811 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14812 See \`config.log' for more details." >&5
14813 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14814 See \`config.log' for more details." >&2;}
14815 { (exit 1); exit 1; }; }
14819 ac_cpp='$CXXCPP $CPPFLAGS'
14820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14826 for ac_header in cxxabi.h
14828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 ac_res=`eval echo '${'$as_ac_Header'}'`
14836 { echo "$as_me:$LINENO: result: $ac_res" >&5
14837 echo "${ECHO_T}$ac_res" >&6; }
14839 # Is the header compilable?
14840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 $ac_includes_default
14849 #include <$ac_header>
14851 rm -f conftest.$ac_objext
14852 if { (ac_try="$ac_compile"
14853 case "(($ac_try" in
14854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_compile") 2>conftest.er1
14860 grep -v '^ *+' conftest.er1 >conftest.err
14862 cat conftest.err >&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } &&
14865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14866 { (case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_try") 2>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest.$ac_objext'
14876 { (case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_try") 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_header_compiler=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_header_compiler=no
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <$ac_header>
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null; then
14921 if test -s conftest.err; then
14922 ac_cpp_err=$ac_cxx_preproc_warn_flag
14923 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14930 if test -z "$ac_cpp_err"; then
14931 ac_header_preproc=yes
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.$ac_ext >&5
14936 ac_header_preproc=no
14939 rm -f conftest.err conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941 echo "${ECHO_T}$ac_header_preproc" >&6; }
14943 # So? What about this header?
14944 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14950 ac_header_preproc=yes
14953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14966 ## ------------------------------------ ##
14967 ## Report this to http://llvm.org/bugs/ ##
14968 ## ------------------------------------ ##
14970 ) | sed "s/^/$as_me: WARNING: /" >&2
14973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 eval "$as_ac_Header=\$ac_header_preproc"
14980 ac_res=`eval echo '${'$as_ac_Header'}'`
14981 { echo "$as_me:$LINENO: result: $ac_res" >&5
14982 echo "${ECHO_T}$ac_res" >&6; }
14985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14986 cat >>confdefs.h <<_ACEOF
14987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14995 ac_cpp='$CPP $CPPFLAGS'
14996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15005 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 ac_res=`eval echo '${'$as_ac_Header'}'`
15015 { echo "$as_me:$LINENO: result: $ac_res" >&5
15016 echo "${ECHO_T}$ac_res" >&6; }
15018 # Is the header compilable?
15019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 $ac_includes_default
15028 #include <$ac_header>
15030 rm -f conftest.$ac_objext
15031 if { (ac_try="$ac_compile"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_compile") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_try") 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 ac_header_compiler=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_header_compiler=no
15072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15074 echo "${ECHO_T}$ac_header_compiler" >&6; }
15076 # Is the header present?
15077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 #include <$ac_header>
15087 if { (ac_try="$ac_cpp conftest.$ac_ext"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } >/dev/null; then
15100 if test -s conftest.err; then
15101 ac_cpp_err=$ac_c_preproc_warn_flag
15102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15109 if test -z "$ac_cpp_err"; then
15110 ac_header_preproc=yes
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 ac_header_preproc=no
15118 rm -f conftest.err conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15120 echo "${ECHO_T}$ac_header_preproc" >&6; }
15122 # So? What about this header?
15123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15129 ac_header_preproc=yes
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15145 ## ------------------------------------ ##
15146 ## Report this to http://llvm.org/bugs/ ##
15147 ## ------------------------------------ ##
15149 ) | sed "s/^/$as_me: WARNING: /" >&2
15152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 eval "$as_ac_Header=\$ac_header_preproc"
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160 { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15179 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_res=`eval echo '${'$as_ac_Header'}'`
15189 { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15192 # Is the header compilable?
15193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 $ac_includes_default
15202 #include <$ac_header>
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_compile") 2>conftest.er1
15213 grep -v '^ *+' conftest.er1 >conftest.err
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_try") 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_header_compiler=yes
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 ac_header_compiler=no
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 echo "${ECHO_T}$ac_header_compiler" >&6; }
15250 # Is the header present?
15251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <$ac_header>
15261 if { (ac_try="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } >/dev/null; then
15274 if test -s conftest.err; then
15275 ac_cpp_err=$ac_c_preproc_warn_flag
15276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 if test -z "$ac_cpp_err"; then
15284 ac_header_preproc=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_header_preproc=no
15292 rm -f conftest.err conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294 echo "${ECHO_T}$ac_header_preproc" >&6; }
15296 # So? What about this header?
15297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15303 ac_header_preproc=yes
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15319 ## ------------------------------------ ##
15320 ## Report this to http://llvm.org/bugs/ ##
15321 ## ------------------------------------ ##
15323 ) | sed "s/^/$as_me: WARNING: /" >&2
15326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 eval "$as_ac_Header=\$ac_header_preproc"
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348 for ac_header in utime.h
15350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <$ac_header>
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_header_compiler=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <$ac_header>
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15452 if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_header_preproc=no
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15488 ## ------------------------------------ ##
15489 ## Report this to http://llvm.org/bugs/ ##
15490 ## ------------------------------------ ##
15492 ) | sed "s/^/$as_me: WARNING: /" >&2
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 eval "$as_ac_Header=\$ac_header_preproc"
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503 { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 ac_res=`eval echo '${'$as_ac_Header'}'`
15531 { echo "$as_me:$LINENO: result: $ac_res" >&5
15532 echo "${ECHO_T}$ac_res" >&6; }
15534 # Is the header compilable?
15535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 #include <$ac_header>
15546 rm -f conftest.$ac_objext
15547 if { (ac_try="$ac_compile"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_compile") 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (case "(($ac_try" in
15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573 *) ac_try_echo=$ac_try;;
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576 (eval "$ac_try") 2>&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_header_compiler=yes
15582 echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15585 ac_header_compiler=no
15588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15590 echo "${ECHO_T}$ac_header_compiler" >&6; }
15592 # Is the header present?
15593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15595 cat >conftest.$ac_ext <<_ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 #include <$ac_header>
15603 if { (ac_try="$ac_cpp conftest.$ac_ext"
15604 case "(($ac_try" in
15605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } >/dev/null; then
15616 if test -s conftest.err; then
15617 ac_cpp_err=$ac_c_preproc_warn_flag
15618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15625 if test -z "$ac_cpp_err"; then
15626 ac_header_preproc=yes
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_header_preproc=no
15634 rm -f conftest.err conftest.$ac_ext
15635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15636 echo "${ECHO_T}$ac_header_preproc" >&6; }
15638 # So? What about this header?
15639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15645 ac_header_preproc=yes
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15655 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15661 ## ------------------------------------ ##
15662 ## Report this to http://llvm.org/bugs/ ##
15663 ## ------------------------------------ ##
15665 ) | sed "s/^/$as_me: WARNING: /" >&2
15668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 eval "$as_ac_Header=\$ac_header_preproc"
15675 ac_res=`eval echo '${'$as_ac_Header'}'`
15676 { echo "$as_me:$LINENO: result: $ac_res" >&5
15677 echo "${ECHO_T}$ac_res" >&6; }
15680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15692 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 ac_res=`eval echo '${'$as_ac_Header'}'`
15702 { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15705 # Is the header compilable?
15706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 #include <$ac_header>
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_try") 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (case "(($ac_try" in
15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744 *) ac_try_echo=$ac_try;;
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747 (eval "$ac_try") 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_header_compiler=yes
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15756 ac_header_compiler=no
15759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15761 echo "${ECHO_T}$ac_header_compiler" >&6; }
15763 # Is the header present?
15764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 #include <$ac_header>
15774 if { (ac_try="$ac_cpp conftest.$ac_ext"
15775 case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15782 grep -v '^ *+' conftest.er1 >conftest.err
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } >/dev/null; then
15787 if test -s conftest.err; then
15788 ac_cpp_err=$ac_c_preproc_warn_flag
15789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15796 if test -z "$ac_cpp_err"; then
15797 ac_header_preproc=yes
15799 echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_preproc=no
15805 rm -f conftest.err conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15807 echo "${ECHO_T}$ac_header_preproc" >&6; }
15809 # So? What about this header?
15810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15816 ac_header_preproc=yes
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15832 ## ------------------------------------ ##
15833 ## Report this to http://llvm.org/bugs/ ##
15834 ## ------------------------------------ ##
15836 ) | sed "s/^/$as_me: WARNING: /" >&2
15839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 eval "$as_ac_Header=\$ac_header_preproc"
15846 ac_res=`eval echo '${'$as_ac_Header'}'`
15847 { echo "$as_me:$LINENO: result: $ac_res" >&5
15848 echo "${ECHO_T}$ac_res" >&6; }
15851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15852 cat >>confdefs.h <<_ACEOF
15853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15861 for ac_header in valgrind/valgrind.h
15863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15874 # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 #include <$ac_header>
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15901 { (case "(($ac_try" in
15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903 *) ac_try_echo=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_try") 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try='test -s conftest.$ac_objext'
15911 { (case "(($ac_try" in
15912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913 *) ac_try_echo=$ac_try;;
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916 (eval "$ac_try") 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_header_compiler=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_compiler=no
15928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15930 echo "${ECHO_T}$ac_header_compiler" >&6; }
15932 # Is the header present?
15933 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <$ac_header>
15943 if { (ac_try="$ac_cpp conftest.$ac_ext"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } >/dev/null; then
15956 if test -s conftest.err; then
15957 ac_cpp_err=$ac_c_preproc_warn_flag
15958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15965 if test -z "$ac_cpp_err"; then
15966 ac_header_preproc=yes
15968 echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15971 ac_header_preproc=no
15974 rm -f conftest.err conftest.$ac_ext
15975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15976 echo "${ECHO_T}$ac_header_preproc" >&6; }
15978 # So? What about this header?
15979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15985 ac_header_preproc=yes
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16001 ## ------------------------------------ ##
16002 ## Report this to http://llvm.org/bugs/ ##
16003 ## ------------------------------------ ##
16005 ) | sed "s/^/$as_me: WARNING: /" >&2
16008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 eval "$as_ac_Header=\$ac_header_preproc"
16015 ac_res=`eval echo '${'$as_ac_Header'}'`
16016 { echo "$as_me:$LINENO: result: $ac_res" >&5
16017 echo "${ECHO_T}$ac_res" >&6; }
16020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16021 cat >>confdefs.h <<_ACEOF
16022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030 for ac_header in fenv.h
16032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16039 ac_res=`eval echo '${'$as_ac_Header'}'`
16040 { echo "$as_me:$LINENO: result: $ac_res" >&5
16041 echo "${ECHO_T}$ac_res" >&6; }
16043 # Is the header compilable?
16044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 $ac_includes_default
16053 #include <$ac_header>
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_compile") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16070 { (case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_try") 2>&5
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_try") 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_header_compiler=yes
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_compiler=no
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <$ac_header>
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16120 grep -v '^ *+' conftest.er1 >conftest.err
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null; then
16125 if test -s conftest.err; then
16126 ac_cpp_err=$ac_c_preproc_warn_flag
16127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16134 if test -z "$ac_cpp_err"; then
16135 ac_header_preproc=yes
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_preproc=no
16143 rm -f conftest.err conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16145 echo "${ECHO_T}$ac_header_preproc" >&6; }
16147 # So? What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16154 ac_header_preproc=yes
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16170 ## ------------------------------------ ##
16171 ## Report this to http://llvm.org/bugs/ ##
16172 ## ------------------------------------ ##
16174 ) | sed "s/^/$as_me: WARNING: /" >&2
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 eval "$as_ac_Header=\$ac_header_preproc"
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185 { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190 cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16198 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16199 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16200 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16214 #ifndef FE_ALL_EXCEPT
16215 char *p = (char *) FE_ALL_EXCEPT;
16223 rm -f conftest.$ac_objext
16224 if { (ac_try="$ac_compile"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_compile") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } &&
16237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16238 { (case "(($ac_try" in
16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240 *) ac_try_echo=$ac_try;;
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243 (eval "$ac_try") 2>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; } &&
16247 { ac_try='test -s conftest.$ac_objext'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_cv_have_decl_FE_ALL_EXCEPT=no
16265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16268 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16269 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16271 cat >>confdefs.h <<_ACEOF
16272 #define HAVE_DECL_FE_ALL_EXCEPT 1
16277 cat >>confdefs.h <<_ACEOF
16278 #define HAVE_DECL_FE_ALL_EXCEPT 0
16283 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16284 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16285 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16300 char *p = (char *) FE_INEXACT;
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } &&
16322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328 (eval "$ac_try") 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_have_decl_FE_INEXACT=yes
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 ac_cv_have_decl_FE_INEXACT=no
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16353 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16354 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_DECL_FE_INEXACT 1
16362 cat >>confdefs.h <<_ACEOF
16363 #define HAVE_DECL_FE_INEXACT 0
16370 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16372 for ac_header in pthread.h
16374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 ac_res=`eval echo '${'$as_ac_Header'}'`
16382 { echo "$as_me:$LINENO: result: $ac_res" >&5
16383 echo "${ECHO_T}$ac_res" >&6; }
16385 # Is the header compilable?
16386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 $ac_includes_default
16395 #include <$ac_header>
16397 rm -f conftest.$ac_objext
16398 if { (ac_try="$ac_compile"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_compile") 2>conftest.er1
16406 grep -v '^ *+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } &&
16411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try='test -s conftest.$ac_objext'
16422 { (case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_try") 2>&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 ac_header_compiler=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_header_compiler=no
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16441 echo "${ECHO_T}$ac_header_compiler" >&6; }
16443 # Is the header present?
16444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16446 cat >conftest.$ac_ext <<_ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 #include <$ac_header>
16454 if { (ac_try="$ac_cpp conftest.$ac_ext"
16455 case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } >/dev/null; then
16467 if test -s conftest.err; then
16468 ac_cpp_err=$ac_c_preproc_warn_flag
16469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16476 if test -z "$ac_cpp_err"; then
16477 ac_header_preproc=yes
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16482 ac_header_preproc=no
16485 rm -f conftest.err conftest.$ac_ext
16486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16487 echo "${ECHO_T}$ac_header_preproc" >&6; }
16489 # So? What about this header?
16490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16496 ac_header_preproc=yes
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16512 ## ------------------------------------ ##
16513 ## Report this to http://llvm.org/bugs/ ##
16514 ## ------------------------------------ ##
16516 ) | sed "s/^/$as_me: WARNING: /" >&2
16519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 eval "$as_ac_Header=\$ac_header_preproc"
16526 ac_res=`eval echo '${'$as_ac_Header'}'`
16527 { echo "$as_me:$LINENO: result: $ac_res" >&5
16528 echo "${ECHO_T}$ac_res" >&6; }
16531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16532 cat >>confdefs.h <<_ACEOF
16533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16548 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16550 for ac_header in zlib.h
16552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 ac_res=`eval echo '${'$as_ac_Header'}'`
16560 { echo "$as_me:$LINENO: result: $ac_res" >&5
16561 echo "${ECHO_T}$ac_res" >&6; }
16563 # Is the header compilable?
16564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16566 cat >conftest.$ac_ext <<_ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16572 $ac_includes_default
16573 #include <$ac_header>
16575 rm -f conftest.$ac_objext
16576 if { (ac_try="$ac_compile"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_compile") 2>conftest.er1
16584 grep -v '^ *+' conftest.er1 >conftest.err
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
16589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16590 { (case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_try") 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; } &&
16599 { ac_try='test -s conftest.$ac_objext'
16600 { (case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_try") 2>&5
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; }; then
16609 ac_header_compiler=yes
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.$ac_ext >&5
16614 ac_header_compiler=no
16617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16619 echo "${ECHO_T}$ac_header_compiler" >&6; }
16621 # Is the header present?
16622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <$ac_header>
16632 if { (ac_try="$ac_cpp conftest.$ac_ext"
16633 case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } >/dev/null; then
16645 if test -s conftest.err; then
16646 ac_cpp_err=$ac_c_preproc_warn_flag
16647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16654 if test -z "$ac_cpp_err"; then
16655 ac_header_preproc=yes
16657 echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_header_preproc=no
16663 rm -f conftest.err conftest.$ac_ext
16664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16665 echo "${ECHO_T}$ac_header_preproc" >&6; }
16667 # So? What about this header?
16668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16674 ac_header_preproc=yes
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690 ## ------------------------------------ ##
16691 ## Report this to http://llvm.org/bugs/ ##
16692 ## ------------------------------------ ##
16694 ) | sed "s/^/$as_me: WARNING: /" >&2
16697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 eval "$as_ac_Header=\$ac_header_preproc"
16704 ac_res=`eval echo '${'$as_ac_Header'}'`
16705 { echo "$as_me:$LINENO: result: $ac_res" >&5
16706 echo "${ECHO_T}$ac_res" >&6; }
16709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16710 cat >>confdefs.h <<_ACEOF
16711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16727 if test "$llvm_cv_enable_libffi" = "yes" ; then
16730 for ac_header in ffi.h ffi/ffi.h
16732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16737 echo $ECHO_N "(cached) $ECHO_C" >&6
16739 ac_res=`eval echo '${'$as_ac_Header'}'`
16740 { echo "$as_me:$LINENO: result: $ac_res" >&5
16741 echo "${ECHO_T}$ac_res" >&6; }
16743 # Is the header compilable?
16744 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 $ac_includes_default
16753 #include <$ac_header>
16755 rm -f conftest.$ac_objext
16756 if { (ac_try="$ac_compile"
16757 case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_compile") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } &&
16769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770 { (case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_try") 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try='test -s conftest.$ac_objext'
16780 { (case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_try") 2>&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); }; }; then
16789 ac_header_compiler=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_compiler=no
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16799 echo "${ECHO_T}$ac_header_compiler" >&6; }
16801 # Is the header present?
16802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 #include <$ac_header>
16812 if { (ac_try="$ac_cpp conftest.$ac_ext"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } >/dev/null; then
16825 if test -s conftest.err; then
16826 ac_cpp_err=$ac_c_preproc_warn_flag
16827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16834 if test -z "$ac_cpp_err"; then
16835 ac_header_preproc=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_header_preproc=no
16843 rm -f conftest.err conftest.$ac_ext
16844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16845 echo "${ECHO_T}$ac_header_preproc" >&6; }
16847 # So? What about this header?
16848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16854 ac_header_preproc=yes
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16870 ## ------------------------------------ ##
16871 ## Report this to http://llvm.org/bugs/ ##
16872 ## ------------------------------------ ##
16874 ) | sed "s/^/$as_me: WARNING: /" >&2
16877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 eval "$as_ac_Header=\$ac_header_preproc"
16884 ac_res=`eval echo '${'$as_ac_Header'}'`
16885 { echo "$as_me:$LINENO: result: $ac_res" >&5
16886 echo "${ECHO_T}$ac_res" >&6; }
16889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16890 cat >>confdefs.h <<_ACEOF
16891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16901 for ac_header in CrashReporterClient.h
16903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_res=`eval echo '${'$as_ac_Header'}'`
16911 { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16914 # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 $ac_includes_default
16924 #include <$ac_header>
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try='test -s conftest.$ac_objext'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_header_compiler=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <$ac_header>
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
16997 ac_cpp_err=$ac_c_preproc_warn_flag
16998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc=yes
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041 ## ------------------------------------ ##
17042 ## Report this to http://llvm.org/bugs/ ##
17043 ## ------------------------------------ ##
17045 ) | sed "s/^/$as_me: WARNING: /" >&2
17048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 eval "$as_ac_Header=\$ac_header_preproc"
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056 { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17070 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17071 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17072 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 extern const char *__crashreporter_info__;
17082 __crashreporter_info__ = "test";
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17103 { (case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_try") 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try='test -s conftest$ac_exeext'
17113 { (case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_try") 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17123 { echo "$as_me:$LINENO: result: yes" >&5
17124 echo "${ECHO_T}yes" >&6; }
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_CRASHREPORTER_INFO 1
17132 echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.$ac_ext >&5
17136 { echo "$as_me:$LINENO: result: no" >&5
17137 echo "${ECHO_T}no" >&6; }
17139 cat >>confdefs.h <<\_ACEOF
17140 #define HAVE_CRASHREPORTER_INFO 0
17146 rm -f core conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17151 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17152 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17153 if test "${ac_cv_huge_val_sanity+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 ac_cpp='$CXXCPP $CPPFLAGS'
17159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17163 ac_save_CXXFLAGS=$CXXFLAGS
17164 CXXFLAGS="$CXXFLAGS -pedantic"
17165 if test "$cross_compiling" = yes; then
17166 ac_cv_huge_val_sanity=yes
17168 cat >conftest.$ac_ext <<_ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17178 double x = HUGE_VAL; return x != x;
17183 rm -f conftest$ac_exeext
17184 if { (ac_try="$ac_link"
17185 case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_link") 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17194 { (case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_try") 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_huge_val_sanity=yes
17205 echo "$as_me: program exited with status $ac_status" >&5
17206 echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17209 ( exit $ac_status )
17210 ac_cv_huge_val_sanity=no
17212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17216 CXXFLAGS=$ac_save_CXXFLAGS
17218 ac_cpp='$CPP $CPPFLAGS'
17219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17225 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17226 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17227 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17230 { echo "$as_me:$LINENO: checking for pid_t" >&5
17231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17232 if test "${ac_cv_type_pid_t+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 $ac_includes_default
17242 typedef pid_t ac__type_new_;
17246 if ((ac__type_new_ *) 0)
17248 if (sizeof (ac__type_new_))
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_compile") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest.$ac_objext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 ac_cv_type_pid_t=yes
17290 echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_cv_type_pid_t=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17299 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17300 if test $ac_cv_type_pid_t = yes; then
17304 cat >>confdefs.h <<_ACEOF
17310 { echo "$as_me:$LINENO: checking for size_t" >&5
17311 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17312 if test "${ac_cv_type_size_t+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 $ac_includes_default
17322 typedef size_t ac__type_new_;
17326 if ((ac__type_new_ *) 0)
17328 if (sizeof (ac__type_new_))
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_compile") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest.$ac_objext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_type_size_t=yes
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_cv_type_size_t=no
17376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17379 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17380 if test $ac_cv_type_size_t = yes; then
17384 cat >>confdefs.h <<_ACEOF
17385 #define size_t unsigned int
17391 cat >>confdefs.h <<_ACEOF
17392 #define RETSIGTYPE void
17395 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17396 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17397 if test "${ac_cv_struct_tm+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 cat >conftest.$ac_ext <<_ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 #include <sys/types.h>
17412 struct tm *tp; tp->tm_sec;
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_struct_tm=time.h
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_struct_tm=sys/time.h
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17462 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17463 if test $ac_cv_struct_tm = sys/time.h; then
17465 cat >>confdefs.h <<\_ACEOF
17466 #define TM_IN_SYS_TIME 1
17471 { echo "$as_me:$LINENO: checking for int64_t" >&5
17472 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17473 if test "${ac_cv_type_int64_t+set}" = set; then
17474 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 $ac_includes_default
17483 typedef int64_t ac__type_new_;
17487 if ((ac__type_new_ *) 0)
17489 if (sizeof (ac__type_new_))
17495 rm -f conftest.$ac_objext
17496 if { (ac_try="$ac_compile"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_compile") 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } &&
17509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17510 { (case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_try") 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } &&
17519 { ac_try='test -s conftest.$ac_objext'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_cv_type_int64_t=yes
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 ac_cv_type_int64_t=no
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17540 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17541 if test $ac_cv_type_int64_t = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define HAVE_INT64_T 1
17549 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17550 echo "$as_me: error: Type int64_t required but not found" >&2;}
17551 { (exit 1); exit 1; }; }
17554 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17555 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17556 if test "${ac_cv_type_uint64_t+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 typedef uint64_t ac__type_new_;
17570 if ((ac__type_new_ *) 0)
17572 if (sizeof (ac__type_new_))
17578 rm -f conftest.$ac_objext
17579 if { (ac_try="$ac_compile"
17580 case "(($ac_try" in
17581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582 *) ac_try_echo=$ac_try;;
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585 (eval "$ac_compile") 2>conftest.er1
17587 grep -v '^ *+' conftest.er1 >conftest.err
17589 cat conftest.err >&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17593 { (case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_try") 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_type_uint64_t=yes
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_cv_type_uint64_t=no
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17623 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17624 if test $ac_cv_type_uint64_t = yes; then
17626 cat >>confdefs.h <<_ACEOF
17627 #define HAVE_UINT64_T 1
17632 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17633 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17634 if test "${ac_cv_type_u_int64_t+set}" = set; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 $ac_includes_default
17644 typedef u_int64_t ac__type_new_;
17648 if ((ac__type_new_ *) 0)
17650 if (sizeof (ac__type_new_))
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^ *+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_u_int64_t=yes
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17695 ac_cv_type_u_int64_t=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17701 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17702 if test $ac_cv_type_u_int64_t = yes; then
17704 cat >>confdefs.h <<_ACEOF
17705 #define HAVE_U_INT64_T 1
17710 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17711 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17712 { (exit 1); exit 1; }; }
17726 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 cat >conftest.$ac_ext <<_ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17742 #define $ac_func innocuous_$ac_func
17744 /* System header to define __stub macros and hopefully few prototypes,
17745 which can conflict with char $ac_func (); below.
17746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17747 <limits.h> exists even on freestanding compilers. */
17750 # include <limits.h>
17752 # include <assert.h>
17757 /* Override any GCC internal prototype to avoid an error.
17758 Use char because int might match the return type of a GCC
17759 builtin and then its argument prototype would still apply. */
17764 /* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767 #if defined __stub_$ac_func || defined __stub___$ac_func
17774 return $ac_func ();
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17794 { (case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_try") 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try='test -s conftest$ac_exeext'
17804 { (case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_try") 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; }; then
17813 eval "$as_ac_var=yes"
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 eval "$as_ac_var=no"
17821 rm -f core conftest.err conftest.$ac_objext \
17822 conftest$ac_exeext conftest.$ac_ext
17824 ac_res=`eval echo '${'$as_ac_var'}'`
17825 { echo "$as_me:$LINENO: result: $ac_res" >&5
17826 echo "${ECHO_T}$ac_res" >&6; }
17827 if test `eval echo '${'$as_ac_var'}'` = yes; then
17828 cat >>confdefs.h <<_ACEOF
17829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17839 for ac_func in powf fmodf strtof round
17841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17855 #define $ac_func innocuous_$ac_func
17857 /* System header to define __stub macros and hopefully few prototypes,
17858 which can conflict with char $ac_func (); below.
17859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17860 <limits.h> exists even on freestanding compilers. */
17863 # include <limits.h>
17865 # include <assert.h>
17870 /* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
17877 /* The GNU C library defines this for functions which it implements
17878 to always fail with ENOSYS. Some functions are actually named
17879 something starting with __ and the normal name is an alias. */
17880 #if defined __stub_$ac_func || defined __stub___$ac_func
17887 return $ac_func ();
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } &&
17906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17912 (eval "$ac_try") 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922 (eval "$ac_try") 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 eval "$as_ac_var=yes"
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 eval "$as_ac_var=no"
17934 rm -f core conftest.err conftest.$ac_objext \
17935 conftest$ac_exeext conftest.$ac_ext
17937 ac_res=`eval echo '${'$as_ac_var'}'`
17938 { echo "$as_me:$LINENO: result: $ac_res" >&5
17939 echo "${ECHO_T}$ac_res" >&6; }
17940 if test `eval echo '${'$as_ac_var'}'` = yes; then
17941 cat >>confdefs.h <<_ACEOF
17942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17953 for ac_func in log log2 log10 exp exp2
17955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17969 #define $ac_func innocuous_$ac_func
17971 /* System header to define __stub macros and hopefully few prototypes,
17972 which can conflict with char $ac_func (); below.
17973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17974 <limits.h> exists even on freestanding compilers. */
17977 # include <limits.h>
17979 # include <assert.h>
17984 /* Override any GCC internal prototype to avoid an error.
17985 Use char because int might match the return type of a GCC
17986 builtin and then its argument prototype would still apply. */
17991 /* The GNU C library defines this for functions which it implements
17992 to always fail with ENOSYS. Some functions are actually named
17993 something starting with __ and the normal name is an alias. */
17994 #if defined __stub_$ac_func || defined __stub___$ac_func
18001 return $ac_func ();
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_link") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest$ac_exeext'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; }; then
18040 eval "$as_ac_var=yes"
18042 echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 eval "$as_ac_var=no"
18048 rm -f core conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18051 ac_res=`eval echo '${'$as_ac_var'}'`
18052 { echo "$as_me:$LINENO: result: $ac_res" >&5
18053 echo "${ECHO_T}$ac_res" >&6; }
18054 if test `eval echo '${'$as_ac_var'}'` = yes; then
18055 cat >>confdefs.h <<_ACEOF
18056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18067 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18083 #define $ac_func innocuous_$ac_func
18085 /* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char $ac_func (); below.
18087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088 <limits.h> exists even on freestanding compilers. */
18091 # include <limits.h>
18093 # include <assert.h>
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18105 /* The GNU C library defines this for functions which it implements
18106 to always fail with ENOSYS. Some functions are actually named
18107 something starting with __ and the normal name is an alias. */
18108 #if defined __stub_$ac_func || defined __stub___$ac_func
18115 return $ac_func ();
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18129 grep -v '^ *+' conftest.er1 >conftest.err
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135 { (case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_try") 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; } &&
18144 { ac_try='test -s conftest$ac_exeext'
18145 { (case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_try") 2>&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 eval "$as_ac_var=yes"
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18159 eval "$as_ac_var=no"
18162 rm -f core conftest.err conftest.$ac_objext \
18163 conftest$ac_exeext conftest.$ac_ext
18165 ac_res=`eval echo '${'$as_ac_var'}'`
18166 { echo "$as_me:$LINENO: result: $ac_res" >&5
18167 echo "${ECHO_T}$ac_res" >&6; }
18168 if test `eval echo '${'$as_ac_var'}'` = yes; then
18169 cat >>confdefs.h <<_ACEOF
18170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18179 for ac_func in isatty mkdtemp mkstemp
18181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18195 #define $ac_func innocuous_$ac_func
18197 /* System header to define __stub macros and hopefully few prototypes,
18198 which can conflict with char $ac_func (); below.
18199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18200 <limits.h> exists even on freestanding compilers. */
18203 # include <limits.h>
18205 # include <assert.h>
18210 /* Override any GCC internal prototype to avoid an error.
18211 Use char because int might match the return type of a GCC
18212 builtin and then its argument prototype would still apply. */
18217 /* The GNU C library defines this for functions which it implements
18218 to always fail with ENOSYS. Some functions are actually named
18219 something starting with __ and the normal name is an alias. */
18220 #if defined __stub_$ac_func || defined __stub___$ac_func
18227 return $ac_func ();
18232 rm -f conftest.$ac_objext conftest$ac_exeext
18233 if { (ac_try="$ac_link"
18234 case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_link") 2>conftest.er1
18241 grep -v '^ *+' conftest.er1 >conftest.err
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
18246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18247 { (case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_try") 2>&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (case "(($ac_try" in
18258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259 *) ac_try_echo=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_try") 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 eval "$as_ac_var=yes"
18268 echo "$as_me: failed program was:" >&5
18269 sed 's/^/| /' conftest.$ac_ext >&5
18271 eval "$as_ac_var=no"
18274 rm -f core conftest.err conftest.$ac_objext \
18275 conftest$ac_exeext conftest.$ac_ext
18277 ac_res=`eval echo '${'$as_ac_var'}'`
18278 { echo "$as_me:$LINENO: result: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 if test `eval echo '${'$as_ac_var'}'` = yes; then
18281 cat >>confdefs.h <<_ACEOF
18282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18294 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18310 #define $ac_func innocuous_$ac_func
18312 /* System header to define __stub macros and hopefully few prototypes,
18313 which can conflict with char $ac_func (); below.
18314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18315 <limits.h> exists even on freestanding compilers. */
18318 # include <limits.h>
18320 # include <assert.h>
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18332 /* The GNU C library defines this for functions which it implements
18333 to always fail with ENOSYS. Some functions are actually named
18334 something starting with __ and the normal name is an alias. */
18335 #if defined __stub_$ac_func || defined __stub___$ac_func
18342 return $ac_func ();
18347 rm -f conftest.$ac_objext conftest$ac_exeext
18348 if { (ac_try="$ac_link"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_link") 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18362 { (case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_try") 2>&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest$ac_exeext'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 eval "$as_ac_var=yes"
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 eval "$as_ac_var=no"
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18392 ac_res=`eval echo '${'$as_ac_var'}'`
18393 { echo "$as_me:$LINENO: result: $ac_res" >&5
18394 echo "${ECHO_T}$ac_res" >&6; }
18395 if test `eval echo '${'$as_ac_var'}'` = yes; then
18396 cat >>confdefs.h <<_ACEOF
18397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18407 for ac_func in strerror strerror_r setenv arc4random
18409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18423 #define $ac_func innocuous_$ac_func
18425 /* System header to define __stub macros and hopefully few prototypes,
18426 which can conflict with char $ac_func (); below.
18427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428 <limits.h> exists even on freestanding compilers. */
18431 # include <limits.h>
18433 # include <assert.h>
18438 /* Override any GCC internal prototype to avoid an error.
18439 Use char because int might match the return type of a GCC
18440 builtin and then its argument prototype would still apply. */
18445 /* The GNU C library defines this for functions which it implements
18446 to always fail with ENOSYS. Some functions are actually named
18447 something starting with __ and the normal name is an alias. */
18448 #if defined __stub_$ac_func || defined __stub___$ac_func
18455 return $ac_func ();
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (ac_try="$ac_link"
18462 case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_link") 2>conftest.er1
18469 grep -v '^ *+' conftest.er1 >conftest.err
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18475 { (case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_try") 2>&5
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
18484 { ac_try='test -s conftest$ac_exeext'
18485 { (case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_try") 2>&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; }; then
18494 eval "$as_ac_var=yes"
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 eval "$as_ac_var=no"
18502 rm -f core conftest.err conftest.$ac_objext \
18503 conftest$ac_exeext conftest.$ac_ext
18505 ac_res=`eval echo '${'$as_ac_var'}'`
18506 { echo "$as_me:$LINENO: result: $ac_res" >&5
18507 echo "${ECHO_T}$ac_res" >&6; }
18508 if test `eval echo '${'$as_ac_var'}'` = yes; then
18509 cat >>confdefs.h <<_ACEOF
18510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18520 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 cat >conftest.$ac_ext <<_ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18536 #define $ac_func innocuous_$ac_func
18538 /* System header to define __stub macros and hopefully few prototypes,
18539 which can conflict with char $ac_func (); below.
18540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18541 <limits.h> exists even on freestanding compilers. */
18544 # include <limits.h>
18546 # include <assert.h>
18551 /* Override any GCC internal prototype to avoid an error.
18552 Use char because int might match the return type of a GCC
18553 builtin and then its argument prototype would still apply. */
18558 /* The GNU C library defines this for functions which it implements
18559 to always fail with ENOSYS. Some functions are actually named
18560 something starting with __ and the normal name is an alias. */
18561 #if defined __stub_$ac_func || defined __stub___$ac_func
18568 return $ac_func ();
18573 rm -f conftest.$ac_objext conftest$ac_exeext
18574 if { (ac_try="$ac_link"
18575 case "(($ac_try" in
18576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18577 *) ac_try_echo=$ac_try;;
18579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18580 (eval "$ac_link") 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18588 { (case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_try") 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest$ac_exeext'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 eval "$as_ac_var=yes"
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 eval "$as_ac_var=no"
18615 rm -f core conftest.err conftest.$ac_objext \
18616 conftest$ac_exeext conftest.$ac_ext
18618 ac_res=`eval echo '${'$as_ac_var'}'`
18619 { echo "$as_me:$LINENO: result: $ac_res" >&5
18620 echo "${ECHO_T}$ac_res" >&6; }
18621 if test `eval echo '${'$as_ac_var'}'` = yes; then
18622 cat >>confdefs.h <<_ACEOF
18623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18634 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18650 #define $ac_func innocuous_$ac_func
18652 /* System header to define __stub macros and hopefully few prototypes,
18653 which can conflict with char $ac_func (); below.
18654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18655 <limits.h> exists even on freestanding compilers. */
18658 # include <limits.h>
18660 # include <assert.h>
18665 /* Override any GCC internal prototype to avoid an error.
18666 Use char because int might match the return type of a GCC
18667 builtin and then its argument prototype would still apply. */
18672 /* The GNU C library defines this for functions which it implements
18673 to always fail with ENOSYS. Some functions are actually named
18674 something starting with __ and the normal name is an alias. */
18675 #if defined __stub_$ac_func || defined __stub___$ac_func
18682 return $ac_func ();
18687 rm -f conftest.$ac_objext conftest$ac_exeext
18688 if { (ac_try="$ac_link"
18689 case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_link") 2>conftest.er1
18696 grep -v '^ *+' conftest.er1 >conftest.err
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18702 { (case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_try") 2>&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest$ac_exeext'
18712 { (case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_try") 2>&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; }; then
18721 eval "$as_ac_var=yes"
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 eval "$as_ac_var=no"
18729 rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18732 ac_res=`eval echo '${'$as_ac_var'}'`
18733 { echo "$as_me:$LINENO: result: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18735 if test `eval echo '${'$as_ac_var'}'` = yes; then
18736 cat >>confdefs.h <<_ACEOF
18737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18745 for ac_func in futimes futimens
18747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 cat >conftest.$ac_ext <<_ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18761 #define $ac_func innocuous_$ac_func
18763 /* System header to define __stub macros and hopefully few prototypes,
18764 which can conflict with char $ac_func (); below.
18765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766 <limits.h> exists even on freestanding compilers. */
18769 # include <limits.h>
18771 # include <assert.h>
18776 /* Override any GCC internal prototype to avoid an error.
18777 Use char because int might match the return type of a GCC
18778 builtin and then its argument prototype would still apply. */
18783 /* The GNU C library defines this for functions which it implements
18784 to always fail with ENOSYS. Some functions are actually named
18785 something starting with __ and the normal name is an alias. */
18786 #if defined __stub_$ac_func || defined __stub___$ac_func
18793 return $ac_func ();
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } &&
18812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18813 { (case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818 (eval "$ac_try") 2>&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest$ac_exeext'
18823 { (case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_try") 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 eval "$as_ac_var=yes"
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 eval "$as_ac_var=no"
18840 rm -f core conftest.err conftest.$ac_objext \
18841 conftest$ac_exeext conftest.$ac_ext
18843 ac_res=`eval echo '${'$as_ac_var'}'`
18844 { echo "$as_me:$LINENO: result: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18846 if test `eval echo '${'$as_ac_var'}'` = yes; then
18847 cat >>confdefs.h <<_ACEOF
18848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18854 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18855 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18856 if test "${llvm_cv_c_printf_a+set}" = set; then
18857 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 ac_cpp='$CPP $CPPFLAGS'
18861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18865 if test "$cross_compiling" = yes; then
18866 llvmac_cv_c_printf_a=no
18868 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18877 #include <stdlib.h>
18883 volatile double A, B;
18887 sprintf(Buffer, "%a", A);
18891 if (A != 0x1.999999999999ap-4)
18898 rm -f conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18909 { (case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_try") 2>&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 llvm_cv_c_printf_a=yes
18920 echo "$as_me: program exited with status $ac_status" >&5
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ( exit $ac_status )
18925 llvmac_cv_c_printf_a=no
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18932 ac_cpp='$CPP $CPPFLAGS'
18933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18939 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18940 if test "$llvm_cv_c_printf_a" = "yes"; then
18942 cat >>confdefs.h <<\_ACEOF
18943 #define HAVE_PRINTF_A 1
18950 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18951 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18952 if test "${ac_cv_func_rand48+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 ac_cpp='$CXXCPP $CPPFLAGS'
18958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <stdlib.h>
18972 srand48(0);lrand48();drand48();
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981 *) ac_try_echo=$ac_try;;
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984 (eval "$ac_compile") 2>conftest.er1
18986 grep -v '^ *+' conftest.er1 >conftest.err
18988 cat conftest.err >&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; }; then
19011 ac_cv_func_rand48=yes
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19016 ac_cv_func_rand48=no
19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021 ac_cpp='$CPP $CPPFLAGS'
19022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19029 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19031 if test "$ac_cv_func_rand48" = "yes" ; then
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE_RAND48 1
19040 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19041 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19042 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 $ac_includes_default
19056 char *p = (char *) strerror_s;
19064 rm -f conftest.$ac_objext
19065 if { (ac_try="$ac_compile"
19066 case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_compile") 2>conftest.er1
19073 grep -v '^ *+' conftest.er1 >conftest.err
19075 cat conftest.err >&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19079 { (case "(($ac_try" in
19080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_try") 2>&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_try") 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_cv_have_decl_strerror_s=yes
19100 echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19103 ac_cv_have_decl_strerror_s=no
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19109 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19110 if test $ac_cv_have_decl_strerror_s = yes; then
19112 cat >>confdefs.h <<_ACEOF
19113 #define HAVE_DECL_STRERROR_S 1
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_DECL_STRERROR_S 0
19127 if test "$llvm_cv_os_type" = "MingW" ; then
19128 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19129 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19130 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 ac_check_lib_save_LIBS=$LIBS
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19142 /* Override any GCC internal prototype to avoid an error.
19143 Use char because int might match the return type of a GCC
19144 builtin and then its argument prototype would still apply. */
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (ac_try="$ac_link"
19159 case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_link") 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } &&
19171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19172 { (case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_try") 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_lib_gcc__alloca=yes
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_lib_gcc__alloca=no
19199 rm -f core conftest.err conftest.$ac_objext \
19200 conftest$ac_exeext conftest.$ac_ext
19201 LIBS=$ac_check_lib_save_LIBS
19203 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19204 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19205 if test $ac_cv_lib_gcc__alloca = yes; then
19207 cat >>confdefs.h <<\_ACEOF
19208 #define HAVE__ALLOCA 1
19213 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19214 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19215 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19216 echo $ECHO_N "(cached) $ECHO_C" >&6
19218 ac_check_lib_save_LIBS=$LIBS
19220 cat >conftest.$ac_ext <<_ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19227 /* Override any GCC internal prototype to avoid an error.
19228 Use char because int might match the return type of a GCC
19229 builtin and then its argument prototype would still apply. */
19237 return __alloca ();
19242 rm -f conftest.$ac_objext conftest$ac_exeext
19243 if { (ac_try="$ac_link"
19244 case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_link") 2>conftest.er1
19251 grep -v '^ *+' conftest.er1 >conftest.err
19253 cat conftest.err >&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
19256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19257 { (case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_try") 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; } &&
19266 { ac_try='test -s conftest$ac_exeext'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19272 (eval "$ac_try") 2>&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_lib_gcc___alloca=yes
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_cv_lib_gcc___alloca=no
19284 rm -f core conftest.err conftest.$ac_objext \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19289 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19290 if test $ac_cv_lib_gcc___alloca = yes; then
19292 cat >>confdefs.h <<\_ACEOF
19293 #define HAVE___ALLOCA 1
19298 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19299 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19300 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 ac_check_lib_save_LIBS=$LIBS
19305 cat >conftest.$ac_ext <<_ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19312 /* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
19322 return __chkstk ();
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_link") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest$ac_exeext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_cv_lib_gcc___chkstk=yes
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_cv_lib_gcc___chkstk=no
19369 rm -f core conftest.err conftest.$ac_objext \
19370 conftest$ac_exeext conftest.$ac_ext
19371 LIBS=$ac_check_lib_save_LIBS
19373 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19374 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19375 if test $ac_cv_lib_gcc___chkstk = yes; then
19377 cat >>confdefs.h <<\_ACEOF
19378 #define HAVE___CHKSTK 1
19383 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19384 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19385 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 ac_check_lib_save_LIBS=$LIBS
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19397 /* Override any GCC internal prototype to avoid an error.
19398 Use char because int might match the return type of a GCC
19399 builtin and then its argument prototype would still apply. */
19407 return ___chkstk ();
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (ac_try="$ac_link"
19414 case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
19426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19427 { (case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest$ac_exeext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_cv_lib_gcc____chkstk=yes
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19451 ac_cv_lib_gcc____chkstk=no
19454 rm -f core conftest.err conftest.$ac_objext \
19455 conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19458 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19459 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19460 if test $ac_cv_lib_gcc____chkstk = yes; then
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE____CHKSTK 1
19469 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19470 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19471 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 ac_check_lib_save_LIBS=$LIBS
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19483 /* Override any GCC internal prototype to avoid an error.
19484 Use char because int might match the return type of a GCC
19485 builtin and then its argument prototype would still apply. */
19493 return __ashldi3 ();
19498 rm -f conftest.$ac_objext conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest$ac_exeext'
19523 { (case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_lib_gcc___ashldi3=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_lib_gcc___ashldi3=no
19540 rm -f core conftest.err conftest.$ac_objext \
19541 conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19544 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19545 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19546 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19548 cat >>confdefs.h <<\_ACEOF
19549 #define HAVE___ASHLDI3 1
19554 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19555 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19556 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 ac_check_lib_save_LIBS=$LIBS
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19568 /* Override any GCC internal prototype to avoid an error.
19569 Use char because int might match the return type of a GCC
19570 builtin and then its argument prototype would still apply. */
19578 return __ashrdi3 ();
19583 rm -f conftest.$ac_objext conftest$ac_exeext
19584 if { (ac_try="$ac_link"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_link") 2>conftest.er1
19592 grep -v '^ *+' conftest.er1 >conftest.err
19594 cat conftest.err >&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); } &&
19597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_lib_gcc___ashrdi3=yes
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_lib_gcc___ashrdi3=no
19625 rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19627 LIBS=$ac_check_lib_save_LIBS
19629 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19630 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19631 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define HAVE___ASHRDI3 1
19639 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19640 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19641 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 ac_check_lib_save_LIBS=$LIBS
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19653 /* Override any GCC internal prototype to avoid an error.
19654 Use char because int might match the return type of a GCC
19655 builtin and then its argument prototype would still apply. */
19663 return __divdi3 ();
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_link") 2>conftest.er1
19677 grep -v '^ *+' conftest.er1 >conftest.err
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
19682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19683 { (case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_try") 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest$ac_exeext'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_try") 2>&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_lib_gcc___divdi3=yes
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 ac_cv_lib_gcc___divdi3=no
19710 rm -f core conftest.err conftest.$ac_objext \
19711 conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19714 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19715 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19716 if test $ac_cv_lib_gcc___divdi3 = yes; then
19718 cat >>confdefs.h <<\_ACEOF
19719 #define HAVE___DIVDI3 1
19724 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19725 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19726 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19729 ac_check_lib_save_LIBS=$LIBS
19731 cat >conftest.$ac_ext <<_ACEOF
19734 cat confdefs.h >>conftest.$ac_ext
19735 cat >>conftest.$ac_ext <<_ACEOF
19736 /* end confdefs.h. */
19738 /* Override any GCC internal prototype to avoid an error.
19739 Use char because int might match the return type of a GCC
19740 builtin and then its argument prototype would still apply. */
19748 return __fixdfdi ();
19753 rm -f conftest.$ac_objext conftest$ac_exeext
19754 if { (ac_try="$ac_link"
19755 case "(($ac_try" in
19756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19757 *) ac_try_echo=$ac_try;;
19759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19760 (eval "$ac_link") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19768 { (case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_try") 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest$ac_exeext'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; }; then
19787 ac_cv_lib_gcc___fixdfdi=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_gcc___fixdfdi=no
19795 rm -f core conftest.err conftest.$ac_objext \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19800 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19801 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE___FIXDFDI 1
19809 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19810 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19811 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 ac_check_lib_save_LIBS=$LIBS
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 /* Override any GCC internal prototype to avoid an error.
19824 Use char because int might match the return type of a GCC
19825 builtin and then its argument prototype would still apply. */
19833 return __fixsfdi ();
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_link") 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
19852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest$ac_exeext'
19863 { (case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_try") 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_lib_gcc___fixsfdi=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_lib_gcc___fixsfdi=no
19880 rm -f core conftest.err conftest.$ac_objext \
19881 conftest$ac_exeext conftest.$ac_ext
19882 LIBS=$ac_check_lib_save_LIBS
19884 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19885 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19886 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19888 cat >>confdefs.h <<\_ACEOF
19889 #define HAVE___FIXSFDI 1
19894 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19895 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19896 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19899 ac_check_lib_save_LIBS=$LIBS
19901 cat >conftest.$ac_ext <<_ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19914 char __floatdidf ();
19918 return __floatdidf ();
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19938 { (case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_try") 2>&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest$ac_exeext'
19948 { (case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_try") 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; }; then
19957 ac_cv_lib_gcc___floatdidf=yes
19959 echo "$as_me: failed program was:" >&5
19960 sed 's/^/| /' conftest.$ac_ext >&5
19962 ac_cv_lib_gcc___floatdidf=no
19965 rm -f core conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19969 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19970 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19971 if test $ac_cv_lib_gcc___floatdidf = yes; then
19973 cat >>confdefs.h <<\_ACEOF
19974 #define HAVE___FLOATDIDF 1
19979 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19980 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19981 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 ac_check_lib_save_LIBS=$LIBS
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
20003 return __lshrdi3 ();
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023 { (case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_try") 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; } &&
20032 { ac_try='test -s conftest$ac_exeext'
20033 { (case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_try") 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_lib_gcc___lshrdi3=yes
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_cv_lib_gcc___lshrdi3=no
20050 rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext conftest.$ac_ext
20052 LIBS=$ac_check_lib_save_LIBS
20054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20055 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20056 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define HAVE___LSHRDI3 1
20064 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20065 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20066 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 ac_check_lib_save_LIBS=$LIBS
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20088 return __moddi3 ();
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest$ac_exeext'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 ac_cv_lib_gcc___moddi3=yes
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_lib_gcc___moddi3=no
20135 rm -f core conftest.err conftest.$ac_objext \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20139 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20140 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20141 if test $ac_cv_lib_gcc___moddi3 = yes; then
20143 cat >>confdefs.h <<\_ACEOF
20144 #define HAVE___MODDI3 1
20149 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20150 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 ac_check_lib_save_LIBS=$LIBS
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20173 return __udivdi3 ();
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_try") 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest$ac_exeext'
20203 { (case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_try") 2>&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 ac_cv_lib_gcc___udivdi3=yes
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ac_cv_lib_gcc___udivdi3=no
20220 rm -f core conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20222 LIBS=$ac_check_lib_save_LIBS
20224 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20225 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20226 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE___UDIVDI3 1
20234 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20235 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20236 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 ac_check_lib_save_LIBS=$LIBS
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20248 /* Override any GCC internal prototype to avoid an error.
20249 Use char because int might match the return type of a GCC
20250 builtin and then its argument prototype would still apply. */
20258 return __umoddi3 ();
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); } &&
20277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20278 { (case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_try") 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest$ac_exeext'
20288 { (case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_try") 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_lib_gcc___umoddi3=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_lib_gcc___umoddi3=no
20305 rm -f core conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20309 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20310 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20311 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE___UMODDI3 1
20320 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20321 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20322 if test "${ac_cv_lib_gcc___main+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 ac_check_lib_save_LIBS=$LIBS
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 /* Override any GCC internal prototype to avoid an error.
20335 Use char because int might match the return type of a GCC
20336 builtin and then its argument prototype would still apply. */
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20358 grep -v '^ *+' conftest.er1 >conftest.err
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } &&
20363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest$ac_exeext'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_lib_gcc___main=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20388 ac_cv_lib_gcc___main=no
20391 rm -f core conftest.err conftest.$ac_objext \
20392 conftest$ac_exeext conftest.$ac_ext
20393 LIBS=$ac_check_lib_save_LIBS
20395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20396 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20397 if test $ac_cv_lib_gcc___main = yes; then
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE___MAIN 1
20405 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20406 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20407 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 ac_check_lib_save_LIBS=$LIBS
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20429 return __cmpdi2 ();
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20443 grep -v '^ *+' conftest.er1 >conftest.err
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
20448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20449 { (case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_try") 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; } &&
20458 { ac_try='test -s conftest$ac_exeext'
20459 { (case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_try") 2>&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; }; then
20468 ac_cv_lib_gcc___cmpdi2=yes
20470 echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20473 ac_cv_lib_gcc___cmpdi2=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20481 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20482 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE___CMPDI2 1
20492 if test "$llvm_cv_os_type" = "MingW" ; then
20493 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20494 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20495 cat >conftest.$ac_ext <<_ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20503 #include <windows.h>
20504 #include <imagehlp.h>
20505 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20506 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20545 { echo "$as_me:$LINENO: result: yes" >&5
20546 echo "${ECHO_T}yes" >&6; }
20547 llvm_cv_win32_elmcb_pcstr="PCSTR"
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20554 { echo "$as_me:$LINENO: result: no" >&5
20555 echo "${ECHO_T}no" >&6; }
20556 llvm_cv_win32_elmcb_pcstr="PSTR"
20560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562 cat >>confdefs.h <<_ACEOF
20563 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20570 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20571 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20572 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 ac_cpp='$CXXCPP $CPPFLAGS'
20578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
20611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20612 { (case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_try") 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_try") 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_func_isnan_in_math_h=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_cv_func_isnan_in_math_h=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 ac_cpp='$CPP $CPPFLAGS'
20642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20649 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20652 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_ISNAN_IN_MATH_H 1
20661 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20662 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20663 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 ac_cpp='$CXXCPP $CPPFLAGS'
20669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_compile") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
20702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } &&
20712 { ac_try='test -s conftest.$ac_objext'
20713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_cv_func_isnan_in_cmath=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_cv_func_isnan_in_cmath=no
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 ac_cpp='$CPP $CPPFLAGS'
20733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20744 cat >>confdefs.h <<\_ACEOF
20745 #define HAVE_ISNAN_IN_CMATH 1
20751 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20752 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20753 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 ac_cpp='$CXXCPP $CPPFLAGS'
20759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20773 float f; std::isnan(f);
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
20792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20793 { (case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_try") 2>&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); }; } &&
20802 { ac_try='test -s conftest.$ac_objext'
20803 { (case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_try") 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 ac_cv_func_std_isnan_in_cmath=yes
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 ac_cv_func_std_isnan_in_cmath=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20822 ac_cpp='$CPP $CPPFLAGS'
20823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20829 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20830 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20832 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_STD_ISNAN_IN_CMATH 1
20843 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20844 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20845 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20850 ac_cpp='$CXXCPP $CPPFLAGS'
20851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20870 rm -f conftest.$ac_objext
20871 if { (ac_try="$ac_compile"
20872 case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 ac_cv_func_isinf_in_math_h=yes
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_func_isinf_in_math_h=no
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914 ac_cpp='$CPP $CPPFLAGS'
20915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20921 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20922 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20924 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20926 cat >>confdefs.h <<\_ACEOF
20927 #define HAVE_ISINF_IN_MATH_H 1
20933 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20934 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20935 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20940 ac_cpp='$CXXCPP $CPPFLAGS'
20941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20960 rm -f conftest.$ac_objext
20961 if { (ac_try="$ac_compile"
20962 case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_compile") 2>conftest.er1
20969 grep -v '^ *+' conftest.er1 >conftest.err
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
20985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_cv_func_isinf_in_cmath=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_cv_func_isinf_in_cmath=no
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 ac_cpp='$CPP $CPPFLAGS'
21005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21011 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21012 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21014 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21016 cat >>confdefs.h <<\_ACEOF
21017 #define HAVE_ISINF_IN_CMATH 1
21023 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21024 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21025 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 ac_cpp='$CXXCPP $CPPFLAGS'
21031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21045 float f; std::isinf(f);
21050 rm -f conftest.$ac_objext
21051 if { (ac_try="$ac_compile"
21052 case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_compile") 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21065 { (case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_try") 2>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; } &&
21074 { ac_try='test -s conftest.$ac_objext'
21075 { (case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_try") 2>&5
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_func_std_isinf_in_cmath=yes
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_cv_func_std_isinf_in_cmath=no
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094 ac_cpp='$CPP $CPPFLAGS'
21095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21102 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21104 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_STD_ISINF_IN_CMATH 1
21113 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21114 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21115 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 ac_cpp='$CXXCPP $CPPFLAGS'
21121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 #include <ieeefp.h>
21135 float f; finite(f);
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_compile") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21155 { (case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_try") 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
21165 { (case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_try") 2>&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; }; then
21174 ac_cv_func_finite_in_ieeefp_h=yes
21176 echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21179 ac_cv_func_finite_in_ieeefp_h=no
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 ac_cpp='$CPP $CPPFLAGS'
21185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21192 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21194 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_FINITE_IN_IEEEFP_H 1
21204 if test "$llvm_cv_platform_type" = "Unix" ; then
21207 for ac_header in stdlib.h unistd.h
21209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 ac_res=`eval echo '${'$as_ac_Header'}'`
21217 { echo "$as_me:$LINENO: result: $ac_res" >&5
21218 echo "${ECHO_T}$ac_res" >&6; }
21220 # Is the header compilable?
21221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 $ac_includes_default
21230 #include <$ac_header>
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21247 { (case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_try") 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } &&
21256 { ac_try='test -s conftest.$ac_objext'
21257 { (case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_try") 2>&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 ac_header_compiler=yes
21268 echo "$as_me: failed program was:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 ac_header_compiler=no
21274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21276 echo "${ECHO_T}$ac_header_compiler" >&6; }
21278 # Is the header present?
21279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 #include <$ac_header>
21289 if { (ac_try="$ac_cpp conftest.$ac_ext"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } >/dev/null; then
21302 if test -s conftest.err; then
21303 ac_cpp_err=$ac_c_preproc_warn_flag
21304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21311 if test -z "$ac_cpp_err"; then
21312 ac_header_preproc=yes
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_header_preproc=no
21320 rm -f conftest.err conftest.$ac_ext
21321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21322 echo "${ECHO_T}$ac_header_preproc" >&6; }
21324 # So? What about this header?
21325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21331 ac_header_preproc=yes
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21347 ## ------------------------------------ ##
21348 ## Report this to http://llvm.org/bugs/ ##
21349 ## ------------------------------------ ##
21351 ) | sed "s/^/$as_me: WARNING: /" >&2
21354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 eval "$as_ac_Header=\$ac_header_preproc"
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362 { echo "$as_me:$LINENO: result: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21367 cat >>confdefs.h <<_ACEOF
21368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21376 for ac_func in getpagesize
21378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 cat >conftest.$ac_ext <<_ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21392 #define $ac_func innocuous_$ac_func
21394 /* System header to define __stub macros and hopefully few prototypes,
21395 which can conflict with char $ac_func (); below.
21396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21397 <limits.h> exists even on freestanding compilers. */
21400 # include <limits.h>
21402 # include <assert.h>
21407 /* Override any GCC internal prototype to avoid an error.
21408 Use char because int might match the return type of a GCC
21409 builtin and then its argument prototype would still apply. */
21414 /* The GNU C library defines this for functions which it implements
21415 to always fail with ENOSYS. Some functions are actually named
21416 something starting with __ and the normal name is an alias. */
21417 #if defined __stub_$ac_func || defined __stub___$ac_func
21424 return $ac_func ();
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (ac_try="$ac_link"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_link") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21444 { (case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_try") 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try='test -s conftest$ac_exeext'
21454 { (case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_try") 2>&5
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 eval "$as_ac_var=yes"
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 eval "$as_ac_var=no"
21471 rm -f core conftest.err conftest.$ac_objext \
21472 conftest$ac_exeext conftest.$ac_ext
21474 ac_res=`eval echo '${'$as_ac_var'}'`
21475 { echo "$as_me:$LINENO: result: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21477 if test `eval echo '${'$as_ac_var'}'` = yes; then
21478 cat >>confdefs.h <<_ACEOF
21479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21485 { echo "$as_me:$LINENO: checking for working mmap" >&5
21486 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21487 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21490 if test "$cross_compiling" = yes; then
21491 ac_cv_func_mmap_fixed_mapped=no
21493 cat >conftest.$ac_ext <<_ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h. */
21499 $ac_includes_default
21500 /* malloc might have been renamed as rpl_malloc. */
21503 /* Thanks to Mike Haertel and Jim Avera for this test.
21504 Here is a matrix of mmap possibilities:
21505 mmap private not fixed
21506 mmap private fixed at somewhere currently unmapped
21507 mmap private fixed at somewhere already mapped
21508 mmap shared not fixed
21509 mmap shared fixed at somewhere currently unmapped
21510 mmap shared fixed at somewhere already mapped
21511 For private mappings, we should verify that changes cannot be read()
21512 back from the file, nor mmap's back from the file at a different
21513 address. (There have been systems where private was not correctly
21514 implemented like the infamous i386 svr4.0, and systems where the
21515 VM page cache was not coherent with the file system buffer cache
21516 like early versions of FreeBSD and possibly contemporary NetBSD.)
21517 For shared mappings, we should conversely verify that changes get
21518 propagated back to all the places they're supposed to be.
21520 Grep wants private fixed already mapped.
21521 The main things grep needs to know about mmap are:
21522 * does it exist and is it safe to write into the mmap'd area
21523 * how to use it (BSD variants) */
21526 #include <sys/mman.h>
21528 #if !STDC_HEADERS && !HAVE_STDLIB_H
21532 /* This mess was copied from the GNU getpagesize.h. */
21533 #if !HAVE_GETPAGESIZE
21534 /* Assume that all systems that can run configure have sys/param.h. */
21535 # if !HAVE_SYS_PARAM_H
21536 # define HAVE_SYS_PARAM_H 1
21539 # ifdef _SC_PAGESIZE
21540 # define getpagesize() sysconf(_SC_PAGESIZE)
21541 # else /* no _SC_PAGESIZE */
21542 # if HAVE_SYS_PARAM_H
21543 # include <sys/param.h>
21544 # ifdef EXEC_PAGESIZE
21545 # define getpagesize() EXEC_PAGESIZE
21546 # else /* no EXEC_PAGESIZE */
21548 # define getpagesize() NBPG * CLSIZE
21551 # endif /* no CLSIZE */
21552 # else /* no NBPG */
21554 # define getpagesize() NBPC
21555 # else /* no NBPC */
21557 # define getpagesize() PAGESIZE
21558 # endif /* PAGESIZE */
21559 # endif /* no NBPC */
21560 # endif /* no NBPG */
21561 # endif /* no EXEC_PAGESIZE */
21562 # else /* no HAVE_SYS_PARAM_H */
21563 # define getpagesize() 8192 /* punt totally */
21564 # endif /* no HAVE_SYS_PARAM_H */
21565 # endif /* no _SC_PAGESIZE */
21567 #endif /* no HAVE_GETPAGESIZE */
21572 char *data, *data2, *data3;
21576 pagesize = getpagesize ();
21578 /* First, make a file with some known garbage in it. */
21579 data = (char *) malloc (pagesize);
21582 for (i = 0; i < pagesize; ++i)
21583 *(data + i) = rand ();
21585 fd = creat ("conftest.mmap", 0600);
21588 if (write (fd, data, pagesize) != pagesize)
21592 /* Next, try to mmap the file at a fixed address which already has
21593 something else allocated at it. If we can, also make sure that
21594 we see the same garbage. */
21595 fd = open ("conftest.mmap", O_RDWR);
21598 data2 = (char *) malloc (2 * pagesize);
21601 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21602 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21603 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21605 for (i = 0; i < pagesize; ++i)
21606 if (*(data + i) != *(data2 + i))
21609 /* Finally, make sure that changes to the mapped area do not
21610 percolate back to the file as seen by read(). (This is a bug on
21611 some variants of i386 svr4.0.) */
21612 for (i = 0; i < pagesize; ++i)
21613 *(data2 + i) = *(data2 + i) + 1;
21614 data3 = (char *) malloc (pagesize);
21617 if (read (fd, data3, pagesize) != pagesize)
21619 for (i = 0; i < pagesize; ++i)
21620 if (*(data + i) != *(data3 + i))
21626 rm -f conftest$ac_exeext
21627 if { (ac_try="$ac_link"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633 (eval "$ac_link") 2>&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21637 { (case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_try") 2>&5
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); }; }; then
21646 ac_cv_func_mmap_fixed_mapped=yes
21648 echo "$as_me: program exited with status $ac_status" >&5
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ( exit $ac_status )
21653 ac_cv_func_mmap_fixed_mapped=no
21655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_MMAP 1
21669 rm -f conftest.mmap
21671 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21672 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21673 if test "${ac_cv_func_mmap_file+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 ac_cpp='$CPP $CPPFLAGS'
21678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21682 if test "$cross_compiling" = yes; then
21683 ac_cv_func_mmap_file=no
21685 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21693 #include <sys/types.h>
21694 #include <sys/mman.h>
21702 fd = creat ("foo",0777);
21703 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21705 return (fd != (int) MAP_FAILED);
21710 rm -f conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_func_mmap_file=yes
21732 echo "$as_me: program exited with status $ac_status" >&5
21733 echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ( exit $ac_status )
21737 ac_cv_func_mmap_file=no
21739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21744 ac_cpp='$CPP $CPPFLAGS'
21745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21751 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21752 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21753 if test "$ac_cv_func_mmap_file" = yes; then
21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_MMAP_FILE
21763 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21764 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21765 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21768 if test "$llvm_cv_os_type" = "Interix" ; then
21769 ac_cv_need_dev_zero_for_mmap=yes
21771 ac_cv_need_dev_zero_for_mmap=no
21775 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21776 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21777 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21779 cat >>confdefs.h <<\_ACEOF
21780 #define NEED_DEV_ZERO_FOR_MMAP 1
21785 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21787 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21788 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21790 if test "$ac_cv_func_mmap_file" = "no"
21792 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21793 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21797 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21798 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21800 ac_cpp='$CXXCPP $CPPFLAGS'
21801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21805 cat >conftest.$ac_ext <<_ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21814 volatile unsigned long val = 1;
21815 __sync_synchronize();
21816 __sync_val_compare_and_swap(&val, 1, 0);
21817 __sync_add_and_fetch(&val, 1);
21818 __sync_sub_and_fetch(&val, 1);
21824 rm -f conftest.$ac_objext conftest$ac_exeext
21825 if { (ac_try="$ac_link"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_link") 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
21838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21839 { (case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844 (eval "$ac_try") 2>&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); }; } &&
21848 { ac_try='test -s conftest$ac_exeext'
21849 { (case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_try") 2>&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; }; then
21859 { echo "$as_me:$LINENO: result: yes" >&5
21860 echo "${ECHO_T}yes" >&6; }
21862 cat >>confdefs.h <<\_ACEOF
21863 #define LLVM_HAS_ATOMICS 1
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21872 { echo "$as_me:$LINENO: result: no" >&5
21873 echo "${ECHO_T}no" >&6; }
21875 cat >>confdefs.h <<\_ACEOF
21876 #define LLVM_HAS_ATOMICS 0
21879 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21880 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21884 rm -f core conftest.err conftest.$ac_objext \
21885 conftest$ac_exeext conftest.$ac_ext
21887 ac_cpp='$CPP $CPPFLAGS'
21888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21894 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21895 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21896 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21897 if test "${llvm_cv_linux_mixed+set}" = set; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21913 error: Not x86-64 even if uname says so!
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } &&
21938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21939 { (case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_try") 2>&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); }; } &&
21948 { ac_try='test -s conftest.$ac_objext'
21949 { (case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_try") 2>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 llvm_cv_linux_mixed=no
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 llvm_cv_linux_mixed=yes
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 ac_cpp='$CPP $CPPFLAGS'
21969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21975 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21976 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21978 if test "$llvm_cv_linux_mixed" = "yes"; then
21979 llvm_cv_target_arch="x86"
21985 for ac_func in __dso_handle
21987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 cat >conftest.$ac_ext <<_ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22001 #define $ac_func innocuous_$ac_func
22003 /* System header to define __stub macros and hopefully few prototypes,
22004 which can conflict with char $ac_func (); below.
22005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22006 <limits.h> exists even on freestanding compilers. */
22009 # include <limits.h>
22011 # include <assert.h>
22016 /* Override any GCC internal prototype to avoid an error.
22017 Use char because int might match the return type of a GCC
22018 builtin and then its argument prototype would still apply. */
22023 /* The GNU C library defines this for functions which it implements
22024 to always fail with ENOSYS. Some functions are actually named
22025 something starting with __ and the normal name is an alias. */
22026 #if defined __stub_$ac_func || defined __stub___$ac_func
22033 return $ac_func ();
22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (ac_try="$ac_link"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_link") 2>conftest.er1
22047 grep -v '^ *+' conftest.er1 >conftest.err
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest$ac_exeext'
22063 { (case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_try") 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 eval "$as_ac_var=yes"
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 eval "$as_ac_var=no"
22080 rm -f core conftest.err conftest.$ac_objext \
22081 conftest$ac_exeext conftest.$ac_ext
22083 ac_res=`eval echo '${'$as_ac_var'}'`
22084 { echo "$as_me:$LINENO: result: $ac_res" >&5
22085 echo "${ECHO_T}$ac_res" >&6; }
22086 if test `eval echo '${'$as_ac_var'}'` = yes; then
22087 cat >>confdefs.h <<_ACEOF
22088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22095 SHLIBEXT=$libltdl_cv_shlibext
22098 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22101 if test "${prefix}" = "NONE" ; then
22102 prefix="/usr/local"
22104 eval LLVM_PREFIX="${prefix}";
22105 eval LLVM_BINDIR="${prefix}/bin";
22106 eval LLVM_DATADIR="${prefix}/share/llvm";
22107 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22108 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22109 eval LLVM_INCLUDEDIR="${prefix}/include";
22110 eval LLVM_INFODIR="${prefix}/info";
22111 eval LLVM_MANDIR="${prefix}/man";
22112 LLVM_CONFIGTIME=`date`
22123 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22124 LLVM_CONFIGTIME="(timestamp not enabled)"
22128 cat >>confdefs.h <<_ACEOF
22129 #define LLVM_PREFIX "$LLVM_PREFIX"
22133 cat >>confdefs.h <<_ACEOF
22134 #define LLVM_BINDIR "$LLVM_BINDIR"
22138 cat >>confdefs.h <<_ACEOF
22139 #define LLVM_DATADIR "$LLVM_DATADIR"
22143 cat >>confdefs.h <<_ACEOF
22144 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22148 cat >>confdefs.h <<_ACEOF
22149 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22153 cat >>confdefs.h <<_ACEOF
22154 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22158 cat >>confdefs.h <<_ACEOF
22159 #define LLVM_INFODIR "$LLVM_INFODIR"
22163 cat >>confdefs.h <<_ACEOF
22164 #define LLVM_MANDIR "$LLVM_MANDIR"
22168 cat >>confdefs.h <<_ACEOF
22169 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22173 cat >>confdefs.h <<_ACEOF
22174 #define LLVM_HOST_TRIPLE "$host"
22178 cat >>confdefs.h <<_ACEOF
22179 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22183 if test "$BINDINGS_TO_BUILD" = auto ; then
22184 BINDINGS_TO_BUILD=""
22185 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22186 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22189 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22195 binding_prereqs_failed=0
22196 for a_binding in $BINDINGS_TO_BUILD ; do
22197 case "$a_binding" in
22199 if test "x$OCAMLC" = x ; then
22200 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22201 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22202 binding_prereqs_failed=1
22204 if test "x$OCAMLDEP" = x ; then
22205 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22206 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22207 binding_prereqs_failed=1
22209 if test "x$OCAMLOPT" = x ; then
22210 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22211 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22213 if test "x$with_ocaml_libdir" != xauto ; then
22214 OCAML_LIBDIR=$with_ocaml_libdir
22217 ocaml_stdlib="`"$OCAMLC" -where`"
22218 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22220 # ocaml stdlib is beneath our prefix; use stdlib
22221 OCAML_LIBDIR=$ocaml_stdlib
22224 # ocaml stdlib is outside our prefix; use libdir/ocaml
22225 OCAML_LIBDIR=${prefix}/lib/ocaml
22232 if test "$binding_prereqs_failed" = 1 ; then
22233 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22234 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22235 { (exit 1); exit 1; }; }
22238 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22239 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22240 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 ac_cpp='$CXXCPP $CPPFLAGS'
22245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22249 oldcxxflags="$CXXFLAGS"
22250 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
22280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22281 { (case "(($ac_try" in
22282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_try") 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest.$ac_objext'
22291 { (case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_try") 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 llvm_cv_cxx_visibility_inlines_hidden=yes
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22305 llvm_cv_cxx_visibility_inlines_hidden=no
22308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309 CXXFLAGS="$oldcxxflags"
22311 ac_cpp='$CPP $CPPFLAGS'
22312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22318 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22319 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22320 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22321 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22324 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22329 if test "$llvm_cv_link_use_r" = "yes" ; then
22336 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22337 RDYNAMIC="-rdynamic"
22344 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22351 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22353 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22355 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22357 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22359 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22362 ac_config_files="$ac_config_files Makefile.config"
22365 ac_config_files="$ac_config_files llvm.spec"
22368 ac_config_files="$ac_config_files docs/doxygen.cfg"
22371 if test "${clang_src_root}" = ""; then
22372 clang_src_root="$srcdir/tools/clang"
22374 if test -f ${clang_src_root}/README.txt; then
22375 configh="include/clang/Config/config.h"
22376 doxy="docs/doxygen.cfg"
22377 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22379 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22383 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22386 test "x$program_prefix" = "xNONE" && program_prefix=""
22390 ac_config_commands="$ac_config_commands setup"
22392 ac_config_commands="$ac_config_commands Makefile"
22395 ac_config_commands="$ac_config_commands Makefile.common"
22398 ac_config_commands="$ac_config_commands examples/Makefile"
22401 ac_config_commands="$ac_config_commands lib/Makefile"
22404 ac_config_commands="$ac_config_commands test/Makefile"
22407 ac_config_commands="$ac_config_commands test/Makefile.tests"
22410 ac_config_commands="$ac_config_commands unittests/Makefile"
22413 ac_config_commands="$ac_config_commands tools/Makefile"
22416 ac_config_commands="$ac_config_commands utils/Makefile"
22419 ac_config_commands="$ac_config_commands projects/Makefile"
22422 ac_config_commands="$ac_config_commands bindings/Makefile"
22425 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22429 cat >confcache <<\_ACEOF
22430 # This file is a shell script that caches the results of configure
22431 # tests run on this system so they can be shared between configure
22432 # scripts and configure runs, see configure's option --config-cache.
22433 # It is not useful on other systems. If it contains results you don't
22434 # want to keep, you may remove or edit it.
22436 # config.status only pays attention to the cache file if you give it
22437 # the --recheck option to rerun configure.
22439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22441 # following values.
22445 # The following way of writing the cache mishandles newlines in values,
22446 # but we know of no workaround that is simple, portable, and efficient.
22447 # So, we kill variables containing newlines.
22448 # Ultrix sh set writes to stderr and can't be redirected directly,
22449 # and sets the high bit in the cache file unless we assign to the vars.
22451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22452 eval ac_val=\$$ac_var
22456 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22457 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22460 _ | IFS | as_nl) ;; #(
22461 *) $as_unset $ac_var ;;
22467 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22468 *${as_nl}ac_space=\ *)
22469 # `set' does not quote correctly, so add quotes (double-quote
22470 # substitution turns \\\\ into \\, and sed turns \\ into \).
22473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22476 # `set' quotes correctly as required by POSIX, so do not add quotes.
22477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22490 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22491 if test -w "$cache_file"; then
22492 test "x$cache_file" != "x/dev/null" &&
22493 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22494 echo "$as_me: updating cache $cache_file" >&6;}
22495 cat confcache >$cache_file
22497 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22498 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22504 # Let make expand exec_prefix.
22505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22507 DEFS=-DHAVE_CONFIG_H
22511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22512 # 1. Remove the extension, and $U if already installed.
22513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22514 ac_i=`echo "$ac_i" | sed "$ac_script"`
22515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22516 # will be set to the directory where LIBOBJS objects are built.
22517 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22518 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22520 LIBOBJS=$ac_libobjs
22522 LTLIBOBJS=$ac_ltlibobjs
22525 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22526 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22527 Usually this means the macro was only invoked conditionally." >&5
22528 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22529 Usually this means the macro was only invoked conditionally." >&2;}
22530 { (exit 1); exit 1; }; }
22532 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22533 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22534 Usually this means the macro was only invoked conditionally." >&5
22535 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22536 Usually this means the macro was only invoked conditionally." >&2;}
22537 { (exit 1); exit 1; }; }
22540 : ${CONFIG_STATUS=./config.status}
22541 ac_clean_files_save=$ac_clean_files
22542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22545 cat >$CONFIG_STATUS <<_ACEOF
22547 # Generated by $as_me.
22548 # Run this file to recreate the current configuration.
22549 # Compiler output produced by configure, useful for debugging
22550 # configure, is in config.log if it exists.
22553 ac_cs_recheck=false
22555 SHELL=\${CONFIG_SHELL-$SHELL}
22558 cat >>$CONFIG_STATUS <<\_ACEOF
22559 ## --------------------- ##
22560 ## M4sh Initialization. ##
22561 ## --------------------- ##
22563 # Be Bourne compatible
22564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22568 # is contrary to our usage. Disable this feature.
22569 alias -g '${1+"$@"}'='"$@"'
22570 setopt NO_GLOB_SUBST
22572 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22574 BIN_SH=xpg4; export BIN_SH # for Tru64
22575 DUALCASE=1; export DUALCASE # for MKS sh
22579 # Avoid depending upon Character Ranges.
22580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22583 as_cr_digits='0123456789'
22584 as_cr_alnum=$as_cr_Letters$as_cr_digits
22586 # The user is always right.
22587 if test "${PATH_SEPARATOR+set}" != set; then
22588 echo "#! /bin/sh" >conf$$.sh
22589 echo "exit 0" >>conf$$.sh
22591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22599 # Support unset when possible.
22600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22608 # We need space, tab and new line, in precisely that order. Quoting is
22609 # there to prevent editors from complaining about space-tab.
22610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22611 # splitting by setting IFS to empty value.)
22616 # Find who we are. Look in the path if we contain no directory separator.
22618 *[\\/]* ) as_myself=$0 ;;
22619 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22620 for as_dir in $PATH
22623 test -z "$as_dir" && as_dir=.
22624 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22630 # We did not find ourselves, most probably we were run as `sh COMMAND'
22631 # in which case we are not to be found in the path.
22632 if test "x$as_myself" = x; then
22635 if test ! -f "$as_myself"; then
22636 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22637 { (exit 1); exit 1; }
22640 # Work around bugs in pre-3.0 UWIN ksh.
22641 for as_var in ENV MAIL MAILPATH
22642 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22652 LC_TELEPHONE LC_TIME
22654 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22655 eval $as_var=C; export $as_var
22657 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22661 # Required to use basename.
22662 if expr a : '\(a\)' >/dev/null 2>&1 &&
22663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22670 as_basename=basename
22676 # Name of the executable.
22677 as_me=`$as_basename -- "$0" ||
22678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22679 X"$0" : 'X\(//\)$' \| \
22680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22682 sed '/^.*\/\([^/][^/]*\)\/*$/{
22701 as_lineno_1=$LINENO
22702 as_lineno_2=$LINENO
22703 test "x$as_lineno_1" != "x$as_lineno_2" &&
22704 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22707 # uniformly replaced by the line number. The first 'sed' inserts a
22708 # line-number line after each line using $LINENO; the second 'sed'
22709 # does the real work. The second script uses 'N' to pair each
22710 # line-number line with the line containing $LINENO, and appends
22711 # trailing '-' during substitution so that $LINENO is not a special
22712 # case at line end.
22713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22714 # scripts with optimization help from Paolo Bonzini. Blame Lee
22715 # E. McMahon (1931-1989) for sed's syntax. :-)
22727 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22730 ' >$as_me.lineno &&
22731 chmod +x "$as_me.lineno" ||
22732 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22733 { (exit 1); exit 1; }; }
22735 # Don't try to exec as it changes $[0], causing all sort of problems
22736 # (the dirname of $[0] is not the place where we might find the
22737 # original and so on. Autoconf is especially sensitive to this).
22738 . "./$as_me.lineno"
22739 # Exit status is that of the last command.
22744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22750 ECHO_C= ECHO_N= ECHO_T=
22751 case `echo -n x` in
22753 case `echo 'x\c'` in
22754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22761 if expr a : '\(a\)' >/dev/null 2>&1 &&
22762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22768 rm -f conf$$ conf$$.exe conf$$.file
22769 if test -d conf$$.dir; then
22770 rm -f conf$$.dir/conf$$.file
22776 if ln -s conf$$.file conf$$ 2>/dev/null; then
22778 # ... but there are two gotchas:
22779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22781 # In both cases, we have to default to `cp -p'.
22782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22784 elif ln conf$$.file conf$$ 2>/dev/null; then
22789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22790 rmdir conf$$.dir 2>/dev/null
22792 if mkdir -p . 2>/dev/null; then
22795 test -d ./-p && rmdir ./-p
22799 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22800 # systems may use methods other than mode bits to determine executability.
22801 cat >conf$$.file <<_ASEOF
22805 chmod +x conf$$.file
22806 if test -x conf$$.file >/dev/null 2>&1; then
22807 as_executable_p="test -x"
22813 # Sed expression to map a string onto a valid CPP name.
22814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22816 # Sed expression to map a string onto a valid variable name.
22817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22822 # Save the log message, to keep $[0] and so on meaningful, and to
22823 # report actual input values of CONFIG_FILES etc. instead of their
22824 # values after options handling.
22826 This file was extended by LLVM $as_me 3.5svn, which was
22827 generated by GNU Autoconf 2.60. Invocation command line was
22829 CONFIG_FILES = $CONFIG_FILES
22830 CONFIG_HEADERS = $CONFIG_HEADERS
22831 CONFIG_LINKS = $CONFIG_LINKS
22832 CONFIG_COMMANDS = $CONFIG_COMMANDS
22835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22840 cat >>$CONFIG_STATUS <<_ACEOF
22841 # Files that config.status was made for.
22842 config_files="$ac_config_files"
22843 config_headers="$ac_config_headers"
22844 config_commands="$ac_config_commands"
22848 cat >>$CONFIG_STATUS <<\_ACEOF
22850 \`$as_me' instantiates files from templates according to the
22851 current configuration.
22853 Usage: $0 [OPTIONS] [FILE]...
22855 -h, --help print this help, then exit
22856 -V, --version print version number, then exit
22857 -q, --quiet do not print progress messages
22858 -d, --debug don't remove temporary files
22859 --recheck update $as_me by reconfiguring in the same conditions
22860 --file=FILE[:TEMPLATE]
22861 instantiate the configuration file FILE
22862 --header=FILE[:TEMPLATE]
22863 instantiate the configuration header FILE
22865 Configuration files:
22868 Configuration headers:
22871 Configuration commands:
22874 Report bugs to <bug-autoconf@gnu.org>."
22877 cat >>$CONFIG_STATUS <<_ACEOF
22879 LLVM config.status 3.5svn
22880 configured by $0, generated by GNU Autoconf 2.60,
22881 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22883 Copyright (C) 2006 Free Software Foundation, Inc.
22884 This config.status script is free software; the Free Software Foundation
22885 gives unlimited permission to copy, distribute and modify it."
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22893 # If no file are specified by the user, then we need to provide default
22894 # value. By we need to know if files were specified by the user.
22900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22901 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22912 # Handling of the options.
22913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22916 echo "$ac_cs_version"; exit ;;
22917 --debug | --debu | --deb | --de | --d | -d )
22919 --file | --fil | --fi | --f )
22921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22922 ac_need_defaults=false;;
22923 --header | --heade | --head | --hea )
22925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22926 ac_need_defaults=false;;
22928 # Conflict between --help and --header
22929 { echo "$as_me: error: ambiguous option: $1
22930 Try \`$0 --help' for more information." >&2
22931 { (exit 1); exit 1; }; };;
22932 --help | --hel | -h )
22933 echo "$ac_cs_usage"; exit ;;
22934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22938 # This is an error.
22939 -*) { echo "$as_me: error: unrecognized option: $1
22940 Try \`$0 --help' for more information." >&2
22941 { (exit 1); exit 1; }; } ;;
22943 *) ac_config_targets="$ac_config_targets $1"
22944 ac_need_defaults=false ;;
22950 ac_configure_extra_args=
22952 if $ac_cs_silent; then
22954 ac_configure_extra_args="$ac_configure_extra_args --silent"
22958 cat >>$CONFIG_STATUS <<_ACEOF
22959 if \$ac_cs_recheck; then
22960 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22961 CONFIG_SHELL=$SHELL
22962 export CONFIG_SHELL
22963 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22967 cat >>$CONFIG_STATUS <<\_ACEOF
22971 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22972 ## Running $as_me. ##
22978 cat >>$CONFIG_STATUS <<_ACEOF
22982 llvm_src="${srcdir}"
22986 cat >>$CONFIG_STATUS <<\_ACEOF
22988 # Handling of arguments.
22989 for ac_config_target in $ac_config_targets
22991 case $ac_config_target in
22992 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22993 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22994 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22995 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22996 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22997 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22998 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22999 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23000 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23001 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23002 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23003 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23004 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23005 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23006 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23007 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23008 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23009 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23010 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23011 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23012 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23013 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23014 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23015 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23016 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23017 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23019 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23020 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23021 { (exit 1); exit 1; }; };;
23026 # If the user did not use the arguments to specify the items to instantiate,
23027 # then the envvar interface is used. Set only those that are not.
23028 # We use the long form for the default assignment because of an extremely
23029 # bizarre bug on SunOS 4.1.3.
23030 if $ac_need_defaults; then
23031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23036 # Have a temporary directory for convenience. Make it in the build tree
23037 # simply because there is no reason against having it here, and in addition,
23038 # creating and moving files from /tmp can sometimes cause problems.
23039 # Hook for its removal unless debugging.
23040 # Note that there is a small window in which the directory will not be cleaned:
23041 # after its creation but before its name has been assigned to `$tmp'.
23045 trap 'exit_status=$?
23046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23048 trap '{ (exit 1); exit 1; }' 1 2 13 15
23050 # Create a (secure) tmp directory for tmp files.
23053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23054 test -n "$tmp" && test -d "$tmp"
23057 tmp=./conf$$-$RANDOM
23058 (umask 077 && mkdir "$tmp")
23061 echo "$me: cannot create a temporary directory in ." >&2
23062 { (exit 1); exit 1; }
23066 # Set up the sed scripts for CONFIG_FILES section.
23069 # No need to generate the scripts if there are no CONFIG_FILES.
23070 # This happens for instance when ./config.status config.h
23071 if test -n "$CONFIG_FILES"; then
23078 for ac_last_try in false false false false false :; do
23079 cat >conf$$subs.sed <<_ACEOF
23080 SHELL!$SHELL$ac_delim
23081 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23082 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23083 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23084 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23085 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23086 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23087 exec_prefix!$exec_prefix$ac_delim
23088 prefix!$prefix$ac_delim
23089 program_transform_name!$program_transform_name$ac_delim
23090 bindir!$bindir$ac_delim
23091 sbindir!$sbindir$ac_delim
23092 libexecdir!$libexecdir$ac_delim
23093 datarootdir!$datarootdir$ac_delim
23094 datadir!$datadir$ac_delim
23095 sysconfdir!$sysconfdir$ac_delim
23096 sharedstatedir!$sharedstatedir$ac_delim
23097 localstatedir!$localstatedir$ac_delim
23098 includedir!$includedir$ac_delim
23099 oldincludedir!$oldincludedir$ac_delim
23100 docdir!$docdir$ac_delim
23101 infodir!$infodir$ac_delim
23102 htmldir!$htmldir$ac_delim
23103 dvidir!$dvidir$ac_delim
23104 pdfdir!$pdfdir$ac_delim
23105 psdir!$psdir$ac_delim
23106 libdir!$libdir$ac_delim
23107 localedir!$localedir$ac_delim
23108 mandir!$mandir$ac_delim
23109 DEFS!$DEFS$ac_delim
23110 ECHO_C!$ECHO_C$ac_delim
23111 ECHO_N!$ECHO_N$ac_delim
23112 ECHO_T!$ECHO_T$ac_delim
23113 LIBS!$LIBS$ac_delim
23114 build_alias!$build_alias$ac_delim
23115 host_alias!$host_alias$ac_delim
23116 target_alias!$target_alias$ac_delim
23117 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23119 CFLAGS!$CFLAGS$ac_delim
23120 LDFLAGS!$LDFLAGS$ac_delim
23121 CPPFLAGS!$CPPFLAGS$ac_delim
23122 ac_ct_CC!$ac_ct_CC$ac_delim
23123 EXEEXT!$EXEEXT$ac_delim
23124 OBJEXT!$OBJEXT$ac_delim
23126 CXXFLAGS!$CXXFLAGS$ac_delim
23127 ac_ct_CXX!$ac_ct_CXX$ac_delim
23129 subdirs!$subdirs$ac_delim
23130 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23131 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23132 build!$build$ac_delim
23133 build_cpu!$build_cpu$ac_delim
23134 build_vendor!$build_vendor$ac_delim
23135 build_os!$build_os$ac_delim
23136 host!$host$ac_delim
23137 host_cpu!$host_cpu$ac_delim
23138 host_vendor!$host_vendor$ac_delim
23139 host_os!$host_os$ac_delim
23140 target!$target$ac_delim
23141 target_cpu!$target_cpu$ac_delim
23142 target_vendor!$target_vendor$ac_delim
23143 target_os!$target_os$ac_delim
23145 HOST_OS!$HOST_OS$ac_delim
23146 TARGET_OS!$TARGET_OS$ac_delim
23147 LINKALL!$LINKALL$ac_delim
23148 NOLINKALL!$NOLINKALL$ac_delim
23149 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23150 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23151 ARCH!$ARCH$ac_delim
23152 HOST_ARCH!$HOST_ARCH$ac_delim
23153 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23154 BUILD_CC!$BUILD_CC$ac_delim
23155 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23156 BUILD_CXX!$BUILD_CXX$ac_delim
23157 CVSBUILD!$CVSBUILD$ac_delim
23158 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23159 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23160 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23161 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23162 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23163 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23164 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23165 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23166 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23167 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23168 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23169 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23170 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23171 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23172 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23174 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23175 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23176 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23179 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23181 elif $ac_last_try; then
23182 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23183 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23184 { (exit 1); exit 1; }; }
23186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23190 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23191 if test -n "$ac_eof"; then
23192 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23193 ac_eof=`expr $ac_eof + 1`
23196 cat >>$CONFIG_STATUS <<_ACEOF
23197 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23201 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23202 s/^/s,@/; s/!/@,|#_!!_#|/
23205 s/'"$ac_delim"'$/,g/; t
23207 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23208 ' >>$CONFIG_STATUS <conf$$subs.sed
23209 rm -f conf$$subs.sed
23210 cat >>$CONFIG_STATUS <<_ACEOF
23216 for ac_last_try in false false false false false :; do
23217 cat >conf$$subs.sed <<_ACEOF
23218 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23219 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23220 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23221 ENABLE_PIC!$ENABLE_PIC$ac_delim
23222 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23223 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23224 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23225 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23226 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23227 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23228 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23229 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23230 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23231 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23232 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23233 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23234 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23235 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23237 ifGNUmake!$ifGNUmake$ac_delim
23238 LN_S!$LN_S$ac_delim
23241 DATE!$DATE$ac_delim
23242 FIND!$FIND$ac_delim
23243 GREP!$GREP$ac_delim
23244 MKDIR!$MKDIR$ac_delim
23246 RANLIB!$RANLIB$ac_delim
23251 BINPWD!$BINPWD$ac_delim
23252 GRAPHVIZ!$GRAPHVIZ$ac_delim
23255 NEATO!$NEATO$ac_delim
23256 TWOPI!$TWOPI$ac_delim
23257 CIRCO!$CIRCO$ac_delim
23259 DOTTY!$DOTTY$ac_delim
23260 XDOT!$XDOT$ac_delim
23261 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23262 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23263 INSTALL_DATA!$INSTALL_DATA$ac_delim
23264 BZIP2!$BZIP2$ac_delim
23266 DOXYGEN!$DOXYGEN$ac_delim
23267 GROFF!$GROFF$ac_delim
23268 GZIPBIN!$GZIPBIN$ac_delim
23269 PDFROFF!$PDFROFF$ac_delim
23271 OCAMLC!$OCAMLC$ac_delim
23272 OCAMLOPT!$OCAMLOPT$ac_delim
23273 OCAMLDEP!$OCAMLDEP$ac_delim
23274 OCAMLDOC!$OCAMLDOC$ac_delim
23276 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23277 EGREP!$EGREP$ac_delim
23278 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23279 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23280 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23281 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23282 LIBADD_DL!$LIBADD_DL$ac_delim
23283 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23284 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23285 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23286 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23287 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23288 PYTHON!$PYTHON$ac_delim
23289 USE_UDIS86!$USE_UDIS86$ac_delim
23290 USE_OPROFILE!$USE_OPROFILE$ac_delim
23291 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23292 XML2CONFIG!$XML2CONFIG$ac_delim
23293 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23294 LIBXML2_INC!$LIBXML2_INC$ac_delim
23295 CXXCPP!$CXXCPP$ac_delim
23296 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23297 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23298 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23299 MMAP_FILE!$MMAP_FILE$ac_delim
23300 SHLIBEXT!$SHLIBEXT$ac_delim
23301 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23302 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23303 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23304 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23305 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23306 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23307 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23308 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23309 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23310 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23311 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23312 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23313 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23314 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23319 elif $ac_last_try; then
23320 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23321 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23322 { (exit 1); exit 1; }; }
23324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23328 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23329 if test -n "$ac_eof"; then
23330 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23331 ac_eof=`expr $ac_eof + 1`
23334 cat >>$CONFIG_STATUS <<_ACEOF
23335 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23339 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23340 s/^/s,@/; s/!/@,|#_!!_#|/
23343 s/'"$ac_delim"'$/,g/; t
23345 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23346 ' >>$CONFIG_STATUS <conf$$subs.sed
23347 rm -f conf$$subs.sed
23348 cat >>$CONFIG_STATUS <<_ACEOF
23354 for ac_last_try in false false false false false :; do
23355 cat >conf$$subs.sed <<_ACEOF
23356 RPATH!$RPATH$ac_delim
23357 RDYNAMIC!$RDYNAMIC$ac_delim
23358 program_prefix!$program_prefix$ac_delim
23359 LIBOBJS!$LIBOBJS$ac_delim
23360 LTLIBOBJS!$LTLIBOBJS$ac_delim
23363 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23365 elif $ac_last_try; then
23366 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23367 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23368 { (exit 1); exit 1; }; }
23370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23374 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23375 if test -n "$ac_eof"; then
23376 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23377 ac_eof=`expr $ac_eof + 1`
23380 cat >>$CONFIG_STATUS <<_ACEOF
23381 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23382 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23385 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23386 s/^/s,@/; s/!/@,|#_!!_#|/
23389 s/'"$ac_delim"'$/,g/; t
23391 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23392 ' >>$CONFIG_STATUS <conf$$subs.sed
23393 rm -f conf$$subs.sed
23394 cat >>$CONFIG_STATUS <<_ACEOF
23401 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23402 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23403 # trailing colons and then remove the whole line if VPATH becomes empty
23404 # (actually we leave an empty line to preserve line numbers).
23405 if test "x$srcdir" = x.; then
23406 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23407 s/:*\$(srcdir):*/:/
23408 s/:*\${srcdir}:*/:/
23410 s/^\([^=]*=[ ]*\):*/\1/
23416 cat >>$CONFIG_STATUS <<\_ACEOF
23417 fi # test -n "$CONFIG_FILES"
23420 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23423 :[FHLC]) ac_mode=$ac_tag; continue;;
23425 case $ac_mode$ac_tag in
23427 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23428 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23429 { (exit 1); exit 1; }; };;
23430 :[FH]-) ac_tag=-:-;;
23431 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23448 -) ac_f="$tmp/stdin";;
23449 *) # Look for the file first in the build tree, then in the source tree
23450 # (if the path is not absolute). The absolute path cannot be DOS-style,
23451 # because $ac_f cannot contain `:'.
23455 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23457 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23458 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23459 { (exit 1); exit 1; }; };;
23461 ac_file_inputs="$ac_file_inputs $ac_f"
23464 # Let's still pretend it is `configure' which instantiates (i.e., don't
23465 # use $as_me), people would be surprised to read:
23466 # /* config.h. Generated by config.status. */
23467 configure_input="Generated from "`IFS=:
23468 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23469 if test x"$ac_file" != x-; then
23470 configure_input="$ac_file. $configure_input"
23471 { echo "$as_me:$LINENO: creating $ac_file" >&5
23472 echo "$as_me: creating $ac_file" >&6;}
23476 *:-:* | *:-) cat >"$tmp/stdin";;
23481 ac_dir=`$as_dirname -- "$ac_file" ||
23482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$ac_file" : 'X\(//\)[^/]' \| \
23484 X"$ac_file" : 'X\(//\)$' \| \
23485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23491 /^X\(\/\/\)[^/].*/{
23506 -*) as_dir=./$as_dir;;
23508 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23512 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23513 *) as_qdir=$as_dir;;
23515 as_dirs="'$as_qdir' $as_dirs"
23516 as_dir=`$as_dirname -- "$as_dir" ||
23517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23518 X"$as_dir" : 'X\(//\)[^/]' \| \
23519 X"$as_dir" : 'X\(//\)$' \| \
23520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23526 /^X\(\/\/\)[^/].*/{
23539 test -d "$as_dir" && break
23541 test -z "$as_dirs" || eval "mkdir $as_dirs"
23542 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23543 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23544 { (exit 1); exit 1; }; }; }
23548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23551 # A ".." for each directory in $ac_dir_suffix.
23552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23553 case $ac_top_builddir_sub in
23554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23558 ac_abs_top_builddir=$ac_pwd
23559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23560 # for backward compatibility:
23561 ac_top_builddir=$ac_top_build_prefix
23564 .) # We are building in place.
23566 ac_top_srcdir=$ac_top_builddir_sub
23567 ac_abs_top_srcdir=$ac_pwd ;;
23568 [\\/]* | ?:[\\/]* ) # Absolute name.
23569 ac_srcdir=$srcdir$ac_dir_suffix;
23570 ac_top_srcdir=$srcdir
23571 ac_abs_top_srcdir=$srcdir ;;
23572 *) # Relative name.
23573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23574 ac_top_srcdir=$ac_top_build_prefix$srcdir
23575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23592 cat >>$CONFIG_STATUS <<\_ACEOF
23593 # If the template does not know about datarootdir, expand it.
23594 # FIXME: This hack should be removed a few years after 2.60.
23595 ac_datarootdir_hack=; ac_datarootdir_seen=
23597 case `sed -n '/datarootdir/ {
23606 ' $ac_file_inputs` in
23607 *datarootdir*) ac_datarootdir_seen=yes;;
23608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23609 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23610 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23612 cat >>$CONFIG_STATUS <<_ACEOF
23613 ac_datarootdir_hack='
23614 s&@datadir@&$datadir&g
23615 s&@docdir@&$docdir&g
23616 s&@infodir@&$infodir&g
23617 s&@localedir@&$localedir&g
23618 s&@mandir@&$mandir&g
23619 s&\\\${datarootdir}&$datarootdir&g' ;;
23623 # Neutralize VPATH when `$srcdir' = `.'.
23624 # Shell code in configure.ac might set extrasub.
23625 # FIXME: do we really want to maintain this feature?
23626 cat >>$CONFIG_STATUS <<_ACEOF
23630 cat >>$CONFIG_STATUS <<\_ACEOF
23632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23633 s&@configure_input@&$configure_input&;t t
23634 s&@top_builddir@&$ac_top_builddir_sub&;t t
23635 s&@srcdir@&$ac_srcdir&;t t
23636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23637 s&@top_srcdir@&$ac_top_srcdir&;t t
23638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23639 s&@builddir@&$ac_builddir&;t t
23640 s&@abs_builddir@&$ac_abs_builddir&;t t
23641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23642 s&@INSTALL@&$ac_INSTALL&;t t
23643 $ac_datarootdir_hack
23644 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23646 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23647 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23648 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23649 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23650 which seems to be undefined. Please make sure it is defined." >&5
23651 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23652 which seems to be undefined. Please make sure it is defined." >&2;}
23656 -) cat "$tmp/out"; rm -f "$tmp/out";;
23657 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23666 # Transform confdefs.h into a sed script `conftest.defines', that
23667 # substitutes the proper values into config.h.in to produce config.h.
23668 rm -f conftest.defines conftest.tail
23669 # First, append a space to every undef/define line, to ease matching.
23670 echo 's/$/ /' >conftest.defines
23671 # Then, protect against being on the right side of a sed subst, or in
23672 # an unquoted here document, in config.status. If some macros were
23673 # called several times there might be several #defines for the same
23674 # symbol, which is useless. But do not sort them, since the last
23675 # AC_DEFINE must be honored.
23676 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23677 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23678 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23679 # PARAMS is the parameter list in the macro definition--in most cases, it's
23680 # just an empty string.
23681 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23682 ac_dB='\\)[ (].*,\\1define\\2'
23690 s/^[ ]*#[ ]*define[ ][ ]*//
23695 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23696 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23697 ' >>conftest.defines
23699 # Remove the space that was appended to ease matching.
23700 # Then replace #undef with comments. This is necessary, for
23701 # example, in the case of _POSIX_SOURCE, which is predefined and required
23702 # on some systems where configure will not decide to define it.
23703 # (The regexp can be short, since the line contains either #define or #undef.)
23705 s,^[ #]*u.*,/* & */,' >>conftest.defines
23707 # Break up conftest.defines:
23708 ac_max_sed_lines=50
23710 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23711 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23712 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23714 ac_in='$ac_file_inputs'
23715 ac_out='"$tmp/out1"'
23716 ac_nxt='"$tmp/out2"'
23720 # Write a here document:
23721 cat >>$CONFIG_STATUS <<_ACEOF
23722 # First, check the format of the line:
23723 cat >"\$tmp/defines.sed" <<\\CEOF
23724 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23725 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23729 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23731 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23732 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23733 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23734 grep . conftest.tail >/dev/null || break
23735 rm -f conftest.defines
23736 mv conftest.tail conftest.defines
23738 rm -f conftest.defines conftest.tail
23740 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23741 cat >>$CONFIG_STATUS <<\_ACEOF
23742 if test x"$ac_file" != x-; then
23743 echo "/* $configure_input */" >"$tmp/config.h"
23744 cat "$ac_result" >>"$tmp/config.h"
23745 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23746 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23747 echo "$as_me: $ac_file is unchanged" >&6;}
23750 mv "$tmp/config.h" $ac_file
23753 echo "/* $configure_input */"
23759 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23760 echo "$as_me: executing $ac_file commands" >&6;}
23765 case $ac_file$ac_mode in
23766 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23768 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23769 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23770 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23771 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23772 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23773 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23774 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23775 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23776 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23777 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23778 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23779 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23780 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23781 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23782 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23783 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23784 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23785 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23786 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23787 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23788 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23789 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23795 { (exit 0); exit 0; }
23797 chmod +x $CONFIG_STATUS
23798 ac_clean_files=$ac_clean_files_save
23801 # configure is writing to config.log, and then calls config.status.
23802 # config.status does its own redirection, appending to config.log.
23803 # Unfortunately, on DOS this fails, as config.log is still kept open
23804 # by configure, so config.status won't be able to write to it; its
23805 # output is simply discarded. So we exec the FD to /dev/null,
23806 # effectively closing config.log, so it can be properly (re)opened and
23807 # appended to by config.status. When coming back to configure, we
23808 # need to make the FD available again.
23809 if test "$no_create" != yes; then
23811 ac_config_status_args=
23812 test "$silent" = yes &&
23813 ac_config_status_args="$ac_config_status_args --quiet"
23815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23818 # would make configure fail if this is the last instruction.
23819 $ac_cs_success || { (exit 1); exit 1; }
23823 # CONFIG_SUBDIRS section.
23825 if test "$no_recursion" != yes; then
23827 # Remove --cache-file and --srcdir arguments so they do not pile up.
23828 ac_sub_configure_args=
23830 eval "set x $ac_configure_args"
23834 if test -n "$ac_prev"; then
23839 -cache-file | --cache-file | --cache-fil | --cache-fi \
23840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23841 ac_prev=cache_file ;;
23842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23846 --config-cache | -C)
23848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23860 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23864 # Always prepend --prefix to ensure using the same prefix
23865 # in subdir configurations.
23866 ac_arg="--prefix=$prefix"
23868 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23870 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23873 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23875 # Do not complain, so a configure script can configure whichever
23876 # parts of a large source tree are present.
23877 test -d "$srcdir/$ac_dir" || continue
23879 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23880 echo "$as_me:$LINENO: $ac_msg" >&5
23884 -*) as_dir=./$as_dir;;
23886 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23890 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23891 *) as_qdir=$as_dir;;
23893 as_dirs="'$as_qdir' $as_dirs"
23894 as_dir=`$as_dirname -- "$as_dir" ||
23895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23896 X"$as_dir" : 'X\(//\)[^/]' \| \
23897 X"$as_dir" : 'X\(//\)$' \| \
23898 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23904 /^X\(\/\/\)[^/].*/{
23917 test -d "$as_dir" && break
23919 test -z "$as_dirs" || eval "mkdir $as_dirs"
23920 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23921 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23922 { (exit 1); exit 1; }; }; }
23926 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23929 # A ".." for each directory in $ac_dir_suffix.
23930 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23931 case $ac_top_builddir_sub in
23932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23936 ac_abs_top_builddir=$ac_pwd
23937 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23938 # for backward compatibility:
23939 ac_top_builddir=$ac_top_build_prefix
23942 .) # We are building in place.
23944 ac_top_srcdir=$ac_top_builddir_sub
23945 ac_abs_top_srcdir=$ac_pwd ;;
23946 [\\/]* | ?:[\\/]* ) # Absolute name.
23947 ac_srcdir=$srcdir$ac_dir_suffix;
23948 ac_top_srcdir=$srcdir
23949 ac_abs_top_srcdir=$srcdir ;;
23950 *) # Relative name.
23951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23952 ac_top_srcdir=$ac_top_build_prefix$srcdir
23953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23955 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23960 # Check for guested configure; otherwise get Cygnus style configure.
23961 if test -f "$ac_srcdir/configure.gnu"; then
23962 ac_sub_configure=$ac_srcdir/configure.gnu
23963 elif test -f "$ac_srcdir/configure"; then
23964 ac_sub_configure=$ac_srcdir/configure
23965 elif test -f "$ac_srcdir/configure.in"; then
23966 # This should be Cygnus configure.
23967 ac_sub_configure=$ac_aux_dir/configure
23969 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23974 # The recursion is here.
23975 if test -n "$ac_sub_configure"; then
23976 # Make the cache file name correct relative to the subdirectory.
23977 case $cache_file in
23978 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23979 *) # Relative name.
23980 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23983 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23984 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23985 # The eval makes quoting arguments work.
23986 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23987 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23988 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23989 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23990 { (exit 1); exit 1; }; }