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. */
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3622 { (case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 llvm_cv_cxx_compiler=clang
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_compile") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3679 { (case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684 (eval "$ac_try") 2>&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest.$ac_objext'
3689 { (case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_try") 2>&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; }; then
3698 llvm_cv_cxx_compiler=gcc
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3717 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3719 # Check whether --enable-compiler-version-checks was given.
3720 if test "${enable_compiler_version_checks+set}" = set; then
3721 enableval=$enable_compiler_version_checks;
3726 case "$enableval" in
3731 ac_cpp='$CXXCPP $CPPFLAGS'
3732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3736 case "$llvm_cv_cxx_compiler" in
3738 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
3739 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
3740 cat >conftest.$ac_ext <<_ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3747 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
3748 #error This version of Clang is too old to build LLVM
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_compile") 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3774 { (case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_try") 2>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789 (eval "$ac_try") 2>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3801 { { echo "$as_me:$LINENO: error:
3802 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3803 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3804 bypass these sanity checks." >&5
3805 echo "$as_me: error:
3806 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
3807 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
3808 bypass these sanity checks." >&2;}
3809 { (exit 1); exit 1; }; }
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
3816 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3824 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
3825 #error This version of GCC is too old to build LLVM
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_compile") 2>conftest.er1
3845 grep -v '^ *+' conftest.er1 >conftest.err
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3851 { (case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_try") 2>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3870 { echo "$as_me:$LINENO: result: yes" >&5
3871 echo "${ECHO_T}yes" >&6; }
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 { echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6; }
3878 { { echo "$as_me:$LINENO: error:
3879 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3880 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3881 bypass these sanity checks." >&5
3882 echo "$as_me: error:
3883 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
3884 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
3885 bypass these sanity checks." >&2;}
3886 { (exit 1); exit 1; }; }
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
3903 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
3904 { (exit 1); exit 1; }; }
3910 if test -d ${srcdir}/projects/test-suite ; then
3911 subdirs="$subdirs projects/test-suite"
3915 if test -d ${srcdir}/projects/llvm-test ; then
3916 subdirs="$subdirs projects/llvm-test"
3920 if test -d ${srcdir}/projects/poolalloc ; then
3921 subdirs="$subdirs projects/poolalloc"
3925 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3926 subdirs="$subdirs projects/llvm-poolalloc"
3930 for i in `ls ${srcdir}/projects`
3932 if test -d ${srcdir}/projects/${i} ; then
3934 sample) subdirs="$subdirs projects/sample"
3936 safecode) subdirs="$subdirs projects/safecode"
3944 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3945 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3951 # Check whether --enable-polly was given.
3952 if test "${enable_polly+set}" = set; then
3953 enableval=$enable_polly;
3958 case "$enableval" in
3963 default) ENABLE_POLLY=1
3965 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3966 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3967 { (exit 1); exit 1; }; } ;;
3971 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3974 subdirs="$subdirs tools/polly"
3979 # Make sure we can run config.sub.
3980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3983 { (exit 1); exit 1; }; }
3985 { echo "$as_me:$LINENO: checking build system type" >&5
3986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3987 if test "${ac_cv_build+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 ac_build_alias=$build_alias
3991 test "x$ac_build_alias" = x &&
3992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3993 test "x$ac_build_alias" = x &&
3994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3996 { (exit 1); exit 1; }; }
3997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4000 { (exit 1); exit 1; }; }
4003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4004 echo "${ECHO_T}$ac_cv_build" >&6; }
4005 case $ac_cv_build in
4007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4008 echo "$as_me: error: invalid value of canonical build" >&2;}
4009 { (exit 1); exit 1; }; };;
4012 ac_save_IFS=$IFS; IFS='-'
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4025 { echo "$as_me:$LINENO: checking host system type" >&5
4026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4027 if test "${ac_cv_host+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test "x$host_alias" = x; then
4031 ac_cv_host=$ac_cv_build
4033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4036 { (exit 1); exit 1; }; }
4040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4041 echo "${ECHO_T}$ac_cv_host" >&6; }
4044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4045 echo "$as_me: error: invalid value of canonical host" >&2;}
4046 { (exit 1); exit 1; }; };;
4049 ac_save_IFS=$IFS; IFS='-'
4055 # Remember, the first character of IFS is used to create $*,
4056 # except with old shells:
4059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4062 { echo "$as_me:$LINENO: checking target system type" >&5
4063 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4064 if test "${ac_cv_target+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 if test "x$target_alias" = x; then
4068 ac_cv_target=$ac_cv_host
4070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4073 { (exit 1); exit 1; }; }
4077 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4078 echo "${ECHO_T}$ac_cv_target" >&6; }
4079 case $ac_cv_target in
4081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4082 echo "$as_me: error: invalid value of canonical target" >&2;}
4083 { (exit 1); exit 1; }; };;
4085 target=$ac_cv_target
4086 ac_save_IFS=$IFS; IFS='-'
4092 # Remember, the first character of IFS is used to create $*,
4093 # except with old shells:
4096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4099 # The aliases save the names the user supplied, while $host etc.
4100 # will get canonicalized.
4101 test -n "$target_alias" &&
4102 test "$program_prefix$program_suffix$program_transform_name" = \
4104 program_prefix=${target_alias}-
4106 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
4107 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
4108 if test "${llvm_cv_os_type+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 llvm_cv_link_all_option="-Wl,--whole-archive"
4114 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4115 llvm_cv_os_type="AIX"
4116 llvm_cv_platform_type="Unix" ;;
4118 llvm_cv_link_all_option="-Wl,--whole-archive"
4119 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4120 llvm_cv_os_type="IRIX"
4121 llvm_cv_platform_type="Unix" ;;
4123 llvm_cv_link_all_option="-Wl,--whole-archive"
4124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4125 llvm_cv_os_type="Cygwin"
4126 llvm_cv_platform_type="Unix" ;;
4128 llvm_cv_link_all_option="-Wl,-all_load"
4129 llvm_cv_no_link_all_option="-Wl,-noall_load"
4130 llvm_cv_os_type="Darwin"
4131 llvm_cv_platform_type="Unix" ;;
4133 llvm_cv_link_all_option="-Wl,-all_load"
4134 llvm_cv_no_link_all_option="-Wl,-noall_load"
4135 llvm_cv_os_type="Minix"
4136 llvm_cv_platform_type="Unix" ;;
4138 llvm_cv_link_all_option="-Wl,--whole-archive"
4139 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4140 llvm_cv_os_type="FreeBSD"
4141 llvm_cv_platform_type="Unix" ;;
4143 llvm_cv_link_all_option="-Wl,--whole-archive"
4144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4145 llvm_cv_os_type="GNU/kFreeBSD"
4146 llvm_cv_platform_type="Unix" ;;
4148 llvm_cv_link_all_option="-Wl,--whole-archive"
4149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4150 llvm_cv_os_type="OpenBSD"
4151 llvm_cv_platform_type="Unix" ;;
4153 llvm_cv_link_all_option="-Wl,--whole-archive"
4154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4155 llvm_cv_os_type="NetBSD"
4156 llvm_cv_platform_type="Unix" ;;
4158 llvm_cv_link_all_option="-Wl,--whole-archive"
4159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4160 llvm_cv_os_type="DragonFly"
4161 llvm_cv_platform_type="Unix" ;;
4163 llvm_cv_link_all_option="-Wl,--whole-archive"
4164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4165 llvm_cv_os_type="HP-UX"
4166 llvm_cv_platform_type="Unix" ;;
4168 llvm_cv_link_all_option="-Wl,--whole-archive"
4169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4170 llvm_cv_os_type="Interix"
4171 llvm_cv_platform_type="Unix" ;;
4173 llvm_cv_link_all_option="-Wl,--whole-archive"
4174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4175 llvm_cv_os_type="Linux"
4176 llvm_cv_platform_type="Unix" ;;
4178 llvm_cv_link_all_option="-Wl,--whole-archive"
4179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4180 llvm_cv_os_type="GNU"
4181 llvm_cv_platform_type="Unix" ;;
4183 llvm_cv_link_all_option="-Wl,-z,allextract"
4184 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4185 llvm_cv_os_type="SunOS"
4186 llvm_cv_platform_type="Unix" ;;
4188 llvm_cv_link_all_option="-Wl,-z,allextract"
4189 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4190 llvm_cv_os_type="AuroraUX"
4191 llvm_cv_platform_type="Unix" ;;
4193 llvm_cv_link_all_option="-Wl,--whole-archive"
4194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4195 llvm_cv_os_type="Win32"
4196 llvm_cv_platform_type="Win32" ;;
4198 llvm_cv_link_all_option="-Wl,--whole-archive"
4199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4200 llvm_cv_os_type="MingW"
4201 llvm_cv_platform_type="Win32" ;;
4203 llvm_cv_link_all_option="-Wl,--whole-archive"
4204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4205 llvm_cv_os_type="Haiku"
4206 llvm_cv_platform_type="Unix" ;;
4208 llvm_cv_link_all_option="-Wl,--whole-archive"
4209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4210 llvm_cv_os_type="Freestanding"
4211 llvm_cv_platform_type="Unix" ;;
4213 llvm_cv_link_all_option="-Wl,--whole-archive"
4214 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4215 llvm_cv_os_type="Freestanding"
4216 llvm_cv_platform_type="Unix" ;;
4218 llvm_cv_link_all_option=""
4219 llvm_cv_no_link_all_option=""
4220 llvm_cv_os_type="Unknown"
4221 llvm_cv_platform_type="Unknown" ;;
4224 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4225 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4227 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4228 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4229 if test "${llvm_cv_target_os_type+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 llvm_cv_target_os_type="AIX" ;;
4236 llvm_cv_target_os_type="IRIX" ;;
4238 llvm_cv_target_os_type="Cygwin" ;;
4240 llvm_cv_target_os_type="Darwin" ;;
4242 llvm_cv_target_os_type="Minix" ;;
4244 llvm_cv_target_os_type="FreeBSD" ;;
4246 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4248 llvm_cv_target_os_type="OpenBSD" ;;
4250 llvm_cv_target_os_type="NetBSD" ;;
4252 llvm_cv_target_os_type="DragonFly" ;;
4254 llvm_cv_target_os_type="HP-UX" ;;
4256 llvm_cv_target_os_type="Interix" ;;
4258 llvm_cv_target_os_type="Linux" ;;
4260 llvm_cv_target_os_type="GNU" ;;
4262 llvm_cv_target_os_type="SunOS" ;;
4264 llvm_cv_target_os_type="AuroraUX" ;;
4266 llvm_cv_target_os_type="Win32" ;;
4268 llvm_cv_target_os_type="MingW" ;;
4270 llvm_cv_target_os_type="Haiku" ;;
4272 llvm_cv_target_os_type="RTEMS" ;;
4274 llvm_cv_target_os_type="NativeClient" ;;
4276 llvm_cv_target_os_type="Freestanding" ;;
4278 llvm_cv_target_os_type="Unknown" ;;
4281 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4282 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4284 if test "$llvm_cv_os_type" = "Unknown" ; then
4285 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4286 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4287 { (exit 1); exit 1; }; }
4292 HOST_OS=$llvm_cv_os_type
4294 TARGET_OS=$llvm_cv_target_os_type
4297 LINKALL=$llvm_cv_link_all_option
4299 NOLINKALL=$llvm_cv_no_link_all_option
4302 case $llvm_cv_platform_type in
4305 cat >>confdefs.h <<\_ACEOF
4306 #define LLVM_ON_UNIX 1
4316 cat >>confdefs.h <<\_ACEOF
4317 #define LLVM_ON_WIN32 1
4327 { echo "$as_me:$LINENO: checking target architecture" >&5
4328 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4329 if test "${llvm_cv_target_arch+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 i?86-*) llvm_cv_target_arch="x86" ;;
4334 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4335 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4336 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4337 arm*-*) llvm_cv_target_arch="ARM" ;;
4338 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4339 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4340 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4341 xcore-*) llvm_cv_target_arch="XCore" ;;
4342 msp430-*) llvm_cv_target_arch="MSP430" ;;
4343 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4344 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4345 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4346 *) llvm_cv_target_arch="Unknown" ;;
4349 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4350 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4352 if test "$llvm_cv_target_arch" = "Unknown" ; then
4353 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4354 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4357 case "$llvm_cv_target_arch" in
4358 x86) LLVM_NATIVE_ARCH="X86" ;;
4359 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4360 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4363 ARCH=$llvm_cv_target_arch
4367 i?86-*) host_arch="x86" ;;
4368 amd64-* | x86_64-*) host_arch="x86_64" ;;
4369 sparc*-*) host_arch="Sparc" ;;
4370 powerpc*-*) host_arch="PowerPC" ;;
4371 arm*-*) host_arch="ARM" ;;
4372 aarch64*-*) host_arch="AArch64" ;;
4373 mips-* | mips64-*) host_arch="Mips" ;;
4374 mipsel-* | mips64el-*) host_arch="Mips" ;;
4375 xcore-*) host_arch="XCore" ;;
4376 msp430-*) host_arch="MSP430" ;;
4377 hexagon-*) host_arch="Hexagon" ;;
4378 s390x-*) host_arch="SystemZ" ;;
4379 *) host_arch="Unknown" ;;
4382 if test "$host_arch" = "Unknown" ; then
4383 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4384 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4387 HOST_ARCH=$host_arch
4390 if test "$cross_compiling" = yes; then
4391 LLVM_CROSS_COMPILING=1
4394 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4395 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4396 if test "${ac_cv_build_exeext+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4400 ac_cv_build_exeext=.exe
4402 ac_build_prefix=${build_alias}-
4404 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4405 set dummy ${ac_build_prefix}gcc; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 if test -n "$BUILD_CC"; then
4412 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 BUILD_CC=$ac_cv_prog_BUILD_CC
4432 if test -n "$BUILD_CC"; then
4433 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4434 echo "${ECHO_T}$BUILD_CC" >&6; }
4436 { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4441 if test -z "$BUILD_CC"; then
4442 # Extract the first word of "gcc", so it can be a program name with args.
4443 set dummy gcc; ac_word=$2
4444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4446 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 if test -n "$BUILD_CC"; then
4450 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_BUILD_CC="gcc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 BUILD_CC=$ac_cv_prog_BUILD_CC
4470 if test -n "$BUILD_CC"; then
4471 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4479 if test -z "$BUILD_CC"; then
4480 # Extract the first word of "cc", so it can be a program name with args.
4481 set dummy cc; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 if test -n "$BUILD_CC"; then
4488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4499 ac_prog_rejected=yes
4502 ac_cv_prog_BUILD_CC="cc"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 if test $ac_prog_rejected = yes; then
4511 # We found a bogon in the path, so make sure we never use it.
4512 set dummy $ac_cv_prog_BUILD_CC
4514 if test $# != 0; then
4515 # We chose a different compiler from the bogus one.
4516 # However, it has the same basename, so the bogon will be chosen
4517 # first if we set BUILD_CC to just the basename; use the full file name.
4519 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4524 BUILD_CC=$ac_cv_prog_BUILD_CC
4525 if test -n "$BUILD_CC"; then
4526 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4527 echo "${ECHO_T}$BUILD_CC" >&6; }
4529 { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }
4536 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4537 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4538 { (exit 1); exit 1; }; }
4539 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541 echo 'int main () { return 0; }' > conftest.$ac_ext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4544 (eval $ac_build_link) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; then
4548 for file in conftest.*; do
4550 *.c | *.o | *.obj | *.dSYM) ;;
4551 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4555 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4556 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4557 { (exit 1); exit 1; }; }
4560 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4565 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4566 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4567 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4568 ac_build_exeext=$BUILD_EXEEXT
4570 ac_build_prefix=${build_alias}-
4571 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4572 set dummy ${ac_build_prefix}g++; ac_word=$2
4573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4575 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -n "$BUILD_CXX"; then
4579 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4588 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4599 if test -n "$BUILD_CXX"; then
4600 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4601 echo "${ECHO_T}$BUILD_CXX" >&6; }
4603 { echo "$as_me:$LINENO: result: no" >&5
4604 echo "${ECHO_T}no" >&6; }
4608 if test -z "$BUILD_CXX"; then
4609 # Extract the first word of "g++", so it can be a program name with args.
4610 set dummy g++; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 if test -n "$BUILD_CXX"; then
4617 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_BUILD_CXX="g++"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637 if test -n "$BUILD_CXX"; then
4638 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639 echo "${ECHO_T}$BUILD_CXX" >&6; }
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4646 if test -z "$BUILD_CXX"; then
4647 # Extract the first word of "c++", so it can be a program name with args.
4648 set dummy c++; ac_word=$2
4649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4651 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 if test -n "$BUILD_CXX"; then
4655 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4666 ac_prog_rejected=yes
4669 ac_cv_prog_BUILD_CXX="c++"
4670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 if test $ac_prog_rejected = yes; then
4678 # We found a bogon in the path, so make sure we never use it.
4679 set dummy $ac_cv_prog_BUILD_CXX
4681 if test $# != 0; then
4682 # We chose a different compiler from the bogus one.
4683 # However, it has the same basename, so the bogon will be chosen
4684 # first if we set BUILD_CXX to just the basename; use the full file name.
4686 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4691 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4692 if test -n "$BUILD_CXX"; then
4693 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4694 echo "${ECHO_T}$BUILD_CXX" >&6; }
4696 { echo "$as_me:$LINENO: result: no" >&5
4697 echo "${ECHO_T}no" >&6; }
4704 LLVM_CROSS_COMPILING=0
4708 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4719 # Check whether --enable-libcpp was given.
4720 if test "${enable_libcpp+set}" = set; then
4721 enableval=$enable_libcpp;
4726 case "$enableval" in
4727 yes) ENABLE_LIBCPP=1
4731 default) ENABLE_LIBCPP=0
4733 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4734 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4735 { (exit 1); exit 1; }; } ;;
4738 # Check whether --enable-cxx11 was given.
4739 if test "${enable_cxx11+set}" = set; then
4740 enableval=$enable_cxx11;
4745 case "$enableval" in
4750 default) ENABLE_CXX11=0
4752 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4753 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4757 # Check whether --enable-split-dwarf was given.
4758 if test "${enable_split_dwarf+set}" = set; then
4759 enableval=$enable_split_dwarf;
4764 case "$enableval" in
4765 yes) ENABLE_SPLIT_DWARF=1
4767 no) ENABLE_SPLIT_DWARF=0
4769 default) ENABLE_SPLIT_DWARF=0
4771 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4772 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4773 { (exit 1); exit 1; }; } ;;
4777 # Check whether --enable-clang-arcmt was given.
4778 if test "${enable_clang_arcmt+set}" = set; then
4779 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4784 case "$enableval" in
4785 yes) ENABLE_CLANG_ARCMT=1
4787 no) ENABLE_CLANG_ARCMT=0
4789 default) ENABLE_CLANG_ARCMT=1
4791 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4792 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4793 { (exit 1); exit 1; }; } ;;
4796 clang_static_analyzer="yes"
4797 # Check whether --enable-clang-static-analyzer was given.
4798 if test "${enable_clang_static_analyzer+set}" = set; then
4799 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4804 case "$enableval" in
4805 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4808 if test ${clang_arcmt} != "no" ; then
4809 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4810 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4811 { (exit 1); exit 1; }; }
4813 ENABLE_CLANG_STATIC_ANALYZER=0
4816 default) ENABLE_CLANG_STATIC_ANALYZER=1
4818 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4819 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4820 { (exit 1); exit 1; }; } ;;
4823 # Check whether --enable-clang-rewriter was given.
4824 if test "${enable_clang_rewriter+set}" = set; then
4825 enableval=$enable_clang_rewriter;
4830 case "$enableval" in
4831 yes) ENABLE_CLANG_REWRITER=1
4834 if test ${clang_arcmt} != "no" ; then
4835 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4836 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4837 { (exit 1); exit 1; }; }
4839 if test ${clang_static_analyzer} != "no" ; then
4840 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4841 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4842 { (exit 1); exit 1; }; }
4844 ENABLE_CLANG_REWRITER=0
4847 default) ENABLE_CLANG_REWRITER=1
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4850 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4854 # Check whether --enable-optimized was given.
4855 if test "${enable_optimized+set}" = set; then
4856 enableval=$enable_optimized;
4861 if test ${enableval} = "no" ; then
4865 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4869 # Check whether --enable-profiling was given.
4870 if test "${enable_profiling+set}" = set; then
4871 enableval=$enable_profiling;
4876 if test ${enableval} = "no" ; then
4880 ENABLE_PROFILING=ENABLE_PROFILING=1
4884 # Check whether --enable-assertions was given.
4885 if test "${enable_assertions+set}" = set; then
4886 enableval=$enable_assertions;
4891 if test ${enableval} = "yes" ; then
4895 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4899 # Check whether --enable-werror was given.
4900 if test "${enable_werror+set}" = set; then
4901 enableval=$enable_werror;
4906 case "$enableval" in
4907 yes) ENABLE_WERROR=1
4911 default) ENABLE_WERROR=0
4913 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4914 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4915 { (exit 1); exit 1; }; } ;;
4918 # Check whether --enable-expensive-checks was given.
4919 if test "${enable_expensive_checks+set}" = set; then
4920 enableval=$enable_expensive_checks;
4925 if test ${enableval} = "yes" ; then
4926 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4928 EXPENSIVE_CHECKS=yes
4931 ENABLE_EXPENSIVE_CHECKS=
4937 # Check whether --enable-debug-runtime was given.
4938 if test "${enable_debug_runtime+set}" = set; then
4939 enableval=$enable_debug_runtime;
4944 if test ${enableval} = "no" ; then
4948 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4952 # Check whether --enable-debug-symbols was given.
4953 if test "${enable_debug_symbols+set}" = set; then
4954 enableval=$enable_debug_symbols;
4959 if test ${enableval} = "no" ; then
4963 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4967 # Check whether --enable-keep-symbols was given.
4968 if test "${enable_keep_symbols+set}" = set; then
4969 enableval=$enable_keep_symbols;
4974 if test ${enableval} = "no" ; then
4978 KEEP_SYMBOLS=KEEP_SYMBOLS=1
4982 # Check whether --enable-jit was given.
4983 if test "${enable_jit+set}" = set; then
4984 enableval=$enable_jit;
4989 if test ${enableval} = "no"
4994 case "$llvm_cv_target_arch" in
4995 x86) TARGET_HAS_JIT=1
4997 Sparc) TARGET_HAS_JIT=0
4999 PowerPC) TARGET_HAS_JIT=1
5001 x86_64) TARGET_HAS_JIT=1
5003 ARM) TARGET_HAS_JIT=1
5005 AArch64) TARGET_HAS_JIT=0
5007 Mips) TARGET_HAS_JIT=1
5009 XCore) TARGET_HAS_JIT=0
5011 MSP430) TARGET_HAS_JIT=0
5013 Hexagon) TARGET_HAS_JIT=0
5015 NVPTX) TARGET_HAS_JIT=0
5017 SystemZ) TARGET_HAS_JIT=1
5024 # Check whether --enable-docs was given.
5025 if test "${enable_docs+set}" = set; then
5026 enableval=$enable_docs;
5031 case "$enableval" in
5036 default) ENABLE_DOCS=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 # Check whether --enable-doxygen was given.
5044 if test "${enable_doxygen+set}" = set; then
5045 enableval=$enable_doxygen;
5050 case "$enableval" in
5051 yes) ENABLE_DOXYGEN=1
5053 no) ENABLE_DOXYGEN=0
5055 default) ENABLE_DOXYGEN=0
5057 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5058 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5059 { (exit 1); exit 1; }; } ;;
5062 # Check whether --enable-threads was given.
5063 if test "${enable_threads+set}" = set; then
5064 enableval=$enable_threads;
5069 case "$enableval" in
5070 yes) LLVM_ENABLE_THREADS=1
5072 no) LLVM_ENABLE_THREADS=0
5074 default) LLVM_ENABLE_THREADS=1
5076 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5077 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5078 { (exit 1); exit 1; }; } ;;
5081 cat >>confdefs.h <<_ACEOF
5082 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5086 # Check whether --enable-pthreads was given.
5087 if test "${enable_pthreads+set}" = set; then
5088 enableval=$enable_pthreads;
5093 case "$enableval" in
5094 yes) ENABLE_PTHREADS=1
5096 no) ENABLE_PTHREADS=0
5098 default) ENABLE_PTHREADS=1
5100 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5101 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5102 { (exit 1); exit 1; }; } ;;
5105 # Check whether --enable-zlib was given.
5106 if test "${enable_zlib+set}" = set; then
5107 enableval=$enable_zlib;
5112 case "$enableval" in
5113 yes) LLVM_ENABLE_ZLIB=1
5115 no) LLVM_ENABLE_ZLIB=0
5117 default) LLVM_ENABLE_ZLIB=1
5119 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5120 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5121 { (exit 1); exit 1; }; } ;;
5124 cat >>confdefs.h <<_ACEOF
5125 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5129 # Check whether --enable-pic was given.
5130 if test "${enable_pic+set}" = set; then
5131 enableval=$enable_pic;
5136 case "$enableval" in
5141 default) ENABLE_PIC=1
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5148 cat >>confdefs.h <<_ACEOF
5149 #define ENABLE_PIC $ENABLE_PIC
5153 # Check whether --enable-shared was given.
5154 if test "${enable_shared+set}" = set; then
5155 enableval=$enable_shared;
5160 case "$enableval" in
5161 yes) ENABLE_SHARED=1
5165 default) ENABLE_SHARED=0
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 # Check whether --enable-embed-stdcxx was given.
5173 if test "${enable_embed_stdcxx+set}" = set; then
5174 enableval=$enable_embed_stdcxx;
5179 case "$enableval" in
5180 yes) ENABLE_EMBED_STDCXX=1
5182 no) ENABLE_EMBED_STDCXX=0
5184 default) ENABLE_EMBED_STDCXX=0
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5191 # Check whether --enable-timestamps was given.
5192 if test "${enable_timestamps+set}" = set; then
5193 enableval=$enable_timestamps;
5198 case "$enableval" in
5199 yes) ENABLE_TIMESTAMPS=1
5201 no) ENABLE_TIMESTAMPS=0
5203 default) ENABLE_TIMESTAMPS=1
5205 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5207 { (exit 1); exit 1; }; } ;;
5210 cat >>confdefs.h <<_ACEOF
5211 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5215 # Check whether --enable-backtraces was given.
5216 if test "${enable_backtraces+set}" = set; then
5217 enableval=$enable_backtraces; case "$enableval" in
5218 yes) llvm_cv_enable_backtraces="yes" ;;
5219 no) llvm_cv_enable_backtraces="no" ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5225 llvm_cv_enable_backtraces="yes"
5228 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5230 cat >>confdefs.h <<\_ACEOF
5231 #define ENABLE_BACKTRACES 1
5236 # Check whether --enable-crash-overrides was given.
5237 if test "${enable_crash_overrides+set}" = set; then
5238 enableval=$enable_crash_overrides; case "$enableval" in
5239 yes) llvm_cv_enable_crash_overrides="yes" ;;
5240 no) llvm_cv_enable_crash_overrides="no" ;;
5241 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5242 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5246 llvm_cv_enable_crash_overrides="yes"
5249 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5251 cat >>confdefs.h <<\_ACEOF
5252 #define ENABLE_CRASH_OVERRIDES 1
5258 # Check whether --enable-targets was given.
5259 if test "${enable_targets+set}" = set; then
5260 enableval=$enable_targets;
5265 if test "$enableval" = host-only ; then
5268 case "$enableval" in
5269 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5270 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5272 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5273 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5274 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5275 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5276 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5277 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5278 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5279 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5280 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5281 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5282 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5283 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5284 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5285 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5286 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5287 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5288 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5289 host) case "$llvm_cv_target_arch" in
5290 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5291 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5293 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5294 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5295 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5296 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5297 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5298 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5299 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5300 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5301 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5302 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5303 echo "$as_me: error: Can not set target to build" >&2;}
5304 { (exit 1); exit 1; }; } ;;
5306 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5307 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5308 { (exit 1); exit 1; }; } ;;
5314 # Check whether --enable-experimental-targets was given.
5315 if test "${enable_experimental_targets+set}" = set; then
5316 enableval=$enable_experimental_targets;
5322 if test ${enableval} != "disable"
5324 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5327 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5330 for a_target in $TARGETS_TO_BUILD; do
5331 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5333 cat >>confdefs.h <<_ACEOF
5334 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5337 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5338 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5339 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5340 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5341 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5342 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5344 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5345 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5348 cat >>confdefs.h <<_ACEOF
5349 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5367 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369 cat >>confdefs.h <<_ACEOF
5370 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5374 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5384 LLVM_ENUM_TARGETS=""
5385 LLVM_ENUM_ASM_PRINTERS=""
5386 LLVM_ENUM_ASM_PARSERS=""
5387 LLVM_ENUM_DISASSEMBLERS=""
5388 for target_to_build in $TARGETS_TO_BUILD; do
5389 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5390 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5391 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5393 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5396 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5406 # Check whether --with-optimize-option was given.
5407 if test "${with_optimize_option+set}" = set; then
5408 withval=$with_optimize_option;
5413 { echo "$as_me:$LINENO: checking optimization flags" >&5
5414 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5417 case "$llvm_cv_os_type" in
5418 FreeBSD) optimize_option=-O2 ;;
5419 MingW) optimize_option=-O2 ;;
5420 *) optimize_option=-O3 ;;
5422 *) optimize_option="$withval" ;;
5424 OPTIMIZE_OPTION=$optimize_option
5426 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5427 echo "${ECHO_T}$optimize_option" >&6; }
5430 # Check whether --with-extra-options was given.
5431 if test "${with_extra_options+set}" = set; then
5432 withval=$with_extra_options;
5438 default) EXTRA_OPTIONS= ;;
5439 *) EXTRA_OPTIONS=$withval ;;
5441 EXTRA_OPTIONS=$EXTRA_OPTIONS
5445 # Check whether --with-extra-ld-options was given.
5446 if test "${with_extra_ld_options+set}" = set; then
5447 withval=$with_extra_ld_options;
5453 default) EXTRA_LD_OPTIONS= ;;
5454 *) EXTRA_LD_OPTIONS=$withval ;;
5456 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5459 # Check whether --enable-bindings was given.
5460 if test "${enable_bindings+set}" = set; then
5461 enableval=$enable_bindings;
5466 BINDINGS_TO_BUILD=""
5467 case "$enableval" in
5468 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5469 all ) BINDINGS_TO_BUILD="ocaml" ;;
5470 none | no) BINDINGS_TO_BUILD="" ;;
5471 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5472 case "$a_binding" in
5473 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5474 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5475 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5483 # Check whether --with-ocaml-libdir was given.
5484 if test "${with_ocaml_libdir+set}" = set; then
5485 withval=$with_ocaml_libdir;
5491 auto) with_ocaml_libdir="$withval" ;;
5492 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5494 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5499 # Check whether --with-clang-srcdir was given.
5500 if test "${with_clang_srcdir+set}" = set; then
5501 withval=$with_clang_srcdir;
5507 -) clang_src_root="" ;;
5508 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5509 *) clang_src_root="$ac_pwd/$withval" ;;
5511 CLANG_SRC_ROOT=$clang_src_root
5515 # Check whether --with-clang-resource-dir was given.
5516 if test "${with_clang_resource_dir+set}" = set; then
5517 withval=$with_clang_resource_dir;
5523 cat >>confdefs.h <<_ACEOF
5524 #define CLANG_RESOURCE_DIR "$withval"
5529 # Check whether --with-c-include-dirs was given.
5530 if test "${with_c_include_dirs+set}" = set; then
5531 withval=$with_c_include_dirs;
5537 cat >>confdefs.h <<_ACEOF
5538 #define C_INCLUDE_DIRS "$withval"
5542 # Clang normally uses the system c++ headers and libraries. With this option,
5543 # clang will use the ones provided by a gcc installation instead. This option should
5544 # be passed the same value that was used with --prefix when configuring gcc.
5546 # Check whether --with-gcc-toolchain was given.
5547 if test "${with_gcc_toolchain+set}" = set; then
5548 withval=$with_gcc_toolchain;
5554 cat >>confdefs.h <<_ACEOF
5555 #define GCC_INSTALL_PREFIX "$withval"
5560 # Check whether --with-default-sysroot was given.
5561 if test "${with_default_sysroot+set}" = set; then
5562 withval=$with_default_sysroot;
5568 cat >>confdefs.h <<_ACEOF
5569 #define DEFAULT_SYSROOT "$withval"
5574 # Check whether --with-binutils-include was given.
5575 if test "${with_binutils_include+set}" = set; then
5576 withval=$with_binutils_include;
5582 default) WITH_BINUTILS_INCDIR=default ;;
5583 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5584 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5585 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5586 { (exit 1); exit 1; }; } ;;
5588 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5589 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5591 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5592 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5593 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5594 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5595 { (exit 1); exit 1; }; };
5600 # Check whether --with-bug-report-url was given.
5601 if test "${with_bug_report_url+set}" = set; then
5602 withval=$with_bug_report_url;
5604 withval="http://llvm.org/bugs/"
5608 cat >>confdefs.h <<_ACEOF
5609 #define BUG_REPORT_URL "$withval"
5613 # Check whether --enable-terminfo was given.
5614 if test "${enable_terminfo+set}" = set; then
5615 enableval=$enable_terminfo; case "$enableval" in
5616 yes) llvm_cv_enable_terminfo="yes" ;;
5617 no) llvm_cv_enable_terminfo="no" ;;
5618 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5619 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5623 llvm_cv_enable_terminfo="yes"
5627 # Check whether --enable-libffi was given.
5628 if test "${enable_libffi+set}" = set; then
5629 enableval=$enable_libffi; case "$enableval" in
5630 yes) llvm_cv_enable_libffi="yes" ;;
5631 no) llvm_cv_enable_libffi="no" ;;
5632 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5633 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5634 { (exit 1); exit 1; }; } ;;
5637 llvm_cv_enable_libffi=no
5642 # Check whether --with-internal-prefix was given.
5643 if test "${with_internal_prefix+set}" = set; then
5644 withval=$with_internal_prefix;
5649 INTERNAL_PREFIX=$withval
5653 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5654 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5655 if test "${lt_cv_path_NM+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test -n "$NM"; then
5659 # Let the user override the test.
5662 lt_nm_to_check="${ac_tool_prefix}nm"
5663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5664 lt_nm_to_check="$lt_nm_to_check nm"
5666 for lt_tmp_nm in $lt_nm_to_check; do
5667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5670 test -z "$ac_dir" && ac_dir=.
5671 tmp_nm="$ac_dir/$lt_tmp_nm"
5672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5673 # Check to see if the nm accepts a BSD-compat flag.
5674 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5675 # nm: unknown option "B" ignored
5676 # Tru64's nm complains that /dev/null is an invalid object file
5677 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5678 */dev/null* | *'Invalid file or object type'*)
5679 lt_cv_path_NM="$tmp_nm -B"
5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5685 lt_cv_path_NM="$tmp_nm -p"
5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5690 continue # so that we can try to find one that supports BSD flags
5699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5702 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5703 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5708 { echo "$as_me:$LINENO: checking for GNU make" >&5
5709 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5710 if test "${llvm_cv_gnu_make_command+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 llvm_cv_gnu_make_command=''
5714 for a in "$MAKE" make gmake gnumake ; do
5715 if test -z "$a" ; then continue ; fi ;
5716 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5718 llvm_cv_gnu_make_command=$a ;
5723 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5724 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5725 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5729 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5730 echo "${ECHO_T}\"Not found\"" >&6; };
5734 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5735 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5737 if test "$LN_S" = "ln -s"; then
5738 { echo "$as_me:$LINENO: result: yes" >&5
5739 echo "${ECHO_T}yes" >&6; }
5741 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5742 echo "${ECHO_T}no, using $LN_S" >&6; }
5745 # Extract the first word of "cmp", so it can be a program name with args.
5746 set dummy cmp; ac_word=$2
5747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749 if test "${ac_cv_path_CMP+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5777 if test -n "$CMP"; then
5778 { echo "$as_me:$LINENO: result: $CMP" >&5
5779 echo "${ECHO_T}$CMP" >&6; }
5781 { echo "$as_me:$LINENO: result: no" >&5
5782 echo "${ECHO_T}no" >&6; }
5786 # Extract the first word of "cp", so it can be a program name with args.
5787 set dummy cp; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_CP+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5818 if test -n "$CP"; then
5819 { echo "$as_me:$LINENO: result: $CP" >&5
5820 echo "${ECHO_T}$CP" >&6; }
5822 { echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6; }
5827 # Extract the first word of "date", so it can be a program name with args.
5828 set dummy date; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_DATE+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5858 DATE=$ac_cv_path_DATE
5859 if test -n "$DATE"; then
5860 { echo "$as_me:$LINENO: result: $DATE" >&5
5861 echo "${ECHO_T}$DATE" >&6; }
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5868 # Extract the first word of "find", so it can be a program name with args.
5869 set dummy find; ac_word=$2
5870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5872 if test "${ac_cv_path_FIND+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5887 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5899 FIND=$ac_cv_path_FIND
5900 if test -n "$FIND"; then
5901 { echo "$as_me:$LINENO: result: $FIND" >&5
5902 echo "${ECHO_T}$FIND" >&6; }
5904 { echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6; }
5909 # Extract the first word of "grep", so it can be a program name with args.
5910 set dummy grep; ac_word=$2
5911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5913 if test "${ac_cv_path_GREP+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5928 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5940 GREP=$ac_cv_path_GREP
5941 if test -n "$GREP"; then
5942 { echo "$as_me:$LINENO: result: $GREP" >&5
5943 echo "${ECHO_T}$GREP" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 # Extract the first word of "mkdir", so it can be a program name with args.
5951 set dummy mkdir; ac_word=$2
5952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954 if test "${ac_cv_path_MKDIR+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5981 MKDIR=$ac_cv_path_MKDIR
5982 if test -n "$MKDIR"; then
5983 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5984 echo "${ECHO_T}$MKDIR" >&6; }
5986 { echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6; }
5991 # Extract the first word of "mv", so it can be a program name with args.
5992 set dummy mv; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_path_MV+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6023 if test -n "$MV"; then
6024 { echo "$as_me:$LINENO: result: $MV" >&5
6025 echo "${ECHO_T}$MV" >&6; }
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6032 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test -n "$RANLIB"; then
6041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 RANLIB=$ac_cv_prog_RANLIB
6061 if test -n "$RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6063 echo "${ECHO_T}$RANLIB" >&6; }
6065 { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6071 if test -z "$ac_cv_prog_RANLIB"; then
6072 ac_ct_RANLIB=$RANLIB
6073 # Extract the first word of "ranlib", so it can be a program name with args.
6074 set dummy ranlib; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 if test -n "$ac_ct_RANLIB"; then
6081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6090 ac_cv_prog_ac_ct_RANLIB="ranlib"
6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6101 if test -n "$ac_ct_RANLIB"; then
6102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6105 { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6109 if test "x$ac_ct_RANLIB" = x; then
6112 case $cross_compiling:$ac_tool_warned in
6114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6115 whose name does not start with the host triplet. If you think this
6116 configuration is useful to you, please write to autoconf@gnu.org." >&5
6117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6118 whose name does not start with the host triplet. If you think this
6119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6120 ac_tool_warned=yes ;;
6122 RANLIB=$ac_ct_RANLIB
6125 RANLIB="$ac_cv_prog_RANLIB"
6128 if test -n "$ac_tool_prefix"; then
6129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6130 set dummy ${ac_tool_prefix}ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$AR"; then
6137 ac_cv_prog_AR="$AR" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_AR="${ac_tool_prefix}ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 if test -n "$AR"; then
6158 { echo "$as_me:$LINENO: result: $AR" >&5
6159 echo "${ECHO_T}$AR" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6167 if test -z "$ac_cv_prog_AR"; then
6169 # Extract the first word of "ar", so it can be a program name with args.
6170 set dummy ar; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 if test -n "$ac_ct_AR"; then
6177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_AR="ar"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6197 if test -n "$ac_ct_AR"; then
6198 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6199 echo "${ECHO_T}$ac_ct_AR" >&6; }
6201 { echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6; }
6205 if test "x$ac_ct_AR" = x; then
6208 case $cross_compiling:$ac_tool_warned in
6210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet. If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&5
6213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6214 whose name does not start with the host triplet. If you think this
6215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6216 ac_tool_warned=yes ;;
6224 # Extract the first word of "rm", so it can be a program name with args.
6225 set dummy rm; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_RM+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6256 if test -n "$RM"; then
6257 { echo "$as_me:$LINENO: result: $RM" >&5
6258 echo "${ECHO_T}$RM" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 # Extract the first word of "sed", so it can be a program name with args.
6266 set dummy sed; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_SED+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6297 if test -n "$SED"; then
6298 { echo "$as_me:$LINENO: result: $SED" >&5
6299 echo "${ECHO_T}$SED" >&6; }
6301 { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6306 # Extract the first word of "tar", so it can be a program name with args.
6307 set dummy tar; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_TAR+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6338 if test -n "$TAR"; then
6339 { echo "$as_me:$LINENO: result: $TAR" >&5
6340 echo "${ECHO_T}$TAR" >&6; }
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6347 # Extract the first word of "pwd", so it can be a program name with args.
6348 set dummy pwd; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_path_BINPWD+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6378 BINPWD=$ac_cv_path_BINPWD
6379 if test -n "$BINPWD"; then
6380 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6381 echo "${ECHO_T}$BINPWD" >&6; }
6383 { echo "$as_me:$LINENO: result: no" >&5
6384 echo "${ECHO_T}no" >&6; }
6389 # Extract the first word of "Graphviz", so it can be a program name with args.
6390 set dummy Graphviz; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6420 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6421 if test -n "$GRAPHVIZ"; then
6422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6423 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6430 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_GRAPHVIZ 1
6436 if test "$llvm_cv_os_type" = "MingW" ; then
6437 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6440 cat >>confdefs.h <<_ACEOF
6441 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6445 # Extract the first word of "dot", so it can be a program name with args.
6446 set dummy dot; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_DOT+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6477 if test -n "$DOT"; then
6478 { echo "$as_me:$LINENO: result: $DOT" >&5
6479 echo "${ECHO_T}$DOT" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6486 if test "$DOT" != "echo dot" ; then
6488 cat >>confdefs.h <<\_ACEOF
6492 if test "$llvm_cv_os_type" = "MingW" ; then
6493 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6501 # Extract the first word of "fdp", so it can be a program name with args.
6502 set dummy fdp; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_FDP+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6533 if test -n "$FDP"; then
6534 { echo "$as_me:$LINENO: result: $FDP" >&5
6535 echo "${ECHO_T}$FDP" >&6; }
6537 { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6542 if test "$FDP" != "echo fdp" ; then
6544 cat >>confdefs.h <<\_ACEOF
6548 if test "$llvm_cv_os_type" = "MingW" ; then
6549 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6557 # Extract the first word of "neato", so it can be a program name with args.
6558 set dummy neato; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_NEATO+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6588 NEATO=$ac_cv_path_NEATO
6589 if test -n "$NEATO"; then
6590 { echo "$as_me:$LINENO: result: $NEATO" >&5
6591 echo "${ECHO_T}$NEATO" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6598 if test "$NEATO" != "echo neato" ; then
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE_NEATO 1
6604 if test "$llvm_cv_os_type" = "MingW" ; then
6605 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6613 # Extract the first word of "twopi", so it can be a program name with args.
6614 set dummy twopi; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_TWOPI+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6644 TWOPI=$ac_cv_path_TWOPI
6645 if test -n "$TWOPI"; then
6646 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6647 echo "${ECHO_T}$TWOPI" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 if test "$TWOPI" != "echo twopi" ; then
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_TWOPI 1
6660 if test "$llvm_cv_os_type" = "MingW" ; then
6661 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6669 # Extract the first word of "circo", so it can be a program name with args.
6670 set dummy circo; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_CIRCO+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6700 CIRCO=$ac_cv_path_CIRCO
6701 if test -n "$CIRCO"; then
6702 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6703 echo "${ECHO_T}$CIRCO" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 if test "$CIRCO" != "echo circo" ; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_CIRCO 1
6716 if test "$llvm_cv_os_type" = "MingW" ; then
6717 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6725 for ac_prog in gv gsview32
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GV+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 if test -n "$GV"; then
6759 { echo "$as_me:$LINENO: result: $GV" >&5
6760 echo "${ECHO_T}$GV" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6767 test -n "$GV" && break
6769 test -n "$GV" || GV="echo gv"
6771 if test "$GV" != "echo gv" ; then
6773 cat >>confdefs.h <<\_ACEOF
6777 if test "$llvm_cv_os_type" = "MingW" ; then
6778 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6781 cat >>confdefs.h <<_ACEOF
6782 #define LLVM_PATH_GV "$GV${EXEEXT}"
6786 # Extract the first word of "dotty", so it can be a program name with args.
6787 set dummy dotty; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_DOTTY+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6817 DOTTY=$ac_cv_path_DOTTY
6818 if test -n "$DOTTY"; then
6819 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6820 echo "${ECHO_T}$DOTTY" >&6; }
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 if test "$DOTTY" != "echo dotty" ; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_DOTTY 1
6833 if test "$llvm_cv_os_type" = "MingW" ; then
6834 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6842 for ac_prog in xdot xdot.py
6844 # Extract the first word of "$ac_prog", so it can be a program name with args.
6845 set dummy $ac_prog; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_path_XDOT+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir=.
6861 for ac_exec_ext in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 XDOT=$ac_cv_path_XDOT
6875 if test -n "$XDOT"; then
6876 { echo "$as_me:$LINENO: result: $XDOT" >&5
6877 echo "${ECHO_T}$XDOT" >&6; }
6879 { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6884 test -n "$XDOT" && break
6886 test -n "$XDOT" || XDOT="echo xdot"
6888 if test "$XDOT" != "echo xdot" ; then
6890 cat >>confdefs.h <<\_ACEOF
6894 if test "$llvm_cv_os_type" = "MingW" ; then
6895 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6898 cat >>confdefs.h <<_ACEOF
6899 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6904 # Find a good install program. We prefer a C program (faster),
6905 # so one script is as good as another. But avoid the broken or
6906 # incompatible versions:
6907 # SysV /etc/install, /usr/sbin/install
6908 # SunOS /usr/etc/install
6909 # IRIX /sbin/install
6911 # AmigaOS /C/install, which installs bootblocks on floppy discs
6912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6915 # OS/2's system install, which has a completely different semantic
6916 # ./install, which can be erroneously created by make from ./install.sh.
6917 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6919 if test -z "$INSTALL"; then
6920 if test "${ac_cv_path_install+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 test -z "$as_dir" && as_dir=.
6928 # Account for people who put trailing slashes in PATH elements.
6930 ./ | .// | /cC/* | \
6931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6932 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6935 # OSF1 and SCO ODT 3.0 have their own names for install.
6936 # Don't use installbsd from OSF since it installs stuff as root
6938 for ac_prog in ginstall scoinst install; do
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6941 if test $ac_prog = install &&
6942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6943 # AIX install. It has an incompatible calling convention.
6945 elif test $ac_prog = install &&
6946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6947 # program-specific install script used by HP pwplus--don't use.
6950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6963 if test "${ac_cv_path_install+set}" = set; then
6964 INSTALL=$ac_cv_path_install
6966 # As a last resort, use the slow shell script. Don't cache a
6967 # value for INSTALL within a source directory, because that will
6968 # break other packages using the cache if that directory is
6969 # removed, or if the value is a relative name.
6970 INSTALL=$ac_install_sh
6973 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6974 echo "${ECHO_T}$INSTALL" >&6; }
6976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6977 # It thinks the first close brace ends the variable substitution.
6978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6985 [\\/$]* | ?:[\\/]* ) ;;
6986 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6989 # Extract the first word of "bzip2", so it can be a program name with args.
6990 set dummy bzip2; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_BZIP2+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 BZIP2=$ac_cv_path_BZIP2
7020 if test -n "$BZIP2"; then
7021 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7022 echo "${ECHO_T}$BZIP2" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7029 # Extract the first word of "cat", so it can be a program name with args.
7030 set dummy cat; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_path_CAT+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 if test -n "$CAT"; then
7061 { echo "$as_me:$LINENO: result: $CAT" >&5
7062 echo "${ECHO_T}$CAT" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "doxygen", so it can be a program name with args.
7070 set dummy doxygen; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 DOXYGEN=$ac_cv_path_DOXYGEN
7100 if test -n "$DOXYGEN"; then
7101 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7102 echo "${ECHO_T}$DOXYGEN" >&6; }
7104 { echo "$as_me:$LINENO: result: no" >&5
7105 echo "${ECHO_T}no" >&6; }
7109 # Extract the first word of "groff", so it can be a program name with args.
7110 set dummy groff; ac_word=$2
7111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7113 if test "${ac_cv_path_GROFF+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 GROFF=$ac_cv_path_GROFF
7140 if test -n "$GROFF"; then
7141 { echo "$as_me:$LINENO: result: $GROFF" >&5
7142 echo "${ECHO_T}$GROFF" >&6; }
7144 { echo "$as_me:$LINENO: result: no" >&5
7145 echo "${ECHO_T}no" >&6; }
7149 # Extract the first word of "gzip", so it can be a program name with args.
7150 set dummy gzip; ac_word=$2
7151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7153 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 GZIPBIN=$ac_cv_path_GZIPBIN
7180 if test -n "$GZIPBIN"; then
7181 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7182 echo "${ECHO_T}$GZIPBIN" >&6; }
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7189 # Extract the first word of "pdfroff", so it can be a program name with args.
7190 set dummy pdfroff; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_path_PDFROFF+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 PDFROFF=$ac_cv_path_PDFROFF
7220 if test -n "$PDFROFF"; then
7221 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7222 echo "${ECHO_T}$PDFROFF" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 # Extract the first word of "zip", so it can be a program name with args.
7230 set dummy zip; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_ZIP+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 if test -n "$ZIP"; then
7261 { echo "$as_me:$LINENO: result: $ZIP" >&5
7262 echo "${ECHO_T}$ZIP" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7269 for ac_prog in ocamlc
7271 # Extract the first word of "$ac_prog", so it can be a program name with args.
7272 set dummy $ac_prog; ac_word=$2
7273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7275 if test "${ac_cv_path_OCAMLC+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 OCAMLC=$ac_cv_path_OCAMLC
7302 if test -n "$OCAMLC"; then
7303 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7304 echo "${ECHO_T}$OCAMLC" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 test -n "$OCAMLC" && break
7314 for ac_prog in ocamlopt
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317 set dummy $ac_prog; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 OCAMLOPT=$ac_cv_path_OCAMLOPT
7347 if test -n "$OCAMLOPT"; then
7348 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7349 echo "${ECHO_T}$OCAMLOPT" >&6; }
7351 { echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6; }
7356 test -n "$OCAMLOPT" && break
7359 for ac_prog in ocamldep
7361 # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7365 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7380 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 OCAMLDEP=$ac_cv_path_OCAMLDEP
7392 if test -n "$OCAMLDEP"; then
7393 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7394 echo "${ECHO_T}$OCAMLDEP" >&6; }
7396 { echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6; }
7401 test -n "$OCAMLDEP" && break
7404 for ac_prog in ocamldoc
7406 # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 OCAMLDOC=$ac_cv_path_OCAMLDOC
7437 if test -n "$OCAMLDOC"; then
7438 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7439 echo "${ECHO_T}$OCAMLDOC" >&6; }
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7446 test -n "$OCAMLDOC" && break
7449 for ac_prog in gas as
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy $ac_prog; ac_word=$2
7453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GAS+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 if test -n "$GAS"; then
7483 { echo "$as_me:$LINENO: result: $GAS" >&5
7484 echo "${ECHO_T}$GAS" >&6; }
7486 { echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6; }
7491 test -n "$GAS" && break
7495 { echo "$as_me:$LINENO: checking for linker version" >&5
7496 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7497 if test "${llvm_cv_link_version+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 version_string="$(ld -v 2>&1 | head -1)"
7504 if (echo "$version_string" | grep -q "ld64"); then
7505 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7507 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7511 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7512 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7514 cat >>confdefs.h <<_ACEOF
7515 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7521 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7522 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7523 if test "${llvm_cv_link_use_r+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 ac_cpp='$CPP $CPPFLAGS'
7528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 CFLAGS="$CFLAGS -Wl,-R."
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553 *) ac_try_echo=$ac_try;;
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556 (eval "$ac_link") 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_try") 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; } &&
7573 { ac_try='test -s conftest$ac_exeext'
7574 { (case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_try") 2>&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 llvm_cv_link_use_r=yes
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 llvm_cv_link_use_r=no
7591 rm -f core conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7602 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7603 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7604 if test "$llvm_cv_link_use_r" = yes ; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_LINK_R 1
7613 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7614 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7615 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625 CFLAGS="$CFLAGS -rdynamic"
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (ac_try="$ac_link"
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_link") 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
7655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7656 { (case "(($ac_try" in
7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_try") 2>&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; } &&
7665 { ac_try='test -s conftest$ac_exeext'
7666 { (case "(($ac_try" in
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_try") 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 llvm_cv_link_use_export_dynamic=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 llvm_cv_link_use_export_dynamic=no
7683 rm -f core conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7687 ac_cpp='$CPP $CPPFLAGS'
7688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7694 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7695 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7696 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_LINK_EXPORT_DYNAMIC 1
7705 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7706 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7707 if test "${llvm_cv_link_use_version_script+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 # The following code is from the autoconf manual,
7719 # "11.13: Limitations of Usual Tools".
7720 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7721 # Use mktemp if possible; otherwise fall back on mkdir,
7722 # with $RANDOM to make collisions less likely.
7726 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7728 test -n "$tmp" && test -d "$tmp"
7730 tmp=$TMPDIR/foo$$-$RANDOM
7731 (umask 077 && mkdir "$tmp")
7734 echo "{" > "$tmp/export.map"
7735 echo " global: main;" >> "$tmp/export.map"
7736 echo " local: *;" >> "$tmp/export.map"
7737 echo "};" >> "$tmp/export.map"
7739 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_link") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 llvm_cv_link_use_version_script=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 llvm_cv_link_use_version_script=no
7797 rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 rm "$tmp/export.map"
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7811 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7812 if test "$llvm_cv_link_use_version_script" = yes ; then
7813 HAVE_LINK_VERSION_SCRIPT=1
7820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7822 if test "${ac_cv_c_const+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7835 /* FIXME: Include the comments suggested by Paul. */
7837 /* Ultrix mips cc rejects this. */
7838 typedef int charset[2];
7840 /* SunOS 4.1.1 cc rejects this. */
7841 char const *const *ccp;
7843 /* NEC SVR4.0.2 mips cc rejects this. */
7844 struct point {int x, y;};
7845 static struct point const zero = {0,0};
7846 /* AIX XL C 1.02.0.0 rejects this.
7847 It does not let you subtract one const X* pointer from another in
7848 an arm of an if-expression whose if-part is not a constant
7850 const char *g = "string";
7851 ccp = &g + (g ? g-g : 0);
7852 /* HPUX 7.0 cc rejects these. */
7855 ccp = (char const *const *) p;
7856 { /* SCO 3.2v4 cc rejects this. */
7858 char const *s = 0 ? (char *) 0 : (char const *) 0;
7863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7865 const int *foo = &x[0];
7868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7869 typedef const int *iptr;
7873 { /* AIX XL C 1.02.0.0 rejects this saying
7874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7875 struct s { int j; const int *ap[3]; };
7876 struct s *b; b->j = 5;
7878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7882 return !x[0] && !zero.x;
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7904 { (case "(($ac_try" in
7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_try") 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_try") 2>&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7925 echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7934 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7935 if test $ac_cv_c_const = no; then
7937 cat >>confdefs.h <<\_ACEOF
7944 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7945 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7946 if test "${ac_cv_path_GREP+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 # Extract the first word of "grep ggrep" to use in msg output
7950 if test -z "$GREP"; then
7951 set dummy grep ggrep; ac_prog_name=$2
7952 if test "${ac_cv_path_GREP+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 ac_path_GREP_found=false
7956 # Loop through the user's path and test for each of PROGNAME-LIST
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7961 test -z "$as_dir" && as_dir=.
7962 for ac_prog in grep ggrep; do
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7965 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7966 # Check for GNU ac_path_GREP and select it if it is found.
7967 # Check for GNU $ac_path_GREP
7968 case `"$ac_path_GREP" --version 2>&1` in
7970 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7973 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7976 cat "conftest.in" "conftest.in" >"conftest.tmp"
7977 mv "conftest.tmp" "conftest.in"
7978 cp "conftest.in" "conftest.nl"
7979 echo 'GREP' >> "conftest.nl"
7980 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7982 ac_count=`expr $ac_count + 1`
7983 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7984 # Best one so far, save it but keep looking for a better one
7985 ac_cv_path_GREP="$ac_path_GREP"
7986 ac_path_GREP_max=$ac_count
7988 # 10*(2^10) chars as input seems more than enough
7989 test $ac_count -gt 10 && break
7991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7995 $ac_path_GREP_found && break 3
8005 GREP="$ac_cv_path_GREP"
8006 if test -z "$GREP"; then
8007 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8008 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8009 { (exit 1); exit 1; }; }
8013 ac_cv_path_GREP=$GREP
8018 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8019 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8020 GREP="$ac_cv_path_GREP"
8023 { echo "$as_me:$LINENO: checking for egrep" >&5
8024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8025 if test "${ac_cv_path_EGREP+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8029 then ac_cv_path_EGREP="$GREP -E"
8031 # Extract the first word of "egrep" to use in msg output
8032 if test -z "$EGREP"; then
8033 set dummy egrep; ac_prog_name=$2
8034 if test "${ac_cv_path_EGREP+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 ac_path_EGREP_found=false
8038 # Loop through the user's path and test for each of PROGNAME-LIST
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8043 test -z "$as_dir" && as_dir=.
8044 for ac_prog in egrep; do
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8047 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8048 # Check for GNU ac_path_EGREP and select it if it is found.
8049 # Check for GNU $ac_path_EGREP
8050 case `"$ac_path_EGREP" --version 2>&1` in
8052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8055 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8058 cat "conftest.in" "conftest.in" >"conftest.tmp"
8059 mv "conftest.tmp" "conftest.in"
8060 cp "conftest.in" "conftest.nl"
8061 echo 'EGREP' >> "conftest.nl"
8062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8064 ac_count=`expr $ac_count + 1`
8065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8066 # Best one so far, save it but keep looking for a better one
8067 ac_cv_path_EGREP="$ac_path_EGREP"
8068 ac_path_EGREP_max=$ac_count
8070 # 10*(2^10) chars as input seems more than enough
8071 test $ac_count -gt 10 && break
8073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8077 $ac_path_EGREP_found && break 3
8087 EGREP="$ac_cv_path_EGREP"
8088 if test -z "$EGREP"; then
8089 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8090 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8091 { (exit 1); exit 1; }; }
8095 ac_cv_path_EGREP=$EGREP
8101 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8102 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8103 EGREP="$ac_cv_path_EGREP"
8106 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8107 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8108 if test "${ac_cv_header_stdc+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 ac_cv_header_stdc=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_cv_header_stdc=no
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 if test $ac_cv_header_stdc = yes; then
8175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8186 $EGREP "memchr" >/dev/null 2>&1; then
8189 ac_cv_header_stdc=no
8195 if test $ac_cv_header_stdc = yes; then
8196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207 $EGREP "free" >/dev/null 2>&1; then
8210 ac_cv_header_stdc=no
8216 if test $ac_cv_header_stdc = yes; then
8217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8218 if test "$cross_compiling" = yes; then
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8229 #if ((' ' & 0x0FF) == 0x020)
8230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8233 # define ISLOWER(c) \
8234 (('a' <= (c) && (c) <= 'i') \
8235 || ('j' <= (c) && (c) <= 'r') \
8236 || ('s' <= (c) && (c) <= 'z'))
8237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8245 for (i = 0; i < 256; i++)
8246 if (XOR (islower (i), ISLOWER (i))
8247 || toupper (i) != TOUPPER (i))
8252 rm -f conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8274 echo "$as_me: program exited with status $ac_status" >&5
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_header_stdc=no
8281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8287 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8288 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8289 if test $ac_cv_header_stdc = yes; then
8291 cat >>confdefs.h <<\_ACEOF
8292 #define STDC_HEADERS 1
8303 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8304 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8305 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8306 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <sys/types.h>
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_compile") 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } &&
8342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8343 { (case "(($ac_try" in
8344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345 *) ac_try_echo=$ac_try;;
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348 (eval "$ac_try") 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; }; then
8362 eval "$as_ac_Header=yes"
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 eval "$as_ac_Header=no"
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 ac_res=`eval echo '${'$as_ac_Header'}'`
8373 { echo "$as_me:$LINENO: result: $ac_res" >&5
8374 echo "${ECHO_T}$ac_res" >&6; }
8375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8376 cat >>confdefs.h <<_ACEOF
8377 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8380 ac_header_dirent=$ac_hdr; break
8384 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8385 if test $ac_header_dirent = dirent.h; then
8386 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8387 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8388 if test "${ac_cv_search_opendir+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 ac_func_search_save_LIBS=$LIBS
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 /* Override any GCC internal prototype to avoid an error.
8400 Use char because int might match the return type of a GCC
8401 builtin and then its argument prototype would still apply. */
8414 for ac_lib in '' dir; do
8415 if test -z "$ac_lib"; then
8416 ac_res="none required"
8419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (ac_try="$ac_link"
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_link") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8436 { (case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_try") 2>&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest$ac_exeext'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_search_opendir=$ac_res
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -f core conftest.err conftest.$ac_objext \
8465 if test "${ac_cv_search_opendir+set}" = set; then
8469 if test "${ac_cv_search_opendir+set}" = set; then
8472 ac_cv_search_opendir=no
8475 LIBS=$ac_func_search_save_LIBS
8477 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8478 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8479 ac_res=$ac_cv_search_opendir
8480 if test "$ac_res" != no; then
8481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8486 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8487 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8488 if test "${ac_cv_search_opendir+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 ac_func_search_save_LIBS=$LIBS
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any GCC internal prototype to avoid an error.
8500 Use char because int might match the return type of a GCC
8501 builtin and then its argument prototype would still apply. */
8514 for ac_lib in '' x; do
8515 if test -z "$ac_lib"; then
8516 ac_res="none required"
8519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8521 rm -f conftest.$ac_objext conftest$ac_exeext
8522 if { (ac_try="$ac_link"
8524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_link") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551 (eval "$ac_try") 2>&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); }; }; then
8555 ac_cv_search_opendir=$ac_res
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8563 rm -f core conftest.err conftest.$ac_objext \
8565 if test "${ac_cv_search_opendir+set}" = set; then
8569 if test "${ac_cv_search_opendir+set}" = set; then
8572 ac_cv_search_opendir=no
8575 LIBS=$ac_func_search_save_LIBS
8577 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8578 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8579 ac_res=$ac_cv_search_opendir
8580 if test "$ac_res" != no; then
8581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8598 inttypes.h stdint.h unistd.h
8600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8614 #include <$ac_header>
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest.$ac_objext'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_try") 2>&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 eval "$as_ac_Header=yes"
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 eval "$as_ac_Header=no"
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 ac_res=`eval echo '${'$as_ac_Header'}'`
8661 { echo "$as_me:$LINENO: result: $ac_res" >&5
8662 echo "${ECHO_T}$ac_res" >&6; }
8663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8664 cat >>confdefs.h <<_ACEOF
8665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8674 for ac_header in dlfcn.h
8676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 ac_res=`eval echo '${'$as_ac_Header'}'`
8684 { echo "$as_me:$LINENO: result: $ac_res" >&5
8685 echo "${ECHO_T}$ac_res" >&6; }
8687 # Is the header compilable?
8688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 $ac_includes_default
8697 #include <$ac_header>
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_header_compiler=yes
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_header_compiler=no
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8743 echo "${ECHO_T}$ac_header_compiler" >&6; }
8745 # Is the header present?
8746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 #include <$ac_header>
8756 if { (ac_try="$ac_cpp conftest.$ac_ext"
8758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } >/dev/null; then
8769 if test -s conftest.err; then
8770 ac_cpp_err=$ac_c_preproc_warn_flag
8771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8778 if test -z "$ac_cpp_err"; then
8779 ac_header_preproc=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_header_preproc=no
8787 rm -f conftest.err conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8789 echo "${ECHO_T}$ac_header_preproc" >&6; }
8791 # So? What about this header?
8792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8798 ac_header_preproc=yes
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8814 ## ------------------------------------ ##
8815 ## Report this to http://llvm.org/bugs/ ##
8816 ## ------------------------------------ ##
8818 ) | sed "s/^/$as_me: WARNING: /" >&2
8821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 eval "$as_ac_Header=\$ac_header_preproc"
8828 ac_res=`eval echo '${'$as_ac_Header'}'`
8829 { echo "$as_me:$LINENO: result: $ac_res" >&5
8830 echo "${ECHO_T}$ac_res" >&6; }
8833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8834 cat >>confdefs.h <<_ACEOF
8835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8842 # Check whether --enable-ltdl-install was given.
8843 if test "${enable_ltdl_install+set}" = set; then
8844 enableval=$enable_ltdl_install;
8850 if test x"${enable_ltdl_install-no}" != xno; then
8852 INSTALL_LTDL_FALSE='#'
8854 INSTALL_LTDL_TRUE='#'
8860 if test x"${enable_ltdl_convenience-no}" != xno; then
8861 CONVENIENCE_LTDL_TRUE=
8862 CONVENIENCE_LTDL_FALSE='#'
8864 CONVENIENCE_LTDL_TRUE='#'
8865 CONVENIENCE_LTDL_FALSE=
8869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8872 libname_spec='lib$name'
8880 shlibpath_overrides_runpath=unknown
8882 dynamic_linker="$host_os ld.so"
8883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8884 if test "$GCC" = yes; then
8885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8887 # if the path contains ";" then we assume it to be the separator
8888 # otherwise default to the standard path separator (i.e. ":") - it is
8889 # assumed that no part of a normal pathname contains ";" but that should
8890 # okay in the real world where ";" in dirpaths is itself problematic.
8891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8898 need_lib_prefix=unknown
8899 hardcode_into_libs=no
8901 # when you set need_version to no, make sure it does not cause -set_version
8902 # flags to be left without arguments
8903 need_version=unknown
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8909 shlibpath_var=LIBPATH
8911 # AIX 3 has no versioning support, so we append a major version to the name.
8912 soname_spec='${libname}${release}${shared_ext}$major'
8919 hardcode_into_libs=yes
8920 if test "$host_cpu" = ia64; then
8921 # AIX 5 supports IA64
8922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8923 shlibpath_var=LD_LIBRARY_PATH
8925 # With GCC up to 2.95.x, collect2 would create an import file
8926 # for dependence libraries. The import file would start with
8927 # the line `#! .'. This would cause the generated library to
8928 # depend on `.', always an invalid library. This was fixed in
8929 # development snapshots of GCC prior to 3.0.
8931 aix4 | aix4.[01] | aix4.[01].*)
8932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8942 # soname into executable. Probably we can add versioning support to
8943 # collect2, so additional links can be useful in future.
8944 if test "$aix_use_runtimelinking" = yes; then
8945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8946 # instead of lib<name>.a to let people know that these are not
8947 # typical AIX shared libraries.
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 # We preserve .a as extension for shared libraries through AIX4.2
8951 # and later when we are not doing run time linking.
8952 library_names_spec='${libname}${release}.a $libname.a'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LIBPATH
8960 library_names_spec='$libname.ixlibrary $libname.a'
8961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8962 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'
8966 library_names_spec='${libname}${shared_ext}'
8967 dynamic_linker="$host_os ld.so"
8968 shlibpath_var=LIBRARY_PATH
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8977 shlibpath_var=LD_LIBRARY_PATH
8978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8980 # the default ld.so.conf also contains /usr/contrib/lib and
8981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8982 # libtool to hard-code these into programs
8985 cygwin* | mingw* | pw32*)
8986 version_type=windows
8991 case $GCC,$host_os in
8992 yes,cygwin* | yes,mingw* | yes,pw32*)
8993 library_names_spec='$libname.dll.a'
8994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8995 postinstall_cmds='base_file=`basename \${file}`~
8996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8997 dldir=$destdir/`dirname \$dlpath`~
8998 test -d \$dldir || mkdir -p \$dldir~
8999 $install_prog $dir/$dlname \$dldir/$dlname~
9000 chmod a+x \$dldir/$dlname'
9001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9002 dlpath=$dir/\$dldll~
9004 shlibpath_overrides_runpath=yes
9008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9013 # MinGW DLLs use traditional 'lib' prefix
9014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9017 # It is most probably a Windows format PATH printed by
9018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9019 # path with ; separators, and with drive letters. We can handle the
9020 # drive letters (cygwin fileutils understands them), so leave them,
9021 # especially as we might pass files found there to a mingw objdump,
9022 # which wouldn't understand a cygwinified path. Ahh.
9023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9029 # pw32 DLLs use 'pw' prefix rather than 'lib'
9030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9039 dynamic_linker='Win32 ld.exe'
9040 # FIXME: first we should search . and the directory the executable is in
9044 darwin* | rhapsody*)
9045 dynamic_linker="$host_os dyld"
9049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9050 soname_spec='${libname}${release}${major}$shared_ext'
9051 shlibpath_overrides_runpath=yes
9052 shlibpath_var=DYLD_LIBRARY_PATH
9053 shrext_cmds='.dylib'
9054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9055 if test "$GCC" = yes; then
9056 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"`
9058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 dynamic_linker='GNU ld.so'
9088 freebsd* | dragonfly*)
9089 # DragonFly does not have aout. When/if they implement a new
9090 # versioning mechanism, adjust this.
9091 if test -x /usr/bin/objformat; then
9092 objformat=`/usr/bin/objformat`
9095 freebsd[123].*) objformat=aout ;;
9099 version_type=freebsd-$objformat
9100 case $version_type in
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9111 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9116 freebsd3.[01]* | freebsdelf3.[01]*)
9117 shlibpath_overrides_runpath=yes
9118 hardcode_into_libs=yes
9120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9122 shlibpath_overrides_runpath=no
9123 hardcode_into_libs=yes
9125 freebsd*) # from 4.6 on
9126 shlibpath_overrides_runpath=yes
9127 hardcode_into_libs=yes
9136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9137 soname_spec='${libname}${release}${shared_ext}$major'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 hardcode_into_libs=yes
9142 hpux9* | hpux10* | hpux11*)
9143 # Give a soname corresponding to the major version so that dld.sl refuses to
9144 # link against other versions.
9151 hardcode_into_libs=yes
9152 dynamic_linker="$host_os dld.so"
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 if test "X$HPUX_IA64_MODE" = X32; then
9158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9166 hardcode_into_libs=yes
9167 dynamic_linker="$host_os dld.sl"
9168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9177 dynamic_linker="$host_os dld.sl"
9178 shlibpath_var=SHLIB_PATH
9179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9185 postinstall_cmds='chmod 555 $lib'
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 hardcode_into_libs=yes
9200 irix5* | irix6* | nonstopux*)
9202 nonstopux*) version_type=nonstopux ;;
9204 if test "$lt_cv_prog_gnu_ld" = yes; then
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9215 irix5* | nonstopux*)
9219 case $LD in # libtool.m4 will add one of these switches to LD
9220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9221 libsuff= shlibsuff= libmagic=32-bit;;
9222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9223 libsuff=32 shlibsuff=N32 libmagic=N32;;
9224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9226 *) libsuff= shlibsuff= libmagic=never-match;;
9230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9231 shlibpath_overrides_runpath=no
9232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9234 hardcode_into_libs=yes
9237 # No shared lib support for Linux oldld, aout, or coff.
9238 linux*oldld* | linux*aout* | linux*coff*)
9242 # This must be Linux ELF.
9247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248 soname_spec='${libname}${release}${shared_ext}$major'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 shlibpath_overrides_runpath=no
9252 # This implies no fast_install, which is unacceptable.
9253 # Some rework will be needed to allow for fast_install
9254 # before this can be enabled.
9255 hardcode_into_libs=yes
9257 # Append ld.so.conf contents to the search path
9258 if test -f /etc/ld.so.conf; then
9259 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' ' '`
9260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9263 # We used to test for /lib/ld.so.1 and disable shared libraries on
9264 # powerpc, because MkLinux only supported shared libraries with the
9265 # GNU dynamic linker. Since this was broken with cross compilers,
9266 # most powerpc-linux boxes support dynamic linking these days and
9267 # people can always --disable-shared, the test was removed, and we
9268 # assume the GNU/Linux dynamic linker is in use.
9269 dynamic_linker='GNU/Linux ld.so'
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
9278 shlibpath_var=LD_LIBRARY_PATH
9279 shlibpath_overrides_runpath=no
9280 hardcode_into_libs=yes
9281 dynamic_linker='GNU ld.so'
9288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9291 dynamic_linker='NetBSD (a.out) ld.so'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 dynamic_linker='NetBSD ld.elf_so'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9299 hardcode_into_libs=yes
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9321 sys_lib_dlsearch_path_spec="/usr/lib"
9323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9326 *) need_version=no ;;
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9330 shlibpath_var=LD_LIBRARY_PATH
9331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9333 openbsd2.[89] | openbsd2.[89].*)
9334 shlibpath_overrides_runpath=no
9337 shlibpath_overrides_runpath=yes
9341 shlibpath_overrides_runpath=yes
9346 libname_spec='$name'
9349 library_names_spec='$libname${shared_ext} $libname.a'
9350 dynamic_linker='OS/2 ld.exe'
9351 shlibpath_var=LIBPATH
9354 osf3* | osf4* | osf5*)
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 shlibpath_var=LD_LIBRARY_PATH
9361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=yes
9373 hardcode_into_libs=yes
9374 # ldd complains unless libraries are executable
9375 postinstall_cmds='chmod +x $lib'
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=yes
9384 if test "$with_gnu_ld" = yes; then
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 case $host_vendor in
9397 shlibpath_overrides_runpath=no
9399 export_dynamic_flag_spec='${wl}-Blargedynsym'
9400 runpath_var=LD_RUN_PATH
9408 shlibpath_overrides_runpath=no
9409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9415 if test -d /usr/nec ;then
9417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9418 soname_spec='$libname${shared_ext}.$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9424 version_type=freebsd-elf
9427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9428 soname_spec='${libname}${release}${shared_ext}$major'
9429 shlibpath_var=LD_LIBRARY_PATH
9430 hardcode_into_libs=yes
9431 if test "$with_gnu_ld" = yes; then
9432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9433 shlibpath_overrides_runpath=no
9435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9436 shlibpath_overrides_runpath=yes
9439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9443 sys_lib_dlsearch_path_spec='/usr/lib'
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 shlibpath_var=LD_LIBRARY_PATH
9457 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9458 echo "${ECHO_T}$dynamic_linker" >&6; }
9459 test "$dynamic_linker" = no && can_build_shared=no
9461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9462 if test "$GCC" = yes; then
9463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9467 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9468 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9469 if test "${libltdl_cv_shlibext+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 eval libltdl_cv_shlibext=$shrext_cmds
9477 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9478 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9479 if test -n "$libltdl_cv_shlibext"; then
9481 cat >>confdefs.h <<_ACEOF
9482 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9488 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9489 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9490 if test "${libltdl_cv_sys_search_path+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9495 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9496 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9497 if test -n "$libltdl_cv_sys_search_path"; then
9499 for dir in $libltdl_cv_sys_search_path; do
9500 if test -z "$sys_search_path"; then
9501 sys_search_path="$dir"
9503 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9507 cat >>confdefs.h <<_ACEOF
9508 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9513 { echo "$as_me:$LINENO: checking for objdir" >&5
9514 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9515 if test "${libltdl_cv_objdir+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 libltdl_cv_objdir="$objdir"
9519 if test -n "$objdir"; then
9522 rm -f .libs 2>/dev/null
9523 mkdir .libs 2>/dev/null
9524 if test -d .libs; then
9525 libltdl_cv_objdir=.libs
9527 # MS-DOS does not allow filenames that begin with a dot.
9528 libltdl_cv_objdir=_libs
9530 rmdir .libs 2>/dev/null
9534 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9535 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9537 cat >>confdefs.h <<_ACEOF
9538 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9546 # Check for command to grab the raw symbol name followed by C symbol from nm.
9547 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 # These are sane defaults that work on at least a few old systems.
9554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9556 # Character class describing NM global symbol codes.
9557 symcode='[BCDEGRST]'
9559 # Regexp to match symbols that can be accessed directly from C.
9560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9562 # Transform an extracted symbol line into a proper C declaration
9563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9565 # Transform an extracted symbol line into symbol name and symbol address
9566 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'"
9568 # Define system-specific variables.
9573 cygwin* | mingw* | pw32*)
9574 symcode='[ABCDGISTW]'
9576 hpux*) # Its linker distinguishes data from code symbols
9577 if test "$host_cpu" = ia64; then
9578 symcode='[ABCDEGRST]'
9580 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9581 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'"
9584 if test "$host_cpu" = ia64; then
9585 symcode='[ABCDGIRSTW]'
9586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9587 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'"
9591 symcode='[BCDEGRST]'
9594 symcode='[BCDEGQRST]'
9605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9613 # Handle CRLF in mingw tool chain
9617 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9621 # If we're using GNU nm, then use its standard symbol codes.
9622 case `$NM -V 2>&1` in
9623 *GNU* | *'with BFD'*)
9624 symcode='[ABCDGIRSTW]' ;;
9627 # Try without a prefix undercore, then with it.
9628 for ac_symprfx in "" "_"; do
9630 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9631 symxfrm="\\1 $ac_symprfx\\2 \\2"
9633 # Write the raw and C identifiers.
9634 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9636 # Check to see that the pipe works correctly.
9640 cat > conftest.$ac_ext <<EOF
9645 void nm_test_func(){}
9649 int main(){nm_test_var='a';nm_test_func();return(0);}
9652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653 (eval $ac_compile) 2>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; then
9657 # Now try to grab the symbols.
9659 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9660 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } && test -s "$nlist"; then
9664 # Try sorting and uniquifying the output.
9665 if sort "$nlist" | uniq > "$nlist"T; then
9666 mv -f "$nlist"T "$nlist"
9671 # Make sure that we snagged all the symbols we need.
9672 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9673 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9674 cat <<EOF > conftest.$ac_ext
9680 # Now generate the symbol file.
9681 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9683 cat <<EOF >> conftest.$ac_ext
9684 #if defined (__STDC__) && __STDC__
9685 # define lt_ptr_t void *
9687 # define lt_ptr_t char *
9691 /* The mapping between symbol names and symbols. */
9696 lt_preloaded_symbols[] =
9699 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9700 cat <<\EOF >> conftest.$ac_ext
9708 # Now try linking the two files.
9709 mv conftest.$ac_objext conftstm.$ac_objext
9710 lt_save_LIBS="$LIBS"
9711 lt_save_CFLAGS="$CFLAGS"
9712 LIBS="conftstm.$ac_objext"
9713 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9721 LIBS="$lt_save_LIBS"
9722 CFLAGS="$lt_save_CFLAGS"
9724 echo "cannot find nm_test_func in $nlist" >&5
9727 echo "cannot find nm_test_var in $nlist" >&5
9730 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9733 echo "$progname: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9736 rm -f conftest* conftst*
9738 # Do not use the global_symbol_pipe unless it works.
9739 if test "$pipe_works" = yes; then
9742 lt_cv_sys_global_symbol_pipe=
9748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9749 lt_cv_sys_global_symbol_to_cdecl=
9751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9752 { echo "$as_me:$LINENO: result: failed" >&5
9753 echo "${ECHO_T}failed" >&6; }
9755 { echo "$as_me:$LINENO: result: ok" >&5
9756 echo "${ECHO_T}ok" >&6; }
9760 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9761 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9762 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9766 libltdl_cv_preloaded_symbols=yes
9768 libltdl_cv_preloaded_symbols=no
9772 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9773 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9774 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_PRELOADED_SYMBOLS 1
9785 ac_cpp='$CPP $CPPFLAGS'
9786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9791 { echo "$as_me:$LINENO: checking for shl_load" >&5
9792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9793 if test "${ac_cv_func_shl_load+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define shl_load innocuous_shl_load
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char shl_load (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9812 # include <limits.h>
9814 # include <assert.h>
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined __stub_shl_load || defined __stub___shl_load
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9856 { (case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_try") 2>&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_try") 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9875 ac_cv_func_shl_load=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_func_shl_load=no
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9888 if test $ac_cv_func_shl_load = yes; then
9890 cat >>confdefs.h <<\_ACEOF
9891 #define HAVE_SHL_LOAD 1
9895 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9896 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 ac_check_lib_save_LIBS=$LIBS
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 /* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (ac_try="$ac_link"
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_link") 2>conftest.er1
9933 grep -v '^ *+' conftest.er1 >conftest.err
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_try") 2>&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_try") 2>&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_lib_dld_shl_load=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_lib_dld_shl_load=no
9966 rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9972 if test $ac_cv_lib_dld_shl_load = yes; then
9974 cat >>confdefs.h <<\_ACEOF
9975 #define HAVE_SHL_LOAD 1
9978 LIBADD_DL="$LIBADD_DL -ldld"
9980 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9981 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 ac_check_lib_save_LIBS=$LIBS
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_lib_dl_dlopen=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_lib_dl_dlopen=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10057 if test $ac_cv_lib_dl_dlopen = yes; then
10059 cat >>confdefs.h <<\_ACEOF
10060 #define HAVE_LIBDL 1
10063 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10065 cat >conftest.$ac_ext <<_ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10072 # include <dlfcn.h>
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10098 { (case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_try") 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest$ac_exeext'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10118 cat >>confdefs.h <<\_ACEOF
10119 #define HAVE_LIBDL 1
10121 libltdl_cv_func_dlopen="yes"
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10126 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 ac_check_lib_save_LIBS=$LIBS
10132 LIBS="-lsvld $LIBS"
10133 cat >conftest.$ac_ext <<_ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_lib_svld_dlopen=yes
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_lib_svld_dlopen=no
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10201 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10202 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10203 if test $ac_cv_lib_svld_dlopen = yes; then
10205 cat >>confdefs.h <<\_ACEOF
10206 #define HAVE_LIBDL 1
10209 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10211 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10212 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10213 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS=$LIBS
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10235 return dld_link ();
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_lib_dld_dld_link=yes
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ac_cv_lib_dld_dld_link=no
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 LIBS=$ac_check_lib_save_LIBS
10286 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10287 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10288 if test $ac_cv_lib_dld_dld_link = yes; then
10290 cat >>confdefs.h <<\_ACEOF
10294 LIBADD_DL="$LIBADD_DL -ldld"
10296 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10297 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10298 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10309 #define _dyld_func_lookup innocuous__dyld_func_lookup
10311 /* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char _dyld_func_lookup (); below.
10313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314 <limits.h> exists even on freestanding compilers. */
10317 # include <limits.h>
10319 # include <assert.h>
10322 #undef _dyld_func_lookup
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10330 char _dyld_func_lookup ();
10331 /* The GNU C library defines this for functions which it implements
10332 to always fail with ENOSYS. Some functions are actually named
10333 something starting with __ and the normal name is an alias. */
10334 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10341 return _dyld_func_lookup ();
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (ac_try="$ac_link"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_link") 2>conftest.er1
10355 grep -v '^ *+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
10360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10361 { (case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_try") 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest$ac_exeext'
10371 { (case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_try") 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 ac_cv_func__dyld_func_lookup=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_cv_func__dyld_func_lookup=no
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10391 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10392 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10393 if test $ac_cv_func__dyld_func_lookup = yes; then
10395 cat >>confdefs.h <<\_ACEOF
10396 #define HAVE_DYLD 1
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10422 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10424 lt_save_LIBS="$LIBS"
10425 LIBS="$LIBS $LIBADD_DL"
10427 for ac_func in dlerror
10429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10443 #define $ac_func innocuous_$ac_func
10445 /* System header to define __stub macros and hopefully few prototypes,
10446 which can conflict with char $ac_func (); below.
10447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10448 <limits.h> exists even on freestanding compilers. */
10451 # include <limits.h>
10453 # include <assert.h>
10458 /* Override any GCC internal prototype to avoid an error.
10459 Use char because int might match the return type of a GCC
10460 builtin and then its argument prototype would still apply. */
10465 /* The GNU C library defines this for functions which it implements
10466 to always fail with ENOSYS. Some functions are actually named
10467 something starting with __ and the normal name is an alias. */
10468 #if defined __stub_$ac_func || defined __stub___$ac_func
10475 return $ac_func ();
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } &&
10494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10495 { (case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_try") 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; } &&
10504 { ac_try='test -s conftest$ac_exeext'
10505 { (case "(($ac_try" in
10506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10510 (eval "$ac_try") 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 eval "$as_ac_var=yes"
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10519 eval "$as_ac_var=no"
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10525 ac_res=`eval echo '${'$as_ac_var'}'`
10526 { echo "$as_me:$LINENO: result: $ac_res" >&5
10527 echo "${ECHO_T}$ac_res" >&6; }
10528 if test `eval echo '${'$as_ac_var'}'` = yes; then
10529 cat >>confdefs.h <<_ACEOF
10530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10536 LIBS="$lt_save_LIBS"
10539 ac_cpp='$CPP $CPPFLAGS'
10540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10547 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10548 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 ac_cv_sys_symbol_underscore=no
10552 cat > conftest.$ac_ext <<EOF
10553 void nm_test_func(){}
10554 int main(){nm_test_func;return 0;}
10556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; then
10561 # Now try to grab the symbols.
10562 ac_nlist=conftest.nm
10563 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10564 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && test -s "$ac_nlist"; then
10568 # See whether the symbols have a leading underscore.
10569 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10570 ac_cv_sys_symbol_underscore=yes
10572 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10575 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10579 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10582 echo "configure: failed program was:" >&5
10588 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10589 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10592 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10593 if test x"$libltdl_cv_func_dlopen" = xyes ||
10594 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10595 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10596 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10597 if test "${libltdl_cv_need_uscore+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 libltdl_cv_need_uscore=unknown
10602 LIBS="$LIBS $LIBADD_DL"
10603 if test "$cross_compiling" = yes; then :
10604 libltdl_cv_need_uscore=cross
10606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607 lt_status=$lt_dlunknown
10608 cat > conftest.$ac_ext <<EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10619 # define LT_DLGLOBAL RTLD_GLOBAL
10622 # define LT_DLGLOBAL DL_GLOBAL
10624 # define LT_DLGLOBAL 0
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629 find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10635 # define LT_DLLAZY_OR_NOW DL_LAZY
10638 # define LT_DLLAZY_OR_NOW RTLD_NOW
10641 # define LT_DLLAZY_OR_NOW DL_NOW
10643 # define LT_DLLAZY_OR_NOW 0
10651 extern "C" void exit (int);
10654 void fnord() { int i=42;}
10657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10658 int status = $lt_dlunknown;
10662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10663 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10664 /* dlclose (self); */
10672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10677 (./conftest; exit; ) >&5 2>/dev/null
10679 case x$lt_status in
10680 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10681 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10682 x$lt_dlunknown|x*) ;;
10685 # compilation failed
10694 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10695 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10699 if test x"$libltdl_cv_need_uscore" = xyes; then
10701 cat >>confdefs.h <<\_ACEOF
10702 #define NEED_USCORE 1
10708 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10709 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10710 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 # PORTME does your system automatically load deplibs for dlopen?
10714 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10715 # For now, we just catch OSes we know something about -- in the
10716 # future, we'll try test this programmatically.
10717 libltdl_cv_sys_dlopen_deplibs=unknown
10719 aix3*|aix4.1.*|aix4.2.*)
10720 # Unknown whether this is true for these versions of AIX, but
10721 # we want this `case' here to explicitly catch those versions.
10722 libltdl_cv_sys_dlopen_deplibs=unknown
10725 libltdl_cv_sys_dlopen_deplibs=yes
10728 # Assuming the user has installed a libdl from somewhere, this is true
10729 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10730 libltdl_cv_sys_dlopen_deplibs=yes
10732 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10733 # GNU and its variants, using gnu ld.so (Glibc)
10734 libltdl_cv_sys_dlopen_deplibs=yes
10737 libltdl_cv_sys_dlopen_deplibs=yes
10740 libltdl_cv_sys_dlopen_deplibs=yes
10742 irix[12345]*|irix6.[01]*)
10743 # Catch all versions of IRIX before 6.2, and indicate that we don't
10744 # know how it worked for any of those versions.
10745 libltdl_cv_sys_dlopen_deplibs=unknown
10748 # The case above catches anything before 6.2, and it's known that
10749 # at 6.2 and later dlopen does load deplibs.
10750 libltdl_cv_sys_dlopen_deplibs=yes
10753 libltdl_cv_sys_dlopen_deplibs=yes
10756 libltdl_cv_sys_dlopen_deplibs=yes
10759 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10760 # it did *not* use an RPATH in a shared library to find objects the
10761 # library depends on, so we explicitly say `no'.
10762 libltdl_cv_sys_dlopen_deplibs=no
10764 osf5.0|osf5.0a|osf5.1)
10765 # dlopen *does* load deplibs and with the right loader patch applied
10766 # it even uses RPATH in a shared library to search for shared objects
10767 # that the library depends on, but there's no easy way to know if that
10768 # patch is installed. Since this is the case, all we can really
10769 # say is unknown -- it depends on the patch being installed. If
10770 # it is, this changes to `yes'. Without it, it would be `no'.
10771 libltdl_cv_sys_dlopen_deplibs=unknown
10774 # the two cases above should catch all versions of osf <= 5.1. Read
10775 # the comments above for what we know about them.
10776 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10777 # is used to find them so we can finally say `yes'.
10778 libltdl_cv_sys_dlopen_deplibs=yes
10781 libltdl_cv_sys_dlopen_deplibs=yes
10783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10784 libltdl_cv_sys_dlopen_deplibs=yes
10789 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10790 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10791 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define LTDL_DLOPEN_DEPLIBS 1
10800 for ac_header in argz.h
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10813 # Is the header compilable?
10814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 #include <$ac_header>
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_compile") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10840 { (case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_try") 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; } &&
10849 { ac_try='test -s conftest.$ac_objext'
10850 { (case "(($ac_try" in
10851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10852 *) ac_try_echo=$ac_try;;
10854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10855 (eval "$ac_try") 2>&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_header_compiler=yes
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10864 ac_header_compiler=no
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10869 echo "${ECHO_T}$ac_header_compiler" >&6; }
10871 # Is the header present?
10872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <$ac_header>
10882 if { (ac_try="$ac_cpp conftest.$ac_ext"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } >/dev/null; then
10895 if test -s conftest.err; then
10896 ac_cpp_err=$ac_c_preproc_warn_flag
10897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10904 if test -z "$ac_cpp_err"; then
10905 ac_header_preproc=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_header_preproc=no
10913 rm -f conftest.err conftest.$ac_ext
10914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 echo "${ECHO_T}$ac_header_preproc" >&6; }
10917 # So? What about this header?
10918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10924 ac_header_preproc=yes
10927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10940 ## ------------------------------------ ##
10941 ## Report this to http://llvm.org/bugs/ ##
10942 ## ------------------------------------ ##
10944 ) | sed "s/^/$as_me: WARNING: /" >&2
10947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 eval "$as_ac_Header=\$ac_header_preproc"
10954 ac_res=`eval echo '${'$as_ac_Header'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956 echo "${ECHO_T}$ac_res" >&6; }
10959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10960 cat >>confdefs.h <<_ACEOF
10961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969 { echo "$as_me:$LINENO: checking for error_t" >&5
10970 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10971 if test "${ac_cv_type_error_t+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10984 typedef error_t ac__type_new_;
10988 if ((ac__type_new_ *) 0)
10990 if (sizeof (ac__type_new_))
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1 >conftest.err
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11011 { (case "(($ac_try" in
11012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11013 *) ac_try_echo=$ac_try;;
11015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11016 (eval "$ac_try") 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; } &&
11020 { ac_try='test -s conftest.$ac_objext'
11021 { (case "(($ac_try" in
11022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023 *) ac_try_echo=$ac_try;;
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026 (eval "$ac_try") 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; }; then
11030 ac_cv_type_error_t=yes
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_cv_type_error_t=no
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11041 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11042 if test $ac_cv_type_error_t = yes; then
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_ERROR_T 1
11051 cat >>confdefs.h <<\_ACEOF
11052 #define error_t int
11063 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11079 #define $ac_func innocuous_$ac_func
11081 /* System header to define __stub macros and hopefully few prototypes,
11082 which can conflict with char $ac_func (); below.
11083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11084 <limits.h> exists even on freestanding compilers. */
11087 # include <limits.h>
11089 # include <assert.h>
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11101 /* The GNU C library defines this for functions which it implements
11102 to always fail with ENOSYS. Some functions are actually named
11103 something starting with __ and the normal name is an alias. */
11104 #if defined __stub_$ac_func || defined __stub___$ac_func
11111 return $ac_func ();
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_link") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 eval "$as_ac_var=yes"
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 eval "$as_ac_var=no"
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11161 ac_res=`eval echo '${'$as_ac_var'}'`
11162 { echo "$as_me:$LINENO: result: $ac_res" >&5
11163 echo "${ECHO_T}$ac_res" >&6; }
11164 if test `eval echo '${'$as_ac_var'}'` = yes; then
11165 cat >>confdefs.h <<_ACEOF
11166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11194 for ac_header in errno.h malloc.h memory.h unistd.h
11196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 ac_res=`eval echo '${'$as_ac_Header'}'`
11204 { echo "$as_me:$LINENO: result: $ac_res" >&5
11205 echo "${ECHO_T}$ac_res" >&6; }
11207 # Is the header compilable?
11208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11210 cat >conftest.$ac_ext <<_ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11217 #include <$ac_header>
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_compile") 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_try") 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_header_compiler=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_header_compiler=no
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11263 echo "${ECHO_T}$ac_header_compiler" >&6; }
11265 # Is the header present?
11266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11268 cat >conftest.$ac_ext <<_ACEOF
11271 cat confdefs.h >>conftest.$ac_ext
11272 cat >>conftest.$ac_ext <<_ACEOF
11273 /* end confdefs.h. */
11274 #include <$ac_header>
11276 if { (ac_try="$ac_cpp conftest.$ac_ext"
11277 case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11284 grep -v '^ *+' conftest.er1 >conftest.err
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } >/dev/null; then
11289 if test -s conftest.err; then
11290 ac_cpp_err=$ac_c_preproc_warn_flag
11291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11298 if test -z "$ac_cpp_err"; then
11299 ac_header_preproc=yes
11301 echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11304 ac_header_preproc=no
11307 rm -f conftest.err conftest.$ac_ext
11308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11309 echo "${ECHO_T}$ac_header_preproc" >&6; }
11311 # So? What about this header?
11312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11318 ac_header_preproc=yes
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11334 ## ------------------------------------ ##
11335 ## Report this to http://llvm.org/bugs/ ##
11336 ## ------------------------------------ ##
11338 ) | sed "s/^/$as_me: WARNING: /" >&2
11341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 eval "$as_ac_Header=\$ac_header_preproc"
11348 ac_res=`eval echo '${'$as_ac_Header'}'`
11349 { echo "$as_me:$LINENO: result: $ac_res" >&5
11350 echo "${ECHO_T}$ac_res" >&6; }
11353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11354 cat >>confdefs.h <<_ACEOF
11355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11363 for ac_header in mach-o/dyld.h
11365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 ac_res=`eval echo '${'$as_ac_Header'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11376 # Is the header compilable?
11377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11386 #include <$ac_header>
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_compile") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } &&
11402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try='test -s conftest.$ac_objext'
11413 { (case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_try") 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_header_compiler=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_compiler=no
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <$ac_header>
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null; then
11458 if test -s conftest.err; then
11459 ac_cpp_err=$ac_c_preproc_warn_flag
11460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11467 if test -z "$ac_cpp_err"; then
11468 ac_header_preproc=yes
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 ac_header_preproc=no
11476 rm -f conftest.err conftest.$ac_ext
11477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11478 echo "${ECHO_T}$ac_header_preproc" >&6; }
11480 # So? What about this header?
11481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11487 ac_header_preproc=yes
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11503 ## ------------------------------------ ##
11504 ## Report this to http://llvm.org/bugs/ ##
11505 ## ------------------------------------ ##
11507 ) | sed "s/^/$as_me: WARNING: /" >&2
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 eval "$as_ac_Header=\$ac_header_preproc"
11517 ac_res=`eval echo '${'$as_ac_Header'}'`
11518 { echo "$as_me:$LINENO: result: $ac_res" >&5
11519 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11535 for ac_func in closedir opendir readdir
11537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11551 #define $ac_func innocuous_$ac_func
11553 /* System header to define __stub macros and hopefully few prototypes,
11554 which can conflict with char $ac_func (); below.
11555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11556 <limits.h> exists even on freestanding compilers. */
11559 # include <limits.h>
11561 # include <assert.h>
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11573 /* The GNU C library defines this for functions which it implements
11574 to always fail with ENOSYS. Some functions are actually named
11575 something starting with __ and the normal name is an alias. */
11576 #if defined __stub_$ac_func || defined __stub___$ac_func
11583 return $ac_func ();
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_link") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11603 { (case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_try") 2>&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest$ac_exeext'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 eval "$as_ac_var=yes"
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 eval "$as_ac_var=no"
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11633 ac_res=`eval echo '${'$as_ac_var'}'`
11634 { echo "$as_me:$LINENO: result: $ac_res" >&5
11635 echo "${ECHO_T}$ac_res" >&6; }
11636 if test `eval echo '${'$as_ac_var'}'` = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11647 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11660 if test "$GCC" != "yes" && test "$ICC" != "yes"
11662 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11663 echo "$as_me: error: gcc|icc required but not found" >&2;}
11664 { (exit 1); exit 1; }; }
11667 if test "$GXX" != "yes" && test "$IXX" != "yes"
11669 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11670 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11671 { (exit 1); exit 1; }; }
11674 if test "$GCC" = "yes"
11676 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11684 #if !defined(__GNUC__) || __GNUC__ < 3
11685 #error Unsupported GCC version
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_try") 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11729 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11730 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11731 { (exit 1); exit 1; }; }
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 if test -z "$llvm_cv_gnu_make_command"
11739 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11740 echo "$as_me: error: GNU Make required but not found" >&2;}
11741 { (exit 1); exit 1; }; }
11744 { echo "$as_me:$LINENO: result: ok" >&5
11745 echo "${ECHO_T}ok" >&6; }
11747 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11748 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11749 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11751 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11753 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11757 NO_MAYBE_UNINITIALIZED=
11758 if test "$GXX" = "yes"
11760 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11762 if test -z "$NO_MAYBE_UNINITIALIZED"
11764 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11768 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11769 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11772 # Check whether --with-python was given.
11773 if test "${with_python+set}" = set; then
11774 withval=$with_python; PYTHON="$withval"
11778 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11779 { echo "$as_me:$LINENO: checking for python" >&5
11780 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11781 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11782 echo "${ECHO_T}user defined: $with_python" >&6; }
11784 if test -n "$PYTHON" ; then
11785 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11786 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11789 # Extract the first word of "python python2 python26", so it can be a program name with args.
11790 set dummy python python2 python26; ac_word=$2
11791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11793 if test "${ac_cv_path_PYTHON+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11816 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11817 echo "${ECHO_T}not found" >&6; }
11818 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11819 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11820 { (exit 1); exit 1; }; }"
11824 PYTHON=$ac_cv_path_PYTHON
11825 if test -n "$PYTHON"; then
11826 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11827 echo "${ECHO_T}$PYTHON" >&6; }
11829 { echo "$as_me:$LINENO: result: no" >&5
11830 echo "${ECHO_T}no" >&6; }
11836 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11837 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11838 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11839 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11840 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11841 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11842 if test "$ac_python_version_major" -gt "2" || \
11843 (test "$ac_python_version_major" -eq "2" && \
11844 test "$ac_python_version_minor" -ge "5") ; then
11845 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11846 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11848 { echo "$as_me:$LINENO: result: not found" >&5
11849 echo "${ECHO_T}not found" >&6; }
11850 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11851 See \`config.log' for more details." >&5
11852 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11853 See \`config.log' for more details." >&2;}
11854 { (exit 1); exit 1; }; }
11859 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11860 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11861 if test "${ac_cv_lib_m_sin+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_check_lib_save_LIBS=$LIBS
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_cv_lib_m_sin=yes
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11930 rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11934 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11935 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11936 if test $ac_cv_lib_m_sin = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define HAVE_LIBM 1
11945 if test "$llvm_cv_os_type" = "MingW" ; then
11947 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11948 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11949 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-limagehlp $LIBS"
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11985 { (case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_try") 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_lib_imagehlp_main=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_cv_lib_imagehlp_main=no
12012 rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12016 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12017 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12018 if test $ac_cv_lib_imagehlp_main = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020 #define HAVE_LIBIMAGEHLP 1
12023 LIBS="-limagehlp $LIBS"
12028 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12029 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12030 if test "${ac_cv_lib_psapi_main+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lpsapi $LIBS"
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (ac_try="$ac_link"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_link") 2>conftest.er1
12060 grep -v '^ *+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12066 { (case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_try") 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_try") 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; }; then
12085 ac_cv_lib_psapi_main=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_cv_lib_psapi_main=no
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12098 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12099 if test $ac_cv_lib_psapi_main = yes; then
12100 cat >>confdefs.h <<_ACEOF
12101 #define HAVE_LIBPSAPI 1
12104 LIBS="-lpsapi $LIBS"
12109 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12110 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12111 if test "${ac_cv_lib_shell32_main+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-lshell32 $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1 >conftest.err
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 ac_cv_lib_shell32_main=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_lib_shell32_main=no
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12176 LIBS=$ac_check_lib_save_LIBS
12178 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12179 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12180 if test $ac_cv_lib_shell32_main = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define HAVE_LIBSHELL32 1
12185 LIBS="-lshell32 $LIBS"
12191 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12192 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12193 if test "${ac_cv_search_dlopen+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 ac_func_search_save_LIBS=$LIBS
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12219 for ac_lib in '' dl; do
12220 if test -z "$ac_lib"; then
12221 ac_res="none required"
12224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12233 (eval "$ac_link") 2>conftest.er1
12235 grep -v '^ *+' conftest.er1 >conftest.err
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } &&
12250 { ac_try='test -s conftest$ac_exeext'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_search_dlopen=$ac_res
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12268 rm -f core conftest.err conftest.$ac_objext \
12270 if test "${ac_cv_search_dlopen+set}" = set; then
12274 if test "${ac_cv_search_dlopen+set}" = set; then
12277 ac_cv_search_dlopen=no
12279 rm conftest.$ac_ext
12280 LIBS=$ac_func_search_save_LIBS
12282 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12283 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12284 ac_res=$ac_cv_search_dlopen
12285 if test "$ac_res" != no; then
12286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_DLOPEN 1
12293 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12294 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12298 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12299 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12300 if test "${ac_cv_search_clock_gettime+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_func_search_save_LIBS=$LIBS
12304 cat >conftest.$ac_ext <<_ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12317 char clock_gettime ();
12321 return clock_gettime ();
12326 for ac_lib in '' rt; do
12327 if test -z "$ac_lib"; then
12328 ac_res="none required"
12331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest$ac_exeext'
12358 { (case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_try") 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); }; }; then
12367 ac_cv_search_clock_gettime=$ac_res
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12375 rm -f core conftest.err conftest.$ac_objext \
12377 if test "${ac_cv_search_clock_gettime+set}" = set; then
12381 if test "${ac_cv_search_clock_gettime+set}" = set; then
12384 ac_cv_search_clock_gettime=no
12386 rm conftest.$ac_ext
12387 LIBS=$ac_func_search_save_LIBS
12389 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12390 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12391 ac_res=$ac_cv_search_clock_gettime
12392 if test "$ac_res" != no; then
12393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12398 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12399 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12400 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12401 if test "${ac_cv_search_setupterm+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_func_search_save_LIBS=$LIBS
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12422 return setupterm ();
12427 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12428 if test -z "$ac_lib"; then
12429 ac_res="none required"
12432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_search_setupterm=$ac_res
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12476 rm -f core conftest.err conftest.$ac_objext \
12478 if test "${ac_cv_search_setupterm+set}" = set; then
12482 if test "${ac_cv_search_setupterm+set}" = set; then
12485 ac_cv_search_setupterm=no
12487 rm conftest.$ac_ext
12488 LIBS=$ac_func_search_save_LIBS
12490 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12491 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12492 ac_res=$ac_cv_search_setupterm
12493 if test "$ac_res" != no; then
12494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12496 cat >>confdefs.h <<\_ACEOF
12497 #define HAVE_TERMINFO 1
12504 if test "$llvm_cv_enable_libffi" = "yes" ; then
12505 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12506 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12507 if test "${ac_cv_search_ffi_call+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_func_search_save_LIBS=$LIBS
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12528 return ffi_call ();
12533 for ac_lib in '' ffi; do
12534 if test -z "$ac_lib"; then
12535 ac_res="none required"
12538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_try") 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; }; then
12574 ac_cv_search_ffi_call=$ac_res
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12582 rm -f core conftest.err conftest.$ac_objext \
12584 if test "${ac_cv_search_ffi_call+set}" = set; then
12588 if test "${ac_cv_search_ffi_call+set}" = set; then
12591 ac_cv_search_ffi_call=no
12593 rm conftest.$ac_ext
12594 LIBS=$ac_func_search_save_LIBS
12596 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12597 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12598 ac_res=$ac_cv_search_ffi_call
12599 if test "$ac_res" != no; then
12600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_FFI_CALL 1
12607 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12608 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12609 { (exit 1); exit 1; }; }
12614 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12615 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12616 if test "${ac_cv_search_mallinfo+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 ac_func_search_save_LIBS=$LIBS
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12637 return mallinfo ();
12642 for ac_lib in '' malloc; do
12643 if test -z "$ac_lib"; then
12644 ac_res="none required"
12647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_search_mallinfo=$ac_res
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12691 rm -f core conftest.err conftest.$ac_objext \
12693 if test "${ac_cv_search_mallinfo+set}" = set; then
12697 if test "${ac_cv_search_mallinfo+set}" = set; then
12700 ac_cv_search_mallinfo=no
12702 rm conftest.$ac_ext
12703 LIBS=$ac_func_search_save_LIBS
12705 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12706 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12707 ac_res=$ac_cv_search_mallinfo
12708 if test "$ac_res" != no; then
12709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12711 cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_MALLINFO 1
12718 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12720 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12721 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12722 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lpthread $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12740 char pthread_mutex_init ();
12744 return pthread_mutex_init ();
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756 (eval "$ac_link") 2>conftest.er1
12758 grep -v '^ *+' conftest.er1 >conftest.err
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_try") 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_try") 2>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 ac_cv_lib_pthread_pthread_mutex_init=yes
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_cv_lib_pthread_pthread_mutex_init=no
12791 rm -f core conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793 LIBS=$ac_check_lib_save_LIBS
12795 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12796 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12797 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12798 cat >>confdefs.h <<_ACEOF
12799 #define HAVE_LIBPTHREAD 1
12802 LIBS="-lpthread $LIBS"
12806 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12807 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12808 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
12811 ac_func_search_save_LIBS=$LIBS
12812 cat >conftest.$ac_ext <<_ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12825 char pthread_mutex_lock ();
12829 return pthread_mutex_lock ();
12834 for ac_lib in '' pthread; do
12835 if test -z "$ac_lib"; then
12836 ac_res="none required"
12839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12841 rm -f conftest.$ac_objext conftest$ac_exeext
12842 if { (ac_try="$ac_link"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_link") 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest$ac_exeext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 ac_cv_search_pthread_mutex_lock=$ac_res
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12883 rm -f core conftest.err conftest.$ac_objext \
12885 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12889 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12892 ac_cv_search_pthread_mutex_lock=no
12894 rm conftest.$ac_ext
12895 LIBS=$ac_func_search_save_LIBS
12897 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12898 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12899 ac_res=$ac_cv_search_pthread_mutex_lock
12900 if test "$ac_res" != no; then
12901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_PTHREAD_MUTEX_LOCK 1
12909 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12910 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12911 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 ac_func_search_save_LIBS=$LIBS
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12928 char pthread_rwlock_init ();
12932 return pthread_rwlock_init ();
12937 for ac_lib in '' pthread; do
12938 if test -z "$ac_lib"; then
12939 ac_res="none required"
12942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 ac_cv_search_pthread_rwlock_init=$ac_res
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12986 rm -f core conftest.err conftest.$ac_objext \
12988 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12992 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12995 ac_cv_search_pthread_rwlock_init=no
12997 rm conftest.$ac_ext
12998 LIBS=$ac_func_search_save_LIBS
13000 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13001 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13002 ac_res=$ac_cv_search_pthread_rwlock_init
13003 if test "$ac_res" != no; then
13004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13006 cat >>confdefs.h <<\_ACEOF
13007 #define HAVE_PTHREAD_RWLOCK_INIT 1
13012 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13013 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13014 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_func_search_save_LIBS=$LIBS
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13025 /* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
13031 char pthread_getspecific ();
13035 return pthread_getspecific ();
13040 for ac_lib in '' pthread; do
13041 if test -z "$ac_lib"; then
13042 ac_res="none required"
13045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_link") 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13062 { (case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_try") 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest$ac_exeext'
13072 { (case "(($ac_try" in
13073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13074 *) ac_try_echo=$ac_try;;
13076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13077 (eval "$ac_try") 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 ac_cv_search_pthread_getspecific=$ac_res
13083 echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13089 rm -f core conftest.err conftest.$ac_objext \
13091 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13095 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13098 ac_cv_search_pthread_getspecific=no
13100 rm conftest.$ac_ext
13101 LIBS=$ac_func_search_save_LIBS
13103 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13104 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13105 ac_res=$ac_cv_search_pthread_getspecific
13106 if test "$ac_res" != no; then
13107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_PTHREAD_GETSPECIFIC 1
13117 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13119 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13120 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13121 if test "${ac_cv_lib_z_compress2+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 ac_check_lib_save_LIBS=$LIBS
13126 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13143 return compress2 ();
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (ac_try="$ac_link"
13150 case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_link") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1 >conftest.err
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
13162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13163 { (case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_try") 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; } &&
13172 { ac_try='test -s conftest$ac_exeext'
13173 { (case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_try") 2>&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; }; then
13182 ac_cv_lib_z_compress2=yes
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13187 ac_cv_lib_z_compress2=no
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13195 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13196 if test $ac_cv_lib_z_compress2 = yes; then
13197 cat >>confdefs.h <<_ACEOF
13198 #define HAVE_LIBZ 1
13208 # Check whether --with-udis86 was given.
13209 if test "${with_udis86+set}" = set; then
13210 withval=$with_udis86;
13215 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13218 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13219 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13220 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-ludis86 $LIBS"
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_link") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13262 { (case "(($ac_try" in
13263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13264 *) ac_try_echo=$ac_try;;
13266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13267 (eval "$ac_try") 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_try") 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_lib_udis86_ud_init=yes
13283 echo "$as_me: failed program was:" >&5
13284 sed 's/^/| /' conftest.$ac_ext >&5
13286 ac_cv_lib_udis86_ud_init=no
13289 rm -f core conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291 LIBS=$ac_check_lib_save_LIBS
13293 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13294 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13295 if test $ac_cv_lib_udis86_ud_init = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define HAVE_LIBUDIS86 1
13300 LIBS="-ludis86 $LIBS"
13304 echo "Error! You need to have libudis86 around."
13316 cat >>confdefs.h <<_ACEOF
13317 #define USE_UDIS86 $USE_UDIS86
13322 # Check whether --with-oprofile was given.
13323 if test "${with_oprofile+set}" = set; then
13324 withval=$with_oprofile;
13328 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13329 no) llvm_cv_oppath=
13332 *) llvm_cv_oppath="${withval}/lib/oprofile"
13333 CPPFLAGS="-I${withval}/include";;
13335 case $llvm_cv_os_type in
13337 if test -n "$llvm_cv_oppath" ; then
13338 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13339 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13340 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13341 if test "${ac_cv_search_bfd_init+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 ac_func_search_save_LIBS=$LIBS
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13352 /* Override any GCC internal prototype to avoid an error.
13353 Use char because int might match the return type of a GCC
13354 builtin and then its argument prototype would still apply. */
13362 return bfd_init ();
13367 for ac_lib in '' bfd; do
13368 if test -z "$ac_lib"; then
13369 ac_res="none required"
13372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (ac_try="$ac_link"
13376 case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_link") 2>conftest.er1
13383 grep -v '^ *+' conftest.er1 >conftest.err
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest$ac_exeext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_search_bfd_init=$ac_res
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13416 rm -f core conftest.err conftest.$ac_objext \
13418 if test "${ac_cv_search_bfd_init+set}" = set; then
13422 if test "${ac_cv_search_bfd_init+set}" = set; then
13425 ac_cv_search_bfd_init=no
13427 rm conftest.$ac_ext
13428 LIBS=$ac_func_search_save_LIBS
13430 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13431 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13432 ac_res=$ac_cv_search_bfd_init
13433 if test "$ac_res" != no; then
13434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13438 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13439 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13440 if test "${ac_cv_search_op_open_agent+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 ac_func_search_save_LIBS=$LIBS
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13457 char op_open_agent ();
13461 return op_open_agent ();
13466 for ac_lib in '' opagent; do
13467 if test -z "$ac_lib"; then
13468 ac_res="none required"
13471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13473 rm -f conftest.$ac_objext conftest$ac_exeext
13474 if { (ac_try="$ac_link"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_link") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1 >conftest.err
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } &&
13487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13488 { (case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_try") 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 ac_cv_search_op_open_agent=$ac_res
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13515 rm -f core conftest.err conftest.$ac_objext \
13517 if test "${ac_cv_search_op_open_agent+set}" = set; then
13521 if test "${ac_cv_search_op_open_agent+set}" = set; then
13524 ac_cv_search_op_open_agent=no
13526 rm conftest.$ac_ext
13527 LIBS=$ac_func_search_save_LIBS
13529 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13530 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13531 ac_res=$ac_cv_search_op_open_agent
13532 if test "$ac_res" != no; then
13533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537 echo "Error! You need to have libopagent around."
13542 if test "${ac_cv_header_opagent_h+set}" = set; then
13543 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13544 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13545 if test "${ac_cv_header_opagent_h+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13549 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13551 # Is the header compilable?
13552 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13553 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 #include <opagent.h>
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } &&
13587 { ac_try='test -s conftest.$ac_objext'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_header_compiler=yes
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_header_compiler=no
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13607 echo "${ECHO_T}$ac_header_compiler" >&6; }
13609 # Is the header present?
13610 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13611 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13612 cat >conftest.$ac_ext <<_ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 #include <opagent.h>
13620 if { (ac_try="$ac_cpp conftest.$ac_ext"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } >/dev/null; then
13633 if test -s conftest.err; then
13634 ac_cpp_err=$ac_c_preproc_warn_flag
13635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13642 if test -z "$ac_cpp_err"; then
13643 ac_header_preproc=yes
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_header_preproc=no
13651 rm -f conftest.err conftest.$ac_ext
13652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13653 echo "${ECHO_T}$ac_header_preproc" >&6; }
13655 # So? What about this header?
13656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13659 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13661 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13662 ac_header_preproc=yes
13665 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13666 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13668 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13670 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13672 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13673 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13674 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13675 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13676 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13678 ## ------------------------------------ ##
13679 ## Report this to http://llvm.org/bugs/ ##
13680 ## ------------------------------------ ##
13682 ) | sed "s/^/$as_me: WARNING: /" >&2
13685 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13686 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13687 if test "${ac_cv_header_opagent_h+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 ac_cv_header_opagent_h=$ac_header_preproc
13692 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13693 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13696 if test $ac_cv_header_opagent_h = yes; then
13700 echo "Error! You need to have opagent.h around."
13708 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13709 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13710 { (exit 1); exit 1; }; } ;;
13721 cat >>confdefs.h <<_ACEOF
13722 #define LLVM_USE_OPROFILE $USE_OPROFILE
13727 # Check whether --with-intel-jitevents was given.
13728 if test "${with_intel_jitevents+set}" = set; then
13729 withval=$with_intel_jitevents;
13731 yes) USE_INTEL_JITEVENTS=1
13733 no) USE_INTEL_JITEVENTS=0
13735 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13736 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13737 { (exit 1); exit 1; }; };;
13740 case $llvm_cv_os_type in
13741 Linux|Win32|Cygwin|MingW) ;;
13742 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13743 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13744 { (exit 1); exit 1; }; };;
13747 case "$llvm_cv_target_arch" in
13749 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13750 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13751 { (exit 1); exit 1; }; };;
13756 USE_INTEL_JITEVENTS=0
13762 cat >>confdefs.h <<_ACEOF
13763 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13767 for ac_prog in xml2-config
13769 # Extract the first word of "$ac_prog", so it can be a program name with args.
13770 set dummy $ac_prog; ac_word=$2
13771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13773 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 if test -n "$XML2CONFIG"; then
13777 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13786 ac_cv_prog_XML2CONFIG="$ac_prog"
13787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13797 if test -n "$XML2CONFIG"; then
13798 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13799 echo "${ECHO_T}$XML2CONFIG" >&6; }
13801 { echo "$as_me:$LINENO: result: no" >&5
13802 echo "${ECHO_T}no" >&6; }
13806 test -n "$XML2CONFIG" && break
13810 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13811 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13812 if test "x$XML2CONFIG" = "x"; then
13813 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13814 echo "${ECHO_T}xml2-config not found" >&6; }
13816 LIBXML2_INC=`$XML2CONFIG --cflags`
13817 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13818 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13819 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13820 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13821 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-lxml2 $LIBS"
13826 cat >conftest.$ac_ext <<_ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13833 /* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13839 char xmlReadFile ();
13843 return xmlReadFile ();
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (ac_try="$ac_link"
13850 case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_link") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
13862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_lib_xml2_xmlReadFile=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_cv_lib_xml2_xmlReadFile=no
13890 rm -f core conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13895 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13896 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13898 cat >>confdefs.h <<\_ACEOF
13899 #define CLANG_HAVE_LIBXML 1
13902 LIBXML2_LIBS="-lxml2"
13915 ac_header_dirent=no
13916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13917 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13918 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13919 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <sys/types.h>
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_compile") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest.$ac_objext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
13975 eval "$as_ac_Header=yes"
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 eval "$as_ac_Header=no"
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 ac_res=`eval echo '${'$as_ac_Header'}'`
13986 { echo "$as_me:$LINENO: result: $ac_res" >&5
13987 echo "${ECHO_T}$ac_res" >&6; }
13988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13993 ac_header_dirent=$ac_hdr; break
13997 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13998 if test $ac_header_dirent = dirent.h; then
13999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14001 if test "${ac_cv_search_opendir+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_func_search_save_LIBS=$LIBS
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14012 /* Override any GCC internal prototype to avoid an error.
14013 Use char because int might match the return type of a GCC
14014 builtin and then its argument prototype would still apply. */
14027 for ac_lib in '' dir; do
14028 if test -z "$ac_lib"; then
14029 ac_res="none required"
14032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14043 grep -v '^ *+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14049 { (case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_try") 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_try") 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_search_opendir=$ac_res
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14076 rm -f core conftest.err conftest.$ac_objext \
14078 if test "${ac_cv_search_opendir+set}" = set; then
14082 if test "${ac_cv_search_opendir+set}" = set; then
14085 ac_cv_search_opendir=no
14087 rm conftest.$ac_ext
14088 LIBS=$ac_func_search_save_LIBS
14090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14092 ac_res=$ac_cv_search_opendir
14093 if test "$ac_res" != no; then
14094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14101 if test "${ac_cv_search_opendir+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_func_search_save_LIBS=$LIBS
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14127 for ac_lib in '' x; do
14128 if test -z "$ac_lib"; then
14129 ac_res="none required"
14132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (ac_try="$ac_link"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_link") 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_search_opendir=$ac_res
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14176 rm -f core conftest.err conftest.$ac_objext \
14178 if test "${ac_cv_search_opendir+set}" = set; then
14182 if test "${ac_cv_search_opendir+set}" = set; then
14185 ac_cv_search_opendir=no
14187 rm conftest.$ac_ext
14188 LIBS=$ac_func_search_save_LIBS
14190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14192 ac_res=$ac_cv_search_opendir
14193 if test "$ac_res" != no; then
14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14200 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14201 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14202 if test "${ac_cv_header_mmap_anon+set}" = set; then
14203 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 ac_cpp='$CPP $CPPFLAGS'
14207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 #include <sys/mman.h>
14218 #include <unistd.h>
14223 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14228 rm -f conftest.$ac_objext
14229 if { (ac_try="$ac_compile"
14230 case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_compile") 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_cv_header_mmap_anon=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_header_mmap_anon=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14279 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14280 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14281 if test "$ac_cv_header_mmap_anon" = yes; then
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_MMAP_ANONYMOUS 1
14289 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14290 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_stat_broken+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14301 #include <sys/stat.h>
14303 #if defined S_ISBLK && defined S_IFDIR
14304 # if S_ISBLK (S_IFDIR)
14309 #if defined S_ISBLK && defined S_IFCHR
14310 # if S_ISBLK (S_IFCHR)
14315 #if defined S_ISLNK && defined S_IFREG
14316 # if S_ISLNK (S_IFREG)
14321 #if defined S_ISSOCK && defined S_IFREG
14322 # if S_ISSOCK (S_IFREG)
14328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14329 $EGREP "You lose" >/dev/null 2>&1; then
14330 ac_cv_header_stat_broken=yes
14332 ac_cv_header_stat_broken=no
14337 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14338 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14339 if test $ac_cv_header_stat_broken = yes; then
14341 cat >>confdefs.h <<\_ACEOF
14342 #define STAT_MACROS_BROKEN 1
14347 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14348 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14349 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 #include <sys/types.h>
14359 #include <sys/wait.h>
14360 #ifndef WEXITSTATUS
14361 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14364 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14372 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_compile") 2>conftest.er1
14386 grep -v '^ *+' conftest.er1 >conftest.err
14388 cat conftest.err >&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_try") 2>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } &&
14401 { ac_try='test -s conftest.$ac_objext'
14402 { (case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_try") 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14411 ac_cv_header_sys_wait_h=yes
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_cv_header_sys_wait_h=no
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14421 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14422 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14423 if test $ac_cv_header_sys_wait_h = yes; then
14425 cat >>confdefs.h <<\_ACEOF
14426 #define HAVE_SYS_WAIT_H 1
14431 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14432 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14433 if test "${ac_cv_header_time+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <sys/types.h>
14443 #include <sys/time.h>
14449 if ((struct tm *) 0)
14455 rm -f conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_compile") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14470 { (case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_try") 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; } &&
14479 { ac_try='test -s conftest.$ac_objext'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_cv_header_time=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_cv_header_time=no
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14499 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14500 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14501 if test $ac_cv_header_time = yes; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define TIME_WITH_SYS_TIME 1
14511 ac_cpp='$CXXCPP $CPPFLAGS'
14512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14517 ac_cpp='$CXXCPP $CPPFLAGS'
14518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14521 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14522 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14523 if test -z "$CXXCPP"; then
14524 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 # Double quotes because CXXCPP needs to be expanded
14528 for CXXCPP in "$CXX -E" "/lib/cpp"
14530 ac_preproc_ok=false
14531 for ac_cxx_preproc_warn_flag in '' yes
14533 # Use a header file that comes with gcc, so configuring glibc
14534 # with a fresh cross-compiler works.
14535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14536 # <limits.h> exists even on freestanding compilers.
14537 # On the NeXT, cc -E runs the code through the compiler's parser,
14538 # not just through cpp. "Syntax error" is here to catch this case.
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 # include <limits.h>
14548 # include <assert.h>
14552 if { (ac_try="$ac_cpp conftest.$ac_ext"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } >/dev/null; then
14565 if test -s conftest.err; then
14566 ac_cpp_err=$ac_cxx_preproc_warn_flag
14567 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14574 if test -z "$ac_cpp_err"; then
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14580 # Broken: fails on valid input.
14584 rm -f conftest.err conftest.$ac_ext
14586 # OK, works on sane cases. Now check whether nonexistent headers
14587 # can be detected and how.
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <ac_nonexistent.h>
14596 if { (ac_try="$ac_cpp conftest.$ac_ext"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } >/dev/null; then
14609 if test -s conftest.err; then
14610 ac_cpp_err=$ac_cxx_preproc_warn_flag
14611 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14618 if test -z "$ac_cpp_err"; then
14619 # Broken: success on invalid input.
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 # Passes both tests.
14630 rm -f conftest.err conftest.$ac_ext
14633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14634 rm -f conftest.err conftest.$ac_ext
14635 if $ac_preproc_ok; then
14640 ac_cv_prog_CXXCPP=$CXXCPP
14643 CXXCPP=$ac_cv_prog_CXXCPP
14645 ac_cv_prog_CXXCPP=$CXXCPP
14647 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14648 echo "${ECHO_T}$CXXCPP" >&6; }
14649 ac_preproc_ok=false
14650 for ac_cxx_preproc_warn_flag in '' yes
14652 # Use a header file that comes with gcc, so configuring glibc
14653 # with a fresh cross-compiler works.
14654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14655 # <limits.h> exists even on freestanding compilers.
14656 # On the NeXT, cc -E runs the code through the compiler's parser,
14657 # not just through cpp. "Syntax error" is here to catch this case.
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14665 # include <limits.h>
14667 # include <assert.h>
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 grep -v '^ *+' conftest.er1 >conftest.err
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } >/dev/null; then
14684 if test -s conftest.err; then
14685 ac_cpp_err=$ac_cxx_preproc_warn_flag
14686 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14693 if test -z "$ac_cpp_err"; then
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 # Broken: fails on valid input.
14703 rm -f conftest.err conftest.$ac_ext
14705 # OK, works on sane cases. Now check whether nonexistent headers
14706 # can be detected and how.
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 #include <ac_nonexistent.h>
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } >/dev/null; then
14728 if test -s conftest.err; then
14729 ac_cpp_err=$ac_cxx_preproc_warn_flag
14730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14737 if test -z "$ac_cpp_err"; then
14738 # Broken: success on invalid input.
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 # Passes both tests.
14749 rm -f conftest.err conftest.$ac_ext
14752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14753 rm -f conftest.err conftest.$ac_ext
14754 if $ac_preproc_ok; then
14757 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14758 See \`config.log' for more details." >&5
14759 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14760 See \`config.log' for more details." >&2;}
14761 { (exit 1); exit 1; }; }
14765 ac_cpp='$CXXCPP $CPPFLAGS'
14766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14772 for ac_header in cxxabi.h
14774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 ac_res=`eval echo '${'$as_ac_Header'}'`
14782 { echo "$as_me:$LINENO: result: $ac_res" >&5
14783 echo "${ECHO_T}$ac_res" >&6; }
14785 # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <$ac_header>
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_compile") 2>conftest.er1
14806 grep -v '^ *+' conftest.er1 >conftest.err
14808 cat conftest.err >&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest.$ac_objext'
14822 { (case "(($ac_try" in
14823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824 *) ac_try_echo=$ac_try;;
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827 (eval "$ac_try") 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_header_compiler=yes
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_header_compiler=no
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14841 echo "${ECHO_T}$ac_header_compiler" >&6; }
14843 # Is the header present?
14844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <$ac_header>
14854 if { (ac_try="$ac_cpp conftest.$ac_ext"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14862 grep -v '^ *+' conftest.er1 >conftest.err
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } >/dev/null; then
14867 if test -s conftest.err; then
14868 ac_cpp_err=$ac_cxx_preproc_warn_flag
14869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14876 if test -z "$ac_cpp_err"; then
14877 ac_header_preproc=yes
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_header_preproc=no
14885 rm -f conftest.err conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14887 echo "${ECHO_T}$ac_header_preproc" >&6; }
14889 # So? What about this header?
14890 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14896 ac_header_preproc=yes
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14912 ## ------------------------------------ ##
14913 ## Report this to http://llvm.org/bugs/ ##
14914 ## ------------------------------------ ##
14916 ) | sed "s/^/$as_me: WARNING: /" >&2
14919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 eval "$as_ac_Header=\$ac_header_preproc"
14926 ac_res=`eval echo '${'$as_ac_Header'}'`
14927 { echo "$as_me:$LINENO: result: $ac_res" >&5
14928 echo "${ECHO_T}$ac_res" >&6; }
14931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14932 cat >>confdefs.h <<_ACEOF
14933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14941 ac_cpp='$CPP $CPPFLAGS'
14942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14951 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 ac_res=`eval echo '${'$as_ac_Header'}'`
14961 { echo "$as_me:$LINENO: result: $ac_res" >&5
14962 echo "${ECHO_T}$ac_res" >&6; }
14964 # Is the header compilable?
14965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 $ac_includes_default
14974 #include <$ac_header>
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_header_compiler=yes
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_header_compiler=no
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020 echo "${ECHO_T}$ac_header_compiler" >&6; }
15022 # Is the header present?
15023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 #include <$ac_header>
15033 if { (ac_try="$ac_cpp conftest.$ac_ext"
15034 case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } >/dev/null; then
15046 if test -s conftest.err; then
15047 ac_cpp_err=$ac_c_preproc_warn_flag
15048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15055 if test -z "$ac_cpp_err"; then
15056 ac_header_preproc=yes
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ac_header_preproc=no
15064 rm -f conftest.err conftest.$ac_ext
15065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15066 echo "${ECHO_T}$ac_header_preproc" >&6; }
15068 # So? What about this header?
15069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15075 ac_header_preproc=yes
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15091 ## ------------------------------------ ##
15092 ## Report this to http://llvm.org/bugs/ ##
15093 ## ------------------------------------ ##
15095 ) | sed "s/^/$as_me: WARNING: /" >&2
15098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 eval "$as_ac_Header=\$ac_header_preproc"
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15111 cat >>confdefs.h <<_ACEOF
15112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15125 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 ac_res=`eval echo '${'$as_ac_Header'}'`
15135 { echo "$as_me:$LINENO: result: $ac_res" >&5
15136 echo "${ECHO_T}$ac_res" >&6; }
15138 # Is the header compilable?
15139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 $ac_includes_default
15148 #include <$ac_header>
15150 rm -f conftest.$ac_objext
15151 if { (ac_try="$ac_compile"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15170 (eval "$ac_try") 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; } &&
15174 { ac_try='test -s conftest.$ac_objext'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_header_compiler=yes
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_header_compiler=no
15192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6; }
15196 # Is the header present?
15197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #include <$ac_header>
15207 if { (ac_try="$ac_cpp conftest.$ac_ext"
15208 case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } >/dev/null; then
15220 if test -s conftest.err; then
15221 ac_cpp_err=$ac_c_preproc_warn_flag
15222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15229 if test -z "$ac_cpp_err"; then
15230 ac_header_preproc=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_preproc=no
15238 rm -f conftest.err conftest.$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6; }
15242 # So? What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15265 ## ------------------------------------ ##
15266 ## Report this to http://llvm.org/bugs/ ##
15267 ## ------------------------------------ ##
15269 ) | sed "s/^/$as_me: WARNING: /" >&2
15272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 eval "$as_ac_Header=\$ac_header_preproc"
15279 ac_res=`eval echo '${'$as_ac_Header'}'`
15280 { echo "$as_me:$LINENO: result: $ac_res" >&5
15281 echo "${ECHO_T}$ac_res" >&6; }
15284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15294 for ac_header in utime.h
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 ac_res=`eval echo '${'$as_ac_Header'}'`
15304 { echo "$as_me:$LINENO: result: $ac_res" >&5
15305 echo "${ECHO_T}$ac_res" >&6; }
15307 # Is the header compilable?
15308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15317 #include <$ac_header>
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_compile") 2>conftest.er1
15328 grep -v '^ *+' conftest.er1 >conftest.err
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_header_compiler=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 ac_header_compiler=no
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15363 echo "${ECHO_T}$ac_header_compiler" >&6; }
15365 # Is the header present?
15366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 #include <$ac_header>
15376 if { (ac_try="$ac_cpp conftest.$ac_ext"
15377 case "(($ac_try" in
15378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15379 *) ac_try_echo=$ac_try;;
15381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15386 cat conftest.err >&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } >/dev/null; then
15389 if test -s conftest.err; then
15390 ac_cpp_err=$ac_c_preproc_warn_flag
15391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15398 if test -z "$ac_cpp_err"; then
15399 ac_header_preproc=yes
15401 echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15404 ac_header_preproc=no
15407 rm -f conftest.err conftest.$ac_ext
15408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15409 echo "${ECHO_T}$ac_header_preproc" >&6; }
15411 # So? What about this header?
15412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15418 ac_header_preproc=yes
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15434 ## ------------------------------------ ##
15435 ## Report this to http://llvm.org/bugs/ ##
15436 ## ------------------------------------ ##
15438 ) | sed "s/^/$as_me: WARNING: /" >&2
15441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 eval "$as_ac_Header=\$ac_header_preproc"
15448 ac_res=`eval echo '${'$as_ac_Header'}'`
15449 { echo "$as_me:$LINENO: result: $ac_res" >&5
15450 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15454 cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15467 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15480 # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 $ac_includes_default
15490 #include <$ac_header>
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15507 { (case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_header_compiler=yes
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_header_compiler=no
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6; }
15538 # Is the header present?
15539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <$ac_header>
15549 if { (ac_try="$ac_cpp conftest.$ac_ext"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } >/dev/null; then
15562 if test -s conftest.err; then
15563 ac_cpp_err=$ac_c_preproc_warn_flag
15564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15571 if test -z "$ac_cpp_err"; then
15572 ac_header_preproc=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_header_preproc=no
15580 rm -f conftest.err conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582 echo "${ECHO_T}$ac_header_preproc" >&6; }
15584 # So? What about this header?
15585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591 ac_header_preproc=yes
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15607 ## ------------------------------------ ##
15608 ## Report this to http://llvm.org/bugs/ ##
15609 ## ------------------------------------ ##
15611 ) | sed "s/^/$as_me: WARNING: /" >&2
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 eval "$as_ac_Header=\$ac_header_preproc"
15621 ac_res=`eval echo '${'$as_ac_Header'}'`
15622 { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15638 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648 { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15651 # Is the header compilable?
15652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 $ac_includes_default
15661 #include <$ac_header>
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_compile") 2>conftest.er1
15672 grep -v '^ *+' conftest.er1 >conftest.err
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678 { (case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_try") 2>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
15688 { (case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_try") 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }; then
15697 ac_header_compiler=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_compiler=no
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6; }
15709 # Is the header present?
15710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15712 cat >conftest.$ac_ext <<_ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 #include <$ac_header>
15720 if { (ac_try="$ac_cpp conftest.$ac_ext"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } >/dev/null; then
15733 if test -s conftest.err; then
15734 ac_cpp_err=$ac_c_preproc_warn_flag
15735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742 if test -z "$ac_cpp_err"; then
15743 ac_header_preproc=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_header_preproc=no
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15755 # So? What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762 ac_header_preproc=yes
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778 ## ------------------------------------ ##
15779 ## Report this to http://llvm.org/bugs/ ##
15780 ## ------------------------------------ ##
15782 ) | sed "s/^/$as_me: WARNING: /" >&2
15785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 eval "$as_ac_Header=\$ac_header_preproc"
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793 { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15798 cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 for ac_header in valgrind/valgrind.h
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 ac_res=`eval echo '${'$as_ac_Header'}'`
15817 { echo "$as_me:$LINENO: result: $ac_res" >&5
15818 echo "${ECHO_T}$ac_res" >&6; }
15820 # Is the header compilable?
15821 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 $ac_includes_default
15830 #include <$ac_header>
15832 rm -f conftest.$ac_objext
15833 if { (ac_try="$ac_compile"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_compile") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_try") 2>&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 ac_header_compiler=yes
15868 echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15871 ac_header_compiler=no
15874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15876 echo "${ECHO_T}$ac_header_compiler" >&6; }
15878 # Is the header present?
15879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 #include <$ac_header>
15889 if { (ac_try="$ac_cpp conftest.$ac_ext"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } >/dev/null; then
15902 if test -s conftest.err; then
15903 ac_cpp_err=$ac_c_preproc_warn_flag
15904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911 if test -z "$ac_cpp_err"; then
15912 ac_header_preproc=yes
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_header_preproc=no
15920 rm -f conftest.err conftest.$ac_ext
15921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15922 echo "${ECHO_T}$ac_header_preproc" >&6; }
15924 # So? What about this header?
15925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15931 ac_header_preproc=yes
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15947 ## ------------------------------------ ##
15948 ## Report this to http://llvm.org/bugs/ ##
15949 ## ------------------------------------ ##
15951 ) | sed "s/^/$as_me: WARNING: /" >&2
15954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 eval "$as_ac_Header=\$ac_header_preproc"
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976 for ac_header in fenv.h
15978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 ac_res=`eval echo '${'$as_ac_Header'}'`
15986 { echo "$as_me:$LINENO: result: $ac_res" >&5
15987 echo "${ECHO_T}$ac_res" >&6; }
15989 # Is the header compilable?
15990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 $ac_includes_default
15999 #include <$ac_header>
16001 rm -f conftest.$ac_objext
16002 if { (ac_try="$ac_compile"
16003 case "(($ac_try" in
16004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16005 *) ac_try_echo=$ac_try;;
16007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; } &&
16025 { ac_try='test -s conftest.$ac_objext'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <$ac_header>
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null; then
16071 if test -s conftest.err; then
16072 ac_cpp_err=$ac_c_preproc_warn_flag
16073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16080 if test -z "$ac_cpp_err"; then
16081 ac_header_preproc=yes
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16100 ac_header_preproc=yes
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16116 ## ------------------------------------ ##
16117 ## Report this to http://llvm.org/bugs/ ##
16118 ## ------------------------------------ ##
16120 ) | sed "s/^/$as_me: WARNING: /" >&2
16123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 eval "$as_ac_Header=\$ac_header_preproc"
16130 ac_res=`eval echo '${'$as_ac_Header'}'`
16131 { echo "$as_me:$LINENO: result: $ac_res" >&5
16132 echo "${ECHO_T}$ac_res" >&6; }
16135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16136 cat >>confdefs.h <<_ACEOF
16137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16145 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16146 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16160 #ifndef FE_ALL_EXCEPT
16161 char *p = (char *) FE_ALL_EXCEPT;
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184 { (case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189 (eval "$ac_try") 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest.$ac_objext'
16194 { (case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_try") 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_cv_have_decl_FE_ALL_EXCEPT=no
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16213 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16214 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16215 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_DECL_FE_ALL_EXCEPT 1
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_DECL_FE_ALL_EXCEPT 0
16229 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16230 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16231 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16246 char *p = (char *) FE_INEXACT;
16254 rm -f conftest.$ac_objext
16255 if { (ac_try="$ac_compile"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_compile") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274 (eval "$ac_try") 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; } &&
16278 { ac_try='test -s conftest.$ac_objext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16288 ac_cv_have_decl_FE_INEXACT=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16293 ac_cv_have_decl_FE_INEXACT=no
16296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16299 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16300 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_DECL_FE_INEXACT 1
16308 cat >>confdefs.h <<_ACEOF
16309 #define HAVE_DECL_FE_INEXACT 0
16316 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16318 for ac_header in pthread.h
16320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16331 # Is the header compilable?
16332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 $ac_includes_default
16341 #include <$ac_header>
16343 rm -f conftest.$ac_objext
16344 if { (ac_try="$ac_compile"
16345 case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_compile") 2>conftest.er1
16352 grep -v '^ *+' conftest.er1 >conftest.err
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16358 { (case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_try") 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; } &&
16367 { ac_try='test -s conftest.$ac_objext'
16368 { (case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_try") 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 ac_header_compiler=yes
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_compiler=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 echo "${ECHO_T}$ac_header_compiler" >&6; }
16389 # Is the header present?
16390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 #include <$ac_header>
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1 >conftest.err
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } >/dev/null; then
16413 if test -s conftest.err; then
16414 ac_cpp_err=$ac_c_preproc_warn_flag
16415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16422 if test -z "$ac_cpp_err"; then
16423 ac_header_preproc=yes
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16428 ac_header_preproc=no
16431 rm -f conftest.err conftest.$ac_ext
16432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16433 echo "${ECHO_T}$ac_header_preproc" >&6; }
16435 # So? What about this header?
16436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16442 ac_header_preproc=yes
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458 ## ------------------------------------ ##
16459 ## Report this to http://llvm.org/bugs/ ##
16460 ## ------------------------------------ ##
16462 ) | sed "s/^/$as_me: WARNING: /" >&2
16465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 eval "$as_ac_Header=\$ac_header_preproc"
16472 ac_res=`eval echo '${'$as_ac_Header'}'`
16473 { echo "$as_me:$LINENO: result: $ac_res" >&5
16474 echo "${ECHO_T}$ac_res" >&6; }
16477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16496 for ac_header in zlib.h
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503 echo $ECHO_N "(cached) $ECHO_C" >&6
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16509 # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 $ac_includes_default
16519 #include <$ac_header>
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_compile") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_header_compiler=yes
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16560 ac_header_compiler=no
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <$ac_header>
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } >/dev/null; then
16591 if test -s conftest.err; then
16592 ac_cpp_err=$ac_c_preproc_warn_flag
16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16600 if test -z "$ac_cpp_err"; then
16601 ac_header_preproc=yes
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_header_preproc=no
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16613 # So? What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620 ac_header_preproc=yes
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16636 ## ------------------------------------ ##
16637 ## Report this to http://llvm.org/bugs/ ##
16638 ## ------------------------------------ ##
16640 ) | sed "s/^/$as_me: WARNING: /" >&2
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 eval "$as_ac_Header=\$ac_header_preproc"
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651 { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16673 if test "$llvm_cv_enable_libffi" = "yes" ; then
16676 for ac_header in ffi.h ffi/ffi.h
16678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 ac_res=`eval echo '${'$as_ac_Header'}'`
16686 { echo "$as_me:$LINENO: result: $ac_res" >&5
16687 echo "${ECHO_T}$ac_res" >&6; }
16689 # Is the header compilable?
16690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 $ac_includes_default
16699 #include <$ac_header>
16701 rm -f conftest.$ac_objext
16702 if { (ac_try="$ac_compile"
16703 case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_compile") 2>conftest.er1
16710 grep -v '^ *+' conftest.er1 >conftest.err
16712 cat conftest.err >&5
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest.$ac_objext'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_header_compiler=yes
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_compiler=no
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16745 echo "${ECHO_T}$ac_header_compiler" >&6; }
16747 # Is the header present?
16748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16750 cat >conftest.$ac_ext <<_ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <$ac_header>
16758 if { (ac_try="$ac_cpp conftest.$ac_ext"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16766 grep -v '^ *+' conftest.er1 >conftest.err
16768 cat conftest.err >&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } >/dev/null; then
16771 if test -s conftest.err; then
16772 ac_cpp_err=$ac_c_preproc_warn_flag
16773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16780 if test -z "$ac_cpp_err"; then
16781 ac_header_preproc=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 ac_header_preproc=no
16789 rm -f conftest.err conftest.$ac_ext
16790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6; }
16793 # So? What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800 ac_header_preproc=yes
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16816 ## ------------------------------------ ##
16817 ## Report this to http://llvm.org/bugs/ ##
16818 ## ------------------------------------ ##
16820 ) | sed "s/^/$as_me: WARNING: /" >&2
16823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16828 eval "$as_ac_Header=\$ac_header_preproc"
16830 ac_res=`eval echo '${'$as_ac_Header'}'`
16831 { echo "$as_me:$LINENO: result: $ac_res" >&5
16832 echo "${ECHO_T}$ac_res" >&6; }
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836 cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16847 for ac_header in CrashReporterClient.h
16849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 ac_res=`eval echo '${'$as_ac_Header'}'`
16857 { echo "$as_me:$LINENO: result: $ac_res" >&5
16858 echo "${ECHO_T}$ac_res" >&6; }
16860 # Is the header compilable?
16861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16863 cat >conftest.$ac_ext <<_ACEOF
16866 cat confdefs.h >>conftest.$ac_ext
16867 cat >>conftest.$ac_ext <<_ACEOF
16868 /* end confdefs.h. */
16869 $ac_includes_default
16870 #include <$ac_header>
16872 rm -f conftest.$ac_objext
16873 if { (ac_try="$ac_compile"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_compile") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1 >conftest.err
16883 cat conftest.err >&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
16886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest.$ac_objext'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_header_compiler=yes
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_header_compiler=no
16914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16916 echo "${ECHO_T}$ac_header_compiler" >&6; }
16918 # Is the header present?
16919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 #include <$ac_header>
16929 if { (ac_try="$ac_cpp conftest.$ac_ext"
16930 case "(($ac_try" in
16931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932 *) ac_try_echo=$ac_try;;
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } >/dev/null; then
16942 if test -s conftest.err; then
16943 ac_cpp_err=$ac_c_preproc_warn_flag
16944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16951 if test -z "$ac_cpp_err"; then
16952 ac_header_preproc=yes
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ac_header_preproc=no
16960 rm -f conftest.err conftest.$ac_ext
16961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16962 echo "${ECHO_T}$ac_header_preproc" >&6; }
16964 # So? What about this header?
16965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16971 ac_header_preproc=yes
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16987 ## ------------------------------------ ##
16988 ## Report this to http://llvm.org/bugs/ ##
16989 ## ------------------------------------ ##
16991 ) | sed "s/^/$as_me: WARNING: /" >&2
16994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 eval "$as_ac_Header=\$ac_header_preproc"
17001 ac_res=`eval echo '${'$as_ac_Header'}'`
17002 { echo "$as_me:$LINENO: result: $ac_res" >&5
17003 echo "${ECHO_T}$ac_res" >&6; }
17006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17007 cat >>confdefs.h <<_ACEOF
17008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17017 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17018 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 extern const char *__crashreporter_info__;
17028 __crashreporter_info__ = "test";
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17069 { echo "$as_me:$LINENO: result: yes" >&5
17070 echo "${ECHO_T}yes" >&6; }
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_CRASHREPORTER_INFO 1
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_CRASHREPORTER_INFO 0
17092 rm -f core conftest.err conftest.$ac_objext \
17093 conftest$ac_exeext conftest.$ac_ext
17097 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17098 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17099 if test "${ac_cv_huge_val_sanity+set}" = set; then
17100 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 ac_cpp='$CXXCPP $CPPFLAGS'
17105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17109 ac_save_CXXFLAGS=$CXXFLAGS
17110 CXXFLAGS="$CXXFLAGS -pedantic"
17111 if test "$cross_compiling" = yes; then
17112 ac_cv_huge_val_sanity=yes
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17124 double x = HUGE_VAL; return x != x;
17129 rm -f conftest$ac_exeext
17130 if { (ac_try="$ac_link"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_link") 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17140 { (case "(($ac_try" in
17141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142 *) ac_try_echo=$ac_try;;
17144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145 (eval "$ac_try") 2>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 ac_cv_huge_val_sanity=yes
17151 echo "$as_me: program exited with status $ac_status" >&5
17152 echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ( exit $ac_status )
17156 ac_cv_huge_val_sanity=no
17158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17162 CXXFLAGS=$ac_save_CXXFLAGS
17164 ac_cpp='$CPP $CPPFLAGS'
17165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17171 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17172 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17173 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17176 { echo "$as_me:$LINENO: checking for pid_t" >&5
17177 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17178 if test "${ac_cv_type_pid_t+set}" = set; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 cat >conftest.$ac_ext <<_ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 $ac_includes_default
17188 typedef pid_t ac__type_new_;
17192 if ((ac__type_new_ *) 0)
17194 if (sizeof (ac__type_new_))
17200 rm -f conftest.$ac_objext
17201 if { (ac_try="$ac_compile"
17202 case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_compile") 2>conftest.er1
17209 grep -v '^ *+' conftest.er1 >conftest.err
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_cv_type_pid_t=yes
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_cv_type_pid_t=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17244 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17245 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17246 if test $ac_cv_type_pid_t = yes; then
17250 cat >>confdefs.h <<_ACEOF
17256 { echo "$as_me:$LINENO: checking for size_t" >&5
17257 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17258 if test "${ac_cv_type_size_t+set}" = set; then
17259 echo $ECHO_N "(cached) $ECHO_C" >&6
17261 cat >conftest.$ac_ext <<_ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17268 typedef size_t ac__type_new_;
17272 if ((ac__type_new_ *) 0)
17274 if (sizeof (ac__type_new_))
17280 rm -f conftest.$ac_objext
17281 if { (ac_try="$ac_compile"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_compile") 2>conftest.er1
17289 grep -v '^ *+' conftest.er1 >conftest.err
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17295 { (case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_try") 2>&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
17305 { (case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_try") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_type_size_t=yes
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_cv_type_size_t=no
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17325 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17326 if test $ac_cv_type_size_t = yes; then
17330 cat >>confdefs.h <<_ACEOF
17331 #define size_t unsigned int
17337 cat >>confdefs.h <<_ACEOF
17338 #define RETSIGTYPE void
17341 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17342 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17343 if test "${ac_cv_struct_tm+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 cat >conftest.$ac_ext <<_ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17352 #include <sys/types.h>
17358 struct tm *tp; tp->tm_sec;
17363 rm -f conftest.$ac_objext
17364 if { (ac_try="$ac_compile"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_compile") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17378 { (case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_try") 2>&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; } &&
17387 { ac_try='test -s conftest.$ac_objext'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 ac_cv_struct_tm=time.h
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_struct_tm=sys/time.h
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17408 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17409 if test $ac_cv_struct_tm = sys/time.h; then
17411 cat >>confdefs.h <<\_ACEOF
17412 #define TM_IN_SYS_TIME 1
17417 { echo "$as_me:$LINENO: checking for int64_t" >&5
17418 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17419 if test "${ac_cv_type_int64_t+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 $ac_includes_default
17429 typedef int64_t ac__type_new_;
17433 if ((ac__type_new_ *) 0)
17435 if (sizeof (ac__type_new_))
17441 rm -f conftest.$ac_objext
17442 if { (ac_try="$ac_compile"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_compile") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } &&
17455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17456 { (case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_try") 2>&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; } &&
17465 { ac_try='test -s conftest.$ac_objext'
17466 { (case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_try") 2>&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; }; then
17475 ac_cv_type_int64_t=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 ac_cv_type_int64_t=no
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17486 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17487 if test $ac_cv_type_int64_t = yes; then
17489 cat >>confdefs.h <<_ACEOF
17490 #define HAVE_INT64_T 1
17495 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17496 echo "$as_me: error: Type int64_t required but not found" >&2;}
17497 { (exit 1); exit 1; }; }
17500 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17501 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17502 if test "${ac_cv_type_uint64_t+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 cat >conftest.$ac_ext <<_ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 $ac_includes_default
17512 typedef uint64_t ac__type_new_;
17516 if ((ac__type_new_ *) 0)
17518 if (sizeof (ac__type_new_))
17524 rm -f conftest.$ac_objext
17525 if { (ac_try="$ac_compile"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_compile") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17539 { (case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_try") 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; } &&
17548 { ac_try='test -s conftest.$ac_objext'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; }; then
17558 ac_cv_type_uint64_t=yes
17560 echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_cv_type_uint64_t=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17569 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17570 if test $ac_cv_type_uint64_t = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_UINT64_T 1
17578 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17579 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17580 if test "${ac_cv_type_u_int64_t+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 $ac_includes_default
17590 typedef u_int64_t ac__type_new_;
17594 if ((ac__type_new_ *) 0)
17596 if (sizeof (ac__type_new_))
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17617 { (case "(($ac_try" in
17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17619 *) ac_try_echo=$ac_try;;
17621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17622 (eval "$ac_try") 2>&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
17627 { (case "(($ac_try" in
17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632 (eval "$ac_try") 2>&5
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 ac_cv_type_u_int64_t=yes
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_cv_type_u_int64_t=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17647 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17648 if test $ac_cv_type_u_int64_t = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_U_INT64_T 1
17656 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17657 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17658 { (exit 1); exit 1; }; }
17672 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 cat >conftest.$ac_ext <<_ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17688 #define $ac_func innocuous_$ac_func
17690 /* System header to define __stub macros and hopefully few prototypes,
17691 which can conflict with char $ac_func (); below.
17692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17693 <limits.h> exists even on freestanding compilers. */
17696 # include <limits.h>
17698 # include <assert.h>
17703 /* Override any GCC internal prototype to avoid an error.
17704 Use char because int might match the return type of a GCC
17705 builtin and then its argument prototype would still apply. */
17710 /* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713 #if defined __stub_$ac_func || defined __stub___$ac_func
17720 return $ac_func ();
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17734 grep -v '^ *+' conftest.er1 >conftest.err
17736 cat conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
17739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17740 { (case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_try") 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
17750 { (case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_try") 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 eval "$as_ac_var=yes"
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 eval "$as_ac_var=no"
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17770 ac_res=`eval echo '${'$as_ac_var'}'`
17771 { echo "$as_me:$LINENO: result: $ac_res" >&5
17772 echo "${ECHO_T}$ac_res" >&6; }
17773 if test `eval echo '${'$as_ac_var'}'` = yes; then
17774 cat >>confdefs.h <<_ACEOF
17775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785 for ac_func in powf fmodf strtof round
17787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17801 #define $ac_func innocuous_$ac_func
17803 /* System header to define __stub macros and hopefully few prototypes,
17804 which can conflict with char $ac_func (); below.
17805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17806 <limits.h> exists even on freestanding compilers. */
17809 # include <limits.h>
17811 # include <assert.h>
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17823 /* The GNU C library defines this for functions which it implements
17824 to always fail with ENOSYS. Some functions are actually named
17825 something starting with __ and the normal name is an alias. */
17826 #if defined __stub_$ac_func || defined __stub___$ac_func
17833 return $ac_func ();
17838 rm -f conftest.$ac_objext conftest$ac_exeext
17839 if { (ac_try="$ac_link"
17840 case "(($ac_try" in
17841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17842 *) ac_try_echo=$ac_try;;
17844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17845 (eval "$ac_link") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17853 { (case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_try") 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest$ac_exeext'
17863 { (case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_try") 2>&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 eval "$as_ac_var=yes"
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 eval "$as_ac_var=no"
17880 rm -f core conftest.err conftest.$ac_objext \
17881 conftest$ac_exeext conftest.$ac_ext
17883 ac_res=`eval echo '${'$as_ac_var'}'`
17884 { echo "$as_me:$LINENO: result: $ac_res" >&5
17885 echo "${ECHO_T}$ac_res" >&6; }
17886 if test `eval echo '${'$as_ac_var'}'` = yes; then
17887 cat >>confdefs.h <<_ACEOF
17888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17899 for ac_func in log log2 log10 exp exp2
17901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17915 #define $ac_func innocuous_$ac_func
17917 /* System header to define __stub macros and hopefully few prototypes,
17918 which can conflict with char $ac_func (); below.
17919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17920 <limits.h> exists even on freestanding compilers. */
17923 # include <limits.h>
17925 # include <assert.h>
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17937 /* The GNU C library defines this for functions which it implements
17938 to always fail with ENOSYS. Some functions are actually named
17939 something starting with __ and the normal name is an alias. */
17940 #if defined __stub_$ac_func || defined __stub___$ac_func
17947 return $ac_func ();
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1 >conftest.err
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
17977 { (case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_try") 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 eval "$as_ac_var=yes"
17988 echo "$as_me: failed program was:" >&5
17989 sed 's/^/| /' conftest.$ac_ext >&5
17991 eval "$as_ac_var=no"
17994 rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17997 ac_res=`eval echo '${'$as_ac_var'}'`
17998 { echo "$as_me:$LINENO: result: $ac_res" >&5
17999 echo "${ECHO_T}$ac_res" >&6; }
18000 if test `eval echo '${'$as_ac_var'}'` = yes; then
18001 cat >>confdefs.h <<_ACEOF
18002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18013 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18019 echo $ECHO_N "(cached) $ECHO_C" >&6
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18029 #define $ac_func innocuous_$ac_func
18031 /* System header to define __stub macros and hopefully few prototypes,
18032 which can conflict with char $ac_func (); below.
18033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18034 <limits.h> exists even on freestanding compilers. */
18037 # include <limits.h>
18039 # include <assert.h>
18044 /* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18051 /* The GNU C library defines this for functions which it implements
18052 to always fail with ENOSYS. Some functions are actually named
18053 something starting with __ and the normal name is an alias. */
18054 #if defined __stub_$ac_func || defined __stub___$ac_func
18061 return $ac_func ();
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (ac_try="$ac_link"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_link") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
18080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
18091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 eval "$as_ac_var=yes"
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 eval "$as_ac_var=no"
18108 rm -f core conftest.err conftest.$ac_objext \
18109 conftest$ac_exeext conftest.$ac_ext
18111 ac_res=`eval echo '${'$as_ac_var'}'`
18112 { echo "$as_me:$LINENO: result: $ac_res" >&5
18113 echo "${ECHO_T}$ac_res" >&6; }
18114 if test `eval echo '${'$as_ac_var'}'` = yes; then
18115 cat >>confdefs.h <<_ACEOF
18116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18125 for ac_func in isatty mkdtemp mkstemp
18127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 cat >conftest.$ac_ext <<_ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18141 #define $ac_func innocuous_$ac_func
18143 /* System header to define __stub macros and hopefully few prototypes,
18144 which can conflict with char $ac_func (); below.
18145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18146 <limits.h> exists even on freestanding compilers. */
18149 # include <limits.h>
18151 # include <assert.h>
18156 /* Override any GCC internal prototype to avoid an error.
18157 Use char because int might match the return type of a GCC
18158 builtin and then its argument prototype would still apply. */
18163 /* The GNU C library defines this for functions which it implements
18164 to always fail with ENOSYS. Some functions are actually named
18165 something starting with __ and the normal name is an alias. */
18166 #if defined __stub_$ac_func || defined __stub___$ac_func
18173 return $ac_func ();
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (ac_try="$ac_link"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_link") 2>conftest.er1
18187 grep -v '^ *+' conftest.er1 >conftest.err
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; } &&
18202 { ac_try='test -s conftest$ac_exeext'
18203 { (case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_try") 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 eval "$as_ac_var=yes"
18214 echo "$as_me: failed program was:" >&5
18215 sed 's/^/| /' conftest.$ac_ext >&5
18217 eval "$as_ac_var=no"
18220 rm -f core conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
18223 ac_res=`eval echo '${'$as_ac_var'}'`
18224 { echo "$as_me:$LINENO: result: $ac_res" >&5
18225 echo "${ECHO_T}$ac_res" >&6; }
18226 if test `eval echo '${'$as_ac_var'}'` = yes; then
18227 cat >>confdefs.h <<_ACEOF
18228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18240 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 cat >conftest.$ac_ext <<_ACEOF
18251 cat confdefs.h >>conftest.$ac_ext
18252 cat >>conftest.$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18256 #define $ac_func innocuous_$ac_func
18258 /* System header to define __stub macros and hopefully few prototypes,
18259 which can conflict with char $ac_func (); below.
18260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18261 <limits.h> exists even on freestanding compilers. */
18264 # include <limits.h>
18266 # include <assert.h>
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18278 /* The GNU C library defines this for functions which it implements
18279 to always fail with ENOSYS. Some functions are actually named
18280 something starting with __ and the normal name is an alias. */
18281 #if defined __stub_$ac_func || defined __stub___$ac_func
18288 return $ac_func ();
18293 rm -f conftest.$ac_objext conftest$ac_exeext
18294 if { (ac_try="$ac_link"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18308 { (case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_try") 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest$ac_exeext'
18318 { (case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_try") 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 eval "$as_ac_var=yes"
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 eval "$as_ac_var=no"
18335 rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18338 ac_res=`eval echo '${'$as_ac_var'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18341 if test `eval echo '${'$as_ac_var'}'` = yes; then
18342 cat >>confdefs.h <<_ACEOF
18343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18353 for ac_func in strerror strerror_r setenv arc4random
18355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18361 cat >conftest.$ac_ext <<_ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18369 #define $ac_func innocuous_$ac_func
18371 /* System header to define __stub macros and hopefully few prototypes,
18372 which can conflict with char $ac_func (); below.
18373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18374 <limits.h> exists even on freestanding compilers. */
18377 # include <limits.h>
18379 # include <assert.h>
18384 /* Override any GCC internal prototype to avoid an error.
18385 Use char because int might match the return type of a GCC
18386 builtin and then its argument prototype would still apply. */
18391 /* The GNU C library defines this for functions which it implements
18392 to always fail with ENOSYS. Some functions are actually named
18393 something starting with __ and the normal name is an alias. */
18394 #if defined __stub_$ac_func || defined __stub___$ac_func
18401 return $ac_func ();
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } &&
18420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest$ac_exeext'
18431 { (case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_try") 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 eval "$as_ac_var=yes"
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 eval "$as_ac_var=no"
18448 rm -f core conftest.err conftest.$ac_objext \
18449 conftest$ac_exeext conftest.$ac_ext
18451 ac_res=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18466 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18482 #define $ac_func innocuous_$ac_func
18484 /* System header to define __stub macros and hopefully few prototypes,
18485 which can conflict with char $ac_func (); below.
18486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18487 <limits.h> exists even on freestanding compilers. */
18490 # include <limits.h>
18492 # include <assert.h>
18497 /* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18504 /* The GNU C library defines this for functions which it implements
18505 to always fail with ENOSYS. Some functions are actually named
18506 something starting with __ and the normal name is an alias. */
18507 #if defined __stub_$ac_func || defined __stub___$ac_func
18514 return $ac_func ();
18519 rm -f conftest.$ac_objext conftest$ac_exeext
18520 if { (ac_try="$ac_link"
18521 case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_link") 2>conftest.er1
18528 grep -v '^ *+' conftest.er1 >conftest.err
18530 cat conftest.err >&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
18533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_try") 2>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 eval "$as_ac_var=yes"
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_var=no"
18561 rm -f core conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565 { echo "$as_me:$LINENO: result: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18580 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define $ac_func innocuous_$ac_func
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char $ac_func (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18604 # include <limits.h>
18606 # include <assert.h>
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_$ac_func || defined __stub___$ac_func
18628 return $ac_func ();
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 eval "$as_ac_var=yes"
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18672 eval "$as_ac_var=no"
18675 rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18678 ac_res=`eval echo '${'$as_ac_var'}'`
18679 { echo "$as_me:$LINENO: result: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18681 if test `eval echo '${'$as_ac_var'}'` = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18691 for ac_func in futimes futimens
18693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 cat >conftest.$ac_ext <<_ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18707 #define $ac_func innocuous_$ac_func
18709 /* System header to define __stub macros and hopefully few prototypes,
18710 which can conflict with char $ac_func (); below.
18711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18712 <limits.h> exists even on freestanding compilers. */
18715 # include <limits.h>
18717 # include <assert.h>
18722 /* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18729 /* The GNU C library defines this for functions which it implements
18730 to always fail with ENOSYS. Some functions are actually named
18731 something starting with __ and the normal name is an alias. */
18732 #if defined __stub_$ac_func || defined __stub___$ac_func
18739 return $ac_func ();
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (ac_try="$ac_link"
18746 case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_link") 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
18758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18759 { (case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_try") 2>&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest$ac_exeext'
18769 { (case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_try") 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; }; then
18778 eval "$as_ac_var=yes"
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 eval "$as_ac_var=no"
18786 rm -f core conftest.err conftest.$ac_objext \
18787 conftest$ac_exeext conftest.$ac_ext
18789 ac_res=`eval echo '${'$as_ac_var'}'`
18790 { echo "$as_me:$LINENO: result: $ac_res" >&5
18791 echo "${ECHO_T}$ac_res" >&6; }
18792 if test `eval echo '${'$as_ac_var'}'` = yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18800 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18801 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18802 if test "${llvm_cv_c_printf_a+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 ac_cpp='$CPP $CPPFLAGS'
18807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18811 if test "$cross_compiling" = yes; then
18812 llvmac_cv_c_printf_a=no
18814 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18823 #include <stdlib.h>
18829 volatile double A, B;
18833 sprintf(Buffer, "%a", A);
18837 if (A != 0x1.999999999999ap-4)
18844 rm -f conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_link") 2>&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18855 { (case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_try") 2>&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 llvm_cv_c_printf_a=yes
18866 echo "$as_me: program exited with status $ac_status" >&5
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ( exit $ac_status )
18871 llvmac_cv_c_printf_a=no
18873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18878 ac_cpp='$CPP $CPPFLAGS'
18879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18884 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18885 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18886 if test "$llvm_cv_c_printf_a" = "yes"; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_PRINTF_A 1
18896 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18897 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18898 if test "${ac_cv_func_rand48+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 ac_cpp='$CXXCPP $CPPFLAGS'
18904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18908 cat >conftest.$ac_ext <<_ACEOF
18911 cat confdefs.h >>conftest.$ac_ext
18912 cat >>conftest.$ac_ext <<_ACEOF
18913 /* end confdefs.h. */
18914 #include <stdlib.h>
18918 srand48(0);lrand48();drand48();
18923 rm -f conftest.$ac_objext
18924 if { (ac_try="$ac_compile"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_compile") 2>conftest.er1
18932 grep -v '^ *+' conftest.er1 >conftest.err
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } &&
18937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; } &&
18947 { ac_try='test -s conftest.$ac_objext'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_func_rand48=yes
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18962 ac_cv_func_rand48=no
18965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18974 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18975 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18977 if test "$ac_cv_func_rand48" = "yes" ; then
18979 cat >>confdefs.h <<\_ACEOF
18980 #define HAVE_RAND48 1
18986 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18987 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18988 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
18997 $ac_includes_default
19002 char *p = (char *) strerror_s;
19010 rm -f conftest.$ac_objext
19011 if { (ac_try="$ac_compile"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_compile") 2>conftest.er1
19019 grep -v '^ *+' conftest.er1 >conftest.err
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
19024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044 ac_cv_have_decl_strerror_s=yes
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 ac_cv_have_decl_strerror_s=no
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19055 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19056 if test $ac_cv_have_decl_strerror_s = yes; then
19058 cat >>confdefs.h <<_ACEOF
19059 #define HAVE_DECL_STRERROR_S 1
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DECL_STRERROR_S 0
19073 if test "$llvm_cv_os_type" = "MingW" ; then
19074 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19075 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19076 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 ac_check_lib_save_LIBS=$LIBS
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (ac_try="$ac_link"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_link") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest$ac_exeext'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_lib_gcc__alloca=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_cv_lib_gcc__alloca=no
19145 rm -f core conftest.err conftest.$ac_objext \
19146 conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19150 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19151 if test $ac_cv_lib_gcc__alloca = yes; then
19153 cat >>confdefs.h <<\_ACEOF
19154 #define HAVE__ALLOCA 1
19159 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19160 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19161 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS=$LIBS
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19183 return __alloca ();
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } &&
19202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19203 { (case "(($ac_try" in
19204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205 *) ac_try_echo=$ac_try;;
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208 (eval "$ac_try") 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest$ac_exeext'
19213 { (case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_try") 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_cv_lib_gcc___alloca=yes
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_lib_gcc___alloca=no
19230 rm -f core conftest.err conftest.$ac_objext \
19231 conftest$ac_exeext conftest.$ac_ext
19232 LIBS=$ac_check_lib_save_LIBS
19234 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19235 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19236 if test $ac_cv_lib_gcc___alloca = yes; then
19238 cat >>confdefs.h <<\_ACEOF
19239 #define HAVE___ALLOCA 1
19244 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19245 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19246 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 ac_check_lib_save_LIBS=$LIBS
19251 cat >conftest.$ac_ext <<_ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19258 /* Override any GCC internal prototype to avoid an error.
19259 Use char because int might match the return type of a GCC
19260 builtin and then its argument prototype would still apply. */
19268 return __chkstk ();
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19288 { (case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_try") 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest$ac_exeext'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 ac_cv_lib_gcc___chkstk=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_gcc___chkstk=no
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19320 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19321 if test $ac_cv_lib_gcc___chkstk = yes; then
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE___CHKSTK 1
19329 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19330 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19331 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 ac_check_lib_save_LIBS=$LIBS
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19353 return ___chkstk ();
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_link") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest$ac_exeext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_lib_gcc____chkstk=yes
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 ac_cv_lib_gcc____chkstk=no
19400 rm -f core conftest.err conftest.$ac_objext \
19401 conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19404 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19405 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19406 if test $ac_cv_lib_gcc____chkstk = yes; then
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE____CHKSTK 1
19415 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19416 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19417 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_check_lib_save_LIBS=$LIBS
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 /* Override any GCC internal prototype to avoid an error.
19430 Use char because int might match the return type of a GCC
19431 builtin and then its argument prototype would still apply. */
19439 return __ashldi3 ();
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19453 grep -v '^ *+' conftest.er1 >conftest.err
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_cv_lib_gcc___ashldi3=yes
19480 echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_lib_gcc___ashldi3=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19490 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19491 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19492 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE___ASHLDI3 1
19500 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19501 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19502 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 ac_check_lib_save_LIBS=$LIBS
19507 cat >conftest.$ac_ext <<_ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19514 /* Override any GCC internal prototype to avoid an error.
19515 Use char because int might match the return type of a GCC
19516 builtin and then its argument prototype would still apply. */
19524 return __ashrdi3 ();
19529 rm -f conftest.$ac_objext conftest$ac_exeext
19530 if { (ac_try="$ac_link"
19531 case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_link") 2>conftest.er1
19538 grep -v '^ *+' conftest.er1 >conftest.err
19540 cat conftest.err >&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
19543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19544 { (case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_try") 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_gcc___ashrdi3=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 ac_cv_lib_gcc___ashrdi3=no
19571 rm -f core conftest.err conftest.$ac_objext \
19572 conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19575 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19576 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19577 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE___ASHRDI3 1
19585 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19586 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19587 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_check_lib_save_LIBS=$LIBS
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 /* Override any GCC internal prototype to avoid an error.
19600 Use char because int might match the return type of a GCC
19601 builtin and then its argument prototype would still apply. */
19609 return __divdi3 ();
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (ac_try="$ac_link"
19616 case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest$ac_exeext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_lib_gcc___divdi3=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_lib_gcc___divdi3=no
19656 rm -f core conftest.err conftest.$ac_objext \
19657 conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19660 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19661 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19662 if test $ac_cv_lib_gcc___divdi3 = yes; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE___DIVDI3 1
19670 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19671 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19672 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 ac_check_lib_save_LIBS=$LIBS
19677 cat >conftest.$ac_ext <<_ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h. */
19684 /* Override any GCC internal prototype to avoid an error.
19685 Use char because int might match the return type of a GCC
19686 builtin and then its argument prototype would still apply. */
19694 return __fixdfdi ();
19699 rm -f conftest.$ac_objext conftest$ac_exeext
19700 if { (ac_try="$ac_link"
19701 case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_link") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest$ac_exeext'
19724 { (case "(($ac_try" in
19725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726 *) ac_try_echo=$ac_try;;
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729 (eval "$ac_try") 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; }; then
19733 ac_cv_lib_gcc___fixdfdi=yes
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19738 ac_cv_lib_gcc___fixdfdi=no
19741 rm -f core conftest.err conftest.$ac_objext \
19742 conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19746 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19747 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE___FIXDFDI 1
19755 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19756 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19757 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 ac_check_lib_save_LIBS=$LIBS
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19769 /* Override any GCC internal prototype to avoid an error.
19770 Use char because int might match the return type of a GCC
19771 builtin and then its argument prototype would still apply. */
19779 return __fixsfdi ();
19784 rm -f conftest.$ac_objext conftest$ac_exeext
19785 if { (ac_try="$ac_link"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_link") 2>conftest.er1
19793 grep -v '^ *+' conftest.er1 >conftest.err
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest$ac_exeext'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_cv_lib_gcc___fixsfdi=yes
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 ac_cv_lib_gcc___fixsfdi=no
19826 rm -f core conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19828 LIBS=$ac_check_lib_save_LIBS
19830 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19831 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19832 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19834 cat >>confdefs.h <<\_ACEOF
19835 #define HAVE___FIXSFDI 1
19840 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19841 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19842 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 ac_check_lib_save_LIBS=$LIBS
19847 cat >conftest.$ac_ext <<_ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19854 /* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19860 char __floatdidf ();
19864 return __floatdidf ();
19869 rm -f conftest.$ac_objext conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_link") 2>conftest.er1
19878 grep -v '^ *+' conftest.er1 >conftest.err
19880 cat conftest.err >&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
19883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try='test -s conftest$ac_exeext'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 ac_cv_lib_gcc___floatdidf=yes
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 ac_cv_lib_gcc___floatdidf=no
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19916 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19917 if test $ac_cv_lib_gcc___floatdidf = yes; then
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE___FLOATDIDF 1
19925 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19926 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19927 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19930 ac_check_lib_save_LIBS=$LIBS
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19939 /* Override any GCC internal prototype to avoid an error.
19940 Use char because int might match the return type of a GCC
19941 builtin and then its argument prototype would still apply. */
19949 return __lshrdi3 ();
19954 rm -f conftest.$ac_objext conftest$ac_exeext
19955 if { (ac_try="$ac_link"
19956 case "(($ac_try" in
19957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958 *) ac_try_echo=$ac_try;;
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961 (eval "$ac_link") 2>conftest.er1
19963 grep -v '^ *+' conftest.er1 >conftest.err
19965 cat conftest.err >&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); } &&
19968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19969 { (case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_try") 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest$ac_exeext'
19979 { (case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_try") 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_cv_lib_gcc___lshrdi3=yes
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_cv_lib_gcc___lshrdi3=no
19996 rm -f core conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_check_lib_save_LIBS
20000 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20001 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20002 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20004 cat >>confdefs.h <<\_ACEOF
20005 #define HAVE___LSHRDI3 1
20010 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20011 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20012 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 ac_check_lib_save_LIBS=$LIBS
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20034 return __moddi3 ();
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20054 { (case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_try") 2>&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_lib_gcc___moddi3=yes
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_lib_gcc___moddi3=no
20081 rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20083 LIBS=$ac_check_lib_save_LIBS
20085 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20086 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20087 if test $ac_cv_lib_gcc___moddi3 = yes; then
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE___MODDI3 1
20095 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20096 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20097 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 ac_check_lib_save_LIBS=$LIBS
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20119 return __udivdi3 ();
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_link") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest$ac_exeext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_lib_gcc___udivdi3=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_cv_lib_gcc___udivdi3=no
20166 rm -f core conftest.err conftest.$ac_objext \
20167 conftest$ac_exeext conftest.$ac_ext
20168 LIBS=$ac_check_lib_save_LIBS
20170 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20171 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20172 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE___UDIVDI3 1
20180 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20181 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20182 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 ac_check_lib_save_LIBS=$LIBS
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20204 return __umoddi3 ();
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20218 grep -v '^ *+' conftest.er1 >conftest.err
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } &&
20223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20224 { (case "(($ac_try" in
20225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226 *) ac_try_echo=$ac_try;;
20228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229 (eval "$ac_try") 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest$ac_exeext'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_lib_gcc___umoddi3=yes
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20248 ac_cv_lib_gcc___umoddi3=no
20251 rm -f core conftest.err conftest.$ac_objext \
20252 conftest$ac_exeext conftest.$ac_ext
20253 LIBS=$ac_check_lib_save_LIBS
20255 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20256 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20257 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20259 cat >>confdefs.h <<\_ACEOF
20260 #define HAVE___UMODDI3 1
20266 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20267 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20268 if test "${ac_cv_lib_gcc___main+set}" = set; then
20269 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 ac_check_lib_save_LIBS=$LIBS
20273 cat >conftest.$ac_ext <<_ACEOF
20276 cat confdefs.h >>conftest.$ac_ext
20277 cat >>conftest.$ac_ext <<_ACEOF
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_try") 2>&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; } &&
20319 { ac_try='test -s conftest$ac_exeext'
20320 { (case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_try") 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_lib_gcc___main=yes
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20334 ac_cv_lib_gcc___main=no
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20342 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20343 if test $ac_cv_lib_gcc___main = yes; then
20345 cat >>confdefs.h <<\_ACEOF
20346 #define HAVE___MAIN 1
20351 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20352 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20353 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 ac_check_lib_save_LIBS=$LIBS
20358 cat >conftest.$ac_ext <<_ACEOF
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20375 return __cmpdi2 ();
20380 rm -f conftest.$ac_objext conftest$ac_exeext
20381 if { (ac_try="$ac_link"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_link") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20395 { (case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_try") 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_try") 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 ac_cv_lib_gcc___cmpdi2=yes
20416 echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_gcc___cmpdi2=no
20422 rm -f core conftest.err conftest.$ac_objext \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20427 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20428 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE___CMPDI2 1
20438 if test "$llvm_cv_os_type" = "MingW" ; then
20439 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20440 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20441 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 #include <windows.h>
20450 #include <imagehlp.h>
20451 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20452 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_compile") 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } &&
20470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20471 { (case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_try") 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest.$ac_objext'
20481 { (case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_try") 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20491 { echo "$as_me:$LINENO: result: yes" >&5
20492 echo "${ECHO_T}yes" >&6; }
20493 llvm_cv_win32_elmcb_pcstr="PCSTR"
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20500 { echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6; }
20502 llvm_cv_win32_elmcb_pcstr="PSTR"
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 cat >>confdefs.h <<_ACEOF
20509 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20516 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20517 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20518 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 ac_cpp='$CXXCPP $CPPFLAGS'
20524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20558 { (case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_try") 2>&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
20568 { (case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_try") 2>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_func_isnan_in_math_h=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_func_isnan_in_math_h=no
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 ac_cpp='$CPP $CPPFLAGS'
20588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20594 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20595 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20598 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_ISNAN_IN_MATH_H 1
20607 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20608 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20609 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 ac_cpp='$CXXCPP $CPPFLAGS'
20615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20643 grep -v '^ *+' conftest.er1 >conftest.err
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20649 { (case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_try") 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; } &&
20658 { ac_try='test -s conftest.$ac_objext'
20659 { (case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_try") 2>&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; }; then
20668 ac_cv_func_isnan_in_cmath=yes
20670 echo "$as_me: failed program was:" >&5
20671 sed 's/^/| /' conftest.$ac_ext >&5
20673 ac_cv_func_isnan_in_cmath=no
20676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20678 ac_cpp='$CPP $CPPFLAGS'
20679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20685 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20686 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20688 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_ISNAN_IN_CMATH 1
20697 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20698 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20699 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 ac_cpp='$CXXCPP $CPPFLAGS'
20705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20709 cat >conftest.$ac_ext <<_ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20719 float f; std::isnan(f);
20724 rm -f conftest.$ac_objext
20725 if { (ac_try="$ac_compile"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_compile") 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
20738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20739 { (case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_try") 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest.$ac_objext'
20749 { (case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_try") 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 ac_cv_func_std_isnan_in_cmath=yes
20760 echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20763 ac_cv_func_std_isnan_in_cmath=no
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 ac_cpp='$CPP $CPPFLAGS'
20769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20775 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20776 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20778 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_STD_ISNAN_IN_CMATH 1
20789 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20790 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20791 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 ac_cpp='$CXXCPP $CPPFLAGS'
20797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20816 rm -f conftest.$ac_objext
20817 if { (ac_try="$ac_compile"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_compile") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20831 { (case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_try") 2>&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try='test -s conftest.$ac_objext'
20841 { (case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_try") 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_func_isinf_in_math_h=yes
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 ac_cv_func_isinf_in_math_h=no
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 ac_cpp='$CPP $CPPFLAGS'
20861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20868 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20870 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20872 cat >>confdefs.h <<\_ACEOF
20873 #define HAVE_ISINF_IN_MATH_H 1
20879 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20880 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20881 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 ac_cpp='$CXXCPP $CPPFLAGS'
20887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_compile") 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } &&
20920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20921 { (case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_try") 2>&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
20931 { (case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_try") 2>&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_func_isinf_in_cmath=yes
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20945 ac_cv_func_isinf_in_cmath=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950 ac_cpp='$CPP $CPPFLAGS'
20951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20957 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20958 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20960 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20962 cat >>confdefs.h <<\_ACEOF
20963 #define HAVE_ISINF_IN_CMATH 1
20969 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20970 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20971 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 ac_cpp='$CXXCPP $CPPFLAGS'
20977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20991 float f; std::isinf(f);
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_compile") 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest.$ac_objext'
21021 { (case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_try") 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 ac_cv_func_std_isinf_in_cmath=yes
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_cv_func_std_isinf_in_cmath=no
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21047 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21048 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21050 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_STD_ISINF_IN_CMATH 1
21059 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 ac_cpp='$CXXCPP $CPPFLAGS'
21067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <ieeefp.h>
21081 float f; finite(f);
21086 rm -f conftest.$ac_objext
21087 if { (ac_try="$ac_compile"
21088 case "(($ac_try" in
21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_compile") 2>conftest.er1
21095 grep -v '^ *+' conftest.er1 >conftest.err
21097 cat conftest.err >&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
21100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21101 { (case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_try") 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
21111 { (case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_try") 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 ac_cv_func_finite_in_ieeefp_h=yes
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.$ac_ext >&5
21125 ac_cv_func_finite_in_ieeefp_h=no
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 ac_cpp='$CPP $CPPFLAGS'
21131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21138 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21140 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21142 cat >>confdefs.h <<\_ACEOF
21143 #define HAVE_FINITE_IN_IEEEFP_H 1
21150 if test "$llvm_cv_platform_type" = "Unix" ; then
21153 for ac_header in stdlib.h unistd.h
21155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 ac_res=`eval echo '${'$as_ac_Header'}'`
21163 { echo "$as_me:$LINENO: result: $ac_res" >&5
21164 echo "${ECHO_T}$ac_res" >&6; }
21166 # Is the header compilable?
21167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 $ac_includes_default
21176 #include <$ac_header>
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } &&
21192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21193 { (case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_try") 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } &&
21202 { ac_try='test -s conftest.$ac_objext'
21203 { (case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_try") 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_header_compiler=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.$ac_ext >&5
21217 ac_header_compiler=no
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21222 echo "${ECHO_T}$ac_header_compiler" >&6; }
21224 # Is the header present?
21225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21227 cat >conftest.$ac_ext <<_ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 #include <$ac_header>
21235 if { (ac_try="$ac_cpp conftest.$ac_ext"
21236 case "(($ac_try" in
21237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238 *) ac_try_echo=$ac_try;;
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21243 grep -v '^ *+' conftest.er1 >conftest.err
21245 cat conftest.err >&5
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); } >/dev/null; then
21248 if test -s conftest.err; then
21249 ac_cpp_err=$ac_c_preproc_warn_flag
21250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21257 if test -z "$ac_cpp_err"; then
21258 ac_header_preproc=yes
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_header_preproc=no
21266 rm -f conftest.err conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21268 echo "${ECHO_T}$ac_header_preproc" >&6; }
21270 # So? What about this header?
21271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21277 ac_header_preproc=yes
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21293 ## ------------------------------------ ##
21294 ## Report this to http://llvm.org/bugs/ ##
21295 ## ------------------------------------ ##
21297 ) | sed "s/^/$as_me: WARNING: /" >&2
21300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21303 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 eval "$as_ac_Header=\$ac_header_preproc"
21307 ac_res=`eval echo '${'$as_ac_Header'}'`
21308 { echo "$as_me:$LINENO: result: $ac_res" >&5
21309 echo "${ECHO_T}$ac_res" >&6; }
21312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21313 cat >>confdefs.h <<_ACEOF
21314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21322 for ac_func in getpagesize
21324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21338 #define $ac_func innocuous_$ac_func
21340 /* System header to define __stub macros and hopefully few prototypes,
21341 which can conflict with char $ac_func (); below.
21342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21343 <limits.h> exists even on freestanding compilers. */
21346 # include <limits.h>
21348 # include <assert.h>
21353 /* Override any GCC internal prototype to avoid an error.
21354 Use char because int might match the return type of a GCC
21355 builtin and then its argument prototype would still apply. */
21360 /* The GNU C library defines this for functions which it implements
21361 to always fail with ENOSYS. Some functions are actually named
21362 something starting with __ and the normal name is an alias. */
21363 #if defined __stub_$ac_func || defined __stub___$ac_func
21370 return $ac_func ();
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (ac_try="$ac_link"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_link") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } &&
21389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21390 { (case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_try") 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; } &&
21399 { ac_try='test -s conftest$ac_exeext'
21400 { (case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_try") 2>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 eval "$as_ac_var=yes"
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 eval "$as_ac_var=no"
21417 rm -f core conftest.err conftest.$ac_objext \
21418 conftest$ac_exeext conftest.$ac_ext
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421 { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424 cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21431 { echo "$as_me:$LINENO: checking for working mmap" >&5
21432 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 if test "$cross_compiling" = yes; then
21437 ac_cv_func_mmap_fixed_mapped=no
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 $ac_includes_default
21446 /* malloc might have been renamed as rpl_malloc. */
21449 /* Thanks to Mike Haertel and Jim Avera for this test.
21450 Here is a matrix of mmap possibilities:
21451 mmap private not fixed
21452 mmap private fixed at somewhere currently unmapped
21453 mmap private fixed at somewhere already mapped
21454 mmap shared not fixed
21455 mmap shared fixed at somewhere currently unmapped
21456 mmap shared fixed at somewhere already mapped
21457 For private mappings, we should verify that changes cannot be read()
21458 back from the file, nor mmap's back from the file at a different
21459 address. (There have been systems where private was not correctly
21460 implemented like the infamous i386 svr4.0, and systems where the
21461 VM page cache was not coherent with the file system buffer cache
21462 like early versions of FreeBSD and possibly contemporary NetBSD.)
21463 For shared mappings, we should conversely verify that changes get
21464 propagated back to all the places they're supposed to be.
21466 Grep wants private fixed already mapped.
21467 The main things grep needs to know about mmap are:
21468 * does it exist and is it safe to write into the mmap'd area
21469 * how to use it (BSD variants) */
21472 #include <sys/mman.h>
21474 #if !STDC_HEADERS && !HAVE_STDLIB_H
21478 /* This mess was copied from the GNU getpagesize.h. */
21479 #if !HAVE_GETPAGESIZE
21480 /* Assume that all systems that can run configure have sys/param.h. */
21481 # if !HAVE_SYS_PARAM_H
21482 # define HAVE_SYS_PARAM_H 1
21485 # ifdef _SC_PAGESIZE
21486 # define getpagesize() sysconf(_SC_PAGESIZE)
21487 # else /* no _SC_PAGESIZE */
21488 # if HAVE_SYS_PARAM_H
21489 # include <sys/param.h>
21490 # ifdef EXEC_PAGESIZE
21491 # define getpagesize() EXEC_PAGESIZE
21492 # else /* no EXEC_PAGESIZE */
21494 # define getpagesize() NBPG * CLSIZE
21497 # endif /* no CLSIZE */
21498 # else /* no NBPG */
21500 # define getpagesize() NBPC
21501 # else /* no NBPC */
21503 # define getpagesize() PAGESIZE
21504 # endif /* PAGESIZE */
21505 # endif /* no NBPC */
21506 # endif /* no NBPG */
21507 # endif /* no EXEC_PAGESIZE */
21508 # else /* no HAVE_SYS_PARAM_H */
21509 # define getpagesize() 8192 /* punt totally */
21510 # endif /* no HAVE_SYS_PARAM_H */
21511 # endif /* no _SC_PAGESIZE */
21513 #endif /* no HAVE_GETPAGESIZE */
21518 char *data, *data2, *data3;
21522 pagesize = getpagesize ();
21524 /* First, make a file with some known garbage in it. */
21525 data = (char *) malloc (pagesize);
21528 for (i = 0; i < pagesize; ++i)
21529 *(data + i) = rand ();
21531 fd = creat ("conftest.mmap", 0600);
21534 if (write (fd, data, pagesize) != pagesize)
21538 /* Next, try to mmap the file at a fixed address which already has
21539 something else allocated at it. If we can, also make sure that
21540 we see the same garbage. */
21541 fd = open ("conftest.mmap", O_RDWR);
21544 data2 = (char *) malloc (2 * pagesize);
21547 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21548 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21549 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21551 for (i = 0; i < pagesize; ++i)
21552 if (*(data + i) != *(data2 + i))
21555 /* Finally, make sure that changes to the mapped area do not
21556 percolate back to the file as seen by read(). (This is a bug on
21557 some variants of i386 svr4.0.) */
21558 for (i = 0; i < pagesize; ++i)
21559 *(data2 + i) = *(data2 + i) + 1;
21560 data3 = (char *) malloc (pagesize);
21563 if (read (fd, data3, pagesize) != pagesize)
21565 for (i = 0; i < pagesize; ++i)
21566 if (*(data + i) != *(data3 + i))
21572 rm -f conftest$ac_exeext
21573 if { (ac_try="$ac_link"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_link") 2>&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21583 { (case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_try") 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21592 ac_cv_func_mmap_fixed_mapped=yes
21594 echo "$as_me: program exited with status $ac_status" >&5
21595 echo "$as_me: failed program was:" >&5
21596 sed 's/^/| /' conftest.$ac_ext >&5
21598 ( exit $ac_status )
21599 ac_cv_func_mmap_fixed_mapped=no
21601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21607 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_MMAP 1
21615 rm -f conftest.mmap
21617 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21618 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21619 if test "${ac_cv_func_mmap_file+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21623 ac_cpp='$CPP $CPPFLAGS'
21624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21628 if test "$cross_compiling" = yes; then
21629 ac_cv_func_mmap_file=no
21631 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21639 #include <sys/types.h>
21640 #include <sys/mman.h>
21648 fd = creat ("foo",0777);
21649 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21651 return (fd != (int) MAP_FAILED);
21656 rm -f conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_link") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21667 { (case "(($ac_try" in
21668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669 *) ac_try_echo=$ac_try;;
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672 (eval "$ac_try") 2>&5
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
21676 ac_cv_func_mmap_file=yes
21678 echo "$as_me: program exited with status $ac_status" >&5
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ( exit $ac_status )
21683 ac_cv_func_mmap_file=no
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21690 ac_cpp='$CPP $CPPFLAGS'
21691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21697 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21698 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21699 if test "$ac_cv_func_mmap_file" = yes; then
21701 cat >>confdefs.h <<\_ACEOF
21702 #define HAVE_MMAP_FILE
21709 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21710 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21711 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 if test "$llvm_cv_os_type" = "Interix" ; then
21715 ac_cv_need_dev_zero_for_mmap=yes
21717 ac_cv_need_dev_zero_for_mmap=no
21721 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21722 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21723 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21725 cat >>confdefs.h <<\_ACEOF
21726 #define NEED_DEV_ZERO_FOR_MMAP 1
21731 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21733 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21734 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21736 if test "$ac_cv_func_mmap_file" = "no"
21738 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21739 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21743 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21744 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21746 ac_cpp='$CXXCPP $CPPFLAGS'
21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21751 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21760 volatile unsigned long val = 1;
21761 __sync_synchronize();
21762 __sync_val_compare_and_swap(&val, 1, 0);
21763 __sync_add_and_fetch(&val, 1);
21764 __sync_sub_and_fetch(&val, 1);
21770 rm -f conftest.$ac_objext conftest$ac_exeext
21771 if { (ac_try="$ac_link"
21772 case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_link") 2>conftest.er1
21779 grep -v '^ *+' conftest.er1 >conftest.err
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21785 { (case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_try") 2>&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; } &&
21794 { ac_try='test -s conftest$ac_exeext'
21795 { (case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_try") 2>&5
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; }; then
21805 { echo "$as_me:$LINENO: result: yes" >&5
21806 echo "${ECHO_T}yes" >&6; }
21808 cat >>confdefs.h <<\_ACEOF
21809 #define LLVM_HAS_ATOMICS 1
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21818 { echo "$as_me:$LINENO: result: no" >&5
21819 echo "${ECHO_T}no" >&6; }
21821 cat >>confdefs.h <<\_ACEOF
21822 #define LLVM_HAS_ATOMICS 0
21825 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21826 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21830 rm -f core conftest.err conftest.$ac_objext \
21831 conftest$ac_exeext conftest.$ac_ext
21833 ac_cpp='$CPP $CPPFLAGS'
21834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21841 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21842 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21843 if test "${llvm_cv_linux_mixed+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 ac_cpp='$CPP $CPPFLAGS'
21848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21859 error: Not x86-64 even if uname says so!
21870 rm -f conftest.$ac_objext
21871 if { (ac_try="$ac_compile"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_compile") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); } &&
21884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21885 { (case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890 (eval "$ac_try") 2>&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; } &&
21894 { ac_try='test -s conftest.$ac_objext'
21895 { (case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_try") 2>&5
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; }; then
21904 llvm_cv_linux_mixed=no
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 llvm_cv_linux_mixed=yes
21912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21914 ac_cpp='$CPP $CPPFLAGS'
21915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21921 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21922 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21924 if test "$llvm_cv_linux_mixed" = "yes"; then
21925 llvm_cv_target_arch="x86"
21931 for ac_func in __dso_handle
21933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947 #define $ac_func innocuous_$ac_func
21949 /* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char $ac_func (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21955 # include <limits.h>
21957 # include <assert.h>
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21969 /* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972 #if defined __stub_$ac_func || defined __stub___$ac_func
21979 return $ac_func ();
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_link") 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } &&
21998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21999 { (case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_try") 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; } &&
22008 { ac_try='test -s conftest$ac_exeext'
22009 { (case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_try") 2>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 eval "$as_ac_var=yes"
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 eval "$as_ac_var=no"
22026 rm -f core conftest.err conftest.$ac_objext \
22027 conftest$ac_exeext conftest.$ac_ext
22029 ac_res=`eval echo '${'$as_ac_var'}'`
22030 { echo "$as_me:$LINENO: result: $ac_res" >&5
22031 echo "${ECHO_T}$ac_res" >&6; }
22032 if test `eval echo '${'$as_ac_var'}'` = yes; then
22033 cat >>confdefs.h <<_ACEOF
22034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22041 SHLIBEXT=$libltdl_cv_shlibext
22044 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22047 if test "${prefix}" = "NONE" ; then
22048 prefix="/usr/local"
22050 eval LLVM_PREFIX="${prefix}";
22051 eval LLVM_BINDIR="${prefix}/bin";
22052 eval LLVM_DATADIR="${prefix}/share/llvm";
22053 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22054 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22055 eval LLVM_INCLUDEDIR="${prefix}/include";
22056 eval LLVM_INFODIR="${prefix}/info";
22057 eval LLVM_MANDIR="${prefix}/man";
22058 LLVM_CONFIGTIME=`date`
22069 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22070 LLVM_CONFIGTIME="(timestamp not enabled)"
22074 cat >>confdefs.h <<_ACEOF
22075 #define LLVM_PREFIX "$LLVM_PREFIX"
22079 cat >>confdefs.h <<_ACEOF
22080 #define LLVM_BINDIR "$LLVM_BINDIR"
22084 cat >>confdefs.h <<_ACEOF
22085 #define LLVM_DATADIR "$LLVM_DATADIR"
22089 cat >>confdefs.h <<_ACEOF
22090 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22094 cat >>confdefs.h <<_ACEOF
22095 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22099 cat >>confdefs.h <<_ACEOF
22100 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22104 cat >>confdefs.h <<_ACEOF
22105 #define LLVM_INFODIR "$LLVM_INFODIR"
22109 cat >>confdefs.h <<_ACEOF
22110 #define LLVM_MANDIR "$LLVM_MANDIR"
22114 cat >>confdefs.h <<_ACEOF
22115 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22119 cat >>confdefs.h <<_ACEOF
22120 #define LLVM_HOST_TRIPLE "$host"
22124 cat >>confdefs.h <<_ACEOF
22125 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22129 if test "$BINDINGS_TO_BUILD" = auto ; then
22130 BINDINGS_TO_BUILD=""
22131 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22132 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22135 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22141 binding_prereqs_failed=0
22142 for a_binding in $BINDINGS_TO_BUILD ; do
22143 case "$a_binding" in
22145 if test "x$OCAMLC" = x ; then
22146 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22147 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22148 binding_prereqs_failed=1
22150 if test "x$OCAMLDEP" = x ; then
22151 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22152 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22153 binding_prereqs_failed=1
22155 if test "x$OCAMLOPT" = x ; then
22156 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22157 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22159 if test "x$with_ocaml_libdir" != xauto ; then
22160 OCAML_LIBDIR=$with_ocaml_libdir
22163 ocaml_stdlib="`"$OCAMLC" -where`"
22164 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22166 # ocaml stdlib is beneath our prefix; use stdlib
22167 OCAML_LIBDIR=$ocaml_stdlib
22170 # ocaml stdlib is outside our prefix; use libdir/ocaml
22171 OCAML_LIBDIR=${prefix}/lib/ocaml
22178 if test "$binding_prereqs_failed" = 1 ; then
22179 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22180 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22181 { (exit 1); exit 1; }; }
22184 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22185 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22186 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 ac_cpp='$CXXCPP $CPPFLAGS'
22191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22195 oldcxxflags="$CXXFLAGS"
22196 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_compile") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } &&
22226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22227 { (case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_try") 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; } &&
22236 { ac_try='test -s conftest.$ac_objext'
22237 { (case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_try") 2>&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; }; then
22246 llvm_cv_cxx_visibility_inlines_hidden=yes
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 llvm_cv_cxx_visibility_inlines_hidden=no
22254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 CXXFLAGS="$oldcxxflags"
22257 ac_cpp='$CPP $CPPFLAGS'
22258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22264 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22265 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22266 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22267 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22270 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22275 if test "$llvm_cv_link_use_r" = "yes" ; then
22282 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22283 RDYNAMIC="-rdynamic"
22290 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22297 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22299 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22301 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22303 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22305 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22308 ac_config_files="$ac_config_files Makefile.config"
22311 ac_config_files="$ac_config_files llvm.spec"
22314 ac_config_files="$ac_config_files docs/doxygen.cfg"
22317 if test "${clang_src_root}" = ""; then
22318 clang_src_root="$srcdir/tools/clang"
22320 if test -f ${clang_src_root}/README.txt; then
22321 configh="include/clang/Config/config.h"
22322 doxy="docs/doxygen.cfg"
22323 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22325 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22329 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22332 test "x$program_prefix" = "xNONE" && program_prefix=""
22336 ac_config_commands="$ac_config_commands setup"
22338 ac_config_commands="$ac_config_commands Makefile"
22341 ac_config_commands="$ac_config_commands Makefile.common"
22344 ac_config_commands="$ac_config_commands examples/Makefile"
22347 ac_config_commands="$ac_config_commands lib/Makefile"
22350 ac_config_commands="$ac_config_commands test/Makefile"
22353 ac_config_commands="$ac_config_commands test/Makefile.tests"
22356 ac_config_commands="$ac_config_commands unittests/Makefile"
22359 ac_config_commands="$ac_config_commands tools/Makefile"
22362 ac_config_commands="$ac_config_commands utils/Makefile"
22365 ac_config_commands="$ac_config_commands projects/Makefile"
22368 ac_config_commands="$ac_config_commands bindings/Makefile"
22371 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22375 cat >confcache <<\_ACEOF
22376 # This file is a shell script that caches the results of configure
22377 # tests run on this system so they can be shared between configure
22378 # scripts and configure runs, see configure's option --config-cache.
22379 # It is not useful on other systems. If it contains results you don't
22380 # want to keep, you may remove or edit it.
22382 # config.status only pays attention to the cache file if you give it
22383 # the --recheck option to rerun configure.
22385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22387 # following values.
22391 # The following way of writing the cache mishandles newlines in values,
22392 # but we know of no workaround that is simple, portable, and efficient.
22393 # So, we kill variables containing newlines.
22394 # Ultrix sh set writes to stderr and can't be redirected directly,
22395 # and sets the high bit in the cache file unless we assign to the vars.
22397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22398 eval ac_val=\$$ac_var
22402 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22403 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22406 _ | IFS | as_nl) ;; #(
22407 *) $as_unset $ac_var ;;
22413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22414 *${as_nl}ac_space=\ *)
22415 # `set' does not quote correctly, so add quotes (double-quote
22416 # substitution turns \\\\ into \\, and sed turns \\ into \).
22419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22422 # `set' quotes correctly as required by POSIX, so do not add quotes.
22423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22436 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22437 if test -w "$cache_file"; then
22438 test "x$cache_file" != "x/dev/null" &&
22439 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22440 echo "$as_me: updating cache $cache_file" >&6;}
22441 cat confcache >$cache_file
22443 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22444 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22450 # Let make expand exec_prefix.
22451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22453 DEFS=-DHAVE_CONFIG_H
22457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22458 # 1. Remove the extension, and $U if already installed.
22459 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22460 ac_i=`echo "$ac_i" | sed "$ac_script"`
22461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22462 # will be set to the directory where LIBOBJS objects are built.
22463 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22464 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22466 LIBOBJS=$ac_libobjs
22468 LTLIBOBJS=$ac_ltlibobjs
22471 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22472 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22473 Usually this means the macro was only invoked conditionally." >&5
22474 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22475 Usually this means the macro was only invoked conditionally." >&2;}
22476 { (exit 1); exit 1; }; }
22478 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22479 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&5
22481 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22482 Usually this means the macro was only invoked conditionally." >&2;}
22483 { (exit 1); exit 1; }; }
22486 : ${CONFIG_STATUS=./config.status}
22487 ac_clean_files_save=$ac_clean_files
22488 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22489 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22490 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22491 cat >$CONFIG_STATUS <<_ACEOF
22493 # Generated by $as_me.
22494 # Run this file to recreate the current configuration.
22495 # Compiler output produced by configure, useful for debugging
22496 # configure, is in config.log if it exists.
22499 ac_cs_recheck=false
22501 SHELL=\${CONFIG_SHELL-$SHELL}
22504 cat >>$CONFIG_STATUS <<\_ACEOF
22505 ## --------------------- ##
22506 ## M4sh Initialization. ##
22507 ## --------------------- ##
22509 # Be Bourne compatible
22510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22514 # is contrary to our usage. Disable this feature.
22515 alias -g '${1+"$@"}'='"$@"'
22516 setopt NO_GLOB_SUBST
22518 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22520 BIN_SH=xpg4; export BIN_SH # for Tru64
22521 DUALCASE=1; export DUALCASE # for MKS sh
22525 # Avoid depending upon Character Ranges.
22526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22529 as_cr_digits='0123456789'
22530 as_cr_alnum=$as_cr_Letters$as_cr_digits
22532 # The user is always right.
22533 if test "${PATH_SEPARATOR+set}" != set; then
22534 echo "#! /bin/sh" >conf$$.sh
22535 echo "exit 0" >>conf$$.sh
22537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22545 # Support unset when possible.
22546 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22554 # We need space, tab and new line, in precisely that order. Quoting is
22555 # there to prevent editors from complaining about space-tab.
22556 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22557 # splitting by setting IFS to empty value.)
22562 # Find who we are. Look in the path if we contain no directory separator.
22564 *[\\/]* ) as_myself=$0 ;;
22565 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22566 for as_dir in $PATH
22569 test -z "$as_dir" && as_dir=.
22570 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22576 # We did not find ourselves, most probably we were run as `sh COMMAND'
22577 # in which case we are not to be found in the path.
22578 if test "x$as_myself" = x; then
22581 if test ! -f "$as_myself"; then
22582 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22583 { (exit 1); exit 1; }
22586 # Work around bugs in pre-3.0 UWIN ksh.
22587 for as_var in ENV MAIL MAILPATH
22588 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22596 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22597 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22598 LC_TELEPHONE LC_TIME
22600 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22601 eval $as_var=C; export $as_var
22603 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22607 # Required to use basename.
22608 if expr a : '\(a\)' >/dev/null 2>&1 &&
22609 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22615 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22616 as_basename=basename
22622 # Name of the executable.
22623 as_me=`$as_basename -- "$0" ||
22624 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22625 X"$0" : 'X\(//\)$' \| \
22626 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22628 sed '/^.*\/\([^/][^/]*\)\/*$/{
22647 as_lineno_1=$LINENO
22648 as_lineno_2=$LINENO
22649 test "x$as_lineno_1" != "x$as_lineno_2" &&
22650 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22652 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22653 # uniformly replaced by the line number. The first 'sed' inserts a
22654 # line-number line after each line using $LINENO; the second 'sed'
22655 # does the real work. The second script uses 'N' to pair each
22656 # line-number line with the line containing $LINENO, and appends
22657 # trailing '-' during substitution so that $LINENO is not a special
22658 # case at line end.
22659 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22660 # scripts with optimization help from Paolo Bonzini. Blame Lee
22661 # E. McMahon (1931-1989) for sed's syntax. :-)
22673 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22676 ' >$as_me.lineno &&
22677 chmod +x "$as_me.lineno" ||
22678 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22679 { (exit 1); exit 1; }; }
22681 # Don't try to exec as it changes $[0], causing all sort of problems
22682 # (the dirname of $[0] is not the place where we might find the
22683 # original and so on. Autoconf is especially sensitive to this).
22684 . "./$as_me.lineno"
22685 # Exit status is that of the last command.
22690 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22696 ECHO_C= ECHO_N= ECHO_T=
22697 case `echo -n x` in
22699 case `echo 'x\c'` in
22700 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22707 if expr a : '\(a\)' >/dev/null 2>&1 &&
22708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22714 rm -f conf$$ conf$$.exe conf$$.file
22715 if test -d conf$$.dir; then
22716 rm -f conf$$.dir/conf$$.file
22722 if ln -s conf$$.file conf$$ 2>/dev/null; then
22724 # ... but there are two gotchas:
22725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22727 # In both cases, we have to default to `cp -p'.
22728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22730 elif ln conf$$.file conf$$ 2>/dev/null; then
22735 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22736 rmdir conf$$.dir 2>/dev/null
22738 if mkdir -p . 2>/dev/null; then
22741 test -d ./-p && rmdir ./-p
22745 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22746 # systems may use methods other than mode bits to determine executability.
22747 cat >conf$$.file <<_ASEOF
22751 chmod +x conf$$.file
22752 if test -x conf$$.file >/dev/null 2>&1; then
22753 as_executable_p="test -x"
22759 # Sed expression to map a string onto a valid CPP name.
22760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22762 # Sed expression to map a string onto a valid variable name.
22763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22768 # Save the log message, to keep $[0] and so on meaningful, and to
22769 # report actual input values of CONFIG_FILES etc. instead of their
22770 # values after options handling.
22772 This file was extended by LLVM $as_me 3.5svn, which was
22773 generated by GNU Autoconf 2.60. Invocation command line was
22775 CONFIG_FILES = $CONFIG_FILES
22776 CONFIG_HEADERS = $CONFIG_HEADERS
22777 CONFIG_LINKS = $CONFIG_LINKS
22778 CONFIG_COMMANDS = $CONFIG_COMMANDS
22781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22786 cat >>$CONFIG_STATUS <<_ACEOF
22787 # Files that config.status was made for.
22788 config_files="$ac_config_files"
22789 config_headers="$ac_config_headers"
22790 config_commands="$ac_config_commands"
22794 cat >>$CONFIG_STATUS <<\_ACEOF
22796 \`$as_me' instantiates files from templates according to the
22797 current configuration.
22799 Usage: $0 [OPTIONS] [FILE]...
22801 -h, --help print this help, then exit
22802 -V, --version print version number, then exit
22803 -q, --quiet do not print progress messages
22804 -d, --debug don't remove temporary files
22805 --recheck update $as_me by reconfiguring in the same conditions
22806 --file=FILE[:TEMPLATE]
22807 instantiate the configuration file FILE
22808 --header=FILE[:TEMPLATE]
22809 instantiate the configuration header FILE
22811 Configuration files:
22814 Configuration headers:
22817 Configuration commands:
22820 Report bugs to <bug-autoconf@gnu.org>."
22823 cat >>$CONFIG_STATUS <<_ACEOF
22825 LLVM config.status 3.5svn
22826 configured by $0, generated by GNU Autoconf 2.60,
22827 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22829 Copyright (C) 2006 Free Software Foundation, Inc.
22830 This config.status script is free software; the Free Software Foundation
22831 gives unlimited permission to copy, distribute and modify it."
22838 cat >>$CONFIG_STATUS <<\_ACEOF
22839 # If no file are specified by the user, then we need to provide default
22840 # value. By we need to know if files were specified by the user.
22846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22858 # Handling of the options.
22859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22862 echo "$ac_cs_version"; exit ;;
22863 --debug | --debu | --deb | --de | --d | -d )
22865 --file | --fil | --fi | --f )
22867 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22868 ac_need_defaults=false;;
22869 --header | --heade | --head | --hea )
22871 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22872 ac_need_defaults=false;;
22874 # Conflict between --help and --header
22875 { echo "$as_me: error: ambiguous option: $1
22876 Try \`$0 --help' for more information." >&2
22877 { (exit 1); exit 1; }; };;
22878 --help | --hel | -h )
22879 echo "$ac_cs_usage"; exit ;;
22880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22884 # This is an error.
22885 -*) { echo "$as_me: error: unrecognized option: $1
22886 Try \`$0 --help' for more information." >&2
22887 { (exit 1); exit 1; }; } ;;
22889 *) ac_config_targets="$ac_config_targets $1"
22890 ac_need_defaults=false ;;
22896 ac_configure_extra_args=
22898 if $ac_cs_silent; then
22900 ac_configure_extra_args="$ac_configure_extra_args --silent"
22904 cat >>$CONFIG_STATUS <<_ACEOF
22905 if \$ac_cs_recheck; then
22906 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22907 CONFIG_SHELL=$SHELL
22908 export CONFIG_SHELL
22909 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22913 cat >>$CONFIG_STATUS <<\_ACEOF
22917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22918 ## Running $as_me. ##
22924 cat >>$CONFIG_STATUS <<_ACEOF
22928 llvm_src="${srcdir}"
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22934 # Handling of arguments.
22935 for ac_config_target in $ac_config_targets
22937 case $ac_config_target in
22938 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22939 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22940 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22941 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22942 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22943 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22944 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22945 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22946 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22947 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22948 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22949 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22950 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22951 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22952 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22953 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22954 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22955 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22956 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22957 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22958 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22959 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22960 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22961 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22962 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22963 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22965 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22967 { (exit 1); exit 1; }; };;
22972 # If the user did not use the arguments to specify the items to instantiate,
22973 # then the envvar interface is used. Set only those that are not.
22974 # We use the long form for the default assignment because of an extremely
22975 # bizarre bug on SunOS 4.1.3.
22976 if $ac_need_defaults; then
22977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22982 # Have a temporary directory for convenience. Make it in the build tree
22983 # simply because there is no reason against having it here, and in addition,
22984 # creating and moving files from /tmp can sometimes cause problems.
22985 # Hook for its removal unless debugging.
22986 # Note that there is a small window in which the directory will not be cleaned:
22987 # after its creation but before its name has been assigned to `$tmp'.
22991 trap 'exit_status=$?
22992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22994 trap '{ (exit 1); exit 1; }' 1 2 13 15
22996 # Create a (secure) tmp directory for tmp files.
22999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23000 test -n "$tmp" && test -d "$tmp"
23003 tmp=./conf$$-$RANDOM
23004 (umask 077 && mkdir "$tmp")
23007 echo "$me: cannot create a temporary directory in ." >&2
23008 { (exit 1); exit 1; }
23012 # Set up the sed scripts for CONFIG_FILES section.
23015 # No need to generate the scripts if there are no CONFIG_FILES.
23016 # This happens for instance when ./config.status config.h
23017 if test -n "$CONFIG_FILES"; then
23024 for ac_last_try in false false false false false :; do
23025 cat >conf$$subs.sed <<_ACEOF
23026 SHELL!$SHELL$ac_delim
23027 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23028 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23029 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23030 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23031 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23032 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23033 exec_prefix!$exec_prefix$ac_delim
23034 prefix!$prefix$ac_delim
23035 program_transform_name!$program_transform_name$ac_delim
23036 bindir!$bindir$ac_delim
23037 sbindir!$sbindir$ac_delim
23038 libexecdir!$libexecdir$ac_delim
23039 datarootdir!$datarootdir$ac_delim
23040 datadir!$datadir$ac_delim
23041 sysconfdir!$sysconfdir$ac_delim
23042 sharedstatedir!$sharedstatedir$ac_delim
23043 localstatedir!$localstatedir$ac_delim
23044 includedir!$includedir$ac_delim
23045 oldincludedir!$oldincludedir$ac_delim
23046 docdir!$docdir$ac_delim
23047 infodir!$infodir$ac_delim
23048 htmldir!$htmldir$ac_delim
23049 dvidir!$dvidir$ac_delim
23050 pdfdir!$pdfdir$ac_delim
23051 psdir!$psdir$ac_delim
23052 libdir!$libdir$ac_delim
23053 localedir!$localedir$ac_delim
23054 mandir!$mandir$ac_delim
23055 DEFS!$DEFS$ac_delim
23056 ECHO_C!$ECHO_C$ac_delim
23057 ECHO_N!$ECHO_N$ac_delim
23058 ECHO_T!$ECHO_T$ac_delim
23059 LIBS!$LIBS$ac_delim
23060 build_alias!$build_alias$ac_delim
23061 host_alias!$host_alias$ac_delim
23062 target_alias!$target_alias$ac_delim
23063 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23065 CFLAGS!$CFLAGS$ac_delim
23066 LDFLAGS!$LDFLAGS$ac_delim
23067 CPPFLAGS!$CPPFLAGS$ac_delim
23068 ac_ct_CC!$ac_ct_CC$ac_delim
23069 EXEEXT!$EXEEXT$ac_delim
23070 OBJEXT!$OBJEXT$ac_delim
23072 CXXFLAGS!$CXXFLAGS$ac_delim
23073 ac_ct_CXX!$ac_ct_CXX$ac_delim
23075 subdirs!$subdirs$ac_delim
23076 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23077 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23078 build!$build$ac_delim
23079 build_cpu!$build_cpu$ac_delim
23080 build_vendor!$build_vendor$ac_delim
23081 build_os!$build_os$ac_delim
23082 host!$host$ac_delim
23083 host_cpu!$host_cpu$ac_delim
23084 host_vendor!$host_vendor$ac_delim
23085 host_os!$host_os$ac_delim
23086 target!$target$ac_delim
23087 target_cpu!$target_cpu$ac_delim
23088 target_vendor!$target_vendor$ac_delim
23089 target_os!$target_os$ac_delim
23091 HOST_OS!$HOST_OS$ac_delim
23092 TARGET_OS!$TARGET_OS$ac_delim
23093 LINKALL!$LINKALL$ac_delim
23094 NOLINKALL!$NOLINKALL$ac_delim
23095 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23096 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23097 ARCH!$ARCH$ac_delim
23098 HOST_ARCH!$HOST_ARCH$ac_delim
23099 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23100 BUILD_CC!$BUILD_CC$ac_delim
23101 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23102 BUILD_CXX!$BUILD_CXX$ac_delim
23103 CVSBUILD!$CVSBUILD$ac_delim
23104 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23105 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23106 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23107 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23108 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23109 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23110 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23111 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23112 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23113 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23114 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23115 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23116 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23117 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23118 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23120 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23121 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23122 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23125 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23127 elif $ac_last_try; then
23128 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23130 { (exit 1); exit 1; }; }
23132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23137 if test -n "$ac_eof"; then
23138 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23139 ac_eof=`expr $ac_eof + 1`
23142 cat >>$CONFIG_STATUS <<_ACEOF
23143 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23148 s/^/s,@/; s/!/@,|#_!!_#|/
23151 s/'"$ac_delim"'$/,g/; t
23153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23154 ' >>$CONFIG_STATUS <conf$$subs.sed
23155 rm -f conf$$subs.sed
23156 cat >>$CONFIG_STATUS <<_ACEOF
23162 for ac_last_try in false false false false false :; do
23163 cat >conf$$subs.sed <<_ACEOF
23164 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23165 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23166 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23167 ENABLE_PIC!$ENABLE_PIC$ac_delim
23168 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23169 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23170 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23171 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23172 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23173 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23174 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23175 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23176 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23177 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23178 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23179 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23180 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23181 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23183 ifGNUmake!$ifGNUmake$ac_delim
23184 LN_S!$LN_S$ac_delim
23187 DATE!$DATE$ac_delim
23188 FIND!$FIND$ac_delim
23189 GREP!$GREP$ac_delim
23190 MKDIR!$MKDIR$ac_delim
23192 RANLIB!$RANLIB$ac_delim
23197 BINPWD!$BINPWD$ac_delim
23198 GRAPHVIZ!$GRAPHVIZ$ac_delim
23201 NEATO!$NEATO$ac_delim
23202 TWOPI!$TWOPI$ac_delim
23203 CIRCO!$CIRCO$ac_delim
23205 DOTTY!$DOTTY$ac_delim
23206 XDOT!$XDOT$ac_delim
23207 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23208 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23209 INSTALL_DATA!$INSTALL_DATA$ac_delim
23210 BZIP2!$BZIP2$ac_delim
23212 DOXYGEN!$DOXYGEN$ac_delim
23213 GROFF!$GROFF$ac_delim
23214 GZIPBIN!$GZIPBIN$ac_delim
23215 PDFROFF!$PDFROFF$ac_delim
23217 OCAMLC!$OCAMLC$ac_delim
23218 OCAMLOPT!$OCAMLOPT$ac_delim
23219 OCAMLDEP!$OCAMLDEP$ac_delim
23220 OCAMLDOC!$OCAMLDOC$ac_delim
23222 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23223 EGREP!$EGREP$ac_delim
23224 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23225 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23226 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23227 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23228 LIBADD_DL!$LIBADD_DL$ac_delim
23229 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23230 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23231 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23232 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23233 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23234 PYTHON!$PYTHON$ac_delim
23235 USE_UDIS86!$USE_UDIS86$ac_delim
23236 USE_OPROFILE!$USE_OPROFILE$ac_delim
23237 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23238 XML2CONFIG!$XML2CONFIG$ac_delim
23239 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23240 LIBXML2_INC!$LIBXML2_INC$ac_delim
23241 CXXCPP!$CXXCPP$ac_delim
23242 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23243 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23244 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23245 MMAP_FILE!$MMAP_FILE$ac_delim
23246 SHLIBEXT!$SHLIBEXT$ac_delim
23247 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23248 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23249 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23250 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23251 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23252 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23253 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23254 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23255 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23256 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23257 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23258 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23259 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23260 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23263 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23265 elif $ac_last_try; then
23266 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23268 { (exit 1); exit 1; }; }
23270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23275 if test -n "$ac_eof"; then
23276 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23277 ac_eof=`expr $ac_eof + 1`
23280 cat >>$CONFIG_STATUS <<_ACEOF
23281 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23286 s/^/s,@/; s/!/@,|#_!!_#|/
23289 s/'"$ac_delim"'$/,g/; t
23291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23292 ' >>$CONFIG_STATUS <conf$$subs.sed
23293 rm -f conf$$subs.sed
23294 cat >>$CONFIG_STATUS <<_ACEOF
23300 for ac_last_try in false false false false false :; do
23301 cat >conf$$subs.sed <<_ACEOF
23302 RPATH!$RPATH$ac_delim
23303 RDYNAMIC!$RDYNAMIC$ac_delim
23304 program_prefix!$program_prefix$ac_delim
23305 LIBOBJS!$LIBOBJS$ac_delim
23306 LTLIBOBJS!$LTLIBOBJS$ac_delim
23309 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23311 elif $ac_last_try; then
23312 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23313 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23314 { (exit 1); exit 1; }; }
23316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23320 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23321 if test -n "$ac_eof"; then
23322 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23323 ac_eof=`expr $ac_eof + 1`
23326 cat >>$CONFIG_STATUS <<_ACEOF
23327 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23328 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23331 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23332 s/^/s,@/; s/!/@,|#_!!_#|/
23335 s/'"$ac_delim"'$/,g/; t
23337 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23338 ' >>$CONFIG_STATUS <conf$$subs.sed
23339 rm -f conf$$subs.sed
23340 cat >>$CONFIG_STATUS <<_ACEOF
23347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23349 # trailing colons and then remove the whole line if VPATH becomes empty
23350 # (actually we leave an empty line to preserve line numbers).
23351 if test "x$srcdir" = x.; then
23352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23353 s/:*\$(srcdir):*/:/
23354 s/:*\${srcdir}:*/:/
23356 s/^\([^=]*=[ ]*\):*/\1/
23362 cat >>$CONFIG_STATUS <<\_ACEOF
23363 fi # test -n "$CONFIG_FILES"
23366 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23369 :[FHLC]) ac_mode=$ac_tag; continue;;
23371 case $ac_mode$ac_tag in
23373 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23374 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23375 { (exit 1); exit 1; }; };;
23376 :[FH]-) ac_tag=-:-;;
23377 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23394 -) ac_f="$tmp/stdin";;
23395 *) # Look for the file first in the build tree, then in the source tree
23396 # (if the path is not absolute). The absolute path cannot be DOS-style,
23397 # because $ac_f cannot contain `:'.
23401 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23403 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23404 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23405 { (exit 1); exit 1; }; };;
23407 ac_file_inputs="$ac_file_inputs $ac_f"
23410 # Let's still pretend it is `configure' which instantiates (i.e., don't
23411 # use $as_me), people would be surprised to read:
23412 # /* config.h. Generated by config.status. */
23413 configure_input="Generated from "`IFS=:
23414 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23415 if test x"$ac_file" != x-; then
23416 configure_input="$ac_file. $configure_input"
23417 { echo "$as_me:$LINENO: creating $ac_file" >&5
23418 echo "$as_me: creating $ac_file" >&6;}
23422 *:-:* | *:-) cat >"$tmp/stdin";;
23427 ac_dir=`$as_dirname -- "$ac_file" ||
23428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23429 X"$ac_file" : 'X\(//\)[^/]' \| \
23430 X"$ac_file" : 'X\(//\)$' \| \
23431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23437 /^X\(\/\/\)[^/].*/{
23452 -*) as_dir=./$as_dir;;
23454 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23458 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23459 *) as_qdir=$as_dir;;
23461 as_dirs="'$as_qdir' $as_dirs"
23462 as_dir=`$as_dirname -- "$as_dir" ||
23463 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23464 X"$as_dir" : 'X\(//\)[^/]' \| \
23465 X"$as_dir" : 'X\(//\)$' \| \
23466 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23472 /^X\(\/\/\)[^/].*/{
23485 test -d "$as_dir" && break
23487 test -z "$as_dirs" || eval "mkdir $as_dirs"
23488 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23489 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23490 { (exit 1); exit 1; }; }; }
23494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23497 # A ".." for each directory in $ac_dir_suffix.
23498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23499 case $ac_top_builddir_sub in
23500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23504 ac_abs_top_builddir=$ac_pwd
23505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23506 # for backward compatibility:
23507 ac_top_builddir=$ac_top_build_prefix
23510 .) # We are building in place.
23512 ac_top_srcdir=$ac_top_builddir_sub
23513 ac_abs_top_srcdir=$ac_pwd ;;
23514 [\\/]* | ?:[\\/]* ) # Absolute name.
23515 ac_srcdir=$srcdir$ac_dir_suffix;
23516 ac_top_srcdir=$srcdir
23517 ac_abs_top_srcdir=$srcdir ;;
23518 *) # Relative name.
23519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23520 ac_top_srcdir=$ac_top_build_prefix$srcdir
23521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23533 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23534 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23538 cat >>$CONFIG_STATUS <<\_ACEOF
23539 # If the template does not know about datarootdir, expand it.
23540 # FIXME: This hack should be removed a few years after 2.60.
23541 ac_datarootdir_hack=; ac_datarootdir_seen=
23543 case `sed -n '/datarootdir/ {
23552 ' $ac_file_inputs` in
23553 *datarootdir*) ac_datarootdir_seen=yes;;
23554 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23556 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23558 cat >>$CONFIG_STATUS <<_ACEOF
23559 ac_datarootdir_hack='
23560 s&@datadir@&$datadir&g
23561 s&@docdir@&$docdir&g
23562 s&@infodir@&$infodir&g
23563 s&@localedir@&$localedir&g
23564 s&@mandir@&$mandir&g
23565 s&\\\${datarootdir}&$datarootdir&g' ;;
23569 # Neutralize VPATH when `$srcdir' = `.'.
23570 # Shell code in configure.ac might set extrasub.
23571 # FIXME: do we really want to maintain this feature?
23572 cat >>$CONFIG_STATUS <<_ACEOF
23576 cat >>$CONFIG_STATUS <<\_ACEOF
23578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23579 s&@configure_input@&$configure_input&;t t
23580 s&@top_builddir@&$ac_top_builddir_sub&;t t
23581 s&@srcdir@&$ac_srcdir&;t t
23582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23583 s&@top_srcdir@&$ac_top_srcdir&;t t
23584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23585 s&@builddir@&$ac_builddir&;t t
23586 s&@abs_builddir@&$ac_abs_builddir&;t t
23587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23588 s&@INSTALL@&$ac_INSTALL&;t t
23589 $ac_datarootdir_hack
23590 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23592 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23593 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23594 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23595 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23596 which seems to be undefined. Please make sure it is defined." >&5
23597 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23598 which seems to be undefined. Please make sure it is defined." >&2;}
23602 -) cat "$tmp/out"; rm -f "$tmp/out";;
23603 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23612 # Transform confdefs.h into a sed script `conftest.defines', that
23613 # substitutes the proper values into config.h.in to produce config.h.
23614 rm -f conftest.defines conftest.tail
23615 # First, append a space to every undef/define line, to ease matching.
23616 echo 's/$/ /' >conftest.defines
23617 # Then, protect against being on the right side of a sed subst, or in
23618 # an unquoted here document, in config.status. If some macros were
23619 # called several times there might be several #defines for the same
23620 # symbol, which is useless. But do not sort them, since the last
23621 # AC_DEFINE must be honored.
23622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23623 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23624 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23625 # PARAMS is the parameter list in the macro definition--in most cases, it's
23626 # just an empty string.
23627 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23628 ac_dB='\\)[ (].*,\\1define\\2'
23636 s/^[ ]*#[ ]*define[ ][ ]*//
23641 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23642 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23643 ' >>conftest.defines
23645 # Remove the space that was appended to ease matching.
23646 # Then replace #undef with comments. This is necessary, for
23647 # example, in the case of _POSIX_SOURCE, which is predefined and required
23648 # on some systems where configure will not decide to define it.
23649 # (The regexp can be short, since the line contains either #define or #undef.)
23651 s,^[ #]*u.*,/* & */,' >>conftest.defines
23653 # Break up conftest.defines:
23654 ac_max_sed_lines=50
23656 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23657 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23658 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23660 ac_in='$ac_file_inputs'
23661 ac_out='"$tmp/out1"'
23662 ac_nxt='"$tmp/out2"'
23666 # Write a here document:
23667 cat >>$CONFIG_STATUS <<_ACEOF
23668 # First, check the format of the line:
23669 cat >"\$tmp/defines.sed" <<\\CEOF
23670 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23671 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23675 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23677 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23678 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23679 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23680 grep . conftest.tail >/dev/null || break
23681 rm -f conftest.defines
23682 mv conftest.tail conftest.defines
23684 rm -f conftest.defines conftest.tail
23686 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23688 if test x"$ac_file" != x-; then
23689 echo "/* $configure_input */" >"$tmp/config.h"
23690 cat "$ac_result" >>"$tmp/config.h"
23691 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23692 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23693 echo "$as_me: $ac_file is unchanged" >&6;}
23696 mv "$tmp/config.h" $ac_file
23699 echo "/* $configure_input */"
23705 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23706 echo "$as_me: executing $ac_file commands" >&6;}
23711 case $ac_file$ac_mode in
23712 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23713 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23714 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23715 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23716 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23717 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23718 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23719 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23720 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23721 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23722 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23723 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23724 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23725 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23726 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23727 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23728 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23729 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23730 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23731 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23732 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23733 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23734 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23735 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23741 { (exit 0); exit 0; }
23743 chmod +x $CONFIG_STATUS
23744 ac_clean_files=$ac_clean_files_save
23747 # configure is writing to config.log, and then calls config.status.
23748 # config.status does its own redirection, appending to config.log.
23749 # Unfortunately, on DOS this fails, as config.log is still kept open
23750 # by configure, so config.status won't be able to write to it; its
23751 # output is simply discarded. So we exec the FD to /dev/null,
23752 # effectively closing config.log, so it can be properly (re)opened and
23753 # appended to by config.status. When coming back to configure, we
23754 # need to make the FD available again.
23755 if test "$no_create" != yes; then
23757 ac_config_status_args=
23758 test "$silent" = yes &&
23759 ac_config_status_args="$ac_config_status_args --quiet"
23761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23764 # would make configure fail if this is the last instruction.
23765 $ac_cs_success || { (exit 1); exit 1; }
23769 # CONFIG_SUBDIRS section.
23771 if test "$no_recursion" != yes; then
23773 # Remove --cache-file and --srcdir arguments so they do not pile up.
23774 ac_sub_configure_args=
23776 eval "set x $ac_configure_args"
23780 if test -n "$ac_prev"; then
23785 -cache-file | --cache-file | --cache-fil | --cache-fi \
23786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23787 ac_prev=cache_file ;;
23788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23792 --config-cache | -C)
23794 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23796 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23798 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23800 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23804 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23806 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23810 # Always prepend --prefix to ensure using the same prefix
23811 # in subdir configurations.
23812 ac_arg="--prefix=$prefix"
23814 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23816 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23819 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23821 # Do not complain, so a configure script can configure whichever
23822 # parts of a large source tree are present.
23823 test -d "$srcdir/$ac_dir" || continue
23825 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23826 echo "$as_me:$LINENO: $ac_msg" >&5
23830 -*) as_dir=./$as_dir;;
23832 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23836 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23837 *) as_qdir=$as_dir;;
23839 as_dirs="'$as_qdir' $as_dirs"
23840 as_dir=`$as_dirname -- "$as_dir" ||
23841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23842 X"$as_dir" : 'X\(//\)[^/]' \| \
23843 X"$as_dir" : 'X\(//\)$' \| \
23844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23850 /^X\(\/\/\)[^/].*/{
23863 test -d "$as_dir" && break
23865 test -z "$as_dirs" || eval "mkdir $as_dirs"
23866 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23867 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23868 { (exit 1); exit 1; }; }; }
23872 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23875 # A ".." for each directory in $ac_dir_suffix.
23876 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23877 case $ac_top_builddir_sub in
23878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23882 ac_abs_top_builddir=$ac_pwd
23883 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23884 # for backward compatibility:
23885 ac_top_builddir=$ac_top_build_prefix
23888 .) # We are building in place.
23890 ac_top_srcdir=$ac_top_builddir_sub
23891 ac_abs_top_srcdir=$ac_pwd ;;
23892 [\\/]* | ?:[\\/]* ) # Absolute name.
23893 ac_srcdir=$srcdir$ac_dir_suffix;
23894 ac_top_srcdir=$srcdir
23895 ac_abs_top_srcdir=$srcdir ;;
23896 *) # Relative name.
23897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23898 ac_top_srcdir=$ac_top_build_prefix$srcdir
23899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23901 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23906 # Check for guested configure; otherwise get Cygnus style configure.
23907 if test -f "$ac_srcdir/configure.gnu"; then
23908 ac_sub_configure=$ac_srcdir/configure.gnu
23909 elif test -f "$ac_srcdir/configure"; then
23910 ac_sub_configure=$ac_srcdir/configure
23911 elif test -f "$ac_srcdir/configure.in"; then
23912 # This should be Cygnus configure.
23913 ac_sub_configure=$ac_aux_dir/configure
23915 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23916 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23920 # The recursion is here.
23921 if test -n "$ac_sub_configure"; then
23922 # Make the cache file name correct relative to the subdirectory.
23923 case $cache_file in
23924 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23925 *) # Relative name.
23926 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23929 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23930 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23931 # The eval makes quoting arguments work.
23932 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23933 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23934 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23935 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23936 { (exit 1); exit 1; }; }