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/llvm-gcc
821 projects/llvm-poolalloc
824 projects/llvm-stacker
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-libcpp Use libc++ if available (default is NO)
1407 --enable-cxx11 Use c++11 if available (default is NO)
1408 --enable-split-dwarf Use split-dwarf if available (default is NO)
1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1410 --enable-clang-static-analyzer
1411 Enable building of clang Static Analyzer (default is
1413 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414 --enable-optimized Compile with optimizations enabled (default is NO)
1415 --enable-profiling Compile with profiling enabled (default is NO)
1416 --enable-assertions Compile with assertion checks enabled (default is
1418 --enable-werror Compile with -Werror enabled (default is NO)
1419 --enable-expensive-checks
1420 Compile with expensive debug checks enabled (default
1422 --enable-debug-runtime Build runtime libs with debug symbols (default is
1424 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1425 optimization is on and YES if it's off)
1426 --enable-keep-symbols Do not strip installed executables)
1427 --enable-jit Enable Just In Time Compiling (default is YES)
1428 --enable-docs Build documents (default is YES)
1429 --enable-doxygen Build doxygen documentation (default is NO)
1430 --enable-threads Use threads if available (default is YES)
1431 --enable-pthreads Use pthreads if available (default is YES)
1432 --enable-zlib Use zlib for compression/decompression if available
1434 --enable-pic Build LLVM with Position Independent Code (default
1436 --enable-shared Build a shared library and link tools against it
1438 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1439 Win32 DLL (default is NO)
1440 --enable-timestamps Enable embedding timestamp information in build
1442 --enable-backtraces Enable embedding backtraces on crash (default is
1444 --enable-crash-overrides
1445 Enable crash handling overrides (default is YES)
1446 --enable-targets Build specific host targets: all or
1447 target1,target2,... Valid targets are: host, x86,
1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449 xcore, msp430, nvptx, systemz, r600, and cpp
1451 --enable-experimental-targets
1452 Build experimental host targets: disable or
1453 target1,target2,... (default=disable)
1454 --enable-bindings Build specific language bindings:
1455 all,auto,none,{binding-name} (default=auto)
1456 --enable-terminfo Query the terminfo database if available (default is
1458 --enable-libffi Check for the presence of libffi (default is NO)
1459 --enable-ltdl-install install libltdl
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-optimize-option Select the compiler options to use for optimized
1466 --with-extra-options Specify additional options to compile LLVM with
1467 --with-extra-ld-options Specify additional options to link LLVM with
1468 --with-ocaml-libdir Specify install location for ocaml bindings (default
1470 --with-clang-srcdir Directory to the out-of-tree Clang source
1471 --with-clang-resource-dir
1472 Relative directory from the Clang binary for
1474 --with-c-include-dirs Colon separated list of directories clang will
1476 --with-gcc-toolchain Directory where gcc is installed.
1477 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1478 --with-binutils-include Specify path to binutils/include/ containing
1479 plugin-api.h file for gold plugin.
1480 --with-bug-report-url Specify the URL where bug reports should be
1481 submitted (default=http://llvm.org/bugs/)
1482 --with-internal-prefix Installation directory for internal files
1483 --with-python path to python
1484 --with-udis86=<path> Use udis86 external x86 disassembler library
1485 --with-oprofile=<prefix>
1486 Tell OProfile >= 0.9.4 how to symbolize JIT output
1487 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 CXX C++ compiler command
1498 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 Report bugs to <http://llvm.org/bugs/>.
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1533 .) # We are building in place.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1566 LLVM configure 3.5svn
1567 generated by GNU Autoconf 2.60
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1574 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1582 It was created by LLVM $as_me 3.5svn, which was
1583 generated by GNU Autoconf 2.60. Invocation command line was
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_must_keep_next=false
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 -* ) ac_must_keep_next=true ;;
1675 ac_configure_args="$ac_configure_args '$ac_arg'"
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log. We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1699 # The following way of writing the cache mishandles newlines in values,
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1736 for ac_var in $ac_subst_vars
1738 eval ac_val=\$$ac_var
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 echo "$ac_var='\''$ac_val'\''"
1746 if test -n "$ac_subst_files"; then
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1753 for ac_var in $ac_subst_files
1755 eval ac_val=\$$ac_var
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 echo "$ac_var='\''$ac_val'\''"
1764 if test -s confdefs.h; then
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1838 if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1855 # Check that the precious variables saved in the cache have kept the same
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
1863 case $ac_old_set,$ac_new_set in
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878 echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880 echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 cat >>confdefs.h <<\_ACEOF
1937 #define LLVM_VERSION_MAJOR 3
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MINOR 5
1946 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1955 for ac_dir in autoconf "$srcdir"/autoconf; do
1956 if test -f "$ac_dir/install-sh"; then
1958 ac_install_sh="$ac_aux_dir/install-sh -c"
1960 elif test -f "$ac_dir/install.sh"; then
1962 ac_install_sh="$ac_aux_dir/install.sh -c"
1964 elif test -f "$ac_dir/shtool"; then
1966 ac_install_sh="$ac_aux_dir/shtool install -c"
1970 if test -z "$ac_aux_dir"; then
1971 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1972 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1973 { (exit 1); exit 1; }; }
1976 # These three variables are undocumented and unsupported,
1977 # and are intended to be withdrawn in a future Autoconf release.
1978 # They can cause serious problems if a builder's source tree is in a directory
1979 # whose full name contains unusual characters.
1980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1986 if test ${srcdir} != "." ; then
1987 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1988 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1989 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1990 { (exit 1); exit 1; }; }
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 for ac_prog in clang llvm-gcc gcc
2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$CC"; then
2013 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 if test -n "$CC"; then
2034 { echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6; }
2037 { echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6; }
2042 test -n "$CC" && break
2045 if test -z "$CC"; then
2047 for ac_prog in clang llvm-gcc gcc
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 ac_cv_prog_ac_ct_CC="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6; }
2081 { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2086 test -n "$ac_ct_CC" && break
2089 if test "x$ac_ct_CC" = x; then
2092 case $cross_compiling:$ac_tool_warned in
2094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2095 whose name does not start with the host triplet. If you think this
2096 configuration is useful to you, please write to autoconf@gnu.org." >&5
2097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2098 whose name does not start with the host triplet. If you think this
2099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2100 ac_tool_warned=yes ;;
2107 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: no acceptable C compiler found in \$PATH
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO: checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (ac_try="$ac_compiler --version >&5"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler --version >&5") 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (ac_try="$ac_compiler -v >&5"
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compiler -v >&5") 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (ac_try="$ac_compiler -V >&5"
2138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139 *) ac_try_echo=$ac_try;;
2141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2142 (eval "$ac_compiler -V >&5") 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.$ac_ext <<_ACEOF
2150 cat confdefs.h >>conftest.$ac_ext
2151 cat >>conftest.$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save=$ac_clean_files
2163 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2169 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171 # List of possible output files, starting from the most likely.
2172 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2173 # only as a last resort. b.out is created by i960 compilers.
2174 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2176 # The IRIX 6 linker writes into existing files which may not be
2177 # executable, retaining their permissions. Remove them first so a
2178 # subsequent execution test works.
2180 for ac_file in $ac_files
2183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2189 if { (ac_try="$ac_link_default"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_link_default") 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; then
2199 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2200 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2201 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2202 # so that the user can short-circuit this test for compilers unknown to
2204 for ac_file in $ac_files
2206 test -f "$ac_file" || continue
2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2211 # We found the default executable, but exeext='' is most
2215 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2217 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 # We set ac_cv_exeext here because the later test for it is not
2220 # safe: cross compilers may not add the suffix if given an `-o'
2221 # argument, so we may need to know it at that point already.
2222 # Even if this section looks crufty: it has the advantage of
2229 test "$ac_cv_exeext" = no && ac_cv_exeext=
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: C compiler cannot create executables
2238 See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2242 ac_exeext=$ac_cv_exeext
2243 { echo "$as_me:$LINENO: result: $ac_file" >&5
2244 echo "${ECHO_T}$ac_file" >&6; }
2246 # Check that the compiler produces executables we can run. If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2250 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251 # If not cross compiling, check that we can run a simple program.
2252 if test "$cross_compiling" != yes; then
2253 if { ac_try='./$ac_file'
2254 { (case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_try") 2>&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 if test "$cross_compiling" = maybe; then
2268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2269 If you meant to cross compile, use \`--host'.
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot run C compiled programs.
2272 If you meant to cross compile, use \`--host'.
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2281 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2282 ac_clean_files=$ac_clean_files_save
2283 # Check that the compiler produces executables we can run. If not, either
2284 # the compiler is broken, or we cross compile.
2285 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2286 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2287 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2288 echo "${ECHO_T}$cross_compiling" >&6; }
2290 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2291 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2292 if { (ac_try="$ac_link"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_link") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; then
2302 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2303 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2304 # work properly (i.e., refer to `conftest.exe'), while it won't with
2306 for ac_file in conftest.exe conftest conftest.*; do
2307 test -f "$ac_file" || continue
2309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2319 See \`config.log' for more details." >&2;}
2320 { (exit 1); exit 1; }; }
2323 rm -f conftest$ac_cv_exeext
2324 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2325 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2330 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2331 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2332 if test "${ac_cv_objext+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2350 rm -f conftest.o conftest.obj
2351 if { (ac_try="$ac_compile"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compile") 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; then
2361 for ac_file in conftest.o conftest.obj conftest.*; do
2362 test -f "$ac_file" || continue;
2364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2373 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2376 See \`config.log' for more details." >&2;}
2377 { (exit 1); exit 1; }; }
2380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2382 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2383 echo "${ECHO_T}$ac_cv_objext" >&6; }
2384 OBJEXT=$ac_cv_objext
2386 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2387 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2388 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 cat >conftest.$ac_ext <<_ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h. */
2409 rm -f conftest.$ac_objext
2410 if { (ac_try="$ac_compile"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_compile") 2>conftest.er1
2418 grep -v '^ *+' conftest.er1 >conftest.err
2420 cat conftest.err >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); } &&
2423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2424 { (case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_try") 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
2434 { (case "(($ac_try" in
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_try") 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2457 GCC=`test $ac_compiler_gnu = yes && echo yes`
2458 ac_test_CFLAGS=${CFLAGS+set}
2459 ac_save_CFLAGS=$CFLAGS
2460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_cc_g+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 ac_save_c_werror_flag=$ac_c_werror_flag
2466 ac_c_werror_flag=yes
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.$ac_objext
2485 if { (ac_try="$ac_compile"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>conftest.er1
2493 grep -v '^ *+' conftest.er1 >conftest.err
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } &&
2498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2499 { (case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_try") 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; } &&
2508 { ac_try='test -s conftest.$ac_objext'
2509 { (case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_try") 2>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; }; then
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2524 cat >conftest.$ac_ext <<_ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2539 rm -f conftest.$ac_objext
2540 if { (ac_try="$ac_compile"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_compile") 2>conftest.er1
2548 grep -v '^ *+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_try") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_c_werror_flag=$ac_save_c_werror_flag
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (ac_try="$ac_compile"
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_compile") 2>conftest.er1
2604 grep -v '^ *+' conftest.er1 >conftest.err
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2610 { (case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_try") 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625 (eval "$ac_try") 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_try") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 ac_cv_prog_cc_c89=$ac_arg
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f core conftest.err conftest.$ac_objext
2774 test "x$ac_cv_prog_cc_c89" != "xno" && break
2776 rm -f conftest.$ac_ext
2781 case "x$ac_cv_prog_cc_c89" in
2783 { echo "$as_me:$LINENO: result: none needed" >&5
2784 echo "${ECHO_T}none needed" >&6; } ;;
2786 { echo "$as_me:$LINENO: result: unsupported" >&5
2787 echo "${ECHO_T}unsupported" >&6; } ;;
2789 CC="$CC $ac_cv_prog_cc_c89"
2790 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 ac_cpp='$CXXCPP $CPPFLAGS'
2803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2806 if test -z "$CXX"; then
2807 if test -n "$CCC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 for ac_prog in clang++ llvm-g++ g++
2813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_CXX+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$CXX"; then
2821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 if test -n "$CXX"; then
2842 { echo "$as_me:$LINENO: result: $CXX" >&5
2843 echo "${ECHO_T}$CXX" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2850 test -n "$CXX" && break
2853 if test -z "$CXX"; then
2855 for ac_prog in clang++ llvm-g++ g++
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$ac_ct_CXX"; then
2865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_ac_ct_CXX="$ac_prog"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2885 if test -n "$ac_ct_CXX"; then
2886 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2887 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2889 { echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6; }
2894 test -n "$ac_ct_CXX" && break
2897 if test "x$ac_ct_CXX" = x; then
2900 case $cross_compiling:$ac_tool_warned in
2902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2903 whose name does not start with the host triplet. If you think this
2904 configuration is useful to you, please write to autoconf@gnu.org." >&5
2905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet. If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2908 ac_tool_warned=yes ;;
2916 # Provide some information about the compiler.
2917 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2918 ac_compiler=`set X $ac_compile; echo $2`
2919 { (ac_try="$ac_compiler --version >&5"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compiler --version >&5") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler -v >&5") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2939 { (ac_try="$ac_compiler -V >&5"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compiler -V >&5") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }
2950 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2951 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2952 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compile") 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_try") 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; }; then
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3019 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3020 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3021 GXX=`test $ac_compiler_gnu = yes && echo yes`
3022 ac_test_CXXFLAGS=${CXXFLAGS+set}
3023 ac_save_CXXFLAGS=$CXXFLAGS
3024 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3025 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3026 if test "${ac_cv_prog_cxx_g+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3030 ac_cxx_werror_flag=yes
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3057 grep -v '^ *+' conftest.er1 >conftest.err
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; } &&
3072 { ac_try='test -s conftest.$ac_objext'
3073 { (case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_try") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_prog_cxx_g=yes
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3088 cat >conftest.$ac_ext <<_ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h. */
3103 rm -f conftest.$ac_objext
3104 if { (ac_try="$ac_compile"
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_compile") 2>conftest.er1
3112 grep -v '^ *+' conftest.er1 >conftest.err
3114 cat conftest.err >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); } &&
3117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }; }; then
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; } &&
3183 { ac_try='test -s conftest.$ac_objext'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 ac_cv_prog_cxx_g=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213 CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215 if test "$GXX" = yes; then
3221 if test "$GXX" = yes; then
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3244 if test -z "$CPP"; then
3245 if test "${ac_cv_prog_CPP+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 # Double quotes because CPP needs to be expanded
3249 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3267 # include <limits.h>
3269 # include <assert.h>
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } >/dev/null; then
3286 if test -s conftest.err; then
3287 ac_cpp_err=$ac_c_preproc_warn_flag
3288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 if test -z "$ac_cpp_err"; then
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 # Broken: fails on valid input.
3305 rm -f conftest.err conftest.$ac_ext
3307 # OK, works on sane cases. Now check whether nonexistent headers
3308 # can be detected and how.
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <ac_nonexistent.h>
3317 if { (ac_try="$ac_cpp conftest.$ac_ext"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } >/dev/null; then
3330 if test -s conftest.err; then
3331 ac_cpp_err=$ac_c_preproc_warn_flag
3332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3339 if test -z "$ac_cpp_err"; then
3340 # Broken: success on invalid input.
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3346 # Passes both tests.
3351 rm -f conftest.err conftest.$ac_ext
3354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355 rm -f conftest.err conftest.$ac_ext
3356 if $ac_preproc_ok; then
3368 { echo "$as_me:$LINENO: result: $CPP" >&5
3369 echo "${ECHO_T}$CPP" >&6; }
3371 for ac_c_preproc_warn_flag in '' yes
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3386 # include <limits.h>
3388 # include <assert.h>
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Broken: fails on valid input.
3424 rm -f conftest.err conftest.$ac_ext
3426 # OK, works on sane cases. Now check whether nonexistent headers
3427 # can be detected and how.
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 if test -z "$ac_cpp_err"; then
3459 # Broken: success on invalid input.
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Passes both tests.
3470 rm -f conftest.err conftest.$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3481 See \`config.log' for more details." >&2;}
3482 { (exit 1); exit 1; }; }
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 if test "$CXX" = "clang++" ; then
3493 { echo "$as_me:$LINENO: checking whether clang works" >&5
3494 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3496 ac_cpp='$CXXCPP $CPPFLAGS'
3497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3509 #if __has_include (<cxxabi.h>)
3512 #if __has_include (<unwind.h>)
3524 rm -f conftest.$ac_objext
3525 if { (ac_try="$ac_compile"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_compile") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3539 { (case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_try") 2>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_try") 2>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 { echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6; }
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3567 { echo "$as_me:$LINENO: result: no" >&5
3568 echo "${ECHO_T}no" >&6; }
3569 { { 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
3570 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;}
3571 { (exit 1); exit 1; }; }
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 if test -d ${srcdir}/projects/llvm-gcc ; then
3587 subdirs="$subdirs projects/llvm-gcc"
3591 if test -d ${srcdir}/projects/test-suite ; then
3592 subdirs="$subdirs projects/test-suite"
3596 if test -d ${srcdir}/projects/llvm-test ; then
3597 subdirs="$subdirs projects/llvm-test"
3601 if test -d ${srcdir}/projects/poolalloc ; then
3602 subdirs="$subdirs projects/poolalloc"
3606 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3607 subdirs="$subdirs projects/llvm-poolalloc"
3611 for i in `ls ${srcdir}/projects`
3613 if test -d ${srcdir}/projects/${i} ; then
3615 sample) subdirs="$subdirs projects/sample"
3617 privbracket) subdirs="$subdirs projects/privbracket"
3619 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3621 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3623 llvm-java) subdirs="$subdirs projects/llvm-java"
3625 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3627 safecode) subdirs="$subdirs projects/safecode"
3629 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3638 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3639 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3645 # Check whether --enable-polly was given.
3646 if test "${enable_polly+set}" = set; then
3647 enableval=$enable_polly;
3652 case "$enableval" in
3657 default) ENABLE_POLLY=1
3659 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3660 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3661 { (exit 1); exit 1; }; } ;;
3665 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3668 subdirs="$subdirs tools/polly"
3673 # Make sure we can run config.sub.
3674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3675 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3677 { (exit 1); exit 1; }; }
3679 { echo "$as_me:$LINENO: checking build system type" >&5
3680 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3681 if test "${ac_cv_build+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 ac_build_alias=$build_alias
3685 test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687 test "x$ac_build_alias" = x &&
3688 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3690 { (exit 1); exit 1; }; }
3691 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3692 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3694 { (exit 1); exit 1; }; }
3697 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698 echo "${ECHO_T}$ac_cv_build" >&6; }
3699 case $ac_cv_build in
3701 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702 echo "$as_me: error: invalid value of canonical build" >&2;}
3703 { (exit 1); exit 1; }; };;
3706 ac_save_IFS=$IFS; IFS='-'
3712 # Remember, the first character of IFS is used to create $*,
3713 # except with old shells:
3716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3719 { echo "$as_me:$LINENO: checking host system type" >&5
3720 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3721 if test "${ac_cv_host+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test "x$host_alias" = x; then
3725 ac_cv_host=$ac_cv_build
3727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3728 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3730 { (exit 1); exit 1; }; }
3734 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735 echo "${ECHO_T}$ac_cv_host" >&6; }
3738 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739 echo "$as_me: error: invalid value of canonical host" >&2;}
3740 { (exit 1); exit 1; }; };;
3743 ac_save_IFS=$IFS; IFS='-'
3749 # Remember, the first character of IFS is used to create $*,
3750 # except with old shells:
3753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3756 { echo "$as_me:$LINENO: checking target system type" >&5
3757 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3758 if test "${ac_cv_target+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 if test "x$target_alias" = x; then
3762 ac_cv_target=$ac_cv_host
3764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3765 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3766 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3767 { (exit 1); exit 1; }; }
3771 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3772 echo "${ECHO_T}$ac_cv_target" >&6; }
3773 case $ac_cv_target in
3775 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3776 echo "$as_me: error: invalid value of canonical target" >&2;}
3777 { (exit 1); exit 1; }; };;
3779 target=$ac_cv_target
3780 ac_save_IFS=$IFS; IFS='-'
3786 # Remember, the first character of IFS is used to create $*,
3787 # except with old shells:
3790 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3793 # The aliases save the names the user supplied, while $host etc.
3794 # will get canonicalized.
3795 test -n "$target_alias" &&
3796 test "$program_prefix$program_suffix$program_transform_name" = \
3798 program_prefix=${target_alias}-
3800 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3801 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3802 if test "${llvm_cv_os_type+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 llvm_cv_link_all_option="-Wl,--whole-archive"
3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809 llvm_cv_os_type="AIX"
3810 llvm_cv_platform_type="Unix" ;;
3812 llvm_cv_link_all_option="-Wl,--whole-archive"
3813 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3814 llvm_cv_os_type="IRIX"
3815 llvm_cv_platform_type="Unix" ;;
3817 llvm_cv_link_all_option="-Wl,--whole-archive"
3818 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3819 llvm_cv_os_type="Cygwin"
3820 llvm_cv_platform_type="Unix" ;;
3822 llvm_cv_link_all_option="-Wl,-all_load"
3823 llvm_cv_no_link_all_option="-Wl,-noall_load"
3824 llvm_cv_os_type="Darwin"
3825 llvm_cv_platform_type="Unix" ;;
3827 llvm_cv_link_all_option="-Wl,-all_load"
3828 llvm_cv_no_link_all_option="-Wl,-noall_load"
3829 llvm_cv_os_type="Minix"
3830 llvm_cv_platform_type="Unix" ;;
3832 llvm_cv_link_all_option="-Wl,--whole-archive"
3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834 llvm_cv_os_type="FreeBSD"
3835 llvm_cv_platform_type="Unix" ;;
3837 llvm_cv_link_all_option="-Wl,--whole-archive"
3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839 llvm_cv_os_type="GNU/kFreeBSD"
3840 llvm_cv_platform_type="Unix" ;;
3842 llvm_cv_link_all_option="-Wl,--whole-archive"
3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844 llvm_cv_os_type="OpenBSD"
3845 llvm_cv_platform_type="Unix" ;;
3847 llvm_cv_link_all_option="-Wl,--whole-archive"
3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849 llvm_cv_os_type="NetBSD"
3850 llvm_cv_platform_type="Unix" ;;
3852 llvm_cv_link_all_option="-Wl,--whole-archive"
3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854 llvm_cv_os_type="DragonFly"
3855 llvm_cv_platform_type="Unix" ;;
3857 llvm_cv_link_all_option="-Wl,--whole-archive"
3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859 llvm_cv_os_type="HP-UX"
3860 llvm_cv_platform_type="Unix" ;;
3862 llvm_cv_link_all_option="-Wl,--whole-archive"
3863 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3864 llvm_cv_os_type="Interix"
3865 llvm_cv_platform_type="Unix" ;;
3867 llvm_cv_link_all_option="-Wl,--whole-archive"
3868 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3869 llvm_cv_os_type="Linux"
3870 llvm_cv_platform_type="Unix" ;;
3872 llvm_cv_link_all_option="-Wl,--whole-archive"
3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874 llvm_cv_os_type="GNU"
3875 llvm_cv_platform_type="Unix" ;;
3877 llvm_cv_link_all_option="-Wl,-z,allextract"
3878 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3879 llvm_cv_os_type="SunOS"
3880 llvm_cv_platform_type="Unix" ;;
3882 llvm_cv_link_all_option="-Wl,-z,allextract"
3883 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3884 llvm_cv_os_type="AuroraUX"
3885 llvm_cv_platform_type="Unix" ;;
3887 llvm_cv_link_all_option="-Wl,--whole-archive"
3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889 llvm_cv_os_type="Win32"
3890 llvm_cv_platform_type="Win32" ;;
3892 llvm_cv_link_all_option="-Wl,--whole-archive"
3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894 llvm_cv_os_type="MingW"
3895 llvm_cv_platform_type="Win32" ;;
3897 llvm_cv_link_all_option="-Wl,--whole-archive"
3898 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3899 llvm_cv_os_type="Haiku"
3900 llvm_cv_platform_type="Unix" ;;
3902 llvm_cv_link_all_option="-Wl,--whole-archive"
3903 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3904 llvm_cv_os_type="Freestanding"
3905 llvm_cv_platform_type="Unix" ;;
3907 llvm_cv_link_all_option="-Wl,--whole-archive"
3908 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3909 llvm_cv_os_type="Freestanding"
3910 llvm_cv_platform_type="Unix" ;;
3912 llvm_cv_link_all_option=""
3913 llvm_cv_no_link_all_option=""
3914 llvm_cv_os_type="Unknown"
3915 llvm_cv_platform_type="Unknown" ;;
3918 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3919 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3921 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3922 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3923 if test "${llvm_cv_target_os_type+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 llvm_cv_target_os_type="AIX" ;;
3930 llvm_cv_target_os_type="IRIX" ;;
3932 llvm_cv_target_os_type="Cygwin" ;;
3934 llvm_cv_target_os_type="Darwin" ;;
3936 llvm_cv_target_os_type="Minix" ;;
3938 llvm_cv_target_os_type="FreeBSD" ;;
3940 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3942 llvm_cv_target_os_type="OpenBSD" ;;
3944 llvm_cv_target_os_type="NetBSD" ;;
3946 llvm_cv_target_os_type="DragonFly" ;;
3948 llvm_cv_target_os_type="HP-UX" ;;
3950 llvm_cv_target_os_type="Interix" ;;
3952 llvm_cv_target_os_type="Linux" ;;
3954 llvm_cv_target_os_type="GNU" ;;
3956 llvm_cv_target_os_type="SunOS" ;;
3958 llvm_cv_target_os_type="AuroraUX" ;;
3960 llvm_cv_target_os_type="Win32" ;;
3962 llvm_cv_target_os_type="MingW" ;;
3964 llvm_cv_target_os_type="Haiku" ;;
3966 llvm_cv_target_os_type="RTEMS" ;;
3968 llvm_cv_target_os_type="NativeClient" ;;
3970 llvm_cv_target_os_type="Freestanding" ;;
3972 llvm_cv_target_os_type="Unknown" ;;
3975 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3976 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3978 if test "$llvm_cv_os_type" = "Unknown" ; then
3979 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3980 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3981 { (exit 1); exit 1; }; }
3986 HOST_OS=$llvm_cv_os_type
3988 TARGET_OS=$llvm_cv_target_os_type
3991 LINKALL=$llvm_cv_link_all_option
3993 NOLINKALL=$llvm_cv_no_link_all_option
3996 case $llvm_cv_platform_type in
3999 cat >>confdefs.h <<\_ACEOF
4000 #define LLVM_ON_UNIX 1
4010 cat >>confdefs.h <<\_ACEOF
4011 #define LLVM_ON_WIN32 1
4021 { echo "$as_me:$LINENO: checking target architecture" >&5
4022 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4023 if test "${llvm_cv_target_arch+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 i?86-*) llvm_cv_target_arch="x86" ;;
4028 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4029 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4030 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4031 arm*-*) llvm_cv_target_arch="ARM" ;;
4032 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4033 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4034 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4035 xcore-*) llvm_cv_target_arch="XCore" ;;
4036 msp430-*) llvm_cv_target_arch="MSP430" ;;
4037 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4038 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4039 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4040 *) llvm_cv_target_arch="Unknown" ;;
4043 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4044 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4046 if test "$llvm_cv_target_arch" = "Unknown" ; then
4047 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4048 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4051 case "$llvm_cv_target_arch" in
4052 x86) LLVM_NATIVE_ARCH="X86" ;;
4053 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4054 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4057 ARCH=$llvm_cv_target_arch
4061 i?86-*) host_arch="x86" ;;
4062 amd64-* | x86_64-*) host_arch="x86_64" ;;
4063 sparc*-*) host_arch="Sparc" ;;
4064 powerpc*-*) host_arch="PowerPC" ;;
4065 arm*-*) host_arch="ARM" ;;
4066 aarch64*-*) host_arch="AArch64" ;;
4067 mips-* | mips64-*) host_arch="Mips" ;;
4068 mipsel-* | mips64el-*) host_arch="Mips" ;;
4069 xcore-*) host_arch="XCore" ;;
4070 msp430-*) host_arch="MSP430" ;;
4071 hexagon-*) host_arch="Hexagon" ;;
4072 s390x-*) host_arch="SystemZ" ;;
4073 *) host_arch="Unknown" ;;
4076 if test "$host_arch" = "Unknown" ; then
4077 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4078 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4081 HOST_ARCH=$host_arch
4084 if test "$cross_compiling" = yes; then
4085 LLVM_CROSS_COMPILING=1
4088 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4089 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4090 if test "${ac_cv_build_exeext+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4094 ac_cv_build_exeext=.exe
4096 ac_build_prefix=${build_alias}-
4098 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4099 set dummy ${ac_build_prefix}gcc; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 if test -n "$BUILD_CC"; then
4106 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 BUILD_CC=$ac_cv_prog_BUILD_CC
4126 if test -n "$BUILD_CC"; then
4127 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4128 echo "${ECHO_T}$BUILD_CC" >&6; }
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4135 if test -z "$BUILD_CC"; then
4136 # Extract the first word of "gcc", so it can be a program name with args.
4137 set dummy gcc; ac_word=$2
4138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4140 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 if test -n "$BUILD_CC"; then
4144 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_BUILD_CC="gcc"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 BUILD_CC=$ac_cv_prog_BUILD_CC
4164 if test -n "$BUILD_CC"; then
4165 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4166 echo "${ECHO_T}$BUILD_CC" >&6; }
4168 { echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6; }
4173 if test -z "$BUILD_CC"; then
4174 # Extract the first word of "cc", so it can be a program name with args.
4175 set dummy cc; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 if test -n "$BUILD_CC"; then
4182 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4193 ac_prog_rejected=yes
4196 ac_cv_prog_BUILD_CC="cc"
4197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test $ac_prog_rejected = yes; then
4205 # We found a bogon in the path, so make sure we never use it.
4206 set dummy $ac_cv_prog_BUILD_CC
4208 if test $# != 0; then
4209 # We chose a different compiler from the bogus one.
4210 # However, it has the same basename, so the bogon will be chosen
4211 # first if we set BUILD_CC to just the basename; use the full file name.
4213 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4218 BUILD_CC=$ac_cv_prog_BUILD_CC
4219 if test -n "$BUILD_CC"; then
4220 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4221 echo "${ECHO_T}$BUILD_CC" >&6; }
4223 { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4230 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4231 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4232 { (exit 1); exit 1; }; }
4233 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4235 echo 'int main () { return 0; }' > conftest.$ac_ext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4238 (eval $ac_build_link) 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; then
4242 for file in conftest.*; do
4244 *.c | *.o | *.obj | *.dSYM) ;;
4245 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4249 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4250 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4251 { (exit 1); exit 1; }; }
4254 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4259 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4260 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4261 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4262 ac_build_exeext=$BUILD_EXEEXT
4264 ac_build_prefix=${build_alias}-
4265 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4266 set dummy ${ac_build_prefix}g++; ac_word=$2
4267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4269 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 if test -n "$BUILD_CXX"; then
4273 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4293 if test -n "$BUILD_CXX"; then
4294 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4295 echo "${ECHO_T}$BUILD_CXX" >&6; }
4297 { echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6; }
4302 if test -z "$BUILD_CXX"; then
4303 # Extract the first word of "g++", so it can be a program name with args.
4304 set dummy g++; ac_word=$2
4305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4307 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -n "$BUILD_CXX"; then
4311 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_BUILD_CXX="g++"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4331 if test -n "$BUILD_CXX"; then
4332 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4333 echo "${ECHO_T}$BUILD_CXX" >&6; }
4335 { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4340 if test -z "$BUILD_CXX"; then
4341 # Extract the first word of "c++", so it can be a program name with args.
4342 set dummy c++; ac_word=$2
4343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4345 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 if test -n "$BUILD_CXX"; then
4349 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4360 ac_prog_rejected=yes
4363 ac_cv_prog_BUILD_CXX="c++"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 if test $ac_prog_rejected = yes; then
4372 # We found a bogon in the path, so make sure we never use it.
4373 set dummy $ac_cv_prog_BUILD_CXX
4375 if test $# != 0; then
4376 # We chose a different compiler from the bogus one.
4377 # However, it has the same basename, so the bogon will be chosen
4378 # first if we set BUILD_CXX to just the basename; use the full file name.
4380 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4385 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4386 if test -n "$BUILD_CXX"; then
4387 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4388 echo "${ECHO_T}$BUILD_CXX" >&6; }
4390 { echo "$as_me:$LINENO: result: no" >&5
4391 echo "${ECHO_T}no" >&6; }
4398 LLVM_CROSS_COMPILING=0
4402 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4413 # Check whether --enable-libcpp was given.
4414 if test "${enable_libcpp+set}" = set; then
4415 enableval=$enable_libcpp;
4420 case "$enableval" in
4421 yes) ENABLE_LIBCPP=1
4425 default) ENABLE_LIBCPP=0
4427 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4428 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4429 { (exit 1); exit 1; }; } ;;
4432 # Check whether --enable-cxx11 was given.
4433 if test "${enable_cxx11+set}" = set; then
4434 enableval=$enable_cxx11;
4439 case "$enableval" in
4444 default) ENABLE_CXX11=0
4446 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4447 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4448 { (exit 1); exit 1; }; } ;;
4451 # Check whether --enable-split-dwarf was given.
4452 if test "${enable_split_dwarf+set}" = set; then
4453 enableval=$enable_split_dwarf;
4458 case "$enableval" in
4459 yes) ENABLE_SPLIT_DWARF=1
4461 no) ENABLE_SPLIT_DWARF=0
4463 default) ENABLE_SPLIT_DWARF=0
4465 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4466 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4467 { (exit 1); exit 1; }; } ;;
4471 # Check whether --enable-clang-arcmt was given.
4472 if test "${enable_clang_arcmt+set}" = set; then
4473 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4478 case "$enableval" in
4479 yes) ENABLE_CLANG_ARCMT=1
4481 no) ENABLE_CLANG_ARCMT=0
4483 default) ENABLE_CLANG_ARCMT=1
4485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4486 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4487 { (exit 1); exit 1; }; } ;;
4490 clang_static_analyzer="yes"
4491 # Check whether --enable-clang-static-analyzer was given.
4492 if test "${enable_clang_static_analyzer+set}" = set; then
4493 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4498 case "$enableval" in
4499 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4502 if test ${clang_arcmt} != "no" ; then
4503 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4504 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4505 { (exit 1); exit 1; }; }
4507 ENABLE_CLANG_STATIC_ANALYZER=0
4510 default) ENABLE_CLANG_STATIC_ANALYZER=1
4512 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4513 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4514 { (exit 1); exit 1; }; } ;;
4517 # Check whether --enable-clang-rewriter was given.
4518 if test "${enable_clang_rewriter+set}" = set; then
4519 enableval=$enable_clang_rewriter;
4524 case "$enableval" in
4525 yes) ENABLE_CLANG_REWRITER=1
4528 if test ${clang_arcmt} != "no" ; then
4529 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4530 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4531 { (exit 1); exit 1; }; }
4533 if test ${clang_static_analyzer} != "no" ; then
4534 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4535 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4536 { (exit 1); exit 1; }; }
4538 ENABLE_CLANG_REWRITER=0
4541 default) ENABLE_CLANG_REWRITER=1
4543 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4544 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4545 { (exit 1); exit 1; }; } ;;
4548 # Check whether --enable-optimized was given.
4549 if test "${enable_optimized+set}" = set; then
4550 enableval=$enable_optimized;
4555 if test ${enableval} = "no" ; then
4559 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4563 # Check whether --enable-profiling was given.
4564 if test "${enable_profiling+set}" = set; then
4565 enableval=$enable_profiling;
4570 if test ${enableval} = "no" ; then
4574 ENABLE_PROFILING=ENABLE_PROFILING=1
4578 # Check whether --enable-assertions was given.
4579 if test "${enable_assertions+set}" = set; then
4580 enableval=$enable_assertions;
4585 if test ${enableval} = "yes" ; then
4589 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4593 # Check whether --enable-werror was given.
4594 if test "${enable_werror+set}" = set; then
4595 enableval=$enable_werror;
4600 case "$enableval" in
4601 yes) ENABLE_WERROR=1
4605 default) ENABLE_WERROR=0
4607 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4608 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4609 { (exit 1); exit 1; }; } ;;
4612 # Check whether --enable-expensive-checks was given.
4613 if test "${enable_expensive_checks+set}" = set; then
4614 enableval=$enable_expensive_checks;
4619 if test ${enableval} = "yes" ; then
4620 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4622 EXPENSIVE_CHECKS=yes
4625 ENABLE_EXPENSIVE_CHECKS=
4631 # Check whether --enable-debug-runtime was given.
4632 if test "${enable_debug_runtime+set}" = set; then
4633 enableval=$enable_debug_runtime;
4638 if test ${enableval} = "no" ; then
4642 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4646 # Check whether --enable-debug-symbols was given.
4647 if test "${enable_debug_symbols+set}" = set; then
4648 enableval=$enable_debug_symbols;
4653 if test ${enableval} = "no" ; then
4657 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4661 # Check whether --enable-keep-symbols was given.
4662 if test "${enable_keep_symbols+set}" = set; then
4663 enableval=$enable_keep_symbols;
4668 if test ${enableval} = "no" ; then
4672 KEEP_SYMBOLS=KEEP_SYMBOLS=1
4676 # Check whether --enable-jit was given.
4677 if test "${enable_jit+set}" = set; then
4678 enableval=$enable_jit;
4683 if test ${enableval} = "no"
4688 case "$llvm_cv_target_arch" in
4689 x86) TARGET_HAS_JIT=1
4691 Sparc) TARGET_HAS_JIT=0
4693 PowerPC) TARGET_HAS_JIT=1
4695 x86_64) TARGET_HAS_JIT=1
4697 ARM) TARGET_HAS_JIT=1
4699 AArch64) TARGET_HAS_JIT=0
4701 Mips) TARGET_HAS_JIT=1
4703 XCore) TARGET_HAS_JIT=0
4705 MSP430) TARGET_HAS_JIT=0
4707 Hexagon) TARGET_HAS_JIT=0
4709 NVPTX) TARGET_HAS_JIT=0
4711 SystemZ) TARGET_HAS_JIT=1
4718 # Check whether --enable-docs was given.
4719 if test "${enable_docs+set}" = set; then
4720 enableval=$enable_docs;
4725 case "$enableval" in
4730 default) ENABLE_DOCS=1
4732 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4733 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4737 # Check whether --enable-doxygen was given.
4738 if test "${enable_doxygen+set}" = set; then
4739 enableval=$enable_doxygen;
4744 case "$enableval" in
4745 yes) ENABLE_DOXYGEN=1
4747 no) ENABLE_DOXYGEN=0
4749 default) ENABLE_DOXYGEN=0
4751 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4752 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4753 { (exit 1); exit 1; }; } ;;
4756 # Check whether --enable-threads was given.
4757 if test "${enable_threads+set}" = set; then
4758 enableval=$enable_threads;
4763 case "$enableval" in
4764 yes) LLVM_ENABLE_THREADS=1
4766 no) LLVM_ENABLE_THREADS=0
4768 default) LLVM_ENABLE_THREADS=1
4770 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4771 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4772 { (exit 1); exit 1; }; } ;;
4775 cat >>confdefs.h <<_ACEOF
4776 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
4780 # Check whether --enable-pthreads was given.
4781 if test "${enable_pthreads+set}" = set; then
4782 enableval=$enable_pthreads;
4787 case "$enableval" in
4788 yes) ENABLE_PTHREADS=1
4790 no) ENABLE_PTHREADS=0
4792 default) ENABLE_PTHREADS=1
4794 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4795 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4796 { (exit 1); exit 1; }; } ;;
4799 # Check whether --enable-zlib was given.
4800 if test "${enable_zlib+set}" = set; then
4801 enableval=$enable_zlib;
4806 case "$enableval" in
4807 yes) LLVM_ENABLE_ZLIB=1
4809 no) LLVM_ENABLE_ZLIB=0
4811 default) LLVM_ENABLE_ZLIB=1
4813 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
4815 { (exit 1); exit 1; }; } ;;
4818 cat >>confdefs.h <<_ACEOF
4819 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
4823 # Check whether --enable-pic was given.
4824 if test "${enable_pic+set}" = set; then
4825 enableval=$enable_pic;
4830 case "$enableval" in
4835 default) ENABLE_PIC=1
4837 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4838 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4839 { (exit 1); exit 1; }; } ;;
4842 cat >>confdefs.h <<_ACEOF
4843 #define ENABLE_PIC $ENABLE_PIC
4847 # Check whether --enable-shared was given.
4848 if test "${enable_shared+set}" = set; then
4849 enableval=$enable_shared;
4854 case "$enableval" in
4855 yes) ENABLE_SHARED=1
4859 default) ENABLE_SHARED=0
4861 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4862 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4863 { (exit 1); exit 1; }; } ;;
4866 # Check whether --enable-embed-stdcxx was given.
4867 if test "${enable_embed_stdcxx+set}" = set; then
4868 enableval=$enable_embed_stdcxx;
4873 case "$enableval" in
4874 yes) ENABLE_EMBED_STDCXX=1
4876 no) ENABLE_EMBED_STDCXX=0
4878 default) ENABLE_EMBED_STDCXX=0
4880 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
4881 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
4882 { (exit 1); exit 1; }; } ;;
4885 # Check whether --enable-timestamps was given.
4886 if test "${enable_timestamps+set}" = set; then
4887 enableval=$enable_timestamps;
4892 case "$enableval" in
4893 yes) ENABLE_TIMESTAMPS=1
4895 no) ENABLE_TIMESTAMPS=0
4897 default) ENABLE_TIMESTAMPS=1
4899 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4901 { (exit 1); exit 1; }; } ;;
4904 cat >>confdefs.h <<_ACEOF
4905 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4909 # Check whether --enable-backtraces was given.
4910 if test "${enable_backtraces+set}" = set; then
4911 enableval=$enable_backtraces; case "$enableval" in
4912 yes) llvm_cv_enable_backtraces="yes" ;;
4913 no) llvm_cv_enable_backtraces="no" ;;
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4919 llvm_cv_enable_backtraces="yes"
4922 if test "$llvm_cv_enable_backtraces" = "yes" ; then
4924 cat >>confdefs.h <<\_ACEOF
4925 #define ENABLE_BACKTRACES 1
4930 # Check whether --enable-crash-overrides was given.
4931 if test "${enable_crash_overrides+set}" = set; then
4932 enableval=$enable_crash_overrides; case "$enableval" in
4933 yes) llvm_cv_enable_crash_overrides="yes" ;;
4934 no) llvm_cv_enable_crash_overrides="no" ;;
4935 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
4936 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
4937 { (exit 1); exit 1; }; } ;;
4940 llvm_cv_enable_crash_overrides="yes"
4943 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
4945 cat >>confdefs.h <<\_ACEOF
4946 #define ENABLE_CRASH_OVERRIDES 1
4952 # Check whether --enable-targets was given.
4953 if test "${enable_targets+set}" = set; then
4954 enableval=$enable_targets;
4959 if test "$enableval" = host-only ; then
4962 case "$enableval" in
4963 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
4964 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4966 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4968 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4969 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4970 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4971 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4972 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4973 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4974 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4975 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4976 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4977 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4980 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4981 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4982 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
4983 host) case "$llvm_cv_target_arch" in
4984 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4986 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4987 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4988 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
4989 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4990 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4991 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4992 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4993 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
4994 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
4995 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4997 echo "$as_me: error: Can not set target to build" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5000 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5001 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5008 # Check whether --enable-experimental-targets was given.
5009 if test "${enable_experimental_targets+set}" = set; then
5010 enableval=$enable_experimental_targets;
5016 if test ${enableval} != "disable"
5018 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5021 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5024 for a_target in $TARGETS_TO_BUILD; do
5025 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5027 cat >>confdefs.h <<_ACEOF
5028 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5031 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5032 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5033 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5034 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5035 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5036 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5038 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5039 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5042 cat >>confdefs.h <<_ACEOF
5043 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5047 cat >>confdefs.h <<_ACEOF
5048 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5052 cat >>confdefs.h <<_ACEOF
5053 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5057 cat >>confdefs.h <<_ACEOF
5058 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5061 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5063 cat >>confdefs.h <<_ACEOF
5064 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5068 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5070 cat >>confdefs.h <<_ACEOF
5071 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5078 LLVM_ENUM_TARGETS=""
5079 LLVM_ENUM_ASM_PRINTERS=""
5080 LLVM_ENUM_ASM_PARSERS=""
5081 LLVM_ENUM_DISASSEMBLERS=""
5082 for target_to_build in $TARGETS_TO_BUILD; do
5083 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5084 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5085 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5087 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5088 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5090 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5091 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5100 # Check whether --with-optimize-option was given.
5101 if test "${with_optimize_option+set}" = set; then
5102 withval=$with_optimize_option;
5107 { echo "$as_me:$LINENO: checking optimization flags" >&5
5108 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5111 case "$llvm_cv_os_type" in
5112 FreeBSD) optimize_option=-O2 ;;
5113 MingW) optimize_option=-O2 ;;
5114 *) optimize_option=-O3 ;;
5116 *) optimize_option="$withval" ;;
5118 OPTIMIZE_OPTION=$optimize_option
5120 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5121 echo "${ECHO_T}$optimize_option" >&6; }
5124 # Check whether --with-extra-options was given.
5125 if test "${with_extra_options+set}" = set; then
5126 withval=$with_extra_options;
5132 default) EXTRA_OPTIONS= ;;
5133 *) EXTRA_OPTIONS=$withval ;;
5135 EXTRA_OPTIONS=$EXTRA_OPTIONS
5139 # Check whether --with-extra-ld-options was given.
5140 if test "${with_extra_ld_options+set}" = set; then
5141 withval=$with_extra_ld_options;
5147 default) EXTRA_LD_OPTIONS= ;;
5148 *) EXTRA_LD_OPTIONS=$withval ;;
5150 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5153 # Check whether --enable-bindings was given.
5154 if test "${enable_bindings+set}" = set; then
5155 enableval=$enable_bindings;
5160 BINDINGS_TO_BUILD=""
5161 case "$enableval" in
5162 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5163 all ) BINDINGS_TO_BUILD="ocaml" ;;
5164 none | no) BINDINGS_TO_BUILD="" ;;
5165 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5166 case "$a_binding" in
5167 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5168 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5169 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5177 # Check whether --with-ocaml-libdir was given.
5178 if test "${with_ocaml_libdir+set}" = set; then
5179 withval=$with_ocaml_libdir;
5185 auto) with_ocaml_libdir="$withval" ;;
5186 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5187 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5188 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5193 # Check whether --with-clang-srcdir was given.
5194 if test "${with_clang_srcdir+set}" = set; then
5195 withval=$with_clang_srcdir;
5201 -) clang_src_root="" ;;
5202 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5203 *) clang_src_root="$ac_pwd/$withval" ;;
5205 CLANG_SRC_ROOT=$clang_src_root
5209 # Check whether --with-clang-resource-dir was given.
5210 if test "${with_clang_resource_dir+set}" = set; then
5211 withval=$with_clang_resource_dir;
5217 cat >>confdefs.h <<_ACEOF
5218 #define CLANG_RESOURCE_DIR "$withval"
5223 # Check whether --with-c-include-dirs was given.
5224 if test "${with_c_include_dirs+set}" = set; then
5225 withval=$with_c_include_dirs;
5231 cat >>confdefs.h <<_ACEOF
5232 #define C_INCLUDE_DIRS "$withval"
5236 # Clang normally uses the system c++ headers and libraries. With this option,
5237 # clang will use the ones provided by a gcc installation instead. This option should
5238 # be passed the same value that was used with --prefix when configuring gcc.
5240 # Check whether --with-gcc-toolchain was given.
5241 if test "${with_gcc_toolchain+set}" = set; then
5242 withval=$with_gcc_toolchain;
5248 cat >>confdefs.h <<_ACEOF
5249 #define GCC_INSTALL_PREFIX "$withval"
5254 # Check whether --with-default-sysroot was given.
5255 if test "${with_default_sysroot+set}" = set; then
5256 withval=$with_default_sysroot;
5262 cat >>confdefs.h <<_ACEOF
5263 #define DEFAULT_SYSROOT "$withval"
5268 # Check whether --with-binutils-include was given.
5269 if test "${with_binutils_include+set}" = set; then
5270 withval=$with_binutils_include;
5276 default) WITH_BINUTILS_INCDIR=default ;;
5277 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5278 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5279 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5282 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5283 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5285 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5286 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5287 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5288 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5289 { (exit 1); exit 1; }; };
5294 # Check whether --with-bug-report-url was given.
5295 if test "${with_bug_report_url+set}" = set; then
5296 withval=$with_bug_report_url;
5298 withval="http://llvm.org/bugs/"
5302 cat >>confdefs.h <<_ACEOF
5303 #define BUG_REPORT_URL "$withval"
5307 # Check whether --enable-terminfo was given.
5308 if test "${enable_terminfo+set}" = set; then
5309 enableval=$enable_terminfo; case "$enableval" in
5310 yes) llvm_cv_enable_terminfo="yes" ;;
5311 no) llvm_cv_enable_terminfo="no" ;;
5312 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5313 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5314 { (exit 1); exit 1; }; } ;;
5317 llvm_cv_enable_terminfo="yes"
5321 # Check whether --enable-libffi was given.
5322 if test "${enable_libffi+set}" = set; then
5323 enableval=$enable_libffi; case "$enableval" in
5324 yes) llvm_cv_enable_libffi="yes" ;;
5325 no) llvm_cv_enable_libffi="no" ;;
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5331 llvm_cv_enable_libffi=no
5336 # Check whether --with-internal-prefix was given.
5337 if test "${with_internal_prefix+set}" = set; then
5338 withval=$with_internal_prefix;
5343 INTERNAL_PREFIX=$withval
5347 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5348 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5349 if test "${lt_cv_path_NM+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test -n "$NM"; then
5353 # Let the user override the test.
5356 lt_nm_to_check="${ac_tool_prefix}nm"
5357 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5358 lt_nm_to_check="$lt_nm_to_check nm"
5360 for lt_tmp_nm in $lt_nm_to_check; do
5361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5362 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5364 test -z "$ac_dir" && ac_dir=.
5365 tmp_nm="$ac_dir/$lt_tmp_nm"
5366 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5367 # Check to see if the nm accepts a BSD-compat flag.
5368 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5369 # nm: unknown option "B" ignored
5370 # Tru64's nm complains that /dev/null is an invalid object file
5371 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5372 */dev/null* | *'Invalid file or object type'*)
5373 lt_cv_path_NM="$tmp_nm -B"
5377 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5379 lt_cv_path_NM="$tmp_nm -p"
5383 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5384 continue # so that we can try to find one that supports BSD flags
5393 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5396 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5397 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5402 { echo "$as_me:$LINENO: checking for GNU make" >&5
5403 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5404 if test "${llvm_cv_gnu_make_command+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 llvm_cv_gnu_make_command=''
5408 for a in "$MAKE" make gmake gnumake ; do
5409 if test -z "$a" ; then continue ; fi ;
5410 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5412 llvm_cv_gnu_make_command=$a ;
5417 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5418 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5419 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5423 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5424 echo "${ECHO_T}\"Not found\"" >&6; };
5428 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5429 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5431 if test "$LN_S" = "ln -s"; then
5432 { echo "$as_me:$LINENO: result: yes" >&5
5433 echo "${ECHO_T}yes" >&6; }
5435 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5436 echo "${ECHO_T}no, using $LN_S" >&6; }
5439 # Extract the first word of "cmp", so it can be a program name with args.
5440 set dummy cmp; ac_word=$2
5441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443 if test "${ac_cv_path_CMP+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5471 if test -n "$CMP"; then
5472 { echo "$as_me:$LINENO: result: $CMP" >&5
5473 echo "${ECHO_T}$CMP" >&6; }
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5480 # Extract the first word of "cp", so it can be a program name with args.
5481 set dummy cp; ac_word=$2
5482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5484 if test "${ac_cv_path_CP+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5512 if test -n "$CP"; then
5513 { echo "$as_me:$LINENO: result: $CP" >&5
5514 echo "${ECHO_T}$CP" >&6; }
5516 { echo "$as_me:$LINENO: result: no" >&5
5517 echo "${ECHO_T}no" >&6; }
5521 # Extract the first word of "date", so it can be a program name with args.
5522 set dummy date; ac_word=$2
5523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525 if test "${ac_cv_path_DATE+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5540 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5552 DATE=$ac_cv_path_DATE
5553 if test -n "$DATE"; then
5554 { echo "$as_me:$LINENO: result: $DATE" >&5
5555 echo "${ECHO_T}$DATE" >&6; }
5557 { echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6; }
5562 # Extract the first word of "find", so it can be a program name with args.
5563 set dummy find; ac_word=$2
5564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5566 if test "${ac_cv_path_FIND+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5593 FIND=$ac_cv_path_FIND
5594 if test -n "$FIND"; then
5595 { echo "$as_me:$LINENO: result: $FIND" >&5
5596 echo "${ECHO_T}$FIND" >&6; }
5598 { echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6; }
5603 # Extract the first word of "grep", so it can be a program name with args.
5604 set dummy grep; ac_word=$2
5605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5607 if test "${ac_cv_path_GREP+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5634 GREP=$ac_cv_path_GREP
5635 if test -n "$GREP"; then
5636 { echo "$as_me:$LINENO: result: $GREP" >&5
5637 echo "${ECHO_T}$GREP" >&6; }
5639 { echo "$as_me:$LINENO: result: no" >&5
5640 echo "${ECHO_T}no" >&6; }
5644 # Extract the first word of "mkdir", so it can be a program name with args.
5645 set dummy mkdir; ac_word=$2
5646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5648 if test "${ac_cv_path_MKDIR+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5675 MKDIR=$ac_cv_path_MKDIR
5676 if test -n "$MKDIR"; then
5677 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5678 echo "${ECHO_T}$MKDIR" >&6; }
5680 { echo "$as_me:$LINENO: result: no" >&5
5681 echo "${ECHO_T}no" >&6; }
5685 # Extract the first word of "mv", so it can be a program name with args.
5686 set dummy mv; ac_word=$2
5687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689 if test "${ac_cv_path_MV+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5717 if test -n "$MV"; then
5718 { echo "$as_me:$LINENO: result: $MV" >&5
5719 echo "${ECHO_T}$MV" >&6; }
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731 if test "${ac_cv_prog_RANLIB+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$RANLIB"; then
5735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 RANLIB=$ac_cv_prog_RANLIB
5755 if test -n "$RANLIB"; then
5756 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5757 echo "${ECHO_T}$RANLIB" >&6; }
5759 { echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6; }
5765 if test -z "$ac_cv_prog_RANLIB"; then
5766 ac_ct_RANLIB=$RANLIB
5767 # Extract the first word of "ranlib", so it can be a program name with args.
5768 set dummy ranlib; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 if test -n "$ac_ct_RANLIB"; then
5775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_ac_ct_RANLIB="ranlib"
5785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5795 if test -n "$ac_ct_RANLIB"; then
5796 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5799 { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5803 if test "x$ac_ct_RANLIB" = x; then
5806 case $cross_compiling:$ac_tool_warned in
5808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5809 whose name does not start with the host triplet. If you think this
5810 configuration is useful to you, please write to autoconf@gnu.org." >&5
5811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5812 whose name does not start with the host triplet. If you think this
5813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5814 ac_tool_warned=yes ;;
5816 RANLIB=$ac_ct_RANLIB
5819 RANLIB="$ac_cv_prog_RANLIB"
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}ar; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_AR+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 if test -n "$AR"; then
5831 ac_cv_prog_AR="$AR" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_AR="${ac_tool_prefix}ar"
5841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 if test -n "$AR"; then
5852 { echo "$as_me:$LINENO: result: $AR" >&5
5853 echo "${ECHO_T}$AR" >&6; }
5855 { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5861 if test -z "$ac_cv_prog_AR"; then
5863 # Extract the first word of "ar", so it can be a program name with args.
5864 set dummy ar; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 if test -n "$ac_ct_AR"; then
5871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880 ac_cv_prog_ac_ct_AR="ar"
5881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5891 if test -n "$ac_ct_AR"; then
5892 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5893 echo "${ECHO_T}$ac_ct_AR" >&6; }
5895 { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5899 if test "x$ac_ct_AR" = x; then
5902 case $cross_compiling:$ac_tool_warned in
5904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5905 whose name does not start with the host triplet. If you think this
5906 configuration is useful to you, please write to autoconf@gnu.org." >&5
5907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet. If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5910 ac_tool_warned=yes ;;
5918 # Extract the first word of "rm", so it can be a program name with args.
5919 set dummy rm; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_path_RM+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5937 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5950 if test -n "$RM"; then
5951 { echo "$as_me:$LINENO: result: $RM" >&5
5952 echo "${ECHO_T}$RM" >&6; }
5954 { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5959 # Extract the first word of "sed", so it can be a program name with args.
5960 set dummy sed; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_path_SED+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5991 if test -n "$SED"; then
5992 { echo "$as_me:$LINENO: result: $SED" >&5
5993 echo "${ECHO_T}$SED" >&6; }
5995 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
6000 # Extract the first word of "tar", so it can be a program name with args.
6001 set dummy tar; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_TAR+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6019 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6032 if test -n "$TAR"; then
6033 { echo "$as_me:$LINENO: result: $TAR" >&5
6034 echo "${ECHO_T}$TAR" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 # Extract the first word of "pwd", so it can be a program name with args.
6042 set dummy pwd; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_path_BINPWD+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6072 BINPWD=$ac_cv_path_BINPWD
6073 if test -n "$BINPWD"; then
6074 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6075 echo "${ECHO_T}$BINPWD" >&6; }
6077 { echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6; }
6083 # Extract the first word of "Graphviz", so it can be a program name with args.
6084 set dummy Graphviz; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6102 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6114 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6115 if test -n "$GRAPHVIZ"; then
6116 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6117 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6124 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define HAVE_GRAPHVIZ 1
6130 if test "$llvm_cv_os_type" = "MingW" ; then
6131 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6134 cat >>confdefs.h <<_ACEOF
6135 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6139 # Extract the first word of "dot", so it can be a program name with args.
6140 set dummy dot; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_path_DOT+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6171 if test -n "$DOT"; then
6172 { echo "$as_me:$LINENO: result: $DOT" >&5
6173 echo "${ECHO_T}$DOT" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6180 if test "$DOT" != "echo dot" ; then
6182 cat >>confdefs.h <<\_ACEOF
6186 if test "$llvm_cv_os_type" = "MingW" ; then
6187 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6190 cat >>confdefs.h <<_ACEOF
6191 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6195 # Extract the first word of "fdp", so it can be a program name with args.
6196 set dummy fdp; ac_word=$2
6197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6199 if test "${ac_cv_path_FDP+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6227 if test -n "$FDP"; then
6228 { echo "$as_me:$LINENO: result: $FDP" >&5
6229 echo "${ECHO_T}$FDP" >&6; }
6231 { echo "$as_me:$LINENO: result: no" >&5
6232 echo "${ECHO_T}no" >&6; }
6236 if test "$FDP" != "echo fdp" ; then
6238 cat >>confdefs.h <<\_ACEOF
6242 if test "$llvm_cv_os_type" = "MingW" ; then
6243 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6246 cat >>confdefs.h <<_ACEOF
6247 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6251 # Extract the first word of "neato", so it can be a program name with args.
6252 set dummy neato; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_path_NEATO+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6282 NEATO=$ac_cv_path_NEATO
6283 if test -n "$NEATO"; then
6284 { echo "$as_me:$LINENO: result: $NEATO" >&5
6285 echo "${ECHO_T}$NEATO" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 if test "$NEATO" != "echo neato" ; then
6294 cat >>confdefs.h <<\_ACEOF
6295 #define HAVE_NEATO 1
6298 if test "$llvm_cv_os_type" = "MingW" ; then
6299 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6302 cat >>confdefs.h <<_ACEOF
6303 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6307 # Extract the first word of "twopi", so it can be a program name with args.
6308 set dummy twopi; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_TWOPI+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6338 TWOPI=$ac_cv_path_TWOPI
6339 if test -n "$TWOPI"; then
6340 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6341 echo "${ECHO_T}$TWOPI" >&6; }
6343 { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6348 if test "$TWOPI" != "echo twopi" ; then
6350 cat >>confdefs.h <<\_ACEOF
6351 #define HAVE_TWOPI 1
6354 if test "$llvm_cv_os_type" = "MingW" ; then
6355 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6358 cat >>confdefs.h <<_ACEOF
6359 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6363 # Extract the first word of "circo", so it can be a program name with args.
6364 set dummy circo; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_CIRCO+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6394 CIRCO=$ac_cv_path_CIRCO
6395 if test -n "$CIRCO"; then
6396 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6397 echo "${ECHO_T}$CIRCO" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6404 if test "$CIRCO" != "echo circo" ; then
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_CIRCO 1
6410 if test "$llvm_cv_os_type" = "MingW" ; then
6411 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6419 for ac_prog in gv gsview32
6421 # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6425 if test "${ac_cv_path_GV+set}" = set; then
6426 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 if test -n "$GV"; then
6453 { echo "$as_me:$LINENO: result: $GV" >&5
6454 echo "${ECHO_T}$GV" >&6; }
6456 { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6461 test -n "$GV" && break
6463 test -n "$GV" || GV="echo gv"
6465 if test "$GV" != "echo gv" ; then
6467 cat >>confdefs.h <<\_ACEOF
6471 if test "$llvm_cv_os_type" = "MingW" ; then
6472 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6475 cat >>confdefs.h <<_ACEOF
6476 #define LLVM_PATH_GV "$GV${EXEEXT}"
6480 # Extract the first word of "dotty", so it can be a program name with args.
6481 set dummy dotty; ac_word=$2
6482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6484 if test "${ac_cv_path_DOTTY+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6499 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6511 DOTTY=$ac_cv_path_DOTTY
6512 if test -n "$DOTTY"; then
6513 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6514 echo "${ECHO_T}$DOTTY" >&6; }
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6521 if test "$DOTTY" != "echo dotty" ; then
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_DOTTY 1
6527 if test "$llvm_cv_os_type" = "MingW" ; then
6528 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531 cat >>confdefs.h <<_ACEOF
6532 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6536 for ac_prog in xdot xdot.py
6538 # Extract the first word of "$ac_prog", so it can be a program name with args.
6539 set dummy $ac_prog; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_XDOT+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 XDOT=$ac_cv_path_XDOT
6569 if test -n "$XDOT"; then
6570 { echo "$as_me:$LINENO: result: $XDOT" >&5
6571 echo "${ECHO_T}$XDOT" >&6; }
6573 { echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6; }
6578 test -n "$XDOT" && break
6580 test -n "$XDOT" || XDOT="echo xdot"
6582 if test "$XDOT" != "echo xdot" ; then
6584 cat >>confdefs.h <<\_ACEOF
6588 if test "$llvm_cv_os_type" = "MingW" ; then
6589 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592 cat >>confdefs.h <<_ACEOF
6593 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6598 # Find a good install program. We prefer a C program (faster),
6599 # so one script is as good as another. But avoid the broken or
6600 # incompatible versions:
6601 # SysV /etc/install, /usr/sbin/install
6602 # SunOS /usr/etc/install
6603 # IRIX /sbin/install
6605 # AmigaOS /C/install, which installs bootblocks on floppy discs
6606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6609 # OS/2's system install, which has a completely different semantic
6610 # ./install, which can be erroneously created by make from ./install.sh.
6611 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6612 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6613 if test -z "$INSTALL"; then
6614 if test "${ac_cv_path_install+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 # Account for people who put trailing slashes in PATH elements.
6624 ./ | .// | /cC/* | \
6625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6626 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6629 # OSF1 and SCO ODT 3.0 have their own names for install.
6630 # Don't use installbsd from OSF since it installs stuff as root
6632 for ac_prog in ginstall scoinst install; do
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6635 if test $ac_prog = install &&
6636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6637 # AIX install. It has an incompatible calling convention.
6639 elif test $ac_prog = install &&
6640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6641 # program-specific install script used by HP pwplus--don't use.
6644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6657 if test "${ac_cv_path_install+set}" = set; then
6658 INSTALL=$ac_cv_path_install
6660 # As a last resort, use the slow shell script. Don't cache a
6661 # value for INSTALL within a source directory, because that will
6662 # break other packages using the cache if that directory is
6663 # removed, or if the value is a relative name.
6664 INSTALL=$ac_install_sh
6667 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6668 echo "${ECHO_T}$INSTALL" >&6; }
6670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6671 # It thinks the first close brace ends the variable substitution.
6672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6679 [\\/$]* | ?:[\\/]* ) ;;
6680 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6683 # Extract the first word of "bzip2", so it can be a program name with args.
6684 set dummy bzip2; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_BZIP2+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 BZIP2=$ac_cv_path_BZIP2
6714 if test -n "$BZIP2"; then
6715 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6716 echo "${ECHO_T}$BZIP2" >&6; }
6718 { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6723 # Extract the first word of "cat", so it can be a program name with args.
6724 set dummy cat; ac_word=$2
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727 if test "${ac_cv_path_CAT+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 if test -n "$CAT"; then
6755 { echo "$as_me:$LINENO: result: $CAT" >&5
6756 echo "${ECHO_T}$CAT" >&6; }
6758 { echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6; }
6763 # Extract the first word of "doxygen", so it can be a program name with args.
6764 set dummy doxygen; ac_word=$2
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6767 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 DOXYGEN=$ac_cv_path_DOXYGEN
6794 if test -n "$DOXYGEN"; then
6795 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6796 echo "${ECHO_T}$DOXYGEN" >&6; }
6798 { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6803 # Extract the first word of "groff", so it can be a program name with args.
6804 set dummy groff; ac_word=$2
6805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6807 if test "${ac_cv_path_GROFF+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 GROFF=$ac_cv_path_GROFF
6834 if test -n "$GROFF"; then
6835 { echo "$as_me:$LINENO: result: $GROFF" >&5
6836 echo "${ECHO_T}$GROFF" >&6; }
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 # Extract the first word of "gzip", so it can be a program name with args.
6844 set dummy gzip; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 GZIPBIN=$ac_cv_path_GZIPBIN
6874 if test -n "$GZIPBIN"; then
6875 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6876 echo "${ECHO_T}$GZIPBIN" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 # Extract the first word of "pdfroff", so it can be a program name with args.
6884 set dummy pdfroff; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_PDFROFF+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 PDFROFF=$ac_cv_path_PDFROFF
6914 if test -n "$PDFROFF"; then
6915 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6916 echo "${ECHO_T}$PDFROFF" >&6; }
6918 { echo "$as_me:$LINENO: result: no" >&5
6919 echo "${ECHO_T}no" >&6; }
6923 # Extract the first word of "zip", so it can be a program name with args.
6924 set dummy zip; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_ZIP+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 if test -n "$ZIP"; then
6955 { echo "$as_me:$LINENO: result: $ZIP" >&5
6956 echo "${ECHO_T}$ZIP" >&6; }
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 for ac_prog in ocamlc
6965 # Extract the first word of "$ac_prog", so it can be a program name with args.
6966 set dummy $ac_prog; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_OCAMLC+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 OCAMLC=$ac_cv_path_OCAMLC
6996 if test -n "$OCAMLC"; then
6997 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6998 echo "${ECHO_T}$OCAMLC" >&6; }
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 test -n "$OCAMLC" && break
7008 for ac_prog in ocamlopt
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 OCAMLOPT=$ac_cv_path_OCAMLOPT
7041 if test -n "$OCAMLOPT"; then
7042 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7043 echo "${ECHO_T}$OCAMLOPT" >&6; }
7045 { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7050 test -n "$OCAMLOPT" && break
7053 for ac_prog in ocamldep
7055 # Extract the first word of "$ac_prog", so it can be a program name with args.
7056 set dummy $ac_prog; ac_word=$2
7057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7059 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 OCAMLDEP=$ac_cv_path_OCAMLDEP
7086 if test -n "$OCAMLDEP"; then
7087 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7088 echo "${ECHO_T}$OCAMLDEP" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7095 test -n "$OCAMLDEP" && break
7098 for ac_prog in ocamldoc
7100 # Extract the first word of "$ac_prog", so it can be a program name with args.
7101 set dummy $ac_prog; ac_word=$2
7102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 OCAMLDOC=$ac_cv_path_OCAMLDOC
7131 if test -n "$OCAMLDOC"; then
7132 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7133 echo "${ECHO_T}$OCAMLDOC" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 test -n "$OCAMLDOC" && break
7143 for ac_prog in gas as
7145 # Extract the first word of "$ac_prog", so it can be a program name with args.
7146 set dummy $ac_prog; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_GAS+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 if test -n "$GAS"; then
7177 { echo "$as_me:$LINENO: result: $GAS" >&5
7178 echo "${ECHO_T}$GAS" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 test -n "$GAS" && break
7189 { echo "$as_me:$LINENO: checking for linker version" >&5
7190 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7191 if test "${llvm_cv_link_version+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 version_string="$(ld -v 2>&1 | head -1)"
7198 if (echo "$version_string" | grep -q "ld64"); then
7199 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7201 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7205 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7206 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7208 cat >>confdefs.h <<_ACEOF
7209 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7215 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7216 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7217 if test "${llvm_cv_link_use_r+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227 CFLAGS="$CFLAGS -Wl,-R."
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (ac_try="$ac_link"
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_link") 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_try") 2>&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_try") 2>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 llvm_cv_link_use_r=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 llvm_cv_link_use_r=no
7285 rm -f core conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext conftest.$ac_ext
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7297 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7298 if test "$llvm_cv_link_use_r" = yes ; then
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_LINK_R 1
7307 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7308 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7309 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 CFLAGS="$CFLAGS -rdynamic"
7320 cat >conftest.$ac_ext <<_ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (ac_try="$ac_link"
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342 (eval "$ac_link") 2>conftest.er1
7344 grep -v '^ *+' conftest.er1 >conftest.err
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7350 { (case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_try") 2>&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest$ac_exeext'
7360 { (case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_try") 2>&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7369 llvm_cv_link_use_export_dynamic=yes
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 llvm_cv_link_use_export_dynamic=no
7377 rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7381 ac_cpp='$CPP $CPPFLAGS'
7382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7389 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7390 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_LINK_EXPORT_DYNAMIC 1
7399 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7400 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7401 if test "${llvm_cv_link_use_version_script+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 ac_cpp='$CPP $CPPFLAGS'
7406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412 # The following code is from the autoconf manual,
7413 # "11.13: Limitations of Usual Tools".
7414 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7415 # Use mktemp if possible; otherwise fall back on mkdir,
7416 # with $RANDOM to make collisions less likely.
7420 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7422 test -n "$tmp" && test -d "$tmp"
7424 tmp=$TMPDIR/foo$$-$RANDOM
7425 (umask 077 && mkdir "$tmp")
7428 echo "{" > "$tmp/export.map"
7429 echo " global: main;" >> "$tmp/export.map"
7430 echo " local: *;" >> "$tmp/export.map"
7431 echo "};" >> "$tmp/export.map"
7433 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (ac_try="$ac_link"
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7456 (eval "$ac_link") 2>conftest.er1
7458 grep -v '^ *+' conftest.er1 >conftest.err
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7464 { (case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_try") 2>&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (case "(($ac_try" in
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_try") 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 llvm_cv_link_use_version_script=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 llvm_cv_link_use_version_script=no
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 rm "$tmp/export.map"
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7505 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7506 if test "$llvm_cv_link_use_version_script" = yes ; then
7507 HAVE_LINK_VERSION_SCRIPT=1
7514 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7515 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7516 if test "${ac_cv_c_const+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7529 /* FIXME: Include the comments suggested by Paul. */
7531 /* Ultrix mips cc rejects this. */
7532 typedef int charset[2];
7534 /* SunOS 4.1.1 cc rejects this. */
7535 char const *const *ccp;
7537 /* NEC SVR4.0.2 mips cc rejects this. */
7538 struct point {int x, y;};
7539 static struct point const zero = {0,0};
7540 /* AIX XL C 1.02.0.0 rejects this.
7541 It does not let you subtract one const X* pointer from another in
7542 an arm of an if-expression whose if-part is not a constant
7544 const char *g = "string";
7545 ccp = &g + (g ? g-g : 0);
7546 /* HPUX 7.0 cc rejects these. */
7549 ccp = (char const *const *) p;
7550 { /* SCO 3.2v4 cc rejects this. */
7552 char const *s = 0 ? (char *) 0 : (char const *) 0;
7557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7559 const int *foo = &x[0];
7562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7563 typedef const int *iptr;
7567 { /* AIX XL C 1.02.0.0 rejects this saying
7568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7569 struct s { int j; const int *ap[3]; };
7570 struct s *b; b->j = 5;
7572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7576 return !x[0] && !zero.x;
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (case "(($ac_try" in
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_try") 2>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_try") 2>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7628 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7629 if test $ac_cv_c_const = no; then
7631 cat >>confdefs.h <<\_ACEOF
7638 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7639 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7640 if test "${ac_cv_path_GREP+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 # Extract the first word of "grep ggrep" to use in msg output
7644 if test -z "$GREP"; then
7645 set dummy grep ggrep; ac_prog_name=$2
7646 if test "${ac_cv_path_GREP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 ac_path_GREP_found=false
7650 # Loop through the user's path and test for each of PROGNAME-LIST
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7655 test -z "$as_dir" && as_dir=.
7656 for ac_prog in grep ggrep; do
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7659 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7660 # Check for GNU ac_path_GREP and select it if it is found.
7661 # Check for GNU $ac_path_GREP
7662 case `"$ac_path_GREP" --version 2>&1` in
7664 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7667 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7670 cat "conftest.in" "conftest.in" >"conftest.tmp"
7671 mv "conftest.tmp" "conftest.in"
7672 cp "conftest.in" "conftest.nl"
7673 echo 'GREP' >> "conftest.nl"
7674 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7676 ac_count=`expr $ac_count + 1`
7677 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7678 # Best one so far, save it but keep looking for a better one
7679 ac_cv_path_GREP="$ac_path_GREP"
7680 ac_path_GREP_max=$ac_count
7682 # 10*(2^10) chars as input seems more than enough
7683 test $ac_count -gt 10 && break
7685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7689 $ac_path_GREP_found && break 3
7699 GREP="$ac_cv_path_GREP"
7700 if test -z "$GREP"; then
7701 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7702 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7703 { (exit 1); exit 1; }; }
7707 ac_cv_path_GREP=$GREP
7712 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7713 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7714 GREP="$ac_cv_path_GREP"
7717 { echo "$as_me:$LINENO: checking for egrep" >&5
7718 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7719 if test "${ac_cv_path_EGREP+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7723 then ac_cv_path_EGREP="$GREP -E"
7725 # Extract the first word of "egrep" to use in msg output
7726 if test -z "$EGREP"; then
7727 set dummy egrep; ac_prog_name=$2
7728 if test "${ac_cv_path_EGREP+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 ac_path_EGREP_found=false
7732 # Loop through the user's path and test for each of PROGNAME-LIST
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7737 test -z "$as_dir" && as_dir=.
7738 for ac_prog in egrep; do
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7741 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7742 # Check for GNU ac_path_EGREP and select it if it is found.
7743 # Check for GNU $ac_path_EGREP
7744 case `"$ac_path_EGREP" --version 2>&1` in
7746 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7749 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7752 cat "conftest.in" "conftest.in" >"conftest.tmp"
7753 mv "conftest.tmp" "conftest.in"
7754 cp "conftest.in" "conftest.nl"
7755 echo 'EGREP' >> "conftest.nl"
7756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7758 ac_count=`expr $ac_count + 1`
7759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7760 # Best one so far, save it but keep looking for a better one
7761 ac_cv_path_EGREP="$ac_path_EGREP"
7762 ac_path_EGREP_max=$ac_count
7764 # 10*(2^10) chars as input seems more than enough
7765 test $ac_count -gt 10 && break
7767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7771 $ac_path_EGREP_found && break 3
7781 EGREP="$ac_cv_path_EGREP"
7782 if test -z "$EGREP"; then
7783 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7784 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7785 { (exit 1); exit 1; }; }
7789 ac_cv_path_EGREP=$EGREP
7795 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7796 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7797 EGREP="$ac_cv_path_EGREP"
7800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7802 if test "${ac_cv_header_stdc+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7824 rm -f conftest.$ac_objext
7825 if { (ac_try="$ac_compile"
7827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
7838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7839 { (case "(($ac_try" in
7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; } &&
7848 { ac_try='test -s conftest.$ac_objext'
7849 { (case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_try") 2>&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7858 ac_cv_header_stdc=yes
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_cv_header_stdc=no
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 if test $ac_cv_header_stdc = yes; then
7869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7880 $EGREP "memchr" >/dev/null 2>&1; then
7883 ac_cv_header_stdc=no
7889 if test $ac_cv_header_stdc = yes; then
7890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7901 $EGREP "free" >/dev/null 2>&1; then
7904 ac_cv_header_stdc=no
7910 if test $ac_cv_header_stdc = yes; then
7911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7912 if test "$cross_compiling" = yes; then
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7923 #if ((' ' & 0x0FF) == 0x020)
7924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7927 # define ISLOWER(c) \
7928 (('a' <= (c) && (c) <= 'i') \
7929 || ('j' <= (c) && (c) <= 'r') \
7930 || ('s' <= (c) && (c) <= 'z'))
7931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939 for (i = 0; i < 256; i++)
7940 if (XOR (islower (i), ISLOWER (i))
7941 || toupper (i) != TOUPPER (i))
7946 rm -f conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7957 { (case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_try") 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7968 echo "$as_me: program exited with status $ac_status" >&5
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_header_stdc=no
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7982 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7983 if test $ac_cv_header_stdc = yes; then
7985 cat >>confdefs.h <<\_ACEOF
7986 #define STDC_HEADERS 1
7997 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7998 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7999 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8000 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <sys/types.h>
8022 rm -f conftest.$ac_objext
8023 if { (ac_try="$ac_compile"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest.$ac_objext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
8056 eval "$as_ac_Header=yes"
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 eval "$as_ac_Header=no"
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 ac_res=`eval echo '${'$as_ac_Header'}'`
8067 { echo "$as_me:$LINENO: result: $ac_res" >&5
8068 echo "${ECHO_T}$ac_res" >&6; }
8069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8070 cat >>confdefs.h <<_ACEOF
8071 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8074 ac_header_dirent=$ac_hdr; break
8078 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8079 if test $ac_header_dirent = dirent.h; then
8080 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8082 if test "${ac_cv_search_opendir+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 ac_func_search_save_LIBS=$LIBS
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8093 /* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8108 for ac_lib in '' dir; do
8109 if test -z "$ac_lib"; then
8110 ac_res="none required"
8113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_link") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8130 { (case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_try") 2>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; } &&
8139 { ac_try='test -s conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_search_opendir=$ac_res
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8157 rm -f core conftest.err conftest.$ac_objext \
8159 if test "${ac_cv_search_opendir+set}" = set; then
8163 if test "${ac_cv_search_opendir+set}" = set; then
8166 ac_cv_search_opendir=no
8169 LIBS=$ac_func_search_save_LIBS
8171 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8172 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8173 ac_res=$ac_cv_search_opendir
8174 if test "$ac_res" != no; then
8175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8180 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8181 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8182 if test "${ac_cv_search_opendir+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 ac_func_search_save_LIBS=$LIBS
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8193 /* Override any GCC internal prototype to avoid an error.
8194 Use char because int might match the return type of a GCC
8195 builtin and then its argument prototype would still apply. */
8208 for ac_lib in '' x; do
8209 if test -z "$ac_lib"; then
8210 ac_res="none required"
8213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (ac_try="$ac_link"
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_link") 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } &&
8229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; } &&
8239 { ac_try='test -s conftest$ac_exeext'
8240 { (case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_try") 2>&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_search_opendir=$ac_res
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f core conftest.err conftest.$ac_objext \
8259 if test "${ac_cv_search_opendir+set}" = set; then
8263 if test "${ac_cv_search_opendir+set}" = set; then
8266 ac_cv_search_opendir=no
8269 LIBS=$ac_func_search_save_LIBS
8271 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8272 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8273 ac_res=$ac_cv_search_opendir
8274 if test "$ac_res" != no; then
8275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8292 inttypes.h stdint.h unistd.h
8294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8308 #include <$ac_header>
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest.$ac_objext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 eval "$as_ac_Header=yes"
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 eval "$as_ac_Header=no"
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 ac_res=`eval echo '${'$as_ac_Header'}'`
8355 { echo "$as_me:$LINENO: result: $ac_res" >&5
8356 echo "${ECHO_T}$ac_res" >&6; }
8357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8368 for ac_header in dlfcn.h
8370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 ac_res=`eval echo '${'$as_ac_Header'}'`
8378 { echo "$as_me:$LINENO: result: $ac_res" >&5
8379 echo "${ECHO_T}$ac_res" >&6; }
8381 # Is the header compilable?
8382 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 #include <$ac_header>
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1 >conftest.err
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8408 { (case "(($ac_try" in
8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_try") 2>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_header_compiler=yes
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_header_compiler=no
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8437 echo "${ECHO_T}$ac_header_compiler" >&6; }
8439 # Is the header present?
8440 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8442 cat >conftest.$ac_ext <<_ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 #include <$ac_header>
8450 if { (ac_try="$ac_cpp conftest.$ac_ext"
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8458 grep -v '^ *+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } >/dev/null; then
8463 if test -s conftest.err; then
8464 ac_cpp_err=$ac_c_preproc_warn_flag
8465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8472 if test -z "$ac_cpp_err"; then
8473 ac_header_preproc=yes
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.$ac_ext >&5
8478 ac_header_preproc=no
8481 rm -f conftest.err conftest.$ac_ext
8482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8483 echo "${ECHO_T}$ac_header_preproc" >&6; }
8485 # So? What about this header?
8486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8492 ac_header_preproc=yes
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8508 ## ------------------------------------ ##
8509 ## Report this to http://llvm.org/bugs/ ##
8510 ## ------------------------------------ ##
8512 ) | sed "s/^/$as_me: WARNING: /" >&2
8515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 eval "$as_ac_Header=\$ac_header_preproc"
8522 ac_res=`eval echo '${'$as_ac_Header'}'`
8523 { echo "$as_me:$LINENO: result: $ac_res" >&5
8524 echo "${ECHO_T}$ac_res" >&6; }
8527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8528 cat >>confdefs.h <<_ACEOF
8529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8536 # Check whether --enable-ltdl-install was given.
8537 if test "${enable_ltdl_install+set}" = set; then
8538 enableval=$enable_ltdl_install;
8544 if test x"${enable_ltdl_install-no}" != xno; then
8546 INSTALL_LTDL_FALSE='#'
8548 INSTALL_LTDL_TRUE='#'
8554 if test x"${enable_ltdl_convenience-no}" != xno; then
8555 CONVENIENCE_LTDL_TRUE=
8556 CONVENIENCE_LTDL_FALSE='#'
8558 CONVENIENCE_LTDL_TRUE='#'
8559 CONVENIENCE_LTDL_FALSE=
8563 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8564 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8566 libname_spec='lib$name'
8574 shlibpath_overrides_runpath=unknown
8576 dynamic_linker="$host_os ld.so"
8577 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8578 if test "$GCC" = yes; then
8579 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8580 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8581 # if the path contains ";" then we assume it to be the separator
8582 # otherwise default to the standard path separator (i.e. ":") - it is
8583 # assumed that no part of a normal pathname contains ";" but that should
8584 # okay in the real world where ";" in dirpaths is itself problematic.
8585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8592 need_lib_prefix=unknown
8593 hardcode_into_libs=no
8595 # when you set need_version to no, make sure it does not cause -set_version
8596 # flags to be left without arguments
8597 need_version=unknown
8602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8603 shlibpath_var=LIBPATH
8605 # AIX 3 has no versioning support, so we append a major version to the name.
8606 soname_spec='${libname}${release}${shared_ext}$major'
8613 hardcode_into_libs=yes
8614 if test "$host_cpu" = ia64; then
8615 # AIX 5 supports IA64
8616 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8617 shlibpath_var=LD_LIBRARY_PATH
8619 # With GCC up to 2.95.x, collect2 would create an import file
8620 # for dependence libraries. The import file would start with
8621 # the line `#! .'. This would cause the generated library to
8622 # depend on `.', always an invalid library. This was fixed in
8623 # development snapshots of GCC prior to 3.0.
8625 aix4 | aix4.[01] | aix4.[01].*)
8626 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8628 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8635 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8636 # soname into executable. Probably we can add versioning support to
8637 # collect2, so additional links can be useful in future.
8638 if test "$aix_use_runtimelinking" = yes; then
8639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8640 # instead of lib<name>.a to let people know that these are not
8641 # typical AIX shared libraries.
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8644 # We preserve .a as extension for shared libraries through AIX4.2
8645 # and later when we are not doing run time linking.
8646 library_names_spec='${libname}${release}.a $libname.a'
8647 soname_spec='${libname}${release}${shared_ext}$major'
8649 shlibpath_var=LIBPATH
8654 library_names_spec='$libname.ixlibrary $libname.a'
8655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8656 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'
8660 library_names_spec='${libname}${shared_ext}'
8661 dynamic_linker="$host_os ld.so"
8662 shlibpath_var=LIBRARY_PATH
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8671 shlibpath_var=LD_LIBRARY_PATH
8672 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8673 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8674 # the default ld.so.conf also contains /usr/contrib/lib and
8675 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8676 # libtool to hard-code these into programs
8679 cygwin* | mingw* | pw32*)
8680 version_type=windows
8685 case $GCC,$host_os in
8686 yes,cygwin* | yes,mingw* | yes,pw32*)
8687 library_names_spec='$libname.dll.a'
8688 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8689 postinstall_cmds='base_file=`basename \${file}`~
8690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8691 dldir=$destdir/`dirname \$dlpath`~
8692 test -d \$dldir || mkdir -p \$dldir~
8693 $install_prog $dir/$dlname \$dldir/$dlname~
8694 chmod a+x \$dldir/$dlname'
8695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8696 dlpath=$dir/\$dldll~
8698 shlibpath_overrides_runpath=yes
8702 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8703 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8704 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8707 # MinGW DLLs use traditional 'lib' prefix
8708 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8709 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8710 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8711 # It is most probably a Windows format PATH printed by
8712 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8713 # path with ; separators, and with drive letters. We can handle the
8714 # drive letters (cygwin fileutils understands them), so leave them,
8715 # especially as we might pass files found there to a mingw objdump,
8716 # which wouldn't understand a cygwinified path. Ahh.
8717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8723 # pw32 DLLs use 'pw' prefix rather than 'lib'
8724 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8730 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8733 dynamic_linker='Win32 ld.exe'
8734 # FIXME: first we should search . and the directory the executable is in
8738 darwin* | rhapsody*)
8739 dynamic_linker="$host_os dyld"
8743 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8744 soname_spec='${libname}${release}${major}$shared_ext'
8745 shlibpath_overrides_runpath=yes
8746 shlibpath_var=DYLD_LIBRARY_PATH
8747 shrext_cmds='.dylib'
8748 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8749 if test "$GCC" = yes; then
8750 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"`
8752 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8754 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8762 soname_spec='${libname}${release}${shared_ext}$major'
8763 shlibpath_var=LD_LIBRARY_PATH
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 shlibpath_var=LD_LIBRARY_PATH
8777 shlibpath_overrides_runpath=no
8778 hardcode_into_libs=yes
8779 dynamic_linker='GNU ld.so'
8782 freebsd* | dragonfly*)
8783 # DragonFly does not have aout. When/if they implement a new
8784 # versioning mechanism, adjust this.
8785 if test -x /usr/bin/objformat; then
8786 objformat=`/usr/bin/objformat`
8789 freebsd[123].*) objformat=aout ;;
8793 version_type=freebsd-$objformat
8794 case $version_type in
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8805 shlibpath_var=LD_LIBRARY_PATH
8808 shlibpath_overrides_runpath=yes
8810 freebsd3.[01]* | freebsdelf3.[01]*)
8811 shlibpath_overrides_runpath=yes
8812 hardcode_into_libs=yes
8814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8816 shlibpath_overrides_runpath=no
8817 hardcode_into_libs=yes
8819 freebsd*) # from 4.6 on
8820 shlibpath_overrides_runpath=yes
8821 hardcode_into_libs=yes
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 hardcode_into_libs=yes
8836 hpux9* | hpux10* | hpux11*)
8837 # Give a soname corresponding to the major version so that dld.sl refuses to
8838 # link against other versions.
8845 hardcode_into_libs=yes
8846 dynamic_linker="$host_os dld.so"
8847 shlibpath_var=LD_LIBRARY_PATH
8848 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 if test "X$HPUX_IA64_MODE" = X32; then
8852 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8854 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8860 hardcode_into_libs=yes
8861 dynamic_linker="$host_os dld.sl"
8862 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 soname_spec='${libname}${release}${shared_ext}$major'
8866 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871 dynamic_linker="$host_os dld.sl"
8872 shlibpath_var=SHLIB_PATH
8873 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8878 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8879 postinstall_cmds='chmod 555 $lib'
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=no
8891 hardcode_into_libs=yes
8894 irix5* | irix6* | nonstopux*)
8896 nonstopux*) version_type=nonstopux ;;
8898 if test "$lt_cv_prog_gnu_ld" = yes; then
8906 soname_spec='${libname}${release}${shared_ext}$major'
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8909 irix5* | nonstopux*)
8913 case $LD in # libtool.m4 will add one of these switches to LD
8914 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8915 libsuff= shlibsuff= libmagic=32-bit;;
8916 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8917 libsuff=32 shlibsuff=N32 libmagic=N32;;
8918 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8919 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8920 *) libsuff= shlibsuff= libmagic=never-match;;
8924 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8925 shlibpath_overrides_runpath=no
8926 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8927 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8928 hardcode_into_libs=yes
8931 # No shared lib support for Linux oldld, aout, or coff.
8932 linux*oldld* | linux*aout* | linux*coff*)
8936 # This must be Linux ELF.
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=no
8946 # This implies no fast_install, which is unacceptable.
8947 # Some rework will be needed to allow for fast_install
8948 # before this can be enabled.
8949 hardcode_into_libs=yes
8951 # Append ld.so.conf contents to the search path
8952 if test -f /etc/ld.so.conf; then
8953 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' ' '`
8954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8957 # We used to test for /lib/ld.so.1 and disable shared libraries on
8958 # powerpc, because MkLinux only supported shared libraries with the
8959 # GNU dynamic linker. Since this was broken with cross compilers,
8960 # most powerpc-linux boxes support dynamic linking these days and
8961 # people can always --disable-shared, the test was removed, and we
8962 # assume the GNU/Linux dynamic linker is in use.
8963 dynamic_linker='GNU/Linux ld.so'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=no
8974 hardcode_into_libs=yes
8975 dynamic_linker='GNU ld.so'
8982 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8985 dynamic_linker='NetBSD (a.out) ld.so'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 dynamic_linker='NetBSD ld.elf_so'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=yes
8993 hardcode_into_libs=yes
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999 shlibpath_var=LD_LIBRARY_PATH
9000 shlibpath_overrides_runpath=yes
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 shlibpath_overrides_runpath=yes
9015 sys_lib_dlsearch_path_spec="/usr/lib"
9017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9019 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9020 *) need_version=no ;;
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9027 openbsd2.[89] | openbsd2.[89].*)
9028 shlibpath_overrides_runpath=no
9031 shlibpath_overrides_runpath=yes
9035 shlibpath_overrides_runpath=yes
9040 libname_spec='$name'
9043 library_names_spec='$libname${shared_ext} $libname.a'
9044 dynamic_linker='OS/2 ld.exe'
9045 shlibpath_var=LIBPATH
9048 osf3* | osf4* | osf5*)
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 shlibpath_overrides_runpath=yes
9067 hardcode_into_libs=yes
9068 # ldd complains unless libraries are executable
9069 postinstall_cmds='chmod +x $lib'
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9075 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9078 if test "$with_gnu_ld" = yes; then
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 case $host_vendor in
9091 shlibpath_overrides_runpath=no
9093 export_dynamic_flag_spec='${wl}-Blargedynsym'
9094 runpath_var=LD_RUN_PATH
9102 shlibpath_overrides_runpath=no
9103 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9109 if test -d /usr/nec ;then
9111 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9112 soname_spec='$libname${shared_ext}.$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9118 version_type=freebsd-elf
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 hardcode_into_libs=yes
9125 if test "$with_gnu_ld" = yes; then
9126 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9127 shlibpath_overrides_runpath=no
9129 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9130 shlibpath_overrides_runpath=yes
9133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9137 sys_lib_dlsearch_path_spec='/usr/lib'
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9151 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9152 echo "${ECHO_T}$dynamic_linker" >&6; }
9153 test "$dynamic_linker" = no && can_build_shared=no
9155 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9156 if test "$GCC" = yes; then
9157 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9161 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9162 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9163 if test "${libltdl_cv_shlibext+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 eval libltdl_cv_shlibext=$shrext_cmds
9171 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9172 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9173 if test -n "$libltdl_cv_shlibext"; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9182 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9183 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9184 if test "${libltdl_cv_sys_search_path+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9189 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9190 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9191 if test -n "$libltdl_cv_sys_search_path"; then
9193 for dir in $libltdl_cv_sys_search_path; do
9194 if test -z "$sys_search_path"; then
9195 sys_search_path="$dir"
9197 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9201 cat >>confdefs.h <<_ACEOF
9202 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9207 { echo "$as_me:$LINENO: checking for objdir" >&5
9208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9209 if test "${libltdl_cv_objdir+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 libltdl_cv_objdir="$objdir"
9213 if test -n "$objdir"; then
9216 rm -f .libs 2>/dev/null
9217 mkdir .libs 2>/dev/null
9218 if test -d .libs; then
9219 libltdl_cv_objdir=.libs
9221 # MS-DOS does not allow filenames that begin with a dot.
9222 libltdl_cv_objdir=_libs
9224 rmdir .libs 2>/dev/null
9228 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9229 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9231 cat >>confdefs.h <<_ACEOF
9232 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9240 # Check for command to grab the raw symbol name followed by C symbol from nm.
9241 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9242 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9243 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 # These are sane defaults that work on at least a few old systems.
9248 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9250 # Character class describing NM global symbol codes.
9251 symcode='[BCDEGRST]'
9253 # Regexp to match symbols that can be accessed directly from C.
9254 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9256 # Transform an extracted symbol line into a proper C declaration
9257 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9259 # Transform an extracted symbol line into symbol name and symbol address
9260 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'"
9262 # Define system-specific variables.
9267 cygwin* | mingw* | pw32*)
9268 symcode='[ABCDGISTW]'
9270 hpux*) # Its linker distinguishes data from code symbols
9271 if test "$host_cpu" = ia64; then
9272 symcode='[ABCDEGRST]'
9274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9275 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'"
9278 if test "$host_cpu" = ia64; then
9279 symcode='[ABCDGIRSTW]'
9280 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9281 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'"
9285 symcode='[BCDEGRST]'
9288 symcode='[BCDEGQRST]'
9299 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9307 # Handle CRLF in mingw tool chain
9311 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9315 # If we're using GNU nm, then use its standard symbol codes.
9316 case `$NM -V 2>&1` in
9317 *GNU* | *'with BFD'*)
9318 symcode='[ABCDGIRSTW]' ;;
9321 # Try without a prefix undercore, then with it.
9322 for ac_symprfx in "" "_"; do
9324 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9325 symxfrm="\\1 $ac_symprfx\\2 \\2"
9327 # Write the raw and C identifiers.
9328 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9330 # Check to see that the pipe works correctly.
9334 cat > conftest.$ac_ext <<EOF
9339 void nm_test_func(){}
9343 int main(){nm_test_var='a';nm_test_func();return(0);}
9346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; then
9351 # Now try to grab the symbols.
9353 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9354 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && test -s "$nlist"; then
9358 # Try sorting and uniquifying the output.
9359 if sort "$nlist" | uniq > "$nlist"T; then
9360 mv -f "$nlist"T "$nlist"
9365 # Make sure that we snagged all the symbols we need.
9366 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9367 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9368 cat <<EOF > conftest.$ac_ext
9374 # Now generate the symbol file.
9375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9377 cat <<EOF >> conftest.$ac_ext
9378 #if defined (__STDC__) && __STDC__
9379 # define lt_ptr_t void *
9381 # define lt_ptr_t char *
9385 /* The mapping between symbol names and symbols. */
9390 lt_preloaded_symbols[] =
9393 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9394 cat <<\EOF >> conftest.$ac_ext
9402 # Now try linking the two files.
9403 mv conftest.$ac_objext conftstm.$ac_objext
9404 lt_save_LIBS="$LIBS"
9405 lt_save_CFLAGS="$CFLAGS"
9406 LIBS="conftstm.$ac_objext"
9407 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9415 LIBS="$lt_save_LIBS"
9416 CFLAGS="$lt_save_CFLAGS"
9418 echo "cannot find nm_test_func in $nlist" >&5
9421 echo "cannot find nm_test_var in $nlist" >&5
9424 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9427 echo "$progname: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 rm -f conftest* conftst*
9432 # Do not use the global_symbol_pipe unless it works.
9433 if test "$pipe_works" = yes; then
9436 lt_cv_sys_global_symbol_pipe=
9442 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9443 lt_cv_sys_global_symbol_to_cdecl=
9445 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9446 { echo "$as_me:$LINENO: result: failed" >&5
9447 echo "${ECHO_T}failed" >&6; }
9449 { echo "$as_me:$LINENO: result: ok" >&5
9450 echo "${ECHO_T}ok" >&6; }
9454 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9455 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9456 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9459 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9460 libltdl_cv_preloaded_symbols=yes
9462 libltdl_cv_preloaded_symbols=no
9466 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9467 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9468 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_PRELOADED_SYMBOLS 1
9479 ac_cpp='$CPP $CPPFLAGS'
9480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9485 { echo "$as_me:$LINENO: checking for shl_load" >&5
9486 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9487 if test "${ac_cv_func_shl_load+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498 #define shl_load innocuous_shl_load
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char shl_load (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9506 # include <limits.h>
9508 # include <assert.h>
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined __stub_shl_load || defined __stub___shl_load
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1 >conftest.err
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } &&
9549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9550 { (case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_try") 2>&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9565 (eval "$ac_try") 2>&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_func_shl_load=yes
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_cv_func_shl_load=no
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9582 if test $ac_cv_func_shl_load = yes; then
9584 cat >>confdefs.h <<\_ACEOF
9585 #define HAVE_SHL_LOAD 1
9589 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9590 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9591 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_check_lib_save_LIBS=$LIBS
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_link") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (case "(($ac_try" in
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_try") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; }; then
9652 ac_cv_lib_dld_shl_load=yes
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_cv_lib_dld_shl_load=no
9660 rm -f core conftest.err conftest.$ac_objext \
9661 conftest$ac_exeext conftest.$ac_ext
9662 LIBS=$ac_check_lib_save_LIBS
9664 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9665 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9666 if test $ac_cv_lib_dld_shl_load = yes; then
9668 cat >>confdefs.h <<\_ACEOF
9669 #define HAVE_SHL_LOAD 1
9672 LIBADD_DL="$LIBADD_DL -ldld"
9674 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 ac_check_lib_save_LIBS=$LIBS
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_try") 2>&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_lib_dl_dlopen=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_lib_dl_dlopen=no
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9749 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9751 if test $ac_cv_lib_dl_dlopen = yes; then
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_LIBDL 1
9757 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (ac_try="$ac_link"
9780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_link") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9792 { (case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_try") 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
9802 { (case "(($ac_try" in
9803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804 *) ac_try_echo=$ac_try;;
9806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807 (eval "$ac_try") 2>&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9812 cat >>confdefs.h <<\_ACEOF
9813 #define HAVE_LIBDL 1
9815 libltdl_cv_func_dlopen="yes"
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9821 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9822 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 ac_check_lib_save_LIBS=$LIBS
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (case "(($ac_try" in
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_try") 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_lib_svld_dlopen=yes
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_cv_lib_svld_dlopen=no
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9896 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9897 if test $ac_cv_lib_svld_dlopen = yes; then
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_LIBDL 1
9903 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9905 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9906 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9907 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 ac_check_lib_save_LIBS=$LIBS
9912 cat >conftest.$ac_ext <<_ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } &&
9948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9958 { ac_try='test -s conftest$ac_exeext'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_cv_lib_dld_dld_link=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_lib_dld_dld_link=no
9976 rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9981 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9982 if test $ac_cv_lib_dld_dld_link = yes; then
9984 cat >>confdefs.h <<\_ACEOF
9988 LIBADD_DL="$LIBADD_DL -ldld"
9990 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9991 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9992 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define _dyld_func_lookup innocuous__dyld_func_lookup
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char _dyld_func_lookup (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10011 # include <limits.h>
10013 # include <assert.h>
10016 #undef _dyld_func_lookup
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10024 char _dyld_func_lookup ();
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10035 return _dyld_func_lookup ();
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1 >conftest.err
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10055 { (case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060 (eval "$ac_try") 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_try") 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_func__dyld_func_lookup=yes
10076 echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_cv_func__dyld_func_lookup=no
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10085 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10086 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10087 if test $ac_cv_func__dyld_func_lookup = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_DYLD 1
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10116 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10118 lt_save_LIBS="$LIBS"
10119 LIBS="$LIBS $LIBADD_DL"
10121 for ac_func in dlerror
10123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.$ac_ext <<_ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10137 #define $ac_func innocuous_$ac_func
10139 /* System header to define __stub macros and hopefully few prototypes,
10140 which can conflict with char $ac_func (); below.
10141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10142 <limits.h> exists even on freestanding compilers. */
10145 # include <limits.h>
10147 # include <assert.h>
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10159 /* The GNU C library defines this for functions which it implements
10160 to always fail with ENOSYS. Some functions are actually named
10161 something starting with __ and the normal name is an alias. */
10162 #if defined __stub_$ac_func || defined __stub___$ac_func
10169 return $ac_func ();
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10189 { (case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_try") 2>&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_try") 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 eval "$as_ac_var=yes"
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 eval "$as_ac_var=no"
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10219 ac_res=`eval echo '${'$as_ac_var'}'`
10220 { echo "$as_me:$LINENO: result: $ac_res" >&5
10221 echo "${ECHO_T}$ac_res" >&6; }
10222 if test `eval echo '${'$as_ac_var'}'` = yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10230 LIBS="$lt_save_LIBS"
10233 ac_cpp='$CPP $CPPFLAGS'
10234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10241 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10242 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 ac_cv_sys_symbol_underscore=no
10246 cat > conftest.$ac_ext <<EOF
10247 void nm_test_func(){}
10248 int main(){nm_test_func;return 0;}
10250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10251 (eval $ac_compile) 2>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; then
10255 # Now try to grab the symbols.
10256 ac_nlist=conftest.nm
10257 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10258 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && test -s "$ac_nlist"; then
10262 # See whether the symbols have a leading underscore.
10263 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10264 ac_cv_sys_symbol_underscore=yes
10266 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10269 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10273 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10276 echo "configure: failed program was:" >&5
10282 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10283 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10286 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10287 if test x"$libltdl_cv_func_dlopen" = xyes ||
10288 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10289 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10290 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10291 if test "${libltdl_cv_need_uscore+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 libltdl_cv_need_uscore=unknown
10296 LIBS="$LIBS $LIBADD_DL"
10297 if test "$cross_compiling" = yes; then :
10298 libltdl_cv_need_uscore=cross
10300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10301 lt_status=$lt_dlunknown
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10313 # define LT_DLGLOBAL RTLD_GLOBAL
10316 # define LT_DLGLOBAL DL_GLOBAL
10318 # define LT_DLGLOBAL 0
10322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10323 find out it does not work in some platform. */
10324 #ifndef LT_DLLAZY_OR_NOW
10326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10329 # define LT_DLLAZY_OR_NOW DL_LAZY
10332 # define LT_DLLAZY_OR_NOW RTLD_NOW
10335 # define LT_DLLAZY_OR_NOW DL_NOW
10337 # define LT_DLLAZY_OR_NOW 0
10345 extern "C" void exit (int);
10348 void fnord() { int i=42;}
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10371 (./conftest; exit; ) >&5 2>/dev/null
10373 case x$lt_status in
10374 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10375 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10376 x$lt_dlunknown|x*) ;;
10379 # compilation failed
10388 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10389 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10393 if test x"$libltdl_cv_need_uscore" = xyes; then
10395 cat >>confdefs.h <<\_ACEOF
10396 #define NEED_USCORE 1
10402 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10403 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10404 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 # PORTME does your system automatically load deplibs for dlopen?
10408 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10409 # For now, we just catch OSes we know something about -- in the
10410 # future, we'll try test this programmatically.
10411 libltdl_cv_sys_dlopen_deplibs=unknown
10413 aix3*|aix4.1.*|aix4.2.*)
10414 # Unknown whether this is true for these versions of AIX, but
10415 # we want this `case' here to explicitly catch those versions.
10416 libltdl_cv_sys_dlopen_deplibs=unknown
10419 libltdl_cv_sys_dlopen_deplibs=yes
10422 # Assuming the user has installed a libdl from somewhere, this is true
10423 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10424 libltdl_cv_sys_dlopen_deplibs=yes
10426 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10427 # GNU and its variants, using gnu ld.so (Glibc)
10428 libltdl_cv_sys_dlopen_deplibs=yes
10431 libltdl_cv_sys_dlopen_deplibs=yes
10434 libltdl_cv_sys_dlopen_deplibs=yes
10436 irix[12345]*|irix6.[01]*)
10437 # Catch all versions of IRIX before 6.2, and indicate that we don't
10438 # know how it worked for any of those versions.
10439 libltdl_cv_sys_dlopen_deplibs=unknown
10442 # The case above catches anything before 6.2, and it's known that
10443 # at 6.2 and later dlopen does load deplibs.
10444 libltdl_cv_sys_dlopen_deplibs=yes
10447 libltdl_cv_sys_dlopen_deplibs=yes
10450 libltdl_cv_sys_dlopen_deplibs=yes
10453 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10454 # it did *not* use an RPATH in a shared library to find objects the
10455 # library depends on, so we explicitly say `no'.
10456 libltdl_cv_sys_dlopen_deplibs=no
10458 osf5.0|osf5.0a|osf5.1)
10459 # dlopen *does* load deplibs and with the right loader patch applied
10460 # it even uses RPATH in a shared library to search for shared objects
10461 # that the library depends on, but there's no easy way to know if that
10462 # patch is installed. Since this is the case, all we can really
10463 # say is unknown -- it depends on the patch being installed. If
10464 # it is, this changes to `yes'. Without it, it would be `no'.
10465 libltdl_cv_sys_dlopen_deplibs=unknown
10468 # the two cases above should catch all versions of osf <= 5.1. Read
10469 # the comments above for what we know about them.
10470 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10471 # is used to find them so we can finally say `yes'.
10472 libltdl_cv_sys_dlopen_deplibs=yes
10475 libltdl_cv_sys_dlopen_deplibs=yes
10477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10478 libltdl_cv_sys_dlopen_deplibs=yes
10483 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10484 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10485 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define LTDL_DLOPEN_DEPLIBS 1
10494 for ac_header in argz.h
10496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 ac_res=`eval echo '${'$as_ac_Header'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505 echo "${ECHO_T}$ac_res" >&6; }
10507 # Is the header compilable?
10508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 $ac_includes_default
10517 #include <$ac_header>
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_compile") 2>conftest.er1
10528 grep -v '^ *+' conftest.er1 >conftest.err
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; } &&
10543 { ac_try='test -s conftest.$ac_objext'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_header_compiler=yes
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10558 ac_header_compiler=no
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10563 echo "${ECHO_T}$ac_header_compiler" >&6; }
10565 # Is the header present?
10566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #include <$ac_header>
10576 if { (ac_try="$ac_cpp conftest.$ac_ext"
10577 case "(($ac_try" in
10578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579 *) ac_try_echo=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10584 grep -v '^ *+' conftest.er1 >conftest.err
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } >/dev/null; then
10589 if test -s conftest.err; then
10590 ac_cpp_err=$ac_c_preproc_warn_flag
10591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10598 if test -z "$ac_cpp_err"; then
10599 ac_header_preproc=yes
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_header_preproc=no
10607 rm -f conftest.err conftest.$ac_ext
10608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10609 echo "${ECHO_T}$ac_header_preproc" >&6; }
10611 # So? What about this header?
10612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10618 ac_header_preproc=yes
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634 ## ------------------------------------ ##
10635 ## Report this to http://llvm.org/bugs/ ##
10636 ## ------------------------------------ ##
10638 ) | sed "s/^/$as_me: WARNING: /" >&2
10641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 eval "$as_ac_Header=\$ac_header_preproc"
10648 ac_res=`eval echo '${'$as_ac_Header'}'`
10649 { echo "$as_me:$LINENO: result: $ac_res" >&5
10650 echo "${ECHO_T}$ac_res" >&6; }
10653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10663 { echo "$as_me:$LINENO: checking for error_t" >&5
10664 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10665 if test "${ac_cv_type_error_t+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10678 typedef error_t ac__type_new_;
10682 if ((ac__type_new_ *) 0)
10684 if (sizeof (ac__type_new_))
10690 rm -f conftest.$ac_objext
10691 if { (ac_try="$ac_compile"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_try") 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 ac_cv_type_error_t=yes
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 ac_cv_type_error_t=no
10732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10736 if test $ac_cv_type_error_t = yes; then
10738 cat >>confdefs.h <<_ACEOF
10739 #define HAVE_ERROR_T 1
10745 cat >>confdefs.h <<\_ACEOF
10746 #define error_t int
10757 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10773 #define $ac_func innocuous_$ac_func
10775 /* System header to define __stub macros and hopefully few prototypes,
10776 which can conflict with char $ac_func (); below.
10777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10778 <limits.h> exists even on freestanding compilers. */
10781 # include <limits.h>
10783 # include <assert.h>
10788 /* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10795 /* The GNU C library defines this for functions which it implements
10796 to always fail with ENOSYS. Some functions are actually named
10797 something starting with __ and the normal name is an alias. */
10798 #if defined __stub_$ac_func || defined __stub___$ac_func
10805 return $ac_func ();
10810 rm -f conftest.$ac_objext conftest$ac_exeext
10811 if { (ac_try="$ac_link"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_link") 2>conftest.er1
10819 grep -v '^ *+' conftest.er1 >conftest.err
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; } &&
10834 { ac_try='test -s conftest$ac_exeext'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 eval "$as_ac_var=yes"
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 eval "$as_ac_var=no"
10852 rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10855 ac_res=`eval echo '${'$as_ac_var'}'`
10856 { echo "$as_me:$LINENO: result: $ac_res" >&5
10857 echo "${ECHO_T}$ac_res" >&6; }
10858 if test `eval echo '${'$as_ac_var'}'` = yes; then
10859 cat >>confdefs.h <<_ACEOF
10860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888 for ac_header in errno.h malloc.h memory.h unistd.h
10890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 ac_res=`eval echo '${'$as_ac_Header'}'`
10898 { echo "$as_me:$LINENO: result: $ac_res" >&5
10899 echo "${ECHO_T}$ac_res" >&6; }
10901 # Is the header compilable?
10902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 $ac_includes_default
10911 #include <$ac_header>
10913 rm -f conftest.$ac_objext
10914 if { (ac_try="$ac_compile"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_compile") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_try") 2>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then
10947 ac_header_compiler=yes
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10952 ac_header_compiler=no
10955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10957 echo "${ECHO_T}$ac_header_compiler" >&6; }
10959 # Is the header present?
10960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 #include <$ac_header>
10970 if { (ac_try="$ac_cpp conftest.$ac_ext"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } >/dev/null; then
10983 if test -s conftest.err; then
10984 ac_cpp_err=$ac_c_preproc_warn_flag
10985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10992 if test -z "$ac_cpp_err"; then
10993 ac_header_preproc=yes
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_header_preproc=no
11001 rm -f conftest.err conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11003 echo "${ECHO_T}$ac_header_preproc" >&6; }
11005 # So? What about this header?
11006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11011 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11012 ac_header_preproc=yes
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11016 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11018 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11020 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11022 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11026 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11028 ## ------------------------------------ ##
11029 ## Report this to http://llvm.org/bugs/ ##
11030 ## ------------------------------------ ##
11032 ) | sed "s/^/$as_me: WARNING: /" >&2
11035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 eval "$as_ac_Header=\$ac_header_preproc"
11042 ac_res=`eval echo '${'$as_ac_Header'}'`
11043 { echo "$as_me:$LINENO: result: $ac_res" >&5
11044 echo "${ECHO_T}$ac_res" >&6; }
11047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11048 cat >>confdefs.h <<_ACEOF
11049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11057 for ac_header in mach-o/dyld.h
11059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 ac_res=`eval echo '${'$as_ac_Header'}'`
11067 { echo "$as_me:$LINENO: result: $ac_res" >&5
11068 echo "${ECHO_T}$ac_res" >&6; }
11070 # Is the header compilable?
11071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 $ac_includes_default
11080 #include <$ac_header>
11082 rm -f conftest.$ac_objext
11083 if { (ac_try="$ac_compile"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_compile") 2>conftest.er1
11091 grep -v '^ *+' conftest.er1 >conftest.err
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_try") 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_header_compiler=yes
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 ac_header_compiler=no
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11126 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128 # Is the header present?
11129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <$ac_header>
11139 if { (ac_try="$ac_cpp conftest.$ac_ext"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
11154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161 if test -z "$ac_cpp_err"; then
11162 ac_header_preproc=yes
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 ac_header_preproc=no
11170 rm -f conftest.err conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11172 echo "${ECHO_T}$ac_header_preproc" >&6; }
11174 # So? What about this header?
11175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11181 ac_header_preproc=yes
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11197 ## ------------------------------------ ##
11198 ## Report this to http://llvm.org/bugs/ ##
11199 ## ------------------------------------ ##
11201 ) | sed "s/^/$as_me: WARNING: /" >&2
11204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 eval "$as_ac_Header=\$ac_header_preproc"
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11229 for ac_func in closedir opendir readdir
11231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11245 #define $ac_func innocuous_$ac_func
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func (); below.
11249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11250 <limits.h> exists even on freestanding compilers. */
11253 # include <limits.h>
11255 # include <assert.h>
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11267 /* The GNU C library defines this for functions which it implements
11268 to always fail with ENOSYS. Some functions are actually named
11269 something starting with __ and the normal name is an alias. */
11270 #if defined __stub_$ac_func || defined __stub___$ac_func
11277 return $ac_func ();
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (ac_try="$ac_link"
11284 case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_link") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1 >conftest.err
11293 cat conftest.err >&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
11296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297 { (case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_try") 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 eval "$as_ac_var=yes"
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 eval "$as_ac_var=no"
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11327 ac_res=`eval echo '${'$as_ac_var'}'`
11328 { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11330 if test `eval echo '${'$as_ac_var'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11340 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11341 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11354 if test "$GCC" != "yes" && test "$ICC" != "yes"
11356 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11357 echo "$as_me: error: gcc|icc required but not found" >&2;}
11358 { (exit 1); exit 1; }; }
11361 if test "$GXX" != "yes" && test "$IXX" != "yes"
11363 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11364 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11365 { (exit 1); exit 1; }; }
11368 if test "$GCC" = "yes"
11370 cat >conftest.$ac_ext <<_ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11378 #if !defined(__GNUC__) || __GNUC__ < 3
11379 #error Unsupported GCC version
11384 rm -f conftest.$ac_objext
11385 if { (ac_try="$ac_compile"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11424 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11425 { (exit 1); exit 1; }; }
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 if test -z "$llvm_cv_gnu_make_command"
11433 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11434 echo "$as_me: error: GNU Make required but not found" >&2;}
11435 { (exit 1); exit 1; }; }
11438 { echo "$as_me:$LINENO: result: ok" >&5
11439 echo "${ECHO_T}ok" >&6; }
11441 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11442 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11443 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11445 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11447 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11451 NO_MAYBE_UNINITIALIZED=
11452 if test "$GXX" = "yes"
11454 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11456 if test -z "$NO_MAYBE_UNINITIALIZED"
11458 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11462 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11463 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11466 # Check whether --with-python was given.
11467 if test "${with_python+set}" = set; then
11468 withval=$with_python; PYTHON="$withval"
11472 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11473 { echo "$as_me:$LINENO: checking for python" >&5
11474 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11475 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11476 echo "${ECHO_T}user defined: $with_python" >&6; }
11478 if test -n "$PYTHON" ; then
11479 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11480 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11483 # Extract the first word of "python python2 python26", so it can be a program name with args.
11484 set dummy python python2 python26; ac_word=$2
11485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11487 if test "${ac_cv_path_PYTHON+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11511 echo "${ECHO_T}not found" >&6; }
11512 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11513 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11514 { (exit 1); exit 1; }; }"
11518 PYTHON=$ac_cv_path_PYTHON
11519 if test -n "$PYTHON"; then
11520 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11521 echo "${ECHO_T}$PYTHON" >&6; }
11523 { echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6; }
11530 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11531 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11532 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11533 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11534 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11535 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11536 if test "$ac_python_version_major" -gt "2" || \
11537 (test "$ac_python_version_major" -eq "2" && \
11538 test "$ac_python_version_minor" -ge "5") ; then
11539 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11540 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11542 { echo "$as_me:$LINENO: result: not found" >&5
11543 echo "${ECHO_T}not found" >&6; }
11544 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11545 See \`config.log' for more details." >&5
11546 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11547 See \`config.log' for more details." >&2;}
11548 { (exit 1); exit 1; }; }
11553 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11554 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11555 if test "${ac_cv_lib_m_sin+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 ac_check_lib_save_LIBS=$LIBS
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>conftest.er1
11591 grep -v '^ *+' conftest.er1 >conftest.err
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11597 { (case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_try") 2>&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest$ac_exeext'
11607 { (case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_try") 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_lib_m_sin=yes
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11629 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11630 if test $ac_cv_lib_m_sin = yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define HAVE_LIBM 1
11639 if test "$llvm_cv_os_type" = "MingW" ; then
11641 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11642 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11643 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 ac_check_lib_save_LIBS=$LIBS
11647 LIBS="-limagehlp $LIBS"
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (ac_try="$ac_link"
11666 case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_link") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest$ac_exeext'
11689 { (case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_try") 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 ac_cv_lib_imagehlp_main=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_lib_imagehlp_main=no
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11711 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11712 if test $ac_cv_lib_imagehlp_main = yes; then
11713 cat >>confdefs.h <<_ACEOF
11714 #define HAVE_LIBIMAGEHLP 1
11717 LIBS="-limagehlp $LIBS"
11722 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11723 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11724 if test "${ac_cv_lib_psapi_main+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 ac_check_lib_save_LIBS=$LIBS
11728 LIBS="-lpsapi $LIBS"
11729 cat >conftest.$ac_ext <<_ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_lib_psapi_main=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_cv_lib_psapi_main=no
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11791 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
11792 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
11793 if test $ac_cv_lib_psapi_main = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_LIBPSAPI 1
11798 LIBS="-lpsapi $LIBS"
11803 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
11804 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
11805 if test "${ac_cv_lib_shell32_main+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-lshell32 $LIBS"
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest$ac_exeext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_cv_lib_shell32_main=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_shell32_main=no
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
11873 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
11874 if test $ac_cv_lib_shell32_main = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBSHELL32 1
11879 LIBS="-lshell32 $LIBS"
11885 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11886 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11887 if test "${ac_cv_search_dlopen+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11890 ac_func_search_save_LIBS=$LIBS
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11913 for ac_lib in '' dl; do
11914 if test -z "$ac_lib"; then
11915 ac_res="none required"
11918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11935 { (case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_try") 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_try") 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_search_dlopen=$ac_res
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11962 rm -f core conftest.err conftest.$ac_objext \
11964 if test "${ac_cv_search_dlopen+set}" = set; then
11968 if test "${ac_cv_search_dlopen+set}" = set; then
11971 ac_cv_search_dlopen=no
11973 rm conftest.$ac_ext
11974 LIBS=$ac_func_search_save_LIBS
11976 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11977 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11978 ac_res=$ac_cv_search_dlopen
11979 if test "$ac_res" != no; then
11980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_DLOPEN 1
11987 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
11988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
11992 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
11993 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
11994 if test "${ac_cv_search_clock_gettime+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_func_search_save_LIBS=$LIBS
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12011 char clock_gettime ();
12015 return clock_gettime ();
12020 for ac_lib in '' rt; do
12021 if test -z "$ac_lib"; then
12022 ac_res="none required"
12025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12042 { (case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_try") 2>&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_search_clock_gettime=$ac_res
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12069 rm -f core conftest.err conftest.$ac_objext \
12071 if test "${ac_cv_search_clock_gettime+set}" = set; then
12075 if test "${ac_cv_search_clock_gettime+set}" = set; then
12078 ac_cv_search_clock_gettime=no
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12083 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12084 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12085 ac_res=$ac_cv_search_clock_gettime
12086 if test "$ac_res" != no; then
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12092 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12093 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12094 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12095 if test "${ac_cv_search_setupterm+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 ac_func_search_save_LIBS=$LIBS
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12116 return setupterm ();
12121 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12122 if test -z "$ac_lib"; then
12123 ac_res="none required"
12126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12137 grep -v '^ *+' conftest.er1 >conftest.err
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12143 { (case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_try") 2>&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; } &&
12152 { ac_try='test -s conftest$ac_exeext'
12153 { (case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_try") 2>&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; }; then
12162 ac_cv_search_setupterm=$ac_res
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12170 rm -f core conftest.err conftest.$ac_objext \
12172 if test "${ac_cv_search_setupterm+set}" = set; then
12176 if test "${ac_cv_search_setupterm+set}" = set; then
12179 ac_cv_search_setupterm=no
12181 rm conftest.$ac_ext
12182 LIBS=$ac_func_search_save_LIBS
12184 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12185 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12186 ac_res=$ac_cv_search_setupterm
12187 if test "$ac_res" != no; then
12188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_TERMINFO 1
12198 if test "$llvm_cv_enable_libffi" = "yes" ; then
12199 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12200 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12201 if test "${ac_cv_search_ffi_call+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 ac_func_search_save_LIBS=$LIBS
12205 cat >conftest.$ac_ext <<_ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12222 return ffi_call ();
12227 for ac_lib in '' ffi; do
12228 if test -z "$ac_lib"; then
12229 ac_res="none required"
12232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
12243 grep -v '^ *+' conftest.er1 >conftest.err
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12249 { (case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_try") 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; }; then
12268 ac_cv_search_ffi_call=$ac_res
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12276 rm -f core conftest.err conftest.$ac_objext \
12278 if test "${ac_cv_search_ffi_call+set}" = set; then
12282 if test "${ac_cv_search_ffi_call+set}" = set; then
12285 ac_cv_search_ffi_call=no
12287 rm conftest.$ac_ext
12288 LIBS=$ac_func_search_save_LIBS
12290 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12291 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12292 ac_res=$ac_cv_search_ffi_call
12293 if test "$ac_res" != no; then
12294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12296 cat >>confdefs.h <<\_ACEOF
12297 #define HAVE_FFI_CALL 1
12301 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12302 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12303 { (exit 1); exit 1; }; }
12308 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12309 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12310 if test "${ac_cv_search_mallinfo+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_func_search_save_LIBS=$LIBS
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12331 return mallinfo ();
12336 for ac_lib in '' malloc; do
12337 if test -z "$ac_lib"; then
12338 ac_res="none required"
12341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_link") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (case "(($ac_try" in
12369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_try") 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_search_mallinfo=$ac_res
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12385 rm -f core conftest.err conftest.$ac_objext \
12387 if test "${ac_cv_search_mallinfo+set}" = set; then
12391 if test "${ac_cv_search_mallinfo+set}" = set; then
12394 ac_cv_search_mallinfo=no
12396 rm conftest.$ac_ext
12397 LIBS=$ac_func_search_save_LIBS
12399 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12400 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12401 ac_res=$ac_cv_search_mallinfo
12402 if test "$ac_res" != no; then
12403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12405 cat >>confdefs.h <<\_ACEOF
12406 #define HAVE_MALLINFO 1
12412 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12414 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12415 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12416 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-lpthread $LIBS"
12421 cat >conftest.$ac_ext <<_ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12428 /* Override any GCC internal prototype to avoid an error.
12429 Use char because int might match the return type of a GCC
12430 builtin and then its argument prototype would still apply. */
12434 char pthread_mutex_init ();
12438 return pthread_mutex_init ();
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (ac_try="$ac_link"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_link") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_try") 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_lib_pthread_pthread_mutex_init=yes
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_cv_lib_pthread_pthread_mutex_init=no
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12489 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12490 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12491 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12492 cat >>confdefs.h <<_ACEOF
12493 #define HAVE_LIBPTHREAD 1
12496 LIBS="-lpthread $LIBS"
12500 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12501 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12502 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 ac_func_search_save_LIBS=$LIBS
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 /* Override any GCC internal prototype to avoid an error.
12514 Use char because int might match the return type of a GCC
12515 builtin and then its argument prototype would still apply. */
12519 char pthread_mutex_lock ();
12523 return pthread_mutex_lock ();
12528 for ac_lib in '' pthread; do
12529 if test -z "$ac_lib"; then
12530 ac_res="none required"
12533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (ac_try="$ac_link"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_link") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; } &&
12559 { ac_try='test -s conftest$ac_exeext'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_search_pthread_mutex_lock=$ac_res
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12577 rm -f core conftest.err conftest.$ac_objext \
12579 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12583 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12586 ac_cv_search_pthread_mutex_lock=no
12588 rm conftest.$ac_ext
12589 LIBS=$ac_func_search_save_LIBS
12591 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12592 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12593 ac_res=$ac_cv_search_pthread_mutex_lock
12594 if test "$ac_res" != no; then
12595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12597 cat >>confdefs.h <<\_ACEOF
12598 #define HAVE_PTHREAD_MUTEX_LOCK 1
12603 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12604 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12605 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 ac_func_search_save_LIBS=$LIBS
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12622 char pthread_rwlock_init ();
12626 return pthread_rwlock_init ();
12631 for ac_lib in '' pthread; do
12632 if test -z "$ac_lib"; then
12633 ac_res="none required"
12636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (ac_try="$ac_link"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_link") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12653 { (case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_try") 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_try") 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_cv_search_pthread_rwlock_init=$ac_res
12674 echo "$as_me: failed program was:" >&5
12675 sed 's/^/| /' conftest.$ac_ext >&5
12680 rm -f core conftest.err conftest.$ac_objext \
12682 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12686 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12689 ac_cv_search_pthread_rwlock_init=no
12691 rm conftest.$ac_ext
12692 LIBS=$ac_func_search_save_LIBS
12694 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12695 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12696 ac_res=$ac_cv_search_pthread_rwlock_init
12697 if test "$ac_res" != no; then
12698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_PTHREAD_RWLOCK_INIT 1
12706 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12707 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12708 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 ac_func_search_save_LIBS=$LIBS
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12725 char pthread_getspecific ();
12729 return pthread_getspecific ();
12734 for ac_lib in '' pthread; do
12735 if test -z "$ac_lib"; then
12736 ac_res="none required"
12739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12741 rm -f conftest.$ac_objext conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>conftest.er1
12750 grep -v '^ *+' conftest.er1 >conftest.err
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_search_pthread_getspecific=$ac_res
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12783 rm -f core conftest.err conftest.$ac_objext \
12785 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12789 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12792 ac_cv_search_pthread_getspecific=no
12794 rm conftest.$ac_ext
12795 LIBS=$ac_func_search_save_LIBS
12797 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12798 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12799 ac_res=$ac_cv_search_pthread_getspecific
12800 if test "$ac_res" != no; then
12801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_PTHREAD_GETSPECIFIC 1
12811 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12813 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
12814 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
12815 if test "${ac_cv_lib_z_compress2+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 ac_check_lib_save_LIBS=$LIBS
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12837 return compress2 ();
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_cv_lib_z_compress2=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_cv_lib_z_compress2=no
12884 rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886 LIBS=$ac_check_lib_save_LIBS
12888 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
12889 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
12890 if test $ac_cv_lib_z_compress2 = yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define HAVE_LIBZ 1
12902 # Check whether --with-udis86 was given.
12903 if test "${with_udis86+set}" = set; then
12904 withval=$with_udis86;
12909 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12912 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12913 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12914 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 ac_check_lib_save_LIBS=$LIBS
12918 LIBS="-ludis86 $LIBS"
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12941 rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_cv_lib_udis86_ud_init=yes
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 ac_cv_lib_udis86_ud_init=no
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12987 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12988 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12989 if test $ac_cv_lib_udis86_ud_init = yes; then
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_LIBUDIS86 1
12994 LIBS="-ludis86 $LIBS"
12998 echo "Error! You need to have libudis86 around."
13010 cat >>confdefs.h <<_ACEOF
13011 #define USE_UDIS86 $USE_UDIS86
13016 # Check whether --with-oprofile was given.
13017 if test "${with_oprofile+set}" = set; then
13018 withval=$with_oprofile;
13022 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13023 no) llvm_cv_oppath=
13026 *) llvm_cv_oppath="${withval}/lib/oprofile"
13027 CPPFLAGS="-I${withval}/include";;
13029 case $llvm_cv_os_type in
13031 if test -n "$llvm_cv_oppath" ; then
13032 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13033 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13034 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13035 if test "${ac_cv_search_bfd_init+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 ac_func_search_save_LIBS=$LIBS
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13056 return bfd_init ();
13061 for ac_lib in '' bfd; do
13062 if test -z "$ac_lib"; then
13063 ac_res="none required"
13066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_link") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083 { (case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_try") 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest$ac_exeext'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_cv_search_bfd_init=$ac_res
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13110 rm -f core conftest.err conftest.$ac_objext \
13112 if test "${ac_cv_search_bfd_init+set}" = set; then
13116 if test "${ac_cv_search_bfd_init+set}" = set; then
13119 ac_cv_search_bfd_init=no
13121 rm conftest.$ac_ext
13122 LIBS=$ac_func_search_save_LIBS
13124 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13125 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13126 ac_res=$ac_cv_search_bfd_init
13127 if test "$ac_res" != no; then
13128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13132 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13133 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13134 if test "${ac_cv_search_op_open_agent+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_func_search_save_LIBS=$LIBS
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13151 char op_open_agent ();
13155 return op_open_agent ();
13160 for ac_lib in '' opagent; do
13161 if test -z "$ac_lib"; then
13162 ac_res="none required"
13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_cv_search_op_open_agent=$ac_res
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext \
13211 if test "${ac_cv_search_op_open_agent+set}" = set; then
13215 if test "${ac_cv_search_op_open_agent+set}" = set; then
13218 ac_cv_search_op_open_agent=no
13220 rm conftest.$ac_ext
13221 LIBS=$ac_func_search_save_LIBS
13223 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13224 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13225 ac_res=$ac_cv_search_op_open_agent
13226 if test "$ac_res" != no; then
13227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13231 echo "Error! You need to have libopagent around."
13236 if test "${ac_cv_header_opagent_h+set}" = set; then
13237 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13238 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13239 if test "${ac_cv_header_opagent_h+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13243 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13245 # Is the header compilable?
13246 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13247 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 $ac_includes_default
13255 #include <opagent.h>
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13266 grep -v '^ *+' conftest.er1 >conftest.err
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_header_compiler=yes
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13296 ac_header_compiler=no
13299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13301 echo "${ECHO_T}$ac_header_compiler" >&6; }
13303 # Is the header present?
13304 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13305 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include <opagent.h>
13314 if { (ac_try="$ac_cpp conftest.$ac_ext"
13315 case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13322 grep -v '^ *+' conftest.er1 >conftest.err
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } >/dev/null; then
13327 if test -s conftest.err; then
13328 ac_cpp_err=$ac_c_preproc_warn_flag
13329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13336 if test -z "$ac_cpp_err"; then
13337 ac_header_preproc=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_header_preproc=no
13345 rm -f conftest.err conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13347 echo "${ECHO_T}$ac_header_preproc" >&6; }
13349 # So? What about this header?
13350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13352 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13353 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13354 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13355 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13356 ac_header_preproc=yes
13359 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13360 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13362 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13363 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13364 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13365 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13366 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13367 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13368 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13369 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13370 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13372 ## ------------------------------------ ##
13373 ## Report this to http://llvm.org/bugs/ ##
13374 ## ------------------------------------ ##
13376 ) | sed "s/^/$as_me: WARNING: /" >&2
13379 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13380 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13381 if test "${ac_cv_header_opagent_h+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 ac_cv_header_opagent_h=$ac_header_preproc
13386 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13387 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13390 if test $ac_cv_header_opagent_h = yes; then
13394 echo "Error! You need to have opagent.h around."
13402 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13403 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13404 { (exit 1); exit 1; }; } ;;
13415 cat >>confdefs.h <<_ACEOF
13416 #define LLVM_USE_OPROFILE $USE_OPROFILE
13421 # Check whether --with-intel-jitevents was given.
13422 if test "${with_intel_jitevents+set}" = set; then
13423 withval=$with_intel_jitevents;
13425 yes) USE_INTEL_JITEVENTS=1
13427 no) USE_INTEL_JITEVENTS=0
13429 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13430 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13431 { (exit 1); exit 1; }; };;
13434 case $llvm_cv_os_type in
13435 Linux|Win32|Cygwin|MingW) ;;
13436 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13437 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13438 { (exit 1); exit 1; }; };;
13441 case "$llvm_cv_target_arch" in
13443 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13444 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13445 { (exit 1); exit 1; }; };;
13450 USE_INTEL_JITEVENTS=0
13456 cat >>confdefs.h <<_ACEOF
13457 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13461 for ac_prog in xml2-config
13463 # Extract the first word of "$ac_prog", so it can be a program name with args.
13464 set dummy $ac_prog; ac_word=$2
13465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13467 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 if test -n "$XML2CONFIG"; then
13471 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $PATH
13477 test -z "$as_dir" && as_dir=.
13478 for ac_exec_ext in '' $ac_executable_extensions; do
13479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13480 ac_cv_prog_XML2CONFIG="$ac_prog"
13481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13490 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13491 if test -n "$XML2CONFIG"; then
13492 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13493 echo "${ECHO_T}$XML2CONFIG" >&6; }
13495 { echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6; }
13500 test -n "$XML2CONFIG" && break
13504 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13505 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13506 if test "x$XML2CONFIG" = "x"; then
13507 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13508 echo "${ECHO_T}xml2-config not found" >&6; }
13510 LIBXML2_INC=`$XML2CONFIG --cflags`
13511 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13512 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13513 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13514 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13515 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 ac_check_lib_save_LIBS=$LIBS
13519 LIBS="-lxml2 $LIBS"
13520 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13527 /* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13533 char xmlReadFile ();
13537 return xmlReadFile ();
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557 { (case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_try") 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_try") 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_lib_xml2_xmlReadFile=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 ac_cv_lib_xml2_xmlReadFile=no
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 LIBS=$ac_check_lib_save_LIBS
13588 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13589 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13590 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13592 cat >>confdefs.h <<\_ACEOF
13593 #define CLANG_HAVE_LIBXML 1
13596 LIBXML2_LIBS="-lxml2"
13609 ac_header_dirent=no
13610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13611 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <sys/types.h>
13635 rm -f conftest.$ac_objext
13636 if { (ac_try="$ac_compile"
13637 case "(($ac_try" in
13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_compile") 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13650 { (case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_try") 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try='test -s conftest.$ac_objext'
13660 { (case "(($ac_try" in
13661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_try") 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13669 eval "$as_ac_Header=yes"
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 eval "$as_ac_Header=no"
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 ac_res=`eval echo '${'$as_ac_Header'}'`
13680 { echo "$as_me:$LINENO: result: $ac_res" >&5
13681 echo "${ECHO_T}$ac_res" >&6; }
13682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13687 ac_header_dirent=$ac_hdr; break
13691 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13692 if test $ac_header_dirent = dirent.h; then
13693 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13694 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13695 if test "${ac_cv_search_opendir+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 ac_func_search_save_LIBS=$LIBS
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13721 for ac_lib in '' dir; do
13722 if test -z "$ac_lib"; then
13723 ac_res="none required"
13726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13728 rm -f conftest.$ac_objext conftest$ac_exeext
13729 if { (ac_try="$ac_link"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_link") 2>conftest.er1
13737 grep -v '^ *+' conftest.er1 >conftest.err
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13743 { (case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_try") 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; } &&
13752 { ac_try='test -s conftest$ac_exeext'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_cv_search_opendir=$ac_res
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13770 rm -f core conftest.err conftest.$ac_objext \
13772 if test "${ac_cv_search_opendir+set}" = set; then
13776 if test "${ac_cv_search_opendir+set}" = set; then
13779 ac_cv_search_opendir=no
13781 rm conftest.$ac_ext
13782 LIBS=$ac_func_search_save_LIBS
13784 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13785 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13786 ac_res=$ac_cv_search_opendir
13787 if test "$ac_res" != no; then
13788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13793 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13794 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13795 if test "${ac_cv_search_opendir+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 ac_func_search_save_LIBS=$LIBS
13799 cat >conftest.$ac_ext <<_ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13821 for ac_lib in '' x; do
13822 if test -z "$ac_lib"; then
13823 ac_res="none required"
13826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_link") 2>conftest.er1
13837 grep -v '^ *+' conftest.er1 >conftest.err
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13843 { (case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_try") 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest$ac_exeext'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 ac_cv_search_opendir=$ac_res
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13870 rm -f core conftest.err conftest.$ac_objext \
13872 if test "${ac_cv_search_opendir+set}" = set; then
13876 if test "${ac_cv_search_opendir+set}" = set; then
13879 ac_cv_search_opendir=no
13881 rm conftest.$ac_ext
13882 LIBS=$ac_func_search_save_LIBS
13884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13886 ac_res=$ac_cv_search_opendir
13887 if test "$ac_res" != no; then
13888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13894 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13895 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13896 if test "${ac_cv_header_mmap_anon+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_cpp='$CPP $CPPFLAGS'
13901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 #include <sys/mman.h>
13912 #include <unistd.h>
13917 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_compile") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_header_mmap_anon=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_cv_header_mmap_anon=no
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 ac_cpp='$CPP $CPPFLAGS'
13967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13973 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13974 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13975 if test "$ac_cv_header_mmap_anon" = yes; then
13977 cat >>confdefs.h <<\_ACEOF
13978 #define HAVE_MMAP_ANONYMOUS 1
13983 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13984 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13985 if test "${ac_cv_header_stat_broken+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 #include <sys/types.h>
13995 #include <sys/stat.h>
13997 #if defined S_ISBLK && defined S_IFDIR
13998 # if S_ISBLK (S_IFDIR)
14003 #if defined S_ISBLK && defined S_IFCHR
14004 # if S_ISBLK (S_IFCHR)
14009 #if defined S_ISLNK && defined S_IFREG
14010 # if S_ISLNK (S_IFREG)
14015 #if defined S_ISSOCK && defined S_IFREG
14016 # if S_ISSOCK (S_IFREG)
14022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14023 $EGREP "You lose" >/dev/null 2>&1; then
14024 ac_cv_header_stat_broken=yes
14026 ac_cv_header_stat_broken=no
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14032 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14033 if test $ac_cv_header_stat_broken = yes; then
14035 cat >>confdefs.h <<\_ACEOF
14036 #define STAT_MACROS_BROKEN 1
14041 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14042 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <sys/types.h>
14053 #include <sys/wait.h>
14054 #ifndef WEXITSTATUS
14055 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14058 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest.$ac_objext'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_header_sys_wait_h=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_header_sys_wait_h=no
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14116 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14117 if test $ac_cv_header_sys_wait_h = yes; then
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_SYS_WAIT_H 1
14125 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14127 if test "${ac_cv_header_time+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 cat >conftest.$ac_ext <<_ACEOF
14133 cat confdefs.h >>conftest.$ac_ext
14134 cat >>conftest.$ac_ext <<_ACEOF
14135 /* end confdefs.h. */
14136 #include <sys/types.h>
14137 #include <sys/time.h>
14143 if ((struct tm *) 0)
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_compile") 2>conftest.er1
14158 grep -v '^ *+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14164 { (case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_try") 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try='test -s conftest.$ac_objext'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_header_time=yes
14185 echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_header_time=no
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14194 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14195 if test $ac_cv_header_time = yes; then
14197 cat >>confdefs.h <<\_ACEOF
14198 #define TIME_WITH_SYS_TIME 1
14205 ac_cpp='$CXXCPP $CPPFLAGS'
14206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14211 ac_cpp='$CXXCPP $CPPFLAGS'
14212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14215 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14216 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14217 if test -z "$CXXCPP"; then
14218 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 # Double quotes because CXXCPP needs to be expanded
14222 for CXXCPP in "$CXX -E" "/lib/cpp"
14224 ac_preproc_ok=false
14225 for ac_cxx_preproc_warn_flag in '' yes
14227 # Use a header file that comes with gcc, so configuring glibc
14228 # with a fresh cross-compiler works.
14229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14230 # <limits.h> exists even on freestanding compilers.
14231 # On the NeXT, cc -E runs the code through the compiler's parser,
14232 # not just through cpp. "Syntax error" is here to catch this case.
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 # include <limits.h>
14242 # include <assert.h>
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev/null; then
14259 if test -s conftest.err; then
14260 ac_cpp_err=$ac_cxx_preproc_warn_flag
14261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14268 if test -z "$ac_cpp_err"; then
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 # Broken: fails on valid input.
14278 rm -f conftest.err conftest.$ac_ext
14280 # OK, works on sane cases. Now check whether nonexistent headers
14281 # can be detected and how.
14282 cat >conftest.$ac_ext <<_ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 #include <ac_nonexistent.h>
14290 if { (ac_try="$ac_cpp conftest.$ac_ext"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } >/dev/null; then
14303 if test -s conftest.err; then
14304 ac_cpp_err=$ac_cxx_preproc_warn_flag
14305 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14312 if test -z "$ac_cpp_err"; then
14313 # Broken: success on invalid input.
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 # Passes both tests.
14324 rm -f conftest.err conftest.$ac_ext
14327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14328 rm -f conftest.err conftest.$ac_ext
14329 if $ac_preproc_ok; then
14334 ac_cv_prog_CXXCPP=$CXXCPP
14337 CXXCPP=$ac_cv_prog_CXXCPP
14339 ac_cv_prog_CXXCPP=$CXXCPP
14341 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14342 echo "${ECHO_T}$CXXCPP" >&6; }
14343 ac_preproc_ok=false
14344 for ac_cxx_preproc_warn_flag in '' yes
14346 # Use a header file that comes with gcc, so configuring glibc
14347 # with a fresh cross-compiler works.
14348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14349 # <limits.h> exists even on freestanding compilers.
14350 # On the NeXT, cc -E runs the code through the compiler's parser,
14351 # not just through cpp. "Syntax error" is here to catch this case.
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 # include <limits.h>
14361 # include <assert.h>
14365 if { (ac_try="$ac_cpp conftest.$ac_ext"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } >/dev/null; then
14378 if test -s conftest.err; then
14379 ac_cpp_err=$ac_cxx_preproc_warn_flag
14380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14387 if test -z "$ac_cpp_err"; then
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 # Broken: fails on valid input.
14397 rm -f conftest.err conftest.$ac_ext
14399 # OK, works on sane cases. Now check whether nonexistent headers
14400 # can be detected and how.
14401 cat >conftest.$ac_ext <<_ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 #include <ac_nonexistent.h>
14409 if { (ac_try="$ac_cpp conftest.$ac_ext"
14410 case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14417 grep -v '^ *+' conftest.er1 >conftest.err
14419 cat conftest.err >&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } >/dev/null; then
14422 if test -s conftest.err; then
14423 ac_cpp_err=$ac_cxx_preproc_warn_flag
14424 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14431 if test -z "$ac_cpp_err"; then
14432 # Broken: success on invalid input.
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14438 # Passes both tests.
14443 rm -f conftest.err conftest.$ac_ext
14446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14447 rm -f conftest.err conftest.$ac_ext
14448 if $ac_preproc_ok; then
14451 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14452 See \`config.log' for more details." >&5
14453 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14454 See \`config.log' for more details." >&2;}
14455 { (exit 1); exit 1; }; }
14459 ac_cpp='$CXXCPP $CPPFLAGS'
14460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14466 for ac_header in cxxabi.h
14468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 ac_res=`eval echo '${'$as_ac_Header'}'`
14476 { echo "$as_me:$LINENO: result: $ac_res" >&5
14477 echo "${ECHO_T}$ac_res" >&6; }
14479 # Is the header compilable?
14480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14482 cat >conftest.$ac_ext <<_ACEOF
14485 cat confdefs.h >>conftest.$ac_ext
14486 cat >>conftest.$ac_ext <<_ACEOF
14487 /* end confdefs.h. */
14488 $ac_includes_default
14489 #include <$ac_header>
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_compile") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14506 { (case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14511 (eval "$ac_try") 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (case "(($ac_try" in
14517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518 *) ac_try_echo=$ac_try;;
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521 (eval "$ac_try") 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_header_compiler=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_header_compiler=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <$ac_header>
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null; then
14561 if test -s conftest.err; then
14562 ac_cpp_err=$ac_cxx_preproc_warn_flag
14563 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14570 if test -z "$ac_cpp_err"; then
14571 ac_header_preproc=yes
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 ac_header_preproc=no
14579 rm -f conftest.err conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14581 echo "${ECHO_T}$ac_header_preproc" >&6; }
14583 # So? What about this header?
14584 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14590 ac_header_preproc=yes
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14606 ## ------------------------------------ ##
14607 ## Report this to http://llvm.org/bugs/ ##
14608 ## ------------------------------------ ##
14610 ) | sed "s/^/$as_me: WARNING: /" >&2
14613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 eval "$as_ac_Header=\$ac_header_preproc"
14620 ac_res=`eval echo '${'$as_ac_Header'}'`
14621 { echo "$as_me:$LINENO: result: $ac_res" >&5
14622 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14635 ac_cpp='$CPP $CPPFLAGS'
14636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14645 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
14647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14658 # Is the header compilable?
14659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14667 $ac_includes_default
14668 #include <$ac_header>
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
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_compile") 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); } &&
14684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_try") 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_header_compiler=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_compiler=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null; then
14740 if test -s conftest.err; then
14741 ac_cpp_err=$ac_c_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14749 if test -z "$ac_cpp_err"; then
14750 ac_header_preproc=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_preproc=no
14758 rm -f conftest.err conftest.$ac_ext
14759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760 echo "${ECHO_T}$ac_header_preproc" >&6; }
14762 # So? What about this header?
14763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769 ac_header_preproc=yes
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14775 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14779 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14785 ## ------------------------------------ ##
14786 ## Report this to http://llvm.org/bugs/ ##
14787 ## ------------------------------------ ##
14789 ) | sed "s/^/$as_me: WARNING: /" >&2
14792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 eval "$as_ac_Header=\$ac_header_preproc"
14799 ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14819 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14828 ac_res=`eval echo '${'$as_ac_Header'}'`
14829 { echo "$as_me:$LINENO: result: $ac_res" >&5
14830 echo "${ECHO_T}$ac_res" >&6; }
14832 # Is the header compilable?
14833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14841 $ac_includes_default
14842 #include <$ac_header>
14844 rm -f conftest.$ac_objext
14845 if { (ac_try="$ac_compile"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_compile") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14859 { (case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_try") 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
14878 ac_header_compiler=yes
14880 echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14883 ac_header_compiler=no
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14888 echo "${ECHO_T}$ac_header_compiler" >&6; }
14890 # Is the header present?
14891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <$ac_header>
14901 if { (ac_try="$ac_cpp conftest.$ac_ext"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } >/dev/null; then
14914 if test -s conftest.err; then
14915 ac_cpp_err=$ac_c_preproc_warn_flag
14916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14923 if test -z "$ac_cpp_err"; then
14924 ac_header_preproc=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14959 ## ------------------------------------ ##
14960 ## Report this to http://llvm.org/bugs/ ##
14961 ## ------------------------------------ ##
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 eval "$as_ac_Header=\$ac_header_preproc"
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974 { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 for ac_header in utime.h
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 ac_res=`eval echo '${'$as_ac_Header'}'`
14998 { echo "$as_me:$LINENO: result: $ac_res" >&5
14999 echo "${ECHO_T}$ac_res" >&6; }
15001 # Is the header compilable?
15002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 $ac_includes_default
15011 #include <$ac_header>
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_compile") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } &&
15037 { ac_try='test -s conftest.$ac_objext'
15038 { (case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_try") 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_header_compiler=yes
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_header_compiler=no
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6; }
15059 # Is the header present?
15060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <$ac_header>
15070 if { (ac_try="$ac_cpp conftest.$ac_ext"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } >/dev/null; then
15083 if test -s conftest.err; then
15084 ac_cpp_err=$ac_c_preproc_warn_flag
15085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15092 if test -z "$ac_cpp_err"; then
15093 ac_header_preproc=yes
15095 echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15098 ac_header_preproc=no
15101 rm -f conftest.err conftest.$ac_ext
15102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103 echo "${ECHO_T}$ac_header_preproc" >&6; }
15105 # So? What about this header?
15106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15128 ## ------------------------------------ ##
15129 ## Report this to http://llvm.org/bugs/ ##
15130 ## ------------------------------------ ##
15132 ) | sed "s/^/$as_me: WARNING: /" >&2
15135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 eval "$as_ac_Header=\$ac_header_preproc"
15142 ac_res=`eval echo '${'$as_ac_Header'}'`
15143 { echo "$as_me:$LINENO: result: $ac_res" >&5
15144 echo "${ECHO_T}$ac_res" >&6; }
15147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15161 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 ac_res=`eval echo '${'$as_ac_Header'}'`
15171 { echo "$as_me:$LINENO: result: $ac_res" >&5
15172 echo "${ECHO_T}$ac_res" >&6; }
15174 # Is the header compilable?
15175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15184 #include <$ac_header>
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_compile") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } &&
15200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } &&
15210 { ac_try='test -s conftest.$ac_objext'
15211 { (case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_try") 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_header_compiler=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_header_compiler=no
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15230 echo "${ECHO_T}$ac_header_compiler" >&6; }
15232 # Is the header present?
15233 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 #include <$ac_header>
15243 if { (ac_try="$ac_cpp conftest.$ac_ext"
15244 case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15251 grep -v '^ *+' conftest.er1 >conftest.err
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } >/dev/null; then
15256 if test -s conftest.err; then
15257 ac_cpp_err=$ac_c_preproc_warn_flag
15258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265 if test -z "$ac_cpp_err"; then
15266 ac_header_preproc=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_header_preproc=no
15274 rm -f conftest.err conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15276 echo "${ECHO_T}$ac_header_preproc" >&6; }
15278 # So? What about this header?
15279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15285 ac_header_preproc=yes
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15301 ## ------------------------------------ ##
15302 ## Report this to http://llvm.org/bugs/ ##
15303 ## ------------------------------------ ##
15305 ) | sed "s/^/$as_me: WARNING: /" >&2
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 eval "$as_ac_Header=\$ac_header_preproc"
15315 ac_res=`eval echo '${'$as_ac_Header'}'`
15316 { echo "$as_me:$LINENO: result: $ac_res" >&5
15317 echo "${ECHO_T}$ac_res" >&6; }
15320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15332 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342 { echo "$as_me:$LINENO: result: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15345 # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_compile") 2>conftest.er1
15366 grep -v '^ *+' conftest.er1 >conftest.err
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } &&
15371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15372 { (case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_try") 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_try") 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_header_compiler=yes
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 ac_header_compiler=no
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15401 echo "${ECHO_T}$ac_header_compiler" >&6; }
15403 # Is the header present?
15404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 #include <$ac_header>
15414 if { (ac_try="$ac_cpp conftest.$ac_ext"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_preproc=no
15445 rm -f conftest.err conftest.$ac_ext
15446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15447 echo "${ECHO_T}$ac_header_preproc" >&6; }
15449 # So? What about this header?
15450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15456 ac_header_preproc=yes
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15472 ## ------------------------------------ ##
15473 ## Report this to http://llvm.org/bugs/ ##
15474 ## ------------------------------------ ##
15476 ) | sed "s/^/$as_me: WARNING: /" >&2
15479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 eval "$as_ac_Header=\$ac_header_preproc"
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487 { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15501 for ac_header in valgrind/valgrind.h
15503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15514 # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 #include <$ac_header>
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_header_compiler=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_header_compiler=no
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <$ac_header>
15583 if { (ac_try="$ac_cpp conftest.$ac_ext"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15605 if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15608 echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_header_preproc=no
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15618 # So? What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15625 ac_header_preproc=yes
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15641 ## ------------------------------------ ##
15642 ## Report this to http://llvm.org/bugs/ ##
15643 ## ------------------------------------ ##
15645 ) | sed "s/^/$as_me: WARNING: /" >&2
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 eval "$as_ac_Header=\$ac_header_preproc"
15655 ac_res=`eval echo '${'$as_ac_Header'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15670 for ac_header in fenv.h
15672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15683 # Is the header compilable?
15684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 $ac_includes_default
15693 #include <$ac_header>
15695 rm -f conftest.$ac_objext
15696 if { (ac_try="$ac_compile"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_compile") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_try") 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_header_compiler=yes
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 ac_header_compiler=no
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15739 echo "${ECHO_T}$ac_header_compiler" >&6; }
15741 # Is the header present?
15742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750 #include <$ac_header>
15752 if { (ac_try="$ac_cpp conftest.$ac_ext"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15760 grep -v '^ *+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774 if test -z "$ac_cpp_err"; then
15775 ac_header_preproc=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_header_preproc=no
15783 rm -f conftest.err conftest.$ac_ext
15784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 echo "${ECHO_T}$ac_header_preproc" >&6; }
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15810 ## ------------------------------------ ##
15811 ## Report this to http://llvm.org/bugs/ ##
15812 ## ------------------------------------ ##
15814 ) | sed "s/^/$as_me: WARNING: /" >&2
15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820 echo $ECHO_N "(cached) $ECHO_C" >&6
15822 eval "$as_ac_Header=\$ac_header_preproc"
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825 { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<_ACEOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
15839 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
15840 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15854 #ifndef FE_ALL_EXCEPT
15855 char *p = (char *) FE_ALL_EXCEPT;
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_compile") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
15877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15878 { (case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_try") 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_try") 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 ac_cv_have_decl_FE_ALL_EXCEPT=yes
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_cv_have_decl_FE_ALL_EXCEPT=no
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
15908 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
15909 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912 #define HAVE_DECL_FE_ALL_EXCEPT 1
15917 cat >>confdefs.h <<_ACEOF
15918 #define HAVE_DECL_FE_ALL_EXCEPT 0
15923 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
15924 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
15925 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 cat >conftest.$ac_ext <<_ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15940 char *p = (char *) FE_INEXACT;
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15957 grep -v '^ *+' conftest.er1 >conftest.err
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_cv_have_decl_FE_INEXACT=yes
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 ac_cv_have_decl_FE_INEXACT=no
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
15993 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
15994 if test $ac_cv_have_decl_FE_INEXACT = yes; then
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_DECL_FE_INEXACT 1
16002 cat >>confdefs.h <<_ACEOF
16003 #define HAVE_DECL_FE_INEXACT 0
16010 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16012 for ac_header in pthread.h
16014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16025 # Is the header compilable?
16026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 $ac_includes_default
16035 #include <$ac_header>
16037 rm -f conftest.$ac_objext
16038 if { (ac_try="$ac_compile"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_compile") 2>conftest.er1
16046 grep -v '^ *+' conftest.er1 >conftest.err
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_try") 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_header_compiler=yes
16073 echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_header_compiler=no
16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081 echo "${ECHO_T}$ac_header_compiler" >&6; }
16083 # Is the header present?
16084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092 #include <$ac_header>
16094 if { (ac_try="$ac_cpp conftest.$ac_ext"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev/null; then
16107 if test -s conftest.err; then
16108 ac_cpp_err=$ac_c_preproc_warn_flag
16109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16116 if test -z "$ac_cpp_err"; then
16117 ac_header_preproc=yes
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_header_preproc=no
16125 rm -f conftest.err conftest.$ac_ext
16126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127 echo "${ECHO_T}$ac_header_preproc" >&6; }
16129 # So? What about this header?
16130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136 ac_header_preproc=yes
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16152 ## ------------------------------------ ##
16153 ## Report this to http://llvm.org/bugs/ ##
16154 ## ------------------------------------ ##
16156 ) | sed "s/^/$as_me: WARNING: /" >&2
16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16164 eval "$as_ac_Header=\$ac_header_preproc"
16166 ac_res=`eval echo '${'$as_ac_Header'}'`
16167 { echo "$as_me:$LINENO: result: $ac_res" >&5
16168 echo "${ECHO_T}$ac_res" >&6; }
16171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16188 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16190 for ac_header in zlib.h
16192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 ac_res=`eval echo '${'$as_ac_Header'}'`
16200 { echo "$as_me:$LINENO: result: $ac_res" >&5
16201 echo "${ECHO_T}$ac_res" >&6; }
16203 # Is the header compilable?
16204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 $ac_includes_default
16213 #include <$ac_header>
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_compile") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (case "(($ac_try" in
16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16242 *) ac_try_echo=$ac_try;;
16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16245 (eval "$ac_try") 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; }; then
16249 ac_header_compiler=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_header_compiler=no
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 echo "${ECHO_T}$ac_header_compiler" >&6; }
16261 # Is the header present?
16262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 #include <$ac_header>
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280 grep -v '^ *+' conftest.er1 >conftest.err
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } >/dev/null; then
16285 if test -s conftest.err; then
16286 ac_cpp_err=$ac_c_preproc_warn_flag
16287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16294 if test -z "$ac_cpp_err"; then
16295 ac_header_preproc=yes
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 ac_header_preproc=no
16303 rm -f conftest.err conftest.$ac_ext
16304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16305 echo "${ECHO_T}$ac_header_preproc" >&6; }
16307 # So? What about this header?
16308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16314 ac_header_preproc=yes
16317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16330 ## ------------------------------------ ##
16331 ## Report this to http://llvm.org/bugs/ ##
16332 ## ------------------------------------ ##
16334 ) | sed "s/^/$as_me: WARNING: /" >&2
16337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 eval "$as_ac_Header=\$ac_header_preproc"
16344 ac_res=`eval echo '${'$as_ac_Header'}'`
16345 { echo "$as_me:$LINENO: result: $ac_res" >&5
16346 echo "${ECHO_T}$ac_res" >&6; }
16349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16350 cat >>confdefs.h <<_ACEOF
16351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16367 if test "$llvm_cv_enable_libffi" = "yes" ; then
16370 for ac_header in ffi.h ffi/ffi.h
16372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16379 ac_res=`eval echo '${'$as_ac_Header'}'`
16380 { echo "$as_me:$LINENO: result: $ac_res" >&5
16381 echo "${ECHO_T}$ac_res" >&6; }
16383 # Is the header compilable?
16384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 $ac_includes_default
16393 #include <$ac_header>
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_compile") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_try") 2>&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest.$ac_objext'
16420 { (case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_try") 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_header_compiler=yes
16431 echo "$as_me: failed program was:" >&5
16432 sed 's/^/| /' conftest.$ac_ext >&5
16434 ac_header_compiler=no
16437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16439 echo "${ECHO_T}$ac_header_compiler" >&6; }
16441 # Is the header present?
16442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <$ac_header>
16452 if { (ac_try="$ac_cpp conftest.$ac_ext"
16453 case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16460 grep -v '^ *+' conftest.er1 >conftest.err
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } >/dev/null; then
16465 if test -s conftest.err; then
16466 ac_cpp_err=$ac_c_preproc_warn_flag
16467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16474 if test -z "$ac_cpp_err"; then
16475 ac_header_preproc=yes
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 ac_header_preproc=no
16483 rm -f conftest.err conftest.$ac_ext
16484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16485 echo "${ECHO_T}$ac_header_preproc" >&6; }
16487 # So? What about this header?
16488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16494 ac_header_preproc=yes
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16510 ## ------------------------------------ ##
16511 ## Report this to http://llvm.org/bugs/ ##
16512 ## ------------------------------------ ##
16514 ) | sed "s/^/$as_me: WARNING: /" >&2
16517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 eval "$as_ac_Header=\$ac_header_preproc"
16524 ac_res=`eval echo '${'$as_ac_Header'}'`
16525 { echo "$as_me:$LINENO: result: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16530 cat >>confdefs.h <<_ACEOF
16531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16541 for ac_header in CrashReporterClient.h
16543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 ac_res=`eval echo '${'$as_ac_Header'}'`
16551 { echo "$as_me:$LINENO: result: $ac_res" >&5
16552 echo "${ECHO_T}$ac_res" >&6; }
16554 # Is the header compilable?
16555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 $ac_includes_default
16564 #include <$ac_header>
16566 rm -f conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_compile") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
16580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (case "(($ac_try" in
16592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593 *) ac_try_echo=$ac_try;;
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596 (eval "$ac_try") 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_header_compiler=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_header_compiler=no
16608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16610 echo "${ECHO_T}$ac_header_compiler" >&6; }
16612 # Is the header present?
16613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 #include <$ac_header>
16623 if { (ac_try="$ac_cpp conftest.$ac_ext"
16624 case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16631 grep -v '^ *+' conftest.er1 >conftest.err
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } >/dev/null; then
16636 if test -s conftest.err; then
16637 ac_cpp_err=$ac_c_preproc_warn_flag
16638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16645 if test -z "$ac_cpp_err"; then
16646 ac_header_preproc=yes
16648 echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 ac_header_preproc=no
16654 rm -f conftest.err conftest.$ac_ext
16655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16656 echo "${ECHO_T}$ac_header_preproc" >&6; }
16658 # So? What about this header?
16659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16665 ac_header_preproc=yes
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16681 ## ------------------------------------ ##
16682 ## Report this to http://llvm.org/bugs/ ##
16683 ## ------------------------------------ ##
16685 ) | sed "s/^/$as_me: WARNING: /" >&2
16688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16693 eval "$as_ac_Header=\$ac_header_preproc"
16695 ac_res=`eval echo '${'$as_ac_Header'}'`
16696 { echo "$as_me:$LINENO: result: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16701 cat >>confdefs.h <<_ACEOF
16702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16710 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16711 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16720 extern const char *__crashreporter_info__;
16722 __crashreporter_info__ = "test";
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; } &&
16752 { ac_try='test -s conftest$ac_exeext'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16763 { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_CRASHREPORTER_INFO 1
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16779 cat >>confdefs.h <<\_ACEOF
16780 #define HAVE_CRASHREPORTER_INFO 0
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16791 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16792 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16793 if test "${ac_cv_huge_val_sanity+set}" = set; then
16794 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 ac_cpp='$CXXCPP $CPPFLAGS'
16799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16803 ac_save_CXXFLAGS=$CXXFLAGS
16804 CXXFLAGS="$CXXFLAGS -pedantic"
16805 if test "$cross_compiling" = yes; then
16806 ac_cv_huge_val_sanity=yes
16808 cat >conftest.$ac_ext <<_ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16818 double x = HUGE_VAL; return x != x;
16823 rm -f conftest$ac_exeext
16824 if { (ac_try="$ac_link"
16825 case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_link") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_huge_val_sanity=yes
16845 echo "$as_me: program exited with status $ac_status" >&5
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ( exit $ac_status )
16850 ac_cv_huge_val_sanity=no
16852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16856 CXXFLAGS=$ac_save_CXXFLAGS
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16865 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16866 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16867 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16870 { echo "$as_me:$LINENO: checking for pid_t" >&5
16871 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16872 if test "${ac_cv_type_pid_t+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 $ac_includes_default
16882 typedef pid_t ac__type_new_;
16886 if ((ac__type_new_ *) 0)
16888 if (sizeof (ac__type_new_))
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_type_pid_t=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_type_pid_t=no
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16939 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16940 if test $ac_cv_type_pid_t = yes; then
16944 cat >>confdefs.h <<_ACEOF
16950 { echo "$as_me:$LINENO: checking for size_t" >&5
16951 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16952 if test "${ac_cv_type_size_t+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 $ac_includes_default
16962 typedef size_t ac__type_new_;
16966 if ((ac__type_new_ *) 0)
16968 if (sizeof (ac__type_new_))
16974 rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_compile") 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest.$ac_objext'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_cv_type_size_t=yes
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 ac_cv_type_size_t=no
17016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17019 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17020 if test $ac_cv_type_size_t = yes; then
17024 cat >>confdefs.h <<_ACEOF
17025 #define size_t unsigned int
17031 cat >>confdefs.h <<_ACEOF
17032 #define RETSIGTYPE void
17035 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17036 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17037 if test "${ac_cv_struct_tm+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 cat >conftest.$ac_ext <<_ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h. */
17046 #include <sys/types.h>
17052 struct tm *tp; tp->tm_sec;
17057 rm -f conftest.$ac_objext
17058 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17066 grep -v '^ *+' conftest.er1 >conftest.err
17068 cat conftest.err >&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17072 { (case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_try") 2>&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; } &&
17081 { ac_try='test -s conftest.$ac_objext'
17082 { (case "(($ac_try" in
17083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084 *) ac_try_echo=$ac_try;;
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087 (eval "$ac_try") 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 ac_cv_struct_tm=time.h
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ac_cv_struct_tm=sys/time.h
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17102 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17103 if test $ac_cv_struct_tm = sys/time.h; then
17105 cat >>confdefs.h <<\_ACEOF
17106 #define TM_IN_SYS_TIME 1
17111 { echo "$as_me:$LINENO: checking for int64_t" >&5
17112 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17113 if test "${ac_cv_type_int64_t+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 cat >conftest.$ac_ext <<_ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h. */
17122 $ac_includes_default
17123 typedef int64_t ac__type_new_;
17127 if ((ac__type_new_ *) 0)
17129 if (sizeof (ac__type_new_))
17135 rm -f conftest.$ac_objext
17136 if { (ac_try="$ac_compile"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_type_int64_t=yes
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_type_int64_t=no
17177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17180 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17181 if test $ac_cv_type_int64_t = yes; then
17183 cat >>confdefs.h <<_ACEOF
17184 #define HAVE_INT64_T 1
17189 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17190 echo "$as_me: error: Type int64_t required but not found" >&2;}
17191 { (exit 1); exit 1; }; }
17194 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17195 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17196 if test "${ac_cv_type_uint64_t+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 $ac_includes_default
17206 typedef uint64_t ac__type_new_;
17210 if ((ac__type_new_ *) 0)
17212 if (sizeof (ac__type_new_))
17218 rm -f conftest.$ac_objext
17219 if { (ac_try="$ac_compile"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_compile") 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; } &&
17242 { ac_try='test -s conftest.$ac_objext'
17243 { (case "(($ac_try" in
17244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_try") 2>&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 ac_cv_type_uint64_t=yes
17254 echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17257 ac_cv_type_uint64_t=no
17260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17263 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17264 if test $ac_cv_type_uint64_t = yes; then
17266 cat >>confdefs.h <<_ACEOF
17267 #define HAVE_UINT64_T 1
17272 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17273 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17274 if test "${ac_cv_type_u_int64_t+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 $ac_includes_default
17284 typedef u_int64_t ac__type_new_;
17288 if ((ac__type_new_ *) 0)
17290 if (sizeof (ac__type_new_))
17296 rm -f conftest.$ac_objext
17297 if { (ac_try="$ac_compile"
17298 case "(($ac_try" in
17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300 *) ac_try_echo=$ac_try;;
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303 (eval "$ac_compile") 2>conftest.er1
17305 grep -v '^ *+' conftest.er1 >conftest.err
17307 cat conftest.err >&5
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); } &&
17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311 { (case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316 (eval "$ac_try") 2>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; } &&
17320 { ac_try='test -s conftest.$ac_objext'
17321 { (case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_try") 2>&5
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17330 ac_cv_type_u_int64_t=yes
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_type_u_int64_t=no
17338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17341 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17342 if test $ac_cv_type_u_int64_t = yes; then
17344 cat >>confdefs.h <<_ACEOF
17345 #define HAVE_U_INT64_T 1
17350 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17351 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17352 { (exit 1); exit 1; }; }
17366 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17372 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 cat >conftest.$ac_ext <<_ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17382 #define $ac_func innocuous_$ac_func
17384 /* System header to define __stub macros and hopefully few prototypes,
17385 which can conflict with char $ac_func (); below.
17386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17387 <limits.h> exists even on freestanding compilers. */
17390 # include <limits.h>
17392 # include <assert.h>
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17404 /* The GNU C library defines this for functions which it implements
17405 to always fail with ENOSYS. Some functions are actually named
17406 something starting with __ and the normal name is an alias. */
17407 #if defined __stub_$ac_func || defined __stub___$ac_func
17414 return $ac_func ();
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17453 eval "$as_ac_var=yes"
17455 echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 eval "$as_ac_var=no"
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17464 ac_res=`eval echo '${'$as_ac_var'}'`
17465 { echo "$as_me:$LINENO: result: $ac_res" >&5
17466 echo "${ECHO_T}$ac_res" >&6; }
17467 if test `eval echo '${'$as_ac_var'}'` = yes; then
17468 cat >>confdefs.h <<_ACEOF
17469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17479 for ac_func in powf fmodf strtof round
17481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17485 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17495 #define $ac_func innocuous_$ac_func
17497 /* System header to define __stub macros and hopefully few prototypes,
17498 which can conflict with char $ac_func (); below.
17499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17500 <limits.h> exists even on freestanding compilers. */
17503 # include <limits.h>
17505 # include <assert.h>
17510 /* Override any GCC internal prototype to avoid an error.
17511 Use char because int might match the return type of a GCC
17512 builtin and then its argument prototype would still apply. */
17517 /* The GNU C library defines this for functions which it implements
17518 to always fail with ENOSYS. Some functions are actually named
17519 something starting with __ and the normal name is an alias. */
17520 #if defined __stub_$ac_func || defined __stub___$ac_func
17527 return $ac_func ();
17532 rm -f conftest.$ac_objext conftest$ac_exeext
17533 if { (ac_try="$ac_link"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17566 eval "$as_ac_var=yes"
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17571 eval "$as_ac_var=no"
17574 rm -f core conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17577 ac_res=`eval echo '${'$as_ac_var'}'`
17578 { echo "$as_me:$LINENO: result: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17580 if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h <<_ACEOF
17582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17593 for ac_func in log log2 log10 exp exp2
17595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 cat >conftest.$ac_ext <<_ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17609 #define $ac_func innocuous_$ac_func
17611 /* System header to define __stub macros and hopefully few prototypes,
17612 which can conflict with char $ac_func (); below.
17613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17614 <limits.h> exists even on freestanding compilers. */
17617 # include <limits.h>
17619 # include <assert.h>
17624 /* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17631 /* The GNU C library defines this for functions which it implements
17632 to always fail with ENOSYS. Some functions are actually named
17633 something starting with __ and the normal name is an alias. */
17634 #if defined __stub_$ac_func || defined __stub___$ac_func
17641 return $ac_func ();
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (ac_try="$ac_link"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_link") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } &&
17660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17661 { (case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_try") 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try='test -s conftest$ac_exeext'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 eval "$as_ac_var=yes"
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 eval "$as_ac_var=no"
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17691 ac_res=`eval echo '${'$as_ac_var'}'`
17692 { echo "$as_me:$LINENO: result: $ac_res" >&5
17693 echo "${ECHO_T}$ac_res" >&6; }
17694 if test `eval echo '${'$as_ac_var'}'` = yes; then
17695 cat >>confdefs.h <<_ACEOF
17696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17707 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723 #define $ac_func innocuous_$ac_func
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17731 # include <limits.h>
17733 # include <assert.h>
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17745 /* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17755 return $ac_func ();
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_link") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 eval "$as_ac_var=yes"
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 eval "$as_ac_var=no"
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17819 for ac_func in isatty mkdtemp mkstemp
17821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17827 cat >conftest.$ac_ext <<_ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17835 #define $ac_func innocuous_$ac_func
17837 /* System header to define __stub macros and hopefully few prototypes,
17838 which can conflict with char $ac_func (); below.
17839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17840 <limits.h> exists even on freestanding compilers. */
17843 # include <limits.h>
17845 # include <assert.h>
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17857 /* The GNU C library defines this for functions which it implements
17858 to always fail with ENOSYS. Some functions are actually named
17859 something starting with __ and the normal name is an alias. */
17860 #if defined __stub_$ac_func || defined __stub___$ac_func
17867 return $ac_func ();
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_link") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_try") 2>&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 eval "$as_ac_var=yes"
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17911 eval "$as_ac_var=no"
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17917 ac_res=`eval echo '${'$as_ac_var'}'`
17918 { echo "$as_me:$LINENO: result: $ac_res" >&5
17919 echo "${ECHO_T}$ac_res" >&6; }
17920 if test `eval echo '${'$as_ac_var'}'` = yes; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17934 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
17936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17950 #define $ac_func innocuous_$ac_func
17952 /* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char $ac_func (); below.
17954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 <limits.h> exists even on freestanding compilers. */
17958 # include <limits.h>
17960 # include <assert.h>
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17972 /* The GNU C library defines this for functions which it implements
17973 to always fail with ENOSYS. Some functions are actually named
17974 something starting with __ and the normal name is an alias. */
17975 #if defined __stub_$ac_func || defined __stub___$ac_func
17982 return $ac_func ();
17987 rm -f conftest.$ac_objext conftest$ac_exeext
17988 if { (ac_try="$ac_link"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 eval "$as_ac_var=yes"
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 eval "$as_ac_var=no"
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18032 ac_res=`eval echo '${'$as_ac_var'}'`
18033 { echo "$as_me:$LINENO: result: $ac_res" >&5
18034 echo "${ECHO_T}$ac_res" >&6; }
18035 if test `eval echo '${'$as_ac_var'}'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18047 for ac_func in strerror strerror_r setenv arc4random
18049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18053 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18063 #define $ac_func innocuous_$ac_func
18065 /* System header to define __stub macros and hopefully few prototypes,
18066 which can conflict with char $ac_func (); below.
18067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18068 <limits.h> exists even on freestanding compilers. */
18071 # include <limits.h>
18073 # include <assert.h>
18078 /* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
18085 /* The GNU C library defines this for functions which it implements
18086 to always fail with ENOSYS. Some functions are actually named
18087 something starting with __ and the normal name is an alias. */
18088 #if defined __stub_$ac_func || defined __stub___$ac_func
18095 return $ac_func ();
18100 rm -f conftest.$ac_objext conftest$ac_exeext
18101 if { (ac_try="$ac_link"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_link") 2>conftest.er1
18109 grep -v '^ *+' conftest.er1 >conftest.err
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } &&
18114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest$ac_exeext'
18125 { (case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_try") 2>&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; }; then
18134 eval "$as_ac_var=yes"
18136 echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 eval "$as_ac_var=no"
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18145 ac_res=`eval echo '${'$as_ac_var'}'`
18146 { echo "$as_me:$LINENO: result: $ac_res" >&5
18147 echo "${ECHO_T}$ac_res" >&6; }
18148 if test `eval echo '${'$as_ac_var'}'` = yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18160 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18176 #define $ac_func innocuous_$ac_func
18178 /* System header to define __stub macros and hopefully few prototypes,
18179 which can conflict with char $ac_func (); below.
18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181 <limits.h> exists even on freestanding compilers. */
18184 # include <limits.h>
18186 # include <assert.h>
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18198 /* The GNU C library defines this for functions which it implements
18199 to always fail with ENOSYS. Some functions are actually named
18200 something starting with __ and the normal name is an alias. */
18201 #if defined __stub_$ac_func || defined __stub___$ac_func
18208 return $ac_func ();
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_try") 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 eval "$as_ac_var=yes"
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18274 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18298 # include <limits.h>
18300 # include <assert.h>
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18312 /* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 return $ac_func ();
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (ac_try="$ac_link"
18329 case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18336 grep -v '^ *+' conftest.er1 >conftest.err
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest$ac_exeext'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 eval "$as_ac_var=yes"
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 eval "$as_ac_var=no"
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18372 ac_res=`eval echo '${'$as_ac_var'}'`
18373 { echo "$as_me:$LINENO: result: $ac_res" >&5
18374 echo "${ECHO_T}$ac_res" >&6; }
18375 if test `eval echo '${'$as_ac_var'}'` = yes; then
18376 cat >>confdefs.h <<_ACEOF
18377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18385 for ac_func in futimes futimens
18387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 cat >conftest.$ac_ext <<_ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18401 #define $ac_func innocuous_$ac_func
18403 /* System header to define __stub macros and hopefully few prototypes,
18404 which can conflict with char $ac_func (); below.
18405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18406 <limits.h> exists even on freestanding compilers. */
18409 # include <limits.h>
18411 # include <assert.h>
18416 /* Override any GCC internal prototype to avoid an error.
18417 Use char because int might match the return type of a GCC
18418 builtin and then its argument prototype would still apply. */
18423 /* The GNU C library defines this for functions which it implements
18424 to always fail with ENOSYS. Some functions are actually named
18425 something starting with __ and the normal name is an alias. */
18426 #if defined __stub_$ac_func || defined __stub___$ac_func
18433 return $ac_func ();
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 eval "$as_ac_var=yes"
18474 echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 eval "$as_ac_var=no"
18480 rm -f core conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18483 ac_res=`eval echo '${'$as_ac_var'}'`
18484 { echo "$as_me:$LINENO: result: $ac_res" >&5
18485 echo "${ECHO_T}$ac_res" >&6; }
18486 if test `eval echo '${'$as_ac_var'}'` = yes; then
18487 cat >>confdefs.h <<_ACEOF
18488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18494 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18495 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18496 if test "${llvm_cv_c_printf_a+set}" = set; then
18497 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 ac_cpp='$CPP $CPPFLAGS'
18501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18505 if test "$cross_compiling" = yes; then
18506 llvmac_cv_c_printf_a=no
18508 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18517 #include <stdlib.h>
18523 volatile double A, B;
18527 sprintf(Buffer, "%a", A);
18531 if (A != 0x1.999999999999ap-4)
18538 rm -f conftest$ac_exeext
18539 if { (ac_try="$ac_link"
18540 case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_link") 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 llvm_cv_c_printf_a=yes
18560 echo "$as_me: program exited with status $ac_status" >&5
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18564 ( exit $ac_status )
18565 llvmac_cv_c_printf_a=no
18567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18572 ac_cpp='$CPP $CPPFLAGS'
18573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18578 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18579 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18580 if test "$llvm_cv_c_printf_a" = "yes"; then
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE_PRINTF_A 1
18590 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18591 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18592 if test "${ac_cv_func_rand48+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 #include <stdlib.h>
18612 srand48(0);lrand48();drand48();
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
18631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; } &&
18641 { ac_try='test -s conftest.$ac_objext'
18642 { (case "(($ac_try" in
18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18644 *) ac_try_echo=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_try") 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_func_rand48=yes
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 ac_cv_func_rand48=no
18659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 ac_cpp='$CPP $CPPFLAGS'
18662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18668 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18669 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18671 if test "$ac_cv_func_rand48" = "yes" ; then
18673 cat >>confdefs.h <<\_ACEOF
18674 #define HAVE_RAND48 1
18680 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18681 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18682 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18683 echo $ECHO_N "(cached) $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 $ac_includes_default
18696 char *p = (char *) strerror_s;
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_have_decl_strerror_s=yes
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_cv_have_decl_strerror_s=no
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18749 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18750 if test $ac_cv_have_decl_strerror_s = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_DECL_STRERROR_S 1
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_DECL_STRERROR_S 0
18767 if test "$llvm_cv_os_type" = "MingW" ; then
18768 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18769 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18770 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 ac_check_lib_save_LIBS=$LIBS
18775 cat >conftest.$ac_ext <<_ACEOF
18778 cat confdefs.h >>conftest.$ac_ext
18779 cat >>conftest.$ac_ext <<_ACEOF
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (ac_try="$ac_link"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_link") 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest$ac_exeext'
18822 { (case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_try") 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_cv_lib_gcc__alloca=yes
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_cv_lib_gcc__alloca=no
18839 rm -f core conftest.err conftest.$ac_objext \
18840 conftest$ac_exeext conftest.$ac_ext
18841 LIBS=$ac_check_lib_save_LIBS
18843 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18844 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18845 if test $ac_cv_lib_gcc__alloca = yes; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE__ALLOCA 1
18853 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18854 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18855 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18858 ac_check_lib_save_LIBS=$LIBS
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 /* Override any GCC internal prototype to avoid an error.
18868 Use char because int might match the return type of a GCC
18869 builtin and then its argument prototype would still apply. */
18877 return __alloca ();
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (ac_try="$ac_link"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_link") 2>conftest.er1
18891 grep -v '^ *+' conftest.er1 >conftest.err
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_try") 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest$ac_exeext'
18907 { (case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_try") 2>&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 ac_cv_lib_gcc___alloca=yes
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_cv_lib_gcc___alloca=no
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18929 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18930 if test $ac_cv_lib_gcc___alloca = yes; then
18932 cat >>confdefs.h <<\_ACEOF
18933 #define HAVE___ALLOCA 1
18938 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18939 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18940 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 ac_check_lib_save_LIBS=$LIBS
18945 cat >conftest.$ac_ext <<_ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18962 return __chkstk ();
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_link") 2>conftest.er1
18976 grep -v '^ *+' conftest.er1 >conftest.err
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18982 { (case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_try") 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; } &&
18991 { ac_try='test -s conftest$ac_exeext'
18992 { (case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_try") 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19001 ac_cv_lib_gcc___chkstk=yes
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_cv_lib_gcc___chkstk=no
19009 rm -f core conftest.err conftest.$ac_objext \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19014 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19015 if test $ac_cv_lib_gcc___chkstk = yes; then
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE___CHKSTK 1
19023 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19024 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19025 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 ac_check_lib_save_LIBS=$LIBS
19030 cat >conftest.$ac_ext <<_ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19037 /* Override any GCC internal prototype to avoid an error.
19038 Use char because int might match the return type of a GCC
19039 builtin and then its argument prototype would still apply. */
19047 return ___chkstk ();
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (ac_try="$ac_link"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19059 (eval "$ac_link") 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19067 { (case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_try") 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest$ac_exeext'
19077 { (case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_try") 2>&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; }; then
19086 ac_cv_lib_gcc____chkstk=yes
19088 echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ac_cv_lib_gcc____chkstk=no
19094 rm -f core conftest.err conftest.$ac_objext \
19095 conftest$ac_exeext conftest.$ac_ext
19096 LIBS=$ac_check_lib_save_LIBS
19098 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19099 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19100 if test $ac_cv_lib_gcc____chkstk = yes; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE____CHKSTK 1
19109 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19110 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19111 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19112 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 ac_check_lib_save_LIBS=$LIBS
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19123 /* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19133 return __ashldi3 ();
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (ac_try="$ac_link"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_link") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest$ac_exeext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_lib_gcc___ashldi3=yes
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_lib_gcc___ashldi3=no
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19184 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19185 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19186 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE___ASHLDI3 1
19194 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19195 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19196 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 ac_check_lib_save_LIBS=$LIBS
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19208 /* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19218 return __ashrdi3 ();
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_try") 2>&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_cv_lib_gcc___ashrdi3=yes
19259 echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_lib_gcc___ashrdi3=no
19265 rm -f core conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19270 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19271 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19273 cat >>confdefs.h <<\_ACEOF
19274 #define HAVE___ASHRDI3 1
19279 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19280 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19281 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 ac_check_lib_save_LIBS=$LIBS
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19293 /* Override any GCC internal prototype to avoid an error.
19294 Use char because int might match the return type of a GCC
19295 builtin and then its argument prototype would still apply. */
19303 return __divdi3 ();
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
19322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19323 { (case "(($ac_try" in
19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325 *) ac_try_echo=$ac_try;;
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328 (eval "$ac_try") 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_try") 2>&5
19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; }; then
19342 ac_cv_lib_gcc___divdi3=yes
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19347 ac_cv_lib_gcc___divdi3=no
19350 rm -f core conftest.err conftest.$ac_objext \
19351 conftest$ac_exeext conftest.$ac_ext
19352 LIBS=$ac_check_lib_save_LIBS
19354 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19355 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19356 if test $ac_cv_lib_gcc___divdi3 = yes; then
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE___DIVDI3 1
19364 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19365 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19366 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19367 echo $ECHO_N "(cached) $ECHO_C" >&6
19369 ac_check_lib_save_LIBS=$LIBS
19371 cat >conftest.$ac_ext <<_ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19378 /* Override any GCC internal prototype to avoid an error.
19379 Use char because int might match the return type of a GCC
19380 builtin and then its argument prototype would still apply. */
19388 return __fixdfdi ();
19393 rm -f conftest.$ac_objext conftest$ac_exeext
19394 if { (ac_try="$ac_link"
19395 case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_link") 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19408 { (case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_try") 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest$ac_exeext'
19418 { (case "(($ac_try" in
19419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19420 *) ac_try_echo=$ac_try;;
19422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19423 (eval "$ac_try") 2>&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; }; then
19427 ac_cv_lib_gcc___fixdfdi=yes
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_cv_lib_gcc___fixdfdi=no
19435 rm -f core conftest.err conftest.$ac_objext \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19440 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19441 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19443 cat >>confdefs.h <<\_ACEOF
19444 #define HAVE___FIXDFDI 1
19449 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19450 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19451 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 ac_check_lib_save_LIBS=$LIBS
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 /* Override any GCC internal prototype to avoid an error.
19464 Use char because int might match the return type of a GCC
19465 builtin and then its argument prototype would still apply. */
19473 return __fixsfdi ();
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
19492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest$ac_exeext'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 ac_cv_lib_gcc___fixsfdi=yes
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_lib_gcc___fixsfdi=no
19520 rm -f core conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 LIBS=$ac_check_lib_save_LIBS
19524 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19525 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19526 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE___FIXSFDI 1
19534 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19535 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19536 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 ac_check_lib_save_LIBS=$LIBS
19541 cat >conftest.$ac_ext <<_ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19548 /* Override any GCC internal prototype to avoid an error.
19549 Use char because int might match the return type of a GCC
19550 builtin and then its argument prototype would still apply. */
19554 char __floatdidf ();
19558 return __floatdidf ();
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_link") 2>conftest.er1
19572 grep -v '^ *+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19578 { (case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_try") 2>&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest$ac_exeext'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 ac_cv_lib_gcc___floatdidf=yes
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_lib_gcc___floatdidf=no
19605 rm -f core conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19610 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19611 if test $ac_cv_lib_gcc___floatdidf = yes; then
19613 cat >>confdefs.h <<\_ACEOF
19614 #define HAVE___FLOATDIDF 1
19619 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19620 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19621 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19622 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 ac_check_lib_save_LIBS=$LIBS
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19633 /* Override any GCC internal prototype to avoid an error.
19634 Use char because int might match the return type of a GCC
19635 builtin and then its argument prototype would still apply. */
19643 return __lshrdi3 ();
19648 rm -f conftest.$ac_objext conftest$ac_exeext
19649 if { (ac_try="$ac_link"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_link") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } &&
19662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19663 { (case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_try") 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; } &&
19672 { ac_try='test -s conftest$ac_exeext'
19673 { (case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19678 (eval "$ac_try") 2>&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); }; }; then
19682 ac_cv_lib_gcc___lshrdi3=yes
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_lib_gcc___lshrdi3=no
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19694 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19695 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19696 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE___LSHRDI3 1
19704 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19705 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19706 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19707 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 ac_check_lib_save_LIBS=$LIBS
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19718 /* Override any GCC internal prototype to avoid an error.
19719 Use char because int might match the return type of a GCC
19720 builtin and then its argument prototype would still apply. */
19728 return __moddi3 ();
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest$ac_exeext'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_cv_lib_gcc___moddi3=yes
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 ac_cv_lib_gcc___moddi3=no
19775 rm -f core conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19779 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19780 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19781 if test $ac_cv_lib_gcc___moddi3 = yes; then
19783 cat >>confdefs.h <<\_ACEOF
19784 #define HAVE___MODDI3 1
19789 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19790 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19791 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 ac_check_lib_save_LIBS=$LIBS
19796 cat >conftest.$ac_ext <<_ACEOF
19799 cat confdefs.h >>conftest.$ac_ext
19800 cat >>conftest.$ac_ext <<_ACEOF
19801 /* end confdefs.h. */
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19813 return __udivdi3 ();
19818 rm -f conftest.$ac_objext conftest$ac_exeext
19819 if { (ac_try="$ac_link"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19825 (eval "$ac_link") 2>conftest.er1
19827 grep -v '^ *+' conftest.er1 >conftest.err
19829 cat conftest.err >&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest$ac_exeext'
19843 { (case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_try") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19852 ac_cv_lib_gcc___udivdi3=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_cv_lib_gcc___udivdi3=no
19860 rm -f core conftest.err conftest.$ac_objext \
19861 conftest$ac_exeext conftest.$ac_ext
19862 LIBS=$ac_check_lib_save_LIBS
19864 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19865 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19866 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define HAVE___UDIVDI3 1
19874 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19875 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19876 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 ac_check_lib_save_LIBS=$LIBS
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19888 /* Override any GCC internal prototype to avoid an error.
19889 Use char because int might match the return type of a GCC
19890 builtin and then its argument prototype would still apply. */
19898 return __umoddi3 ();
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19918 { (case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try='test -s conftest$ac_exeext'
19928 { (case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_try") 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_lib_gcc___umoddi3=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_cv_lib_gcc___umoddi3=no
19945 rm -f core conftest.err conftest.$ac_objext \
19946 conftest$ac_exeext conftest.$ac_ext
19947 LIBS=$ac_check_lib_save_LIBS
19949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19950 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19951 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19953 cat >>confdefs.h <<\_ACEOF
19954 #define HAVE___UMODDI3 1
19960 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19961 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19962 if test "${ac_cv_lib_gcc___main+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 ac_check_lib_save_LIBS=$LIBS
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19974 /* Override any GCC internal prototype to avoid an error.
19975 Use char because int might match the return type of a GCC
19976 builtin and then its argument prototype would still apply. */
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_link") 2>conftest.er1
19998 grep -v '^ *+' conftest.er1 >conftest.err
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20004 { (case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_try") 2>&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; } &&
20013 { ac_try='test -s conftest$ac_exeext'
20014 { (case "(($ac_try" in
20015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016 *) ac_try_echo=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_try") 2>&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); }; }; then
20023 ac_cv_lib_gcc___main=yes
20025 echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20028 ac_cv_lib_gcc___main=no
20031 rm -f core conftest.err conftest.$ac_objext \
20032 conftest$ac_exeext conftest.$ac_ext
20033 LIBS=$ac_check_lib_save_LIBS
20035 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20036 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20037 if test $ac_cv_lib_gcc___main = yes; then
20039 cat >>confdefs.h <<\_ACEOF
20040 #define HAVE___MAIN 1
20045 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20046 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20047 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20048 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_check_lib_save_LIBS=$LIBS
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20059 /* Override any GCC internal prototype to avoid an error.
20060 Use char because int might match the return type of a GCC
20061 builtin and then its argument prototype would still apply. */
20069 return __cmpdi2 ();
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (ac_try="$ac_link"
20076 case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081 (eval "$ac_link") 2>conftest.er1
20083 grep -v '^ *+' conftest.er1 >conftest.err
20085 cat conftest.err >&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } &&
20088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20089 { (case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_try") 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); }; } &&
20098 { ac_try='test -s conftest$ac_exeext'
20099 { (case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_try") 2>&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 ac_cv_lib_gcc___cmpdi2=yes
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_cv_lib_gcc___cmpdi2=no
20116 rm -f core conftest.err conftest.$ac_objext \
20117 conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20120 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20121 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20122 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20124 cat >>confdefs.h <<\_ACEOF
20125 #define HAVE___CMPDI2 1
20132 if test "$llvm_cv_os_type" = "MingW" ; then
20133 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20134 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20135 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20143 #include <windows.h>
20144 #include <imagehlp.h>
20145 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20146 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
20164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; } &&
20174 { ac_try='test -s conftest.$ac_objext'
20175 { (case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_try") 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; }; then
20185 { echo "$as_me:$LINENO: result: yes" >&5
20186 echo "${ECHO_T}yes" >&6; }
20187 llvm_cv_win32_elmcb_pcstr="PCSTR"
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20194 { echo "$as_me:$LINENO: result: no" >&5
20195 echo "${ECHO_T}no" >&6; }
20196 llvm_cv_win32_elmcb_pcstr="PSTR"
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 cat >>confdefs.h <<_ACEOF
20203 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20210 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20211 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20212 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20217 ac_cpp='$CXXCPP $CPPFLAGS'
20218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20237 rm -f conftest.$ac_objext
20238 if { (ac_try="$ac_compile"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244 (eval "$ac_compile") 2>conftest.er1
20246 grep -v '^ *+' conftest.er1 >conftest.err
20248 cat conftest.err >&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } &&
20251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20252 { (case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_try") 2>&5
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest.$ac_objext'
20262 { (case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_try") 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; }; then
20271 ac_cv_func_isnan_in_math_h=yes
20273 echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20276 ac_cv_func_isnan_in_math_h=no
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 ac_cpp='$CPP $CPPFLAGS'
20282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20289 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20292 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20294 cat >>confdefs.h <<\_ACEOF
20295 #define HAVE_ISNAN_IN_MATH_H 1
20301 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20302 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20303 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 ac_cpp='$CXXCPP $CPPFLAGS'
20309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20328 rm -f conftest.$ac_objext
20329 if { (ac_try="$ac_compile"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
20342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20343 { (case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_try") 2>&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_func_isnan_in_cmath=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_func_isnan_in_cmath=no
20370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372 ac_cpp='$CPP $CPPFLAGS'
20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20380 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20382 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_ISNAN_IN_CMATH 1
20391 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20392 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20393 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20413 float f; std::isnan(f);
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20427 grep -v '^ *+' conftest.er1 >conftest.err
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
20432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20433 { (case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_try") 2>&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_cv_func_std_isnan_in_cmath=yes
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_cv_func_std_isnan_in_cmath=no
20460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462 ac_cpp='$CPP $CPPFLAGS'
20463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20470 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20472 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20474 cat >>confdefs.h <<\_ACEOF
20475 #define HAVE_STD_ISNAN_IN_CMATH 1
20483 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20484 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20485 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 ac_cpp='$CXXCPP $CPPFLAGS'
20491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20525 { (case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_try") 2>&5
20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); }; } &&
20534 { ac_try='test -s conftest.$ac_objext'
20535 { (case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_try") 2>&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; }; then
20544 ac_cv_func_isinf_in_math_h=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_func_isinf_in_math_h=no
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554 ac_cpp='$CPP $CPPFLAGS'
20555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20561 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20562 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20564 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_ISINF_IN_MATH_H 1
20573 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20574 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20575 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 ac_cpp='$CXXCPP $CPPFLAGS'
20581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20615 { (case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620 (eval "$ac_try") 2>&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); }; } &&
20624 { ac_try='test -s conftest.$ac_objext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_try") 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_func_isinf_in_cmath=yes
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20639 ac_cv_func_isinf_in_cmath=no
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20652 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20654 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20656 cat >>confdefs.h <<\_ACEOF
20657 #define HAVE_ISINF_IN_CMATH 1
20663 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20664 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20665 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 ac_cpp='$CXXCPP $CPPFLAGS'
20671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20685 float f; std::isinf(f);
20690 rm -f conftest.$ac_objext
20691 if { (ac_try="$ac_compile"
20692 case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697 (eval "$ac_compile") 2>conftest.er1
20699 grep -v '^ *+' conftest.er1 >conftest.err
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } &&
20704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20705 { (case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_try") 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
20715 { (case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_try") 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; }; then
20724 ac_cv_func_std_isinf_in_cmath=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_cv_func_std_isinf_in_cmath=no
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734 ac_cpp='$CPP $CPPFLAGS'
20735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20741 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20742 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20744 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20746 cat >>confdefs.h <<\_ACEOF
20747 #define HAVE_STD_ISINF_IN_CMATH 1
20753 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20754 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20755 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 ac_cpp='$CXXCPP $CPPFLAGS'
20761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 #include <ieeefp.h>
20775 float f; finite(f);
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } &&
20794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20795 { (case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_try") 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
20805 { (case "(($ac_try" in
20806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807 *) ac_try_echo=$ac_try;;
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810 (eval "$ac_try") 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 ac_cv_func_finite_in_ieeefp_h=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 ac_cv_func_finite_in_ieeefp_h=no
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20824 ac_cpp='$CPP $CPPFLAGS'
20825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20831 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20832 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20834 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_FINITE_IN_IEEEFP_H 1
20844 if test "$llvm_cv_platform_type" = "Unix" ; then
20847 for ac_header in stdlib.h unistd.h
20849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 ac_res=`eval echo '${'$as_ac_Header'}'`
20857 { echo "$as_me:$LINENO: result: $ac_res" >&5
20858 echo "${ECHO_T}$ac_res" >&6; }
20860 # Is the header compilable?
20861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20863 cat >conftest.$ac_ext <<_ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h. */
20869 $ac_includes_default
20870 #include <$ac_header>
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_compile") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20887 { (case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_try") 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; } &&
20896 { ac_try='test -s conftest.$ac_objext'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_header_compiler=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_compiler=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 #include <$ac_header>
20929 if { (ac_try="$ac_cpp conftest.$ac_ext"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } >/dev/null; then
20942 if test -s conftest.err; then
20943 ac_cpp_err=$ac_c_preproc_warn_flag
20944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20951 if test -z "$ac_cpp_err"; then
20952 ac_header_preproc=yes
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_header_preproc=no
20960 rm -f conftest.err conftest.$ac_ext
20961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20962 echo "${ECHO_T}$ac_header_preproc" >&6; }
20964 # So? What about this header?
20965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20971 ac_header_preproc=yes
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20987 ## ------------------------------------ ##
20988 ## Report this to http://llvm.org/bugs/ ##
20989 ## ------------------------------------ ##
20991 ) | sed "s/^/$as_me: WARNING: /" >&2
20994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20999 eval "$as_ac_Header=\$ac_header_preproc"
21001 ac_res=`eval echo '${'$as_ac_Header'}'`
21002 { echo "$as_me:$LINENO: result: $ac_res" >&5
21003 echo "${ECHO_T}$ac_res" >&6; }
21006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21007 cat >>confdefs.h <<_ACEOF
21008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21016 for ac_func in getpagesize
21018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21032 #define $ac_func innocuous_$ac_func
21034 /* System header to define __stub macros and hopefully few prototypes,
21035 which can conflict with char $ac_func (); below.
21036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21037 <limits.h> exists even on freestanding compilers. */
21040 # include <limits.h>
21042 # include <assert.h>
21047 /* Override any GCC internal prototype to avoid an error.
21048 Use char because int might match the return type of a GCC
21049 builtin and then its argument prototype would still apply. */
21054 /* The GNU C library defines this for functions which it implements
21055 to always fail with ENOSYS. Some functions are actually named
21056 something starting with __ and the normal name is an alias. */
21057 #if defined __stub_$ac_func || defined __stub___$ac_func
21064 return $ac_func ();
21069 rm -f conftest.$ac_objext conftest$ac_exeext
21070 if { (ac_try="$ac_link"
21071 case "(($ac_try" in
21072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21073 *) ac_try_echo=$ac_try;;
21075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21076 (eval "$ac_link") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
21083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21084 { (case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_try") 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; } &&
21093 { ac_try='test -s conftest$ac_exeext'
21094 { (case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_try") 2>&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 eval "$as_ac_var=yes"
21105 echo "$as_me: failed program was:" >&5
21106 sed 's/^/| /' conftest.$ac_ext >&5
21108 eval "$as_ac_var=no"
21111 rm -f core conftest.err conftest.$ac_objext \
21112 conftest$ac_exeext conftest.$ac_ext
21114 ac_res=`eval echo '${'$as_ac_var'}'`
21115 { echo "$as_me:$LINENO: result: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21117 if test `eval echo '${'$as_ac_var'}'` = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21125 { echo "$as_me:$LINENO: checking for working mmap" >&5
21126 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21127 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21130 if test "$cross_compiling" = yes; then
21131 ac_cv_func_mmap_fixed_mapped=no
21133 cat >conftest.$ac_ext <<_ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139 $ac_includes_default
21140 /* malloc might have been renamed as rpl_malloc. */
21143 /* Thanks to Mike Haertel and Jim Avera for this test.
21144 Here is a matrix of mmap possibilities:
21145 mmap private not fixed
21146 mmap private fixed at somewhere currently unmapped
21147 mmap private fixed at somewhere already mapped
21148 mmap shared not fixed
21149 mmap shared fixed at somewhere currently unmapped
21150 mmap shared fixed at somewhere already mapped
21151 For private mappings, we should verify that changes cannot be read()
21152 back from the file, nor mmap's back from the file at a different
21153 address. (There have been systems where private was not correctly
21154 implemented like the infamous i386 svr4.0, and systems where the
21155 VM page cache was not coherent with the file system buffer cache
21156 like early versions of FreeBSD and possibly contemporary NetBSD.)
21157 For shared mappings, we should conversely verify that changes get
21158 propagated back to all the places they're supposed to be.
21160 Grep wants private fixed already mapped.
21161 The main things grep needs to know about mmap are:
21162 * does it exist and is it safe to write into the mmap'd area
21163 * how to use it (BSD variants) */
21166 #include <sys/mman.h>
21168 #if !STDC_HEADERS && !HAVE_STDLIB_H
21172 /* This mess was copied from the GNU getpagesize.h. */
21173 #if !HAVE_GETPAGESIZE
21174 /* Assume that all systems that can run configure have sys/param.h. */
21175 # if !HAVE_SYS_PARAM_H
21176 # define HAVE_SYS_PARAM_H 1
21179 # ifdef _SC_PAGESIZE
21180 # define getpagesize() sysconf(_SC_PAGESIZE)
21181 # else /* no _SC_PAGESIZE */
21182 # if HAVE_SYS_PARAM_H
21183 # include <sys/param.h>
21184 # ifdef EXEC_PAGESIZE
21185 # define getpagesize() EXEC_PAGESIZE
21186 # else /* no EXEC_PAGESIZE */
21188 # define getpagesize() NBPG * CLSIZE
21191 # endif /* no CLSIZE */
21192 # else /* no NBPG */
21194 # define getpagesize() NBPC
21195 # else /* no NBPC */
21197 # define getpagesize() PAGESIZE
21198 # endif /* PAGESIZE */
21199 # endif /* no NBPC */
21200 # endif /* no NBPG */
21201 # endif /* no EXEC_PAGESIZE */
21202 # else /* no HAVE_SYS_PARAM_H */
21203 # define getpagesize() 8192 /* punt totally */
21204 # endif /* no HAVE_SYS_PARAM_H */
21205 # endif /* no _SC_PAGESIZE */
21207 #endif /* no HAVE_GETPAGESIZE */
21212 char *data, *data2, *data3;
21216 pagesize = getpagesize ();
21218 /* First, make a file with some known garbage in it. */
21219 data = (char *) malloc (pagesize);
21222 for (i = 0; i < pagesize; ++i)
21223 *(data + i) = rand ();
21225 fd = creat ("conftest.mmap", 0600);
21228 if (write (fd, data, pagesize) != pagesize)
21232 /* Next, try to mmap the file at a fixed address which already has
21233 something else allocated at it. If we can, also make sure that
21234 we see the same garbage. */
21235 fd = open ("conftest.mmap", O_RDWR);
21238 data2 = (char *) malloc (2 * pagesize);
21241 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21242 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21243 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21245 for (i = 0; i < pagesize; ++i)
21246 if (*(data + i) != *(data2 + i))
21249 /* Finally, make sure that changes to the mapped area do not
21250 percolate back to the file as seen by read(). (This is a bug on
21251 some variants of i386 svr4.0.) */
21252 for (i = 0; i < pagesize; ++i)
21253 *(data2 + i) = *(data2 + i) + 1;
21254 data3 = (char *) malloc (pagesize);
21257 if (read (fd, data3, pagesize) != pagesize)
21259 for (i = 0; i < pagesize; ++i)
21260 if (*(data + i) != *(data3 + i))
21266 rm -f conftest$ac_exeext
21267 if { (ac_try="$ac_link"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_link") 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21277 { (case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_try") 2>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; }; then
21286 ac_cv_func_mmap_fixed_mapped=yes
21288 echo "$as_me: program exited with status $ac_status" >&5
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ( exit $ac_status )
21293 ac_cv_func_mmap_fixed_mapped=no
21295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21300 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21301 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21302 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21304 cat >>confdefs.h <<\_ACEOF
21305 #define HAVE_MMAP 1
21309 rm -f conftest.mmap
21311 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21312 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21313 if test "${ac_cv_func_mmap_file+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 ac_cpp='$CPP $CPPFLAGS'
21318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21322 if test "$cross_compiling" = yes; then
21323 ac_cv_func_mmap_file=no
21325 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21333 #include <sys/types.h>
21334 #include <sys/mman.h>
21342 fd = creat ("foo",0777);
21343 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21345 return (fd != (int) MAP_FAILED);
21350 rm -f conftest$ac_exeext
21351 if { (ac_try="$ac_link"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_link") 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21361 { (case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_try") 2>&5
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; }; then
21370 ac_cv_func_mmap_file=yes
21372 echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21376 ( exit $ac_status )
21377 ac_cv_func_mmap_file=no
21379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21384 ac_cpp='$CPP $CPPFLAGS'
21385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21391 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21392 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21393 if test "$ac_cv_func_mmap_file" = yes; then
21395 cat >>confdefs.h <<\_ACEOF
21396 #define HAVE_MMAP_FILE
21403 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21404 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21405 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21406 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 if test "$llvm_cv_os_type" = "Interix" ; then
21409 ac_cv_need_dev_zero_for_mmap=yes
21411 ac_cv_need_dev_zero_for_mmap=no
21415 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21416 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21417 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21419 cat >>confdefs.h <<\_ACEOF
21420 #define NEED_DEV_ZERO_FOR_MMAP 1
21425 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21427 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21428 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21430 if test "$ac_cv_func_mmap_file" = "no"
21432 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21433 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21437 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21438 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21440 ac_cpp='$CXXCPP $CPPFLAGS'
21441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21445 cat >conftest.$ac_ext <<_ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h. */
21454 volatile unsigned long val = 1;
21455 __sync_synchronize();
21456 __sync_val_compare_and_swap(&val, 1, 0);
21457 __sync_add_and_fetch(&val, 1);
21458 __sync_sub_and_fetch(&val, 1);
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (ac_try="$ac_link"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_link") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
21478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21479 { (case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484 (eval "$ac_try") 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest$ac_exeext'
21489 { (case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_try") 2>&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; }; then
21499 { echo "$as_me:$LINENO: result: yes" >&5
21500 echo "${ECHO_T}yes" >&6; }
21502 cat >>confdefs.h <<\_ACEOF
21503 #define LLVM_HAS_ATOMICS 1
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21512 { echo "$as_me:$LINENO: result: no" >&5
21513 echo "${ECHO_T}no" >&6; }
21515 cat >>confdefs.h <<\_ACEOF
21516 #define LLVM_HAS_ATOMICS 0
21519 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21520 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21524 rm -f core conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21534 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21535 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21536 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21537 if test "${llvm_cv_linux_mixed+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 ac_cpp='$CPP $CPPFLAGS'
21542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21553 error: Not x86-64 even if uname says so!
21564 rm -f conftest.$ac_objext
21565 if { (ac_try="$ac_compile"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_compile") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } &&
21578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21579 { (case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_try") 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21594 (eval "$ac_try") 2>&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; }; then
21598 llvm_cv_linux_mixed=no
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 llvm_cv_linux_mixed=yes
21606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608 ac_cpp='$CPP $CPPFLAGS'
21609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21615 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21616 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21618 if test "$llvm_cv_linux_mixed" = "yes"; then
21619 llvm_cv_target_arch="x86"
21625 for ac_func in __dso_handle
21627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21641 #define $ac_func innocuous_$ac_func
21643 /* System header to define __stub macros and hopefully few prototypes,
21644 which can conflict with char $ac_func (); below.
21645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646 <limits.h> exists even on freestanding compilers. */
21649 # include <limits.h>
21651 # include <assert.h>
21656 /* Override any GCC internal prototype to avoid an error.
21657 Use char because int might match the return type of a GCC
21658 builtin and then its argument prototype would still apply. */
21663 /* The GNU C library defines this for functions which it implements
21664 to always fail with ENOSYS. Some functions are actually named
21665 something starting with __ and the normal name is an alias. */
21666 #if defined __stub_$ac_func || defined __stub___$ac_func
21673 return $ac_func ();
21678 rm -f conftest.$ac_objext conftest$ac_exeext
21679 if { (ac_try="$ac_link"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685 (eval "$ac_link") 2>conftest.er1
21687 grep -v '^ *+' conftest.er1 >conftest.err
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21693 { (case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_try") 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest$ac_exeext'
21703 { (case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_try") 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 eval "$as_ac_var=yes"
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 eval "$as_ac_var=no"
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21723 ac_res=`eval echo '${'$as_ac_var'}'`
21724 { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727 cat >>confdefs.h <<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21735 SHLIBEXT=$libltdl_cv_shlibext
21738 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21741 if test "${prefix}" = "NONE" ; then
21742 prefix="/usr/local"
21744 eval LLVM_PREFIX="${prefix}";
21745 eval LLVM_BINDIR="${prefix}/bin";
21746 eval LLVM_DATADIR="${prefix}/share/llvm";
21747 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21748 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21749 eval LLVM_INCLUDEDIR="${prefix}/include";
21750 eval LLVM_INFODIR="${prefix}/info";
21751 eval LLVM_MANDIR="${prefix}/man";
21752 LLVM_CONFIGTIME=`date`
21763 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21764 LLVM_CONFIGTIME="(timestamp not enabled)"
21768 cat >>confdefs.h <<_ACEOF
21769 #define LLVM_PREFIX "$LLVM_PREFIX"
21773 cat >>confdefs.h <<_ACEOF
21774 #define LLVM_BINDIR "$LLVM_BINDIR"
21778 cat >>confdefs.h <<_ACEOF
21779 #define LLVM_DATADIR "$LLVM_DATADIR"
21783 cat >>confdefs.h <<_ACEOF
21784 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21788 cat >>confdefs.h <<_ACEOF
21789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21793 cat >>confdefs.h <<_ACEOF
21794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21798 cat >>confdefs.h <<_ACEOF
21799 #define LLVM_INFODIR "$LLVM_INFODIR"
21803 cat >>confdefs.h <<_ACEOF
21804 #define LLVM_MANDIR "$LLVM_MANDIR"
21808 cat >>confdefs.h <<_ACEOF
21809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21813 cat >>confdefs.h <<_ACEOF
21814 #define LLVM_HOST_TRIPLE "$host"
21818 cat >>confdefs.h <<_ACEOF
21819 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21823 if test "$BINDINGS_TO_BUILD" = auto ; then
21824 BINDINGS_TO_BUILD=""
21825 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21826 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21829 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21835 binding_prereqs_failed=0
21836 for a_binding in $BINDINGS_TO_BUILD ; do
21837 case "$a_binding" in
21839 if test "x$OCAMLC" = x ; then
21840 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21841 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21842 binding_prereqs_failed=1
21844 if test "x$OCAMLDEP" = x ; then
21845 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21846 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21847 binding_prereqs_failed=1
21849 if test "x$OCAMLOPT" = x ; then
21850 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21851 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21853 if test "x$with_ocaml_libdir" != xauto ; then
21854 OCAML_LIBDIR=$with_ocaml_libdir
21857 ocaml_stdlib="`"$OCAMLC" -where`"
21858 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21860 # ocaml stdlib is beneath our prefix; use stdlib
21861 OCAML_LIBDIR=$ocaml_stdlib
21864 # ocaml stdlib is outside our prefix; use libdir/ocaml
21865 OCAML_LIBDIR=${prefix}/lib/ocaml
21872 if test "$binding_prereqs_failed" = 1 ; then
21873 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21874 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21875 { (exit 1); exit 1; }; }
21878 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21879 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21880 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 ac_cpp='$CXXCPP $CPPFLAGS'
21885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21889 oldcxxflags="$CXXFLAGS"
21890 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913 (eval "$ac_compile") 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
21920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21921 { (case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_try") 2>&5
21928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929 (exit $ac_status); }; } &&
21930 { ac_try='test -s conftest.$ac_objext'
21931 { (case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_try") 2>&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 llvm_cv_cxx_visibility_inlines_hidden=yes
21942 echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.$ac_ext >&5
21945 llvm_cv_cxx_visibility_inlines_hidden=no
21948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 CXXFLAGS="$oldcxxflags"
21951 ac_cpp='$CPP $CPPFLAGS'
21952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21958 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21959 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21960 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21961 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21964 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21969 if test "$llvm_cv_link_use_r" = "yes" ; then
21976 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21977 RDYNAMIC="-rdynamic"
21984 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21991 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21993 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21995 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21997 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21999 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22002 ac_config_files="$ac_config_files Makefile.config"
22005 ac_config_files="$ac_config_files llvm.spec"
22008 ac_config_files="$ac_config_files docs/doxygen.cfg"
22011 if test "${clang_src_root}" = ""; then
22012 clang_src_root="$srcdir/tools/clang"
22014 if test -f ${clang_src_root}/README.txt; then
22015 configh="include/clang/Config/config.h"
22016 doxy="docs/doxygen.cfg"
22017 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22019 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22023 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22026 test "x$program_prefix" = "xNONE" && program_prefix=""
22030 ac_config_commands="$ac_config_commands setup"
22032 ac_config_commands="$ac_config_commands Makefile"
22035 ac_config_commands="$ac_config_commands Makefile.common"
22038 ac_config_commands="$ac_config_commands examples/Makefile"
22041 ac_config_commands="$ac_config_commands lib/Makefile"
22044 ac_config_commands="$ac_config_commands test/Makefile"
22047 ac_config_commands="$ac_config_commands test/Makefile.tests"
22050 ac_config_commands="$ac_config_commands unittests/Makefile"
22053 ac_config_commands="$ac_config_commands tools/Makefile"
22056 ac_config_commands="$ac_config_commands utils/Makefile"
22059 ac_config_commands="$ac_config_commands projects/Makefile"
22062 ac_config_commands="$ac_config_commands bindings/Makefile"
22065 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22069 cat >confcache <<\_ACEOF
22070 # This file is a shell script that caches the results of configure
22071 # tests run on this system so they can be shared between configure
22072 # scripts and configure runs, see configure's option --config-cache.
22073 # It is not useful on other systems. If it contains results you don't
22074 # want to keep, you may remove or edit it.
22076 # config.status only pays attention to the cache file if you give it
22077 # the --recheck option to rerun configure.
22079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22081 # following values.
22085 # The following way of writing the cache mishandles newlines in values,
22086 # but we know of no workaround that is simple, portable, and efficient.
22087 # So, we kill variables containing newlines.
22088 # Ultrix sh set writes to stderr and can't be redirected directly,
22089 # and sets the high bit in the cache file unless we assign to the vars.
22091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22092 eval ac_val=\$$ac_var
22096 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22100 _ | IFS | as_nl) ;; #(
22101 *) $as_unset $ac_var ;;
22107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22108 *${as_nl}ac_space=\ *)
22109 # `set' does not quote correctly, so add quotes (double-quote
22110 # substitution turns \\\\ into \\, and sed turns \\ into \).
22113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22116 # `set' quotes correctly as required by POSIX, so do not add quotes.
22117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22131 if test -w "$cache_file"; then
22132 test "x$cache_file" != "x/dev/null" &&
22133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22134 echo "$as_me: updating cache $cache_file" >&6;}
22135 cat confcache >$cache_file
22137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22144 # Let make expand exec_prefix.
22145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22147 DEFS=-DHAVE_CONFIG_H
22151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22152 # 1. Remove the extension, and $U if already installed.
22153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22154 ac_i=`echo "$ac_i" | sed "$ac_script"`
22155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22156 # will be set to the directory where LIBOBJS objects are built.
22157 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22158 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22160 LIBOBJS=$ac_libobjs
22162 LTLIBOBJS=$ac_ltlibobjs
22165 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22166 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22167 Usually this means the macro was only invoked conditionally." >&5
22168 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22169 Usually this means the macro was only invoked conditionally." >&2;}
22170 { (exit 1); exit 1; }; }
22172 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22173 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22174 Usually this means the macro was only invoked conditionally." >&5
22175 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22176 Usually this means the macro was only invoked conditionally." >&2;}
22177 { (exit 1); exit 1; }; }
22180 : ${CONFIG_STATUS=./config.status}
22181 ac_clean_files_save=$ac_clean_files
22182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22183 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22184 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22185 cat >$CONFIG_STATUS <<_ACEOF
22187 # Generated by $as_me.
22188 # Run this file to recreate the current configuration.
22189 # Compiler output produced by configure, useful for debugging
22190 # configure, is in config.log if it exists.
22193 ac_cs_recheck=false
22195 SHELL=\${CONFIG_SHELL-$SHELL}
22198 cat >>$CONFIG_STATUS <<\_ACEOF
22199 ## --------------------- ##
22200 ## M4sh Initialization. ##
22201 ## --------------------- ##
22203 # Be Bourne compatible
22204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22207 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22208 # is contrary to our usage. Disable this feature.
22209 alias -g '${1+"$@"}'='"$@"'
22210 setopt NO_GLOB_SUBST
22212 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22214 BIN_SH=xpg4; export BIN_SH # for Tru64
22215 DUALCASE=1; export DUALCASE # for MKS sh
22219 # Avoid depending upon Character Ranges.
22220 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22221 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22222 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22223 as_cr_digits='0123456789'
22224 as_cr_alnum=$as_cr_Letters$as_cr_digits
22226 # The user is always right.
22227 if test "${PATH_SEPARATOR+set}" != set; then
22228 echo "#! /bin/sh" >conf$$.sh
22229 echo "exit 0" >>conf$$.sh
22231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22239 # Support unset when possible.
22240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22248 # We need space, tab and new line, in precisely that order. Quoting is
22249 # there to prevent editors from complaining about space-tab.
22250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22251 # splitting by setting IFS to empty value.)
22256 # Find who we are. Look in the path if we contain no directory separator.
22258 *[\\/]* ) as_myself=$0 ;;
22259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22260 for as_dir in $PATH
22263 test -z "$as_dir" && as_dir=.
22264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22270 # We did not find ourselves, most probably we were run as `sh COMMAND'
22271 # in which case we are not to be found in the path.
22272 if test "x$as_myself" = x; then
22275 if test ! -f "$as_myself"; then
22276 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22277 { (exit 1); exit 1; }
22280 # Work around bugs in pre-3.0 UWIN ksh.
22281 for as_var in ENV MAIL MAILPATH
22282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22290 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22291 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22292 LC_TELEPHONE LC_TIME
22294 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22295 eval $as_var=C; export $as_var
22297 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22301 # Required to use basename.
22302 if expr a : '\(a\)' >/dev/null 2>&1 &&
22303 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22309 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22310 as_basename=basename
22316 # Name of the executable.
22317 as_me=`$as_basename -- "$0" ||
22318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22319 X"$0" : 'X\(//\)$' \| \
22320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22322 sed '/^.*\/\([^/][^/]*\)\/*$/{
22341 as_lineno_1=$LINENO
22342 as_lineno_2=$LINENO
22343 test "x$as_lineno_1" != "x$as_lineno_2" &&
22344 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22346 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22347 # uniformly replaced by the line number. The first 'sed' inserts a
22348 # line-number line after each line using $LINENO; the second 'sed'
22349 # does the real work. The second script uses 'N' to pair each
22350 # line-number line with the line containing $LINENO, and appends
22351 # trailing '-' during substitution so that $LINENO is not a special
22352 # case at line end.
22353 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22354 # scripts with optimization help from Paolo Bonzini. Blame Lee
22355 # E. McMahon (1931-1989) for sed's syntax. :-)
22367 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22370 ' >$as_me.lineno &&
22371 chmod +x "$as_me.lineno" ||
22372 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22373 { (exit 1); exit 1; }; }
22375 # Don't try to exec as it changes $[0], causing all sort of problems
22376 # (the dirname of $[0] is not the place where we might find the
22377 # original and so on. Autoconf is especially sensitive to this).
22378 . "./$as_me.lineno"
22379 # Exit status is that of the last command.
22384 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22390 ECHO_C= ECHO_N= ECHO_T=
22391 case `echo -n x` in
22393 case `echo 'x\c'` in
22394 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22401 if expr a : '\(a\)' >/dev/null 2>&1 &&
22402 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22408 rm -f conf$$ conf$$.exe conf$$.file
22409 if test -d conf$$.dir; then
22410 rm -f conf$$.dir/conf$$.file
22416 if ln -s conf$$.file conf$$ 2>/dev/null; then
22418 # ... but there are two gotchas:
22419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22421 # In both cases, we have to default to `cp -p'.
22422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22424 elif ln conf$$.file conf$$ 2>/dev/null; then
22429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22430 rmdir conf$$.dir 2>/dev/null
22432 if mkdir -p . 2>/dev/null; then
22435 test -d ./-p && rmdir ./-p
22439 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22440 # systems may use methods other than mode bits to determine executability.
22441 cat >conf$$.file <<_ASEOF
22445 chmod +x conf$$.file
22446 if test -x conf$$.file >/dev/null 2>&1; then
22447 as_executable_p="test -x"
22453 # Sed expression to map a string onto a valid CPP name.
22454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22456 # Sed expression to map a string onto a valid variable name.
22457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22462 # Save the log message, to keep $[0] and so on meaningful, and to
22463 # report actual input values of CONFIG_FILES etc. instead of their
22464 # values after options handling.
22466 This file was extended by LLVM $as_me 3.5svn, which was
22467 generated by GNU Autoconf 2.60. Invocation command line was
22469 CONFIG_FILES = $CONFIG_FILES
22470 CONFIG_HEADERS = $CONFIG_HEADERS
22471 CONFIG_LINKS = $CONFIG_LINKS
22472 CONFIG_COMMANDS = $CONFIG_COMMANDS
22475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22480 cat >>$CONFIG_STATUS <<_ACEOF
22481 # Files that config.status was made for.
22482 config_files="$ac_config_files"
22483 config_headers="$ac_config_headers"
22484 config_commands="$ac_config_commands"
22488 cat >>$CONFIG_STATUS <<\_ACEOF
22490 \`$as_me' instantiates files from templates according to the
22491 current configuration.
22493 Usage: $0 [OPTIONS] [FILE]...
22495 -h, --help print this help, then exit
22496 -V, --version print version number, then exit
22497 -q, --quiet do not print progress messages
22498 -d, --debug don't remove temporary files
22499 --recheck update $as_me by reconfiguring in the same conditions
22500 --file=FILE[:TEMPLATE]
22501 instantiate the configuration file FILE
22502 --header=FILE[:TEMPLATE]
22503 instantiate the configuration header FILE
22505 Configuration files:
22508 Configuration headers:
22511 Configuration commands:
22514 Report bugs to <bug-autoconf@gnu.org>."
22517 cat >>$CONFIG_STATUS <<_ACEOF
22519 LLVM config.status 3.5svn
22520 configured by $0, generated by GNU Autoconf 2.60,
22521 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22523 Copyright (C) 2006 Free Software Foundation, Inc.
22524 This config.status script is free software; the Free Software Foundation
22525 gives unlimited permission to copy, distribute and modify it."
22532 cat >>$CONFIG_STATUS <<\_ACEOF
22533 # If no file are specified by the user, then we need to provide default
22534 # value. By we need to know if files were specified by the user.
22540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22552 # Handling of the options.
22553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22556 echo "$ac_cs_version"; exit ;;
22557 --debug | --debu | --deb | --de | --d | -d )
22559 --file | --fil | --fi | --f )
22561 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22562 ac_need_defaults=false;;
22563 --header | --heade | --head | --hea )
22565 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22566 ac_need_defaults=false;;
22568 # Conflict between --help and --header
22569 { echo "$as_me: error: ambiguous option: $1
22570 Try \`$0 --help' for more information." >&2
22571 { (exit 1); exit 1; }; };;
22572 --help | --hel | -h )
22573 echo "$ac_cs_usage"; exit ;;
22574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22578 # This is an error.
22579 -*) { echo "$as_me: error: unrecognized option: $1
22580 Try \`$0 --help' for more information." >&2
22581 { (exit 1); exit 1; }; } ;;
22583 *) ac_config_targets="$ac_config_targets $1"
22584 ac_need_defaults=false ;;
22590 ac_configure_extra_args=
22592 if $ac_cs_silent; then
22594 ac_configure_extra_args="$ac_configure_extra_args --silent"
22598 cat >>$CONFIG_STATUS <<_ACEOF
22599 if \$ac_cs_recheck; then
22600 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22601 CONFIG_SHELL=$SHELL
22602 export CONFIG_SHELL
22603 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22612 ## Running $as_me. ##
22618 cat >>$CONFIG_STATUS <<_ACEOF
22622 llvm_src="${srcdir}"
22626 cat >>$CONFIG_STATUS <<\_ACEOF
22628 # Handling of arguments.
22629 for ac_config_target in $ac_config_targets
22631 case $ac_config_target in
22632 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22633 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22634 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22635 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22636 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22637 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22638 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22639 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22640 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22641 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22642 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22643 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22644 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22645 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22646 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22647 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22648 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22649 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22650 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22651 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22652 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22653 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22654 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22655 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22656 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22657 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22659 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22660 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22661 { (exit 1); exit 1; }; };;
22666 # If the user did not use the arguments to specify the items to instantiate,
22667 # then the envvar interface is used. Set only those that are not.
22668 # We use the long form for the default assignment because of an extremely
22669 # bizarre bug on SunOS 4.1.3.
22670 if $ac_need_defaults; then
22671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22676 # Have a temporary directory for convenience. Make it in the build tree
22677 # simply because there is no reason against having it here, and in addition,
22678 # creating and moving files from /tmp can sometimes cause problems.
22679 # Hook for its removal unless debugging.
22680 # Note that there is a small window in which the directory will not be cleaned:
22681 # after its creation but before its name has been assigned to `$tmp'.
22685 trap 'exit_status=$?
22686 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22688 trap '{ (exit 1); exit 1; }' 1 2 13 15
22690 # Create a (secure) tmp directory for tmp files.
22693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22694 test -n "$tmp" && test -d "$tmp"
22697 tmp=./conf$$-$RANDOM
22698 (umask 077 && mkdir "$tmp")
22701 echo "$me: cannot create a temporary directory in ." >&2
22702 { (exit 1); exit 1; }
22706 # Set up the sed scripts for CONFIG_FILES section.
22709 # No need to generate the scripts if there are no CONFIG_FILES.
22710 # This happens for instance when ./config.status config.h
22711 if test -n "$CONFIG_FILES"; then
22718 for ac_last_try in false false false false false :; do
22719 cat >conf$$subs.sed <<_ACEOF
22720 SHELL!$SHELL$ac_delim
22721 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22722 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22723 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22724 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22725 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22726 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22727 exec_prefix!$exec_prefix$ac_delim
22728 prefix!$prefix$ac_delim
22729 program_transform_name!$program_transform_name$ac_delim
22730 bindir!$bindir$ac_delim
22731 sbindir!$sbindir$ac_delim
22732 libexecdir!$libexecdir$ac_delim
22733 datarootdir!$datarootdir$ac_delim
22734 datadir!$datadir$ac_delim
22735 sysconfdir!$sysconfdir$ac_delim
22736 sharedstatedir!$sharedstatedir$ac_delim
22737 localstatedir!$localstatedir$ac_delim
22738 includedir!$includedir$ac_delim
22739 oldincludedir!$oldincludedir$ac_delim
22740 docdir!$docdir$ac_delim
22741 infodir!$infodir$ac_delim
22742 htmldir!$htmldir$ac_delim
22743 dvidir!$dvidir$ac_delim
22744 pdfdir!$pdfdir$ac_delim
22745 psdir!$psdir$ac_delim
22746 libdir!$libdir$ac_delim
22747 localedir!$localedir$ac_delim
22748 mandir!$mandir$ac_delim
22749 DEFS!$DEFS$ac_delim
22750 ECHO_C!$ECHO_C$ac_delim
22751 ECHO_N!$ECHO_N$ac_delim
22752 ECHO_T!$ECHO_T$ac_delim
22753 LIBS!$LIBS$ac_delim
22754 build_alias!$build_alias$ac_delim
22755 host_alias!$host_alias$ac_delim
22756 target_alias!$target_alias$ac_delim
22757 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22759 CFLAGS!$CFLAGS$ac_delim
22760 LDFLAGS!$LDFLAGS$ac_delim
22761 CPPFLAGS!$CPPFLAGS$ac_delim
22762 ac_ct_CC!$ac_ct_CC$ac_delim
22763 EXEEXT!$EXEEXT$ac_delim
22764 OBJEXT!$OBJEXT$ac_delim
22766 CXXFLAGS!$CXXFLAGS$ac_delim
22767 ac_ct_CXX!$ac_ct_CXX$ac_delim
22769 subdirs!$subdirs$ac_delim
22770 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22771 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22772 build!$build$ac_delim
22773 build_cpu!$build_cpu$ac_delim
22774 build_vendor!$build_vendor$ac_delim
22775 build_os!$build_os$ac_delim
22776 host!$host$ac_delim
22777 host_cpu!$host_cpu$ac_delim
22778 host_vendor!$host_vendor$ac_delim
22779 host_os!$host_os$ac_delim
22780 target!$target$ac_delim
22781 target_cpu!$target_cpu$ac_delim
22782 target_vendor!$target_vendor$ac_delim
22783 target_os!$target_os$ac_delim
22785 HOST_OS!$HOST_OS$ac_delim
22786 TARGET_OS!$TARGET_OS$ac_delim
22787 LINKALL!$LINKALL$ac_delim
22788 NOLINKALL!$NOLINKALL$ac_delim
22789 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22790 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22791 ARCH!$ARCH$ac_delim
22792 HOST_ARCH!$HOST_ARCH$ac_delim
22793 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22794 BUILD_CC!$BUILD_CC$ac_delim
22795 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22796 BUILD_CXX!$BUILD_CXX$ac_delim
22797 CVSBUILD!$CVSBUILD$ac_delim
22798 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22799 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22800 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
22801 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22802 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22803 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22804 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22805 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22806 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22807 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22808 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22809 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22810 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22811 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22812 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22814 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22815 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22816 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22819 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22821 elif $ac_last_try; then
22822 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22823 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22824 { (exit 1); exit 1; }; }
22826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22830 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22831 if test -n "$ac_eof"; then
22832 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22833 ac_eof=`expr $ac_eof + 1`
22836 cat >>$CONFIG_STATUS <<_ACEOF
22837 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22841 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22842 s/^/s,@/; s/!/@,|#_!!_#|/
22845 s/'"$ac_delim"'$/,g/; t
22847 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22848 ' >>$CONFIG_STATUS <conf$$subs.sed
22849 rm -f conf$$subs.sed
22850 cat >>$CONFIG_STATUS <<_ACEOF
22856 for ac_last_try in false false false false false :; do
22857 cat >conf$$subs.sed <<_ACEOF
22858 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22859 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22860 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22861 ENABLE_PIC!$ENABLE_PIC$ac_delim
22862 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22863 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22864 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22865 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22866 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22867 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22868 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22869 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22870 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22871 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22872 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22873 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22874 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22875 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22877 ifGNUmake!$ifGNUmake$ac_delim
22878 LN_S!$LN_S$ac_delim
22881 DATE!$DATE$ac_delim
22882 FIND!$FIND$ac_delim
22883 GREP!$GREP$ac_delim
22884 MKDIR!$MKDIR$ac_delim
22886 RANLIB!$RANLIB$ac_delim
22891 BINPWD!$BINPWD$ac_delim
22892 GRAPHVIZ!$GRAPHVIZ$ac_delim
22895 NEATO!$NEATO$ac_delim
22896 TWOPI!$TWOPI$ac_delim
22897 CIRCO!$CIRCO$ac_delim
22899 DOTTY!$DOTTY$ac_delim
22900 XDOT!$XDOT$ac_delim
22901 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22902 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22903 INSTALL_DATA!$INSTALL_DATA$ac_delim
22904 BZIP2!$BZIP2$ac_delim
22906 DOXYGEN!$DOXYGEN$ac_delim
22907 GROFF!$GROFF$ac_delim
22908 GZIPBIN!$GZIPBIN$ac_delim
22909 PDFROFF!$PDFROFF$ac_delim
22911 OCAMLC!$OCAMLC$ac_delim
22912 OCAMLOPT!$OCAMLOPT$ac_delim
22913 OCAMLDEP!$OCAMLDEP$ac_delim
22914 OCAMLDOC!$OCAMLDOC$ac_delim
22916 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22917 EGREP!$EGREP$ac_delim
22918 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22919 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22920 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22921 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22922 LIBADD_DL!$LIBADD_DL$ac_delim
22923 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22924 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22925 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22926 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22927 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22928 PYTHON!$PYTHON$ac_delim
22929 USE_UDIS86!$USE_UDIS86$ac_delim
22930 USE_OPROFILE!$USE_OPROFILE$ac_delim
22931 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22932 XML2CONFIG!$XML2CONFIG$ac_delim
22933 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22934 LIBXML2_INC!$LIBXML2_INC$ac_delim
22935 CXXCPP!$CXXCPP$ac_delim
22936 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22937 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22938 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22939 MMAP_FILE!$MMAP_FILE$ac_delim
22940 SHLIBEXT!$SHLIBEXT$ac_delim
22941 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22942 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22943 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22944 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22945 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22946 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22947 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22948 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22949 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22950 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22951 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22952 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22953 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22954 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22957 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22959 elif $ac_last_try; then
22960 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22961 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22962 { (exit 1); exit 1; }; }
22964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22968 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22969 if test -n "$ac_eof"; then
22970 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22971 ac_eof=`expr $ac_eof + 1`
22974 cat >>$CONFIG_STATUS <<_ACEOF
22975 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22979 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22980 s/^/s,@/; s/!/@,|#_!!_#|/
22983 s/'"$ac_delim"'$/,g/; t
22985 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22986 ' >>$CONFIG_STATUS <conf$$subs.sed
22987 rm -f conf$$subs.sed
22988 cat >>$CONFIG_STATUS <<_ACEOF
22994 for ac_last_try in false false false false false :; do
22995 cat >conf$$subs.sed <<_ACEOF
22996 RPATH!$RPATH$ac_delim
22997 RDYNAMIC!$RDYNAMIC$ac_delim
22998 program_prefix!$program_prefix$ac_delim
22999 LIBOBJS!$LIBOBJS$ac_delim
23000 LTLIBOBJS!$LTLIBOBJS$ac_delim
23003 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
23005 elif $ac_last_try; then
23006 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23007 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23008 { (exit 1); exit 1; }; }
23010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23014 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23015 if test -n "$ac_eof"; then
23016 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23017 ac_eof=`expr $ac_eof + 1`
23020 cat >>$CONFIG_STATUS <<_ACEOF
23021 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23025 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23026 s/^/s,@/; s/!/@,|#_!!_#|/
23029 s/'"$ac_delim"'$/,g/; t
23031 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23032 ' >>$CONFIG_STATUS <conf$$subs.sed
23033 rm -f conf$$subs.sed
23034 cat >>$CONFIG_STATUS <<_ACEOF
23041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23043 # trailing colons and then remove the whole line if VPATH becomes empty
23044 # (actually we leave an empty line to preserve line numbers).
23045 if test "x$srcdir" = x.; then
23046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23047 s/:*\$(srcdir):*/:/
23048 s/:*\${srcdir}:*/:/
23050 s/^\([^=]*=[ ]*\):*/\1/
23056 cat >>$CONFIG_STATUS <<\_ACEOF
23057 fi # test -n "$CONFIG_FILES"
23060 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23063 :[FHLC]) ac_mode=$ac_tag; continue;;
23065 case $ac_mode$ac_tag in
23067 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23068 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23069 { (exit 1); exit 1; }; };;
23070 :[FH]-) ac_tag=-:-;;
23071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23088 -) ac_f="$tmp/stdin";;
23089 *) # Look for the file first in the build tree, then in the source tree
23090 # (if the path is not absolute). The absolute path cannot be DOS-style,
23091 # because $ac_f cannot contain `:'.
23095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23097 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23098 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23099 { (exit 1); exit 1; }; };;
23101 ac_file_inputs="$ac_file_inputs $ac_f"
23104 # Let's still pretend it is `configure' which instantiates (i.e., don't
23105 # use $as_me), people would be surprised to read:
23106 # /* config.h. Generated by config.status. */
23107 configure_input="Generated from "`IFS=:
23108 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23109 if test x"$ac_file" != x-; then
23110 configure_input="$ac_file. $configure_input"
23111 { echo "$as_me:$LINENO: creating $ac_file" >&5
23112 echo "$as_me: creating $ac_file" >&6;}
23116 *:-:* | *:-) cat >"$tmp/stdin";;
23121 ac_dir=`$as_dirname -- "$ac_file" ||
23122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23123 X"$ac_file" : 'X\(//\)[^/]' \| \
23124 X"$ac_file" : 'X\(//\)$' \| \
23125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23131 /^X\(\/\/\)[^/].*/{
23146 -*) as_dir=./$as_dir;;
23148 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23152 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23153 *) as_qdir=$as_dir;;
23155 as_dirs="'$as_qdir' $as_dirs"
23156 as_dir=`$as_dirname -- "$as_dir" ||
23157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23158 X"$as_dir" : 'X\(//\)[^/]' \| \
23159 X"$as_dir" : 'X\(//\)$' \| \
23160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23166 /^X\(\/\/\)[^/].*/{
23179 test -d "$as_dir" && break
23181 test -z "$as_dirs" || eval "mkdir $as_dirs"
23182 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23183 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23184 { (exit 1); exit 1; }; }; }
23188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23191 # A ".." for each directory in $ac_dir_suffix.
23192 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23193 case $ac_top_builddir_sub in
23194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23198 ac_abs_top_builddir=$ac_pwd
23199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23200 # for backward compatibility:
23201 ac_top_builddir=$ac_top_build_prefix
23204 .) # We are building in place.
23206 ac_top_srcdir=$ac_top_builddir_sub
23207 ac_abs_top_srcdir=$ac_pwd ;;
23208 [\\/]* | ?:[\\/]* ) # Absolute name.
23209 ac_srcdir=$srcdir$ac_dir_suffix;
23210 ac_top_srcdir=$srcdir
23211 ac_abs_top_srcdir=$srcdir ;;
23212 *) # Relative name.
23213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23214 ac_top_srcdir=$ac_top_build_prefix$srcdir
23215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23228 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 # If the template does not know about datarootdir, expand it.
23234 # FIXME: This hack should be removed a few years after 2.60.
23235 ac_datarootdir_hack=; ac_datarootdir_seen=
23237 case `sed -n '/datarootdir/ {
23246 ' $ac_file_inputs` in
23247 *datarootdir*) ac_datarootdir_seen=yes;;
23248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23249 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23252 cat >>$CONFIG_STATUS <<_ACEOF
23253 ac_datarootdir_hack='
23254 s&@datadir@&$datadir&g
23255 s&@docdir@&$docdir&g
23256 s&@infodir@&$infodir&g
23257 s&@localedir@&$localedir&g
23258 s&@mandir@&$mandir&g
23259 s&\\\${datarootdir}&$datarootdir&g' ;;
23263 # Neutralize VPATH when `$srcdir' = `.'.
23264 # Shell code in configure.ac might set extrasub.
23265 # FIXME: do we really want to maintain this feature?
23266 cat >>$CONFIG_STATUS <<_ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23273 s&@configure_input@&$configure_input&;t t
23274 s&@top_builddir@&$ac_top_builddir_sub&;t t
23275 s&@srcdir@&$ac_srcdir&;t t
23276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23277 s&@top_srcdir@&$ac_top_srcdir&;t t
23278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23279 s&@builddir@&$ac_builddir&;t t
23280 s&@abs_builddir@&$ac_abs_builddir&;t t
23281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23282 s&@INSTALL@&$ac_INSTALL&;t t
23283 $ac_datarootdir_hack
23284 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23287 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23289 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23290 which seems to be undefined. Please make sure it is defined." >&5
23291 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23292 which seems to be undefined. Please make sure it is defined." >&2;}
23296 -) cat "$tmp/out"; rm -f "$tmp/out";;
23297 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23306 # Transform confdefs.h into a sed script `conftest.defines', that
23307 # substitutes the proper values into config.h.in to produce config.h.
23308 rm -f conftest.defines conftest.tail
23309 # First, append a space to every undef/define line, to ease matching.
23310 echo 's/$/ /' >conftest.defines
23311 # Then, protect against being on the right side of a sed subst, or in
23312 # an unquoted here document, in config.status. If some macros were
23313 # called several times there might be several #defines for the same
23314 # symbol, which is useless. But do not sort them, since the last
23315 # AC_DEFINE must be honored.
23316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23317 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23318 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23319 # PARAMS is the parameter list in the macro definition--in most cases, it's
23320 # just an empty string.
23321 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23322 ac_dB='\\)[ (].*,\\1define\\2'
23330 s/^[ ]*#[ ]*define[ ][ ]*//
23335 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23336 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23337 ' >>conftest.defines
23339 # Remove the space that was appended to ease matching.
23340 # Then replace #undef with comments. This is necessary, for
23341 # example, in the case of _POSIX_SOURCE, which is predefined and required
23342 # on some systems where configure will not decide to define it.
23343 # (The regexp can be short, since the line contains either #define or #undef.)
23345 s,^[ #]*u.*,/* & */,' >>conftest.defines
23347 # Break up conftest.defines:
23348 ac_max_sed_lines=50
23350 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23351 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23352 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23354 ac_in='$ac_file_inputs'
23355 ac_out='"$tmp/out1"'
23356 ac_nxt='"$tmp/out2"'
23360 # Write a here document:
23361 cat >>$CONFIG_STATUS <<_ACEOF
23362 # First, check the format of the line:
23363 cat >"\$tmp/defines.sed" <<\\CEOF
23364 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23365 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23369 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23371 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23372 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23373 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23374 grep . conftest.tail >/dev/null || break
23375 rm -f conftest.defines
23376 mv conftest.tail conftest.defines
23378 rm -f conftest.defines conftest.tail
23380 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23382 if test x"$ac_file" != x-; then
23383 echo "/* $configure_input */" >"$tmp/config.h"
23384 cat "$ac_result" >>"$tmp/config.h"
23385 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23386 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23387 echo "$as_me: $ac_file is unchanged" >&6;}
23390 mv "$tmp/config.h" $ac_file
23393 echo "/* $configure_input */"
23399 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23400 echo "$as_me: executing $ac_file commands" >&6;}
23405 case $ac_file$ac_mode in
23406 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23408 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23410 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23412 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23414 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23416 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23418 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23420 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23422 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23424 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23426 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23427 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23428 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23429 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23435 { (exit 0); exit 0; }
23437 chmod +x $CONFIG_STATUS
23438 ac_clean_files=$ac_clean_files_save
23441 # configure is writing to config.log, and then calls config.status.
23442 # config.status does its own redirection, appending to config.log.
23443 # Unfortunately, on DOS this fails, as config.log is still kept open
23444 # by configure, so config.status won't be able to write to it; its
23445 # output is simply discarded. So we exec the FD to /dev/null,
23446 # effectively closing config.log, so it can be properly (re)opened and
23447 # appended to by config.status. When coming back to configure, we
23448 # need to make the FD available again.
23449 if test "$no_create" != yes; then
23451 ac_config_status_args=
23452 test "$silent" = yes &&
23453 ac_config_status_args="$ac_config_status_args --quiet"
23455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23458 # would make configure fail if this is the last instruction.
23459 $ac_cs_success || { (exit 1); exit 1; }
23463 # CONFIG_SUBDIRS section.
23465 if test "$no_recursion" != yes; then
23467 # Remove --cache-file and --srcdir arguments so they do not pile up.
23468 ac_sub_configure_args=
23470 eval "set x $ac_configure_args"
23474 if test -n "$ac_prev"; then
23479 -cache-file | --cache-file | --cache-fil | --cache-fi \
23480 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23481 ac_prev=cache_file ;;
23482 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23483 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23486 --config-cache | -C)
23488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23492 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23494 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23498 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23500 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23504 # Always prepend --prefix to ensure using the same prefix
23505 # in subdir configurations.
23506 ac_arg="--prefix=$prefix"
23508 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23510 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23513 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23515 # Do not complain, so a configure script can configure whichever
23516 # parts of a large source tree are present.
23517 test -d "$srcdir/$ac_dir" || continue
23519 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23520 echo "$as_me:$LINENO: $ac_msg" >&5
23524 -*) as_dir=./$as_dir;;
23526 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23530 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23531 *) as_qdir=$as_dir;;
23533 as_dirs="'$as_qdir' $as_dirs"
23534 as_dir=`$as_dirname -- "$as_dir" ||
23535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23536 X"$as_dir" : 'X\(//\)[^/]' \| \
23537 X"$as_dir" : 'X\(//\)$' \| \
23538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23544 /^X\(\/\/\)[^/].*/{
23557 test -d "$as_dir" && break
23559 test -z "$as_dirs" || eval "mkdir $as_dirs"
23560 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23561 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23562 { (exit 1); exit 1; }; }; }
23566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23569 # A ".." for each directory in $ac_dir_suffix.
23570 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23571 case $ac_top_builddir_sub in
23572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23576 ac_abs_top_builddir=$ac_pwd
23577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23578 # for backward compatibility:
23579 ac_top_builddir=$ac_top_build_prefix
23582 .) # We are building in place.
23584 ac_top_srcdir=$ac_top_builddir_sub
23585 ac_abs_top_srcdir=$ac_pwd ;;
23586 [\\/]* | ?:[\\/]* ) # Absolute name.
23587 ac_srcdir=$srcdir$ac_dir_suffix;
23588 ac_top_srcdir=$srcdir
23589 ac_abs_top_srcdir=$srcdir ;;
23590 *) # Relative name.
23591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23592 ac_top_srcdir=$ac_top_build_prefix$srcdir
23593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23600 # Check for guested configure; otherwise get Cygnus style configure.
23601 if test -f "$ac_srcdir/configure.gnu"; then
23602 ac_sub_configure=$ac_srcdir/configure.gnu
23603 elif test -f "$ac_srcdir/configure"; then
23604 ac_sub_configure=$ac_srcdir/configure
23605 elif test -f "$ac_srcdir/configure.in"; then
23606 # This should be Cygnus configure.
23607 ac_sub_configure=$ac_aux_dir/configure
23609 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23610 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23614 # The recursion is here.
23615 if test -n "$ac_sub_configure"; then
23616 # Make the cache file name correct relative to the subdirectory.
23617 case $cache_file in
23618 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23619 *) # Relative name.
23620 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23623 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23624 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23625 # The eval makes quoting arguments work.
23626 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23627 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23628 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23629 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23630 { (exit 1); exit 1; }; }