2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.1svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2011 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.1svn'
565 PACKAGE_STRING='llvm 3.1svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/llvm-gcc
807 projects/llvm-poolalloc
810 projects/llvm-stacker
818 # Initialize some variables set by options.
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
959 -help | --help | --hel | --he | -h)
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1108 -site=* | --site=* | --sit=*)
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
1153 # Obsolete; use --with-x.
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
1201 # Be sure to have absolute directory names.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val=\$$ac_var
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures llvm 3.1svn to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of llvm 3.1svn:";;
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-polly Use polly if available (default is YES)
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-docs Build documents (default is YES)
1405 --enable-doxygen Build doxygen documentation (default is NO)
1406 --enable-threads Use threads if available (default is YES)
1407 --enable-pthreads Use pthreads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1413 Win32 DLL (default is NO)
1414 --enable-timestamps Enable embedding timestamp information in build
1416 --enable-targets Build specific host targets: all or
1417 target1,target2,... Valid targets are: host, x86,
1418 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1419 xcore, msp430, ptx, cbe, and cpp
1421 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1423 --enable-bindings Build specific language bindings:
1424 all,auto,none,{binding-name} (default=auto)
1425 --enable-libffi Check for the presence of libffi (default is NO)
1426 --enable-ltdl-install install libltdl
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-optimize-option Select the compiler options to use for optimized
1433 --with-extra-options Specify additional options to compile LLVM with
1434 --with-extra-ld-options Specify additional options to link LLVM with
1435 --with-ocaml-libdir Specify install location for ocaml bindings (default
1437 --with-clang-srcdir Directory to the out-of-tree Clang source
1438 --with-clang-resource-dir
1439 Relative directory from the Clang binary for
1441 --with-c-include-dirs Colon separated list of directories clang will
1443 --with-cxx-include-root Directory with the libstdc++ headers.
1444 --with-cxx-include-arch Architecture of the libstdc++ headers.
1445 --with-cxx-include-32bit-dir
1446 32 bit multilib dir.
1447 --with-cxx-include-64bit-dir
1448 64 bit multilib directory.
1449 --with-binutils-include Specify path to binutils/include/ containing
1450 plugin-api.h file for gold plugin.
1451 --with-bug-report-url Specify the URL where bug reports should be
1452 submitted (default=http://llvm.org/bugs/)
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 llvm configure 3.1svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by llvm $as_me 3.1svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1912 for ac_dir in autoconf "$srcdir"/autoconf; do
1913 if test -f "$ac_dir/install-sh"; then
1915 ac_install_sh="$ac_aux_dir/install-sh -c"
1917 elif test -f "$ac_dir/install.sh"; then
1919 ac_install_sh="$ac_aux_dir/install.sh -c"
1921 elif test -f "$ac_dir/shtool"; then
1923 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 if test -z "$ac_aux_dir"; then
1928 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1929 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1930 { (exit 1); exit 1; }; }
1933 # These three variables are undocumented and unsupported,
1934 # and are intended to be withdrawn in a future Autoconf release.
1935 # They can cause serious problems if a builder's source tree is in a directory
1936 # whose full name contains unusual characters.
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1939 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943 if test ${srcdir} != "." ; then
1944 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1945 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1946 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1947 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 for ac_prog in clang llvm-gcc gcc
1959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1966 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test.
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 test -z "$as_dir" && as_dir=.
1974 for ac_exec_ext in '' $ac_executable_extensions; do
1975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 { echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6; }
1991 { echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6; }
1996 test -n "$CC" && break
1999 if test -z "$CC"; then
2001 for ac_prog in clang llvm-gcc gcc
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 if test -n "$ac_ct_CC"; then
2011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2020 ac_cv_prog_ac_ct_CC="$ac_prog"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031 if test -n "$ac_ct_CC"; then
2032 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033 echo "${ECHO_T}$ac_ct_CC" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2040 test -n "$ac_ct_CC" && break
2043 if test "x$ac_ct_CC" = x; then
2046 case $cross_compiling:$ac_tool_warned in
2048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2049 whose name does not start with the host triplet. If you think this
2050 configuration is useful to you, please write to autoconf@gnu.org." >&5
2051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet. If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2054 ac_tool_warned=yes ;;
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO: checking for C compiler version" >&5
2069 ac_compiler=`set X $ac_compile; echo $2`
2070 { (ac_try="$ac_compiler --version >&5"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2076 (eval "$ac_compiler --version >&5") 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080 { (ac_try="$ac_compiler -v >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler -v >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -V >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -V >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2101 cat >conftest.$ac_ext <<_ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h. */
2116 ac_clean_files_save=$ac_clean_files
2117 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2118 # Try to create an executable without -o first, disregard a.out.
2119 # It will help us diagnose broken compilers, and finding out an intuition
2121 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2122 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2123 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2125 # List of possible output files, starting from the most likely.
2126 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2127 # only as a last resort. b.out is created by i960 compilers.
2128 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2130 # The IRIX 6 linker writes into existing files which may not be
2131 # executable, retaining their permissions. Remove them first so a
2132 # subsequent execution test works.
2134 for ac_file in $ac_files
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2143 if { (ac_try="$ac_link_default"
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2149 (eval "$ac_link_default") 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2156 # so that the user can short-circuit this test for compilers unknown to
2158 for ac_file in $ac_files
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2165 # We found the default executable, but exeext='' is most
2169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # We set ac_cv_exeext here because the later test for it is not
2174 # safe: cross compilers may not add the suffix if given an `-o'
2175 # argument, so we may need to know it at that point already.
2176 # Even if this section looks crufty: it has the advantage of
2183 test "$ac_cv_exeext" = no && ac_cv_exeext=
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 { echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6; }
2200 # Check that the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213 (eval "$ac_try") 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2219 if test "$cross_compiling" = maybe; then
2222 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2223 If you meant to cross compile, use \`--host'.
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&2;}
2228 { (exit 1); exit 1; }; }
2232 { echo "$as_me:$LINENO: result: yes" >&5
2233 echo "${ECHO_T}yes" >&6; }
2235 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2236 ac_clean_files=$ac_clean_files_save
2237 # Check that the compiler produces executables we can run. If not, either
2238 # the compiler is broken, or we cross compile.
2239 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2240 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2241 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2242 echo "${ECHO_T}$cross_compiling" >&6; }
2244 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2245 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2246 if { (ac_try="$ac_link"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_link") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; then
2256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2257 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258 # work properly (i.e., refer to `conftest.exe'), while it won't with
2260 for ac_file in conftest.exe conftest conftest.*; do
2261 test -f "$ac_file" || continue
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2270 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274 { (exit 1); exit 1; }; }
2277 rm -f conftest$ac_cv_exeext
2278 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2284 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2286 if test "${ac_cv_objext+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2304 rm -f conftest.o conftest.obj
2305 if { (ac_try="$ac_compile"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_compile") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 for ac_file in conftest.o conftest.obj conftest.*; do
2316 test -f "$ac_file" || continue;
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2337 echo "${ECHO_T}$ac_cv_objext" >&6; }
2338 OBJEXT=$ac_cv_objext
2340 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2341 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2342 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2363 rm -f conftest.$ac_objext
2364 if { (ac_try="$ac_compile"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>conftest.er1
2372 grep -v '^ *+' conftest.er1 >conftest.err
2374 cat conftest.err >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2378 { (case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_try") 2>&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try='test -s conftest.$ac_objext'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2410 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2411 GCC=`test $ac_compiler_gnu = yes && echo yes`
2412 ac_test_CFLAGS=${CFLAGS+set}
2413 ac_save_CFLAGS=$CFLAGS
2414 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 ac_save_c_werror_flag=$ac_c_werror_flag
2420 ac_c_werror_flag=yes
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_compile") 2>conftest.er1
2447 grep -v '^ *+' conftest.er1 >conftest.err
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2453 { (case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_try") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_try") 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2529 echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_c_werror_flag=$ac_save_c_werror_flag
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2549 rm -f conftest.$ac_objext
2550 if { (ac_try="$ac_compile"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556 (eval "$ac_compile") 2>conftest.er1
2558 grep -v '^ *+' conftest.er1 >conftest.err
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_c_werror_flag=$ac_save_c_werror_flag
2600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2602 if test "$ac_test_CFLAGS" = set; then
2603 CFLAGS=$ac_save_CFLAGS
2604 elif test $ac_cv_prog_cc_g = yes; then
2605 if test "$GCC" = yes; then
2611 if test "$GCC" = yes; then
2617 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2618 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2619 if test "${ac_cv_prog_cc_c89+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 ac_cv_prog_cc_c89=no
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2632 #include <sys/types.h>
2633 #include <sys/stat.h>
2634 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2635 struct buf { int x; };
2636 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2637 static char *e (p, i)
2643 static char *f (char * (*g) (char **, int), char **p, ...)
2648 s = g (p, va_arg (v,int));
2653 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2654 function prototypes and stuff, but not '\xHH' hex character constants.
2655 These don't provoke an error unfortunately, instead are silently treated
2656 as 'x'. The following induces an error, until -std is added to get
2657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2658 array size at least. It's necessary to write '\x00'==0 to get something
2659 that's true only with -std. */
2660 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2662 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2663 inside strings and character constants. */
2665 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2667 int test (int i, double x);
2668 struct s1 {int (*f) (int a);};
2669 struct s2 {int (*f) (double a);};
2670 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2681 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (ac_try="$ac_compile"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2700 { (case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_try") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_c89=$ac_arg
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 rm -f conftest.$ac_ext
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 ac_cpp='$CXXCPP $CPPFLAGS'
2757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2760 if test -z "$CXX"; then
2761 if test -n "$CCC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang++ llvm-g++ g++
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CXX+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$CXX"; then
2775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CXX"; then
2796 { echo "$as_me:$LINENO: result: $CXX" >&5
2797 echo "${ECHO_T}$CXX" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CXX" && break
2807 if test -z "$CXX"; then
2809 for ac_prog in clang++ llvm-g++ g++
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_CXX"; then
2819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CXX="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2839 if test -n "$ac_ct_CXX"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2841 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CXX" && break
2851 if test "x$ac_ct_CXX" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2870 # Provide some information about the compiler.
2871 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2872 ac_compiler=`set X $ac_compile; echo $2`
2873 { (ac_try="$ac_compiler --version >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_compiler --version >&5") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }
2883 { (ac_try="$ac_compiler -v >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler -v >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -V >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -V >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2904 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2905 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2906 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2973 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2974 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2975 GXX=`test $ac_compiler_gnu = yes && echo yes`
2976 ac_test_CXXFLAGS=${CXXFLAGS+set}
2977 ac_save_CXXFLAGS=$CXXFLAGS
2978 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2980 if test "${ac_cv_prog_cxx_g+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2984 ac_cxx_werror_flag=yes
2987 cat >conftest.$ac_ext <<_ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
3002 rm -f conftest.$ac_objext
3003 if { (ac_try="$ac_compile"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compile") 2>conftest.er1
3011 grep -v '^ *+' conftest.er1 >conftest.err
3013 cat conftest.err >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); } &&
3016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3017 { (case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_try") 2>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 ac_cv_prog_cxx_g=yes
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 ac_cv_prog_cxx_g=yes
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3165 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3166 if test "$ac_test_CXXFLAGS" = set; then
3167 CXXFLAGS=$ac_save_CXXFLAGS
3168 elif test $ac_cv_prog_cxx_g = yes; then
3169 if test "$GXX" = yes; then
3175 if test "$GXX" = yes; then
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3194 # On Suns, sometimes $CPP names a directory.
3195 if test -n "$CPP" && test -d "$CPP"; then
3198 if test -z "$CPP"; then
3199 if test "${ac_cv_prog_CPP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Double quotes because CPP needs to be expanded
3203 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206 for ac_c_preproc_warn_flag in '' yes
3208 # Use a header file that comes with gcc, so configuring glibc
3209 # with a fresh cross-compiler works.
3210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3211 # <limits.h> exists even on freestanding compilers.
3212 # On the NeXT, cc -E runs the code through the compiler's parser,
3213 # not just through cpp. "Syntax error" is here to catch this case.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if { (ac_try="$ac_cpp conftest.$ac_ext"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } >/dev/null; then
3240 if test -s conftest.err; then
3241 ac_cpp_err=$ac_c_preproc_warn_flag
3242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3249 if test -z "$ac_cpp_err"; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3269 #include <ac_nonexistent.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null; then
3284 if test -s conftest.err; then
3285 ac_cpp_err=$ac_c_preproc_warn_flag
3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3293 if test -z "$ac_cpp_err"; then
3294 # Broken: success on invalid input.
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 # Passes both tests.
3305 rm -f conftest.err conftest.$ac_ext
3308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3309 rm -f conftest.err conftest.$ac_ext
3310 if $ac_preproc_ok; then
3322 { echo "$as_me:$LINENO: result: $CPP" >&5
3323 echo "${ECHO_T}$CPP" >&6; }
3325 for ac_c_preproc_warn_flag in '' yes
3327 # Use a header file that comes with gcc, so configuring glibc
3328 # with a fresh cross-compiler works.
3329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330 # <limits.h> exists even on freestanding compilers.
3331 # On the NeXT, cc -E runs the code through the compiler's parser,
3332 # not just through cpp. "Syntax error" is here to catch this case.
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3340 # include <limits.h>
3342 # include <assert.h>
3346 if { (ac_try="$ac_cpp conftest.$ac_ext"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3368 if test -z "$ac_cpp_err"; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 # Broken: fails on valid input.
3378 rm -f conftest.err conftest.$ac_ext
3380 # OK, works on sane cases. Now check whether nonexistent headers
3381 # can be detected and how.
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <ac_nonexistent.h>
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null; then
3403 if test -s conftest.err; then
3404 ac_cpp_err=$ac_c_preproc_warn_flag
3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412 if test -z "$ac_cpp_err"; then
3413 # Broken: success on invalid input.
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 if test -d ${srcdir}/projects/llvm-gcc ; then
3449 subdirs="$subdirs projects/llvm-gcc"
3453 if test -d ${srcdir}/projects/test-suite ; then
3454 subdirs="$subdirs projects/test-suite"
3458 if test -d ${srcdir}/projects/llvm-test ; then
3459 subdirs="$subdirs projects/llvm-test"
3463 if test -d ${srcdir}/projects/poolalloc ; then
3464 subdirs="$subdirs projects/poolalloc"
3468 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3469 subdirs="$subdirs projects/llvm-poolalloc"
3473 for i in `ls ${srcdir}/projects`
3475 if test -d ${srcdir}/projects/${i} ; then
3477 sample) subdirs="$subdirs projects/sample"
3479 privbracket) subdirs="$subdirs projects/privbracket"
3481 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3483 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3485 llvm-java) subdirs="$subdirs projects/llvm-java"
3487 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3489 safecode) subdirs="$subdirs projects/safecode"
3491 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3499 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3500 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3506 # Check whether --enable-polly was given.
3507 if test "${enable_polly+set}" = set; then
3508 enableval=$enable_polly;
3513 case "$enableval" in
3518 default) ENABLE_POLLY=1
3520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3521 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3526 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3529 subdirs="$subdirs tools/polly"
3534 # Make sure we can run config.sub.
3535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3536 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3537 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3538 { (exit 1); exit 1; }; }
3540 { echo "$as_me:$LINENO: checking build system type" >&5
3541 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3542 if test "${ac_cv_build+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_build_alias=$build_alias
3546 test "x$ac_build_alias" = x &&
3547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3548 test "x$ac_build_alias" = x &&
3549 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3550 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3551 { (exit 1); exit 1; }; }
3552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3554 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3558 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3559 echo "${ECHO_T}$ac_cv_build" >&6; }
3560 case $ac_cv_build in
3562 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3563 echo "$as_me: error: invalid value of canonical build" >&2;}
3564 { (exit 1); exit 1; }; };;
3567 ac_save_IFS=$IFS; IFS='-'
3573 # Remember, the first character of IFS is used to create $*,
3574 # except with old shells:
3577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3580 { echo "$as_me:$LINENO: checking host system type" >&5
3581 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3582 if test "${ac_cv_host+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 if test "x$host_alias" = x; then
3586 ac_cv_host=$ac_cv_build
3588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3589 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3590 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3591 { (exit 1); exit 1; }; }
3595 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3596 echo "${ECHO_T}$ac_cv_host" >&6; }
3599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3600 echo "$as_me: error: invalid value of canonical host" >&2;}
3601 { (exit 1); exit 1; }; };;
3604 ac_save_IFS=$IFS; IFS='-'
3610 # Remember, the first character of IFS is used to create $*,
3611 # except with old shells:
3614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3617 { echo "$as_me:$LINENO: checking target system type" >&5
3618 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3619 if test "${ac_cv_target+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test "x$target_alias" = x; then
3623 ac_cv_target=$ac_cv_host
3625 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3626 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3628 { (exit 1); exit 1; }; }
3632 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3633 echo "${ECHO_T}$ac_cv_target" >&6; }
3634 case $ac_cv_target in
3636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3637 echo "$as_me: error: invalid value of canonical target" >&2;}
3638 { (exit 1); exit 1; }; };;
3640 target=$ac_cv_target
3641 ac_save_IFS=$IFS; IFS='-'
3647 # Remember, the first character of IFS is used to create $*,
3648 # except with old shells:
3651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3654 # The aliases save the names the user supplied, while $host etc.
3655 # will get canonicalized.
3656 test -n "$target_alias" &&
3657 test "$program_prefix$program_suffix$program_transform_name" = \
3659 program_prefix=${target_alias}-
3661 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3662 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3663 if test "${llvm_cv_os_type+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="AIX"
3671 llvm_cv_platform_type="Unix" ;;
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="IRIX"
3676 llvm_cv_platform_type="Unix" ;;
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Cygwin"
3681 llvm_cv_platform_type="Unix" ;;
3683 llvm_cv_link_all_option="-Wl,-all_load"
3684 llvm_cv_no_link_all_option="-Wl,-noall_load"
3685 llvm_cv_os_type="Darwin"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,-all_load"
3689 llvm_cv_no_link_all_option="-Wl,-noall_load"
3690 llvm_cv_os_type="Minix"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="FreeBSD"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="OpenBSD"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="NetBSD"
3706 llvm_cv_platform_type="Unix" ;;
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="DragonFly"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="HP-UX"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Interix"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Linux"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,-z,allextract"
3729 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3730 llvm_cv_os_type="SunOS"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,-z,allextract"
3734 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3735 llvm_cv_os_type="AuroraUX"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Win32"
3741 llvm_cv_platform_type="Win32" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="MingW"
3746 llvm_cv_platform_type="Win32" ;;
3748 llvm_cv_link_all_option="-Wl,--whole-archive"
3749 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3750 llvm_cv_os_type="Haiku"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,--whole-archive"
3754 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755 llvm_cv_os_type="Freestanding"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Freestanding"
3761 llvm_cv_platform_type="Unix" ;;
3763 llvm_cv_link_all_option=""
3764 llvm_cv_no_link_all_option=""
3765 llvm_cv_os_type="Unknown"
3766 llvm_cv_platform_type="Unknown" ;;
3769 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3770 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3772 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3773 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3774 if test "${llvm_cv_target_os_type+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 llvm_cv_target_os_type="AIX" ;;
3781 llvm_cv_target_os_type="IRIX" ;;
3783 llvm_cv_target_os_type="Cygwin" ;;
3785 llvm_cv_target_os_type="Darwin" ;;
3787 llvm_cv_target_os_type="Minix" ;;
3789 llvm_cv_target_os_type="FreeBSD" ;;
3791 llvm_cv_target_os_type="OpenBSD" ;;
3793 llvm_cv_target_os_type="NetBSD" ;;
3795 llvm_cv_target_os_type="DragonFly" ;;
3797 llvm_cv_target_os_type="HP-UX" ;;
3799 llvm_cv_target_os_type="Interix" ;;
3801 llvm_cv_target_os_type="Linux" ;;
3803 llvm_cv_target_os_type="SunOS" ;;
3805 llvm_cv_target_os_type="AuroraUX" ;;
3807 llvm_cv_target_os_type="Win32" ;;
3809 llvm_cv_target_os_type="MingW" ;;
3811 llvm_cv_target_os_type="Haiku" ;;
3813 llvm_cv_target_os_type="RTEMS" ;;
3815 llvm_cv_target_os_type="NativeClient" ;;
3817 llvm_cv_target_os_type="Freestanding" ;;
3819 llvm_cv_target_os_type="Unknown" ;;
3822 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3823 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3825 if test "$llvm_cv_os_type" = "Unknown" ; then
3826 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3827 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3828 { (exit 1); exit 1; }; }
3833 HOST_OS=$llvm_cv_os_type
3835 TARGET_OS=$llvm_cv_target_os_type
3838 LINKALL=$llvm_cv_link_all_option
3840 NOLINKALL=$llvm_cv_no_link_all_option
3843 case $llvm_cv_platform_type in
3846 cat >>confdefs.h <<\_ACEOF
3847 #define LLVM_ON_UNIX 1
3857 cat >>confdefs.h <<\_ACEOF
3858 #define LLVM_ON_WIN32 1
3868 { echo "$as_me:$LINENO: checking target architecture" >&5
3869 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3870 if test "${llvm_cv_target_arch+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 i?86-*) llvm_cv_target_arch="x86" ;;
3875 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3876 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3877 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3878 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3879 arm*-*) llvm_cv_target_arch="ARM" ;;
3880 mips-*) llvm_cv_target_arch="Mips" ;;
3881 xcore-*) llvm_cv_target_arch="XCore" ;;
3882 msp430-*) llvm_cv_target_arch="MSP430" ;;
3883 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3884 ptx-*) llvm_cv_target_arch="PTX" ;;
3885 *) llvm_cv_target_arch="Unknown" ;;
3888 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3889 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3891 if test "$llvm_cv_target_arch" = "Unknown" ; then
3892 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3893 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3896 # Determine the LLVM native architecture for the target
3897 case "$llvm_cv_target_arch" in
3898 x86) LLVM_NATIVE_ARCH="X86" ;;
3899 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3900 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3903 ARCH=$llvm_cv_target_arch
3908 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3909 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 # Extract the first word of "grep ggrep" to use in msg output
3914 if test -z "$GREP"; then
3915 set dummy grep ggrep; ac_prog_name=$2
3916 if test "${ac_cv_path_GREP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_path_GREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in grep ggrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3930 # Check for GNU ac_path_GREP and select it if it is found.
3931 # Check for GNU $ac_path_GREP
3932 case `"$ac_path_GREP" --version 2>&1` in
3934 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3937 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 echo 'GREP' >> "conftest.nl"
3944 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 ac_count=`expr $ac_count + 1`
3947 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_GREP="$ac_path_GREP"
3950 ac_path_GREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3959 $ac_path_GREP_found && break 3
3969 GREP="$ac_cv_path_GREP"
3970 if test -z "$GREP"; then
3971 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3972 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3973 { (exit 1); exit 1; }; }
3977 ac_cv_path_GREP=$GREP
3982 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3983 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3987 { echo "$as_me:$LINENO: checking for egrep" >&5
3988 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993 then ac_cv_path_EGREP="$GREP -E"
3995 # Extract the first word of "egrep" to use in msg output
3996 if test -z "$EGREP"; then
3997 set dummy egrep; ac_prog_name=$2
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 ac_count=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4041 $ac_path_EGREP_found && break 3
4051 EGREP="$ac_cv_path_EGREP"
4052 if test -z "$EGREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_EGREP=$EGREP
4065 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4066 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4067 EGREP="$ac_cv_path_EGREP"
4070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4072 if test "${ac_cv_header_stdc+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 cat >conftest.$ac_ext <<_ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4094 rm -f conftest.$ac_objext
4095 if { (ac_try="$ac_compile"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4103 grep -v '^ *+' conftest.er1 >conftest.err
4105 cat conftest.err >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest.$ac_objext'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 if test $ac_cv_header_stdc = yes; then
4139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "memchr" >/dev/null 2>&1; then
4153 ac_cv_header_stdc=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4171 $EGREP "free" >/dev/null 2>&1; then
4174 ac_cv_header_stdc=no
4180 if test $ac_cv_header_stdc = yes; then
4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4182 if test "$cross_compiling" = yes; then
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4193 #if ((' ' & 0x0FF) == 0x020)
4194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4197 # define ISLOWER(c) \
4198 (('a' <= (c) && (c) <= 'i') \
4199 || ('j' <= (c) && (c) <= 'r') \
4200 || ('s' <= (c) && (c) <= 'z'))
4201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4209 for (i = 0; i < 256; i++)
4210 if (XOR (islower (i), ISLOWER (i))
4211 || toupper (i) != TOUPPER (i))
4216 rm -f conftest$ac_exeext
4217 if { (ac_try="$ac_link"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_link") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4238 echo "$as_me: program exited with status $ac_status" >&5
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4243 ac_cv_header_stdc=no
4245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4252 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4253 if test $ac_cv_header_stdc = yes; then
4255 cat >>confdefs.h <<\_ACEOF
4256 #define STDC_HEADERS 1
4261 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4272 inttypes.h stdint.h unistd.h
4274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4288 #include <$ac_header>
4290 rm -f conftest.$ac_objext
4291 if { (ac_try="$ac_compile"
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_compile") 2>conftest.er1
4299 grep -v '^ *+' conftest.er1 >conftest.err
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_try") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; } &&
4314 { ac_try='test -s conftest.$ac_objext'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 eval "$as_ac_Header=yes"
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 eval "$as_ac_Header=no"
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_res=`eval echo '${'$as_ac_Header'}'`
4335 { echo "$as_me:$LINENO: result: $ac_res" >&5
4336 echo "${ECHO_T}$ac_res" >&6; }
4337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338 cat >>confdefs.h <<_ACEOF
4339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4348 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4349 if test "${ac_cv_c_bigendian+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 # See if sys/param.h defines the BYTE_ORDER macro.
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/param.h>
4365 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_compile") 2>conftest.er1
4382 grep -v '^ *+' conftest.er1 >conftest.err
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4407 # It does; now see whether it defined to BIG_ENDIAN or not.
4408 cat >conftest.$ac_ext <<_ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 #include <sys/param.h>
4420 #if BYTE_ORDER != BIG_ENDIAN
4428 rm -f conftest.$ac_objext
4429 if { (ac_try="$ac_compile"
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_compile") 2>conftest.er1
4437 grep -v '^ *+' conftest.er1 >conftest.err
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
4442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4443 { (case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_try") 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_cv_c_bigendian=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 # It does not; compile a test program.
4476 if test "$cross_compiling" = yes; then
4477 # try to guess the endianness by grepping values into an object file
4478 ac_cv_c_bigendian=unknown
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4486 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4487 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4488 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4489 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4490 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4494 _ascii (); _ebcdic ();
4499 rm -f conftest.$ac_objext
4500 if { (ac_try="$ac_compile"
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4506 (eval "$ac_compile") 2>conftest.er1
4508 grep -v '^ *+' conftest.er1 >conftest.err
4510 cat conftest.err >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); } &&
4513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_try") 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4534 ac_cv_c_bigendian=yes
4536 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4537 if test "$ac_cv_c_bigendian" = unknown; then
4538 ac_cv_c_bigendian=no
4540 # finding both strings is unlikely to happen, but who knows?
4541 ac_cv_c_bigendian=unknown
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 $ac_includes_default
4564 /* Are we little or big endian? From Harbison&Steele. */
4568 char c[sizeof (long int)];
4571 return u.c[sizeof (long int) - 1] == 1;
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584 (eval "$ac_link") 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_c_bigendian=no
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_c_bigendian=yes
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4615 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4616 case $ac_cv_c_bigendian in
4624 { { echo "$as_me:$LINENO: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4626 echo "$as_me: error: unknown endianness
4627 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4632 if test "$cross_compiling" = yes; then
4633 LLVM_CROSS_COMPILING=1
4636 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4637 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4638 if test "${ac_cv_build_exeext+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4642 ac_cv_build_exeext=.exe
4644 ac_build_prefix=${build_alias}-
4646 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4647 set dummy ${ac_build_prefix}gcc; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$BUILD_CC"; then
4654 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 BUILD_CC=$ac_cv_prog_BUILD_CC
4674 if test -n "$BUILD_CC"; then
4675 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4676 echo "${ECHO_T}$BUILD_CC" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4683 if test -z "$BUILD_CC"; then
4684 # Extract the first word of "gcc", so it can be a program name with args.
4685 set dummy gcc; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 if test -n "$BUILD_CC"; then
4692 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_BUILD_CC="gcc"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 BUILD_CC=$ac_cv_prog_BUILD_CC
4712 if test -n "$BUILD_CC"; then
4713 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4714 echo "${ECHO_T}$BUILD_CC" >&6; }
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test -z "$BUILD_CC"; then
4722 # Extract the first word of "cc", so it can be a program name with args.
4723 set dummy cc; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$BUILD_CC"; then
4730 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4741 ac_prog_rejected=yes
4744 ac_cv_prog_BUILD_CC="cc"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 if test $ac_prog_rejected = yes; then
4753 # We found a bogon in the path, so make sure we never use it.
4754 set dummy $ac_cv_prog_BUILD_CC
4756 if test $# != 0; then
4757 # We chose a different compiler from the bogus one.
4758 # However, it has the same basename, so the bogon will be chosen
4759 # first if we set BUILD_CC to just the basename; use the full file name.
4761 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4766 BUILD_CC=$ac_cv_prog_BUILD_CC
4767 if test -n "$BUILD_CC"; then
4768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4769 echo "${ECHO_T}$BUILD_CC" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4779 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4780 { (exit 1); exit 1; }; }
4781 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4783 echo 'int main () { return 0; }' > conftest.$ac_ext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4786 (eval $ac_build_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; then
4790 for file in conftest.*; do
4792 *.c | *.o | *.obj | *.dSYM) ;;
4793 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4797 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4798 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4799 { (exit 1); exit 1; }; }
4802 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4807 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4808 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4809 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4810 ac_build_exeext=$BUILD_EXEEXT
4812 ac_build_prefix=${build_alias}-
4813 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4814 set dummy ${ac_build_prefix}g++; ac_word=$2
4815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4817 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$BUILD_CXX"; then
4821 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4841 if test -n "$BUILD_CXX"; then
4842 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4843 echo "${ECHO_T}$BUILD_CXX" >&6; }
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 if test -z "$BUILD_CXX"; then
4851 # Extract the first word of "g++", so it can be a program name with args.
4852 set dummy g++; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 if test -n "$BUILD_CXX"; then
4859 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_BUILD_CXX="g++"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4879 if test -n "$BUILD_CXX"; then
4880 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4881 echo "${ECHO_T}$BUILD_CXX" >&6; }
4883 { echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6; }
4888 if test -z "$BUILD_CXX"; then
4889 # Extract the first word of "c++", so it can be a program name with args.
4890 set dummy c++; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$BUILD_CXX"; then
4897 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4908 ac_prog_rejected=yes
4911 ac_cv_prog_BUILD_CXX="c++"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 if test $ac_prog_rejected = yes; then
4920 # We found a bogon in the path, so make sure we never use it.
4921 set dummy $ac_cv_prog_BUILD_CXX
4923 if test $# != 0; then
4924 # We chose a different compiler from the bogus one.
4925 # However, it has the same basename, so the bogon will be chosen
4926 # first if we set BUILD_CXX to just the basename; use the full file name.
4928 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4933 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4934 if test -n "$BUILD_CXX"; then
4935 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4936 echo "${ECHO_T}$BUILD_CXX" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4946 LLVM_CROSS_COMPILING=0
4950 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4961 # Check whether --enable-optimized was given.
4962 if test "${enable_optimized+set}" = set; then
4963 enableval=$enable_optimized;
4968 if test ${enableval} = "no" ; then
4972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4976 # Check whether --enable-profiling was given.
4977 if test "${enable_profiling+set}" = set; then
4978 enableval=$enable_profiling;
4983 if test ${enableval} = "no" ; then
4987 ENABLE_PROFILING=ENABLE_PROFILING=1
4991 # Check whether --enable-assertions was given.
4992 if test "${enable_assertions+set}" = set; then
4993 enableval=$enable_assertions;
4998 if test ${enableval} = "yes" ; then
5002 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5006 # Check whether --enable-expensive-checks was given.
5007 if test "${enable_expensive_checks+set}" = set; then
5008 enableval=$enable_expensive_checks;
5013 if test ${enableval} = "yes" ; then
5014 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5016 EXPENSIVE_CHECKS=yes
5019 ENABLE_EXPENSIVE_CHECKS=
5025 # Check whether --enable-debug-runtime was given.
5026 if test "${enable_debug_runtime+set}" = set; then
5027 enableval=$enable_debug_runtime;
5032 if test ${enableval} = "no" ; then
5036 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5040 # Check whether --enable-debug-symbols was given.
5041 if test "${enable_debug_symbols+set}" = set; then
5042 enableval=$enable_debug_symbols;
5047 if test ${enableval} = "no" ; then
5051 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5055 # Check whether --enable-jit was given.
5056 if test "${enable_jit+set}" = set; then
5057 enableval=$enable_jit;
5062 if test ${enableval} = "no"
5067 case "$llvm_cv_target_arch" in
5068 x86) TARGET_HAS_JIT=1
5070 Sparc) TARGET_HAS_JIT=0
5072 PowerPC) TARGET_HAS_JIT=1
5074 x86_64) TARGET_HAS_JIT=1
5076 Alpha) TARGET_HAS_JIT=0
5078 ARM) TARGET_HAS_JIT=1
5080 Mips) TARGET_HAS_JIT=1
5082 XCore) TARGET_HAS_JIT=0
5084 MSP430) TARGET_HAS_JIT=0
5086 Blackfin) TARGET_HAS_JIT=0
5088 MBlaze) TARGET_HAS_JIT=0
5090 PTX) TARGET_HAS_JIT=0
5097 # Check whether --enable-docs was given.
5098 if test "${enable_docs+set}" = set; then
5099 enableval=$enable_docs;
5104 case "$enableval" in
5109 default) ENABLE_DOCS=1
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5112 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5116 # Check whether --enable-doxygen was given.
5117 if test "${enable_doxygen+set}" = set; then
5118 enableval=$enable_doxygen;
5123 case "$enableval" in
5124 yes) ENABLE_DOXYGEN=1
5126 no) ENABLE_DOXYGEN=0
5128 default) ENABLE_DOXYGEN=0
5130 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5131 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5132 { (exit 1); exit 1; }; } ;;
5135 # Check whether --enable-threads was given.
5136 if test "${enable_threads+set}" = set; then
5137 enableval=$enable_threads;
5142 case "$enableval" in
5143 yes) ENABLE_THREADS=1
5145 no) ENABLE_THREADS=0
5147 default) ENABLE_THREADS=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 cat >>confdefs.h <<_ACEOF
5155 #define ENABLE_THREADS $ENABLE_THREADS
5159 # Check whether --enable-pthreads was given.
5160 if test "${enable_pthreads+set}" = set; then
5161 enableval=$enable_pthreads;
5166 case "$enableval" in
5167 yes) ENABLE_PTHREADS=1
5169 no) ENABLE_PTHREADS=0
5171 default) ENABLE_PTHREADS=1
5173 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5174 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5178 # Check whether --enable-pic was given.
5179 if test "${enable_pic+set}" = set; then
5180 enableval=$enable_pic;
5185 case "$enableval" in
5190 default) ENABLE_PIC=1
5192 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5193 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5194 { (exit 1); exit 1; }; } ;;
5197 cat >>confdefs.h <<_ACEOF
5198 #define ENABLE_PIC $ENABLE_PIC
5202 # Check whether --enable-shared was given.
5203 if test "${enable_shared+set}" = set; then
5204 enableval=$enable_shared;
5209 case "$enableval" in
5210 yes) ENABLE_SHARED=1
5214 default) ENABLE_SHARED=0
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5217 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5221 # Check whether --enable-embed-stdcxx was given.
5222 if test "${enable_embed_stdcxx+set}" = set; then
5223 enableval=$enable_embed_stdcxx;
5228 case "$enableval" in
5229 yes) ENABLE_EMBED_STDCXX=1
5231 no) ENABLE_EMBED_STDCXX=0
5233 default) ENABLE_EMBED_STDCXX=0
5235 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5236 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5237 { (exit 1); exit 1; }; } ;;
5240 # Check whether --enable-timestamps was given.
5241 if test "${enable_timestamps+set}" = set; then
5242 enableval=$enable_timestamps;
5247 case "$enableval" in
5248 yes) ENABLE_TIMESTAMPS=1
5250 no) ENABLE_TIMESTAMPS=0
5252 default) ENABLE_TIMESTAMPS=1
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5259 cat >>confdefs.h <<_ACEOF
5260 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5265 # Check whether --enable-targets was given.
5266 if test "${enable_targets+set}" = set; then
5267 enableval=$enable_targets;
5272 if test "$enableval" = host-only ; then
5275 case "$enableval" in
5276 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5277 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5279 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5280 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5281 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5282 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5283 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5284 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5285 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5286 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5287 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5288 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5289 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5290 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5291 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5292 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5293 host) case "$llvm_cv_target_arch" in
5294 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5295 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5296 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5297 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5298 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5299 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5300 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5301 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5302 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5303 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5304 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5305 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5306 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5308 echo "$as_me: error: Can not set target to build" >&2;}
5309 { (exit 1); exit 1; }; } ;;
5311 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5312 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5313 { (exit 1); exit 1; }; } ;;
5318 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5321 # Determine whether we are building LLVM support for the native architecture.
5322 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5323 for a_target in $TARGETS_TO_BUILD; do
5324 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5330 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5331 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5332 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5333 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5334 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5335 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5338 cat >>confdefs.h <<_ACEOF
5339 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5343 cat >>confdefs.h <<_ACEOF
5344 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5348 cat >>confdefs.h <<_ACEOF
5349 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5357 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5367 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5368 # target feature def files.
5369 LLVM_ENUM_TARGETS=""
5370 LLVM_ENUM_ASM_PRINTERS=""
5371 LLVM_ENUM_ASM_PARSERS=""
5372 LLVM_ENUM_DISASSEMBLERS=""
5373 for target_to_build in $TARGETS_TO_BUILD; do
5374 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5375 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5376 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5378 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5379 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5381 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5382 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5390 # Check whether --enable-cbe-printf-a was given.
5391 if test "${enable_cbe_printf_a+set}" = set; then
5392 enableval=$enable_cbe_printf_a;
5397 case "$enableval" in
5398 yes) ENABLE_CBE_PRINTF_A=1
5400 no) ENABLE_CBE_PRINTF_A=0
5402 default) ENABLE_CBE_PRINTF_A=1
5404 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5405 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5406 { (exit 1); exit 1; }; } ;;
5409 cat >>confdefs.h <<_ACEOF
5410 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5415 # Check whether --with-optimize-option was given.
5416 if test "${with_optimize_option+set}" = set; then
5417 withval=$with_optimize_option;
5422 { echo "$as_me:$LINENO: checking optimization flags" >&5
5423 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5426 case "$llvm_cv_os_type" in
5427 FreeBSD) optimize_option=-O2 ;;
5428 MingW) optimize_option=-O2 ;;
5429 *) optimize_option=-O3 ;;
5431 *) optimize_option="$withval" ;;
5433 OPTIMIZE_OPTION=$optimize_option
5435 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5436 echo "${ECHO_T}$optimize_option" >&6; }
5439 # Check whether --with-extra-options was given.
5440 if test "${with_extra_options+set}" = set; then
5441 withval=$with_extra_options;
5447 default) EXTRA_OPTIONS= ;;
5448 *) EXTRA_OPTIONS=$withval ;;
5450 EXTRA_OPTIONS=$EXTRA_OPTIONS
5454 # Check whether --with-extra-ld-options was given.
5455 if test "${with_extra_ld_options+set}" = set; then
5456 withval=$with_extra_ld_options;
5462 default) EXTRA_LD_OPTIONS= ;;
5463 *) EXTRA_LD_OPTIONS=$withval ;;
5465 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5468 # Check whether --enable-bindings was given.
5469 if test "${enable_bindings+set}" = set; then
5470 enableval=$enable_bindings;
5475 BINDINGS_TO_BUILD=""
5476 case "$enableval" in
5477 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5478 all ) BINDINGS_TO_BUILD="ocaml" ;;
5479 none | no) BINDINGS_TO_BUILD="" ;;
5480 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5481 case "$a_binding" in
5482 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5483 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5484 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5485 { (exit 1); exit 1; }; } ;;
5492 # Check whether --with-ocaml-libdir was given.
5493 if test "${with_ocaml_libdir+set}" = set; then
5494 withval=$with_ocaml_libdir;
5500 auto) with_ocaml_libdir="$withval" ;;
5501 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5502 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5503 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5504 { (exit 1); exit 1; }; } ;;
5508 # Check whether --with-clang-srcdir was given.
5509 if test "${with_clang_srcdir+set}" = set; then
5510 withval=$with_clang_srcdir;
5516 -) clang_src_root="" ;;
5517 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5518 *) clang_src_root="$ac_pwd/$withval" ;;
5520 CLANG_SRC_ROOT=$clang_src_root
5524 # Check whether --with-clang-resource-dir was given.
5525 if test "${with_clang_resource_dir+set}" = set; then
5526 withval=$with_clang_resource_dir;
5532 cat >>confdefs.h <<_ACEOF
5533 #define CLANG_RESOURCE_DIR "$withval"
5538 # Check whether --with-c-include-dirs was given.
5539 if test "${with_c_include_dirs+set}" = set; then
5540 withval=$with_c_include_dirs;
5546 cat >>confdefs.h <<_ACEOF
5547 #define C_INCLUDE_DIRS "$withval"
5552 # Check whether --with-cxx-include-root was given.
5553 if test "${with_cxx_include_root+set}" = set; then
5554 withval=$with_cxx_include_root;
5560 cat >>confdefs.h <<_ACEOF
5561 #define CXX_INCLUDE_ROOT "$withval"
5566 # Check whether --with-cxx-include-arch was given.
5567 if test "${with_cxx_include_arch+set}" = set; then
5568 withval=$with_cxx_include_arch;
5574 cat >>confdefs.h <<_ACEOF
5575 #define CXX_INCLUDE_ARCH "$withval"
5580 # Check whether --with-cxx-include-32bit-dir was given.
5581 if test "${with_cxx_include_32bit_dir+set}" = set; then
5582 withval=$with_cxx_include_32bit_dir;
5588 cat >>confdefs.h <<_ACEOF
5589 #define CXX_INCLUDE_32BIT_DIR "$withval"
5594 # Check whether --with-cxx-include-64bit-dir was given.
5595 if test "${with_cxx_include_64bit_dir+set}" = set; then
5596 withval=$with_cxx_include_64bit_dir;
5602 cat >>confdefs.h <<_ACEOF
5603 #define CXX_INCLUDE_64BIT_DIR "$withval"
5608 # Check whether --with-binutils-include was given.
5609 if test "${with_binutils_include+set}" = set; then
5610 withval=$with_binutils_include;
5616 default) WITH_BINUTILS_INCDIR=default ;;
5617 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5618 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5619 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5620 { (exit 1); exit 1; }; } ;;
5622 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5623 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5625 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5626 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5627 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5628 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5629 { (exit 1); exit 1; }; };
5634 # Check whether --with-bug-report-url was given.
5635 if test "${with_bug_report_url+set}" = set; then
5636 withval=$with_bug_report_url;
5638 withval="http://llvm.org/bugs/"
5642 cat >>confdefs.h <<_ACEOF
5643 #define BUG_REPORT_URL "$withval"
5647 # Check whether --enable-libffi was given.
5648 if test "${enable_libffi+set}" = set; then
5649 enableval=$enable_libffi; case "$enableval" in
5650 yes) llvm_cv_enable_libffi="yes" ;;
5651 no) llvm_cv_enable_libffi="no" ;;
5652 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5653 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5654 { (exit 1); exit 1; }; } ;;
5657 llvm_cv_enable_libffi=no
5662 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5663 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5664 if test "${lt_cv_path_NM+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 if test -n "$NM"; then
5668 # Let the user override the test.
5671 lt_nm_to_check="${ac_tool_prefix}nm"
5672 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5673 lt_nm_to_check="$lt_nm_to_check nm"
5675 for lt_tmp_nm in $lt_nm_to_check; do
5676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5677 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5679 test -z "$ac_dir" && ac_dir=.
5680 tmp_nm="$ac_dir/$lt_tmp_nm"
5681 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5682 # Check to see if the nm accepts a BSD-compat flag.
5683 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5684 # nm: unknown option "B" ignored
5685 # Tru64's nm complains that /dev/null is an invalid object file
5686 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5687 */dev/null* | *'Invalid file or object type'*)
5688 lt_cv_path_NM="$tmp_nm -B"
5692 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5694 lt_cv_path_NM="$tmp_nm -p"
5698 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5699 continue # so that we can try to find one that supports BSD flags
5708 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5711 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5712 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5717 { echo "$as_me:$LINENO: checking for GNU make" >&5
5718 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5719 if test "${llvm_cv_gnu_make_command+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 llvm_cv_gnu_make_command=''
5723 for a in "$MAKE" make gmake gnumake ; do
5724 if test -z "$a" ; then continue ; fi ;
5725 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5727 llvm_cv_gnu_make_command=$a ;
5732 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5733 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5734 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5738 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5739 echo "${ECHO_T}\"Not found\"" >&6; };
5743 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5744 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5746 if test "$LN_S" = "ln -s"; then
5747 { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5750 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5751 echo "${ECHO_T}no, using $LN_S" >&6; }
5754 # Extract the first word of "cmp", so it can be a program name with args.
5755 set dummy cmp; ac_word=$2
5756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5758 if test "${ac_cv_path_CMP+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5786 if test -n "$CMP"; then
5787 { echo "$as_me:$LINENO: result: $CMP" >&5
5788 echo "${ECHO_T}$CMP" >&6; }
5790 { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5795 # Extract the first word of "cp", so it can be a program name with args.
5796 set dummy cp; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_CP+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5827 if test -n "$CP"; then
5828 { echo "$as_me:$LINENO: result: $CP" >&5
5829 echo "${ECHO_T}$CP" >&6; }
5831 { echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6; }
5836 # Extract the first word of "date", so it can be a program name with args.
5837 set dummy date; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_DATE+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5867 DATE=$ac_cv_path_DATE
5868 if test -n "$DATE"; then
5869 { echo "$as_me:$LINENO: result: $DATE" >&5
5870 echo "${ECHO_T}$DATE" >&6; }
5872 { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5877 # Extract the first word of "find", so it can be a program name with args.
5878 set dummy find; ac_word=$2
5879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881 if test "${ac_cv_path_FIND+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5908 FIND=$ac_cv_path_FIND
5909 if test -n "$FIND"; then
5910 { echo "$as_me:$LINENO: result: $FIND" >&5
5911 echo "${ECHO_T}$FIND" >&6; }
5913 { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5918 # Extract the first word of "grep", so it can be a program name with args.
5919 set dummy grep; 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_GREP+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
5949 GREP=$ac_cv_path_GREP
5950 if test -n "$GREP"; then
5951 { echo "$as_me:$LINENO: result: $GREP" >&5
5952 echo "${ECHO_T}$GREP" >&6; }
5954 { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5959 # Extract the first word of "mkdir", so it can be a program name with args.
5960 set dummy mkdir; 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_MKDIR+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
5990 MKDIR=$ac_cv_path_MKDIR
5991 if test -n "$MKDIR"; then
5992 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5993 echo "${ECHO_T}$MKDIR" >&6; }
5995 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
6000 # Extract the first word of "mv", so it can be a program name with args.
6001 set dummy mv; 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_MV+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6009 ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6032 if test -n "$MV"; then
6033 { echo "$as_me:$LINENO: result: $MV" >&5
6034 echo "${ECHO_T}$MV" >&6; }
6036 { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6046 if test "${ac_cv_prog_RANLIB+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6072 echo "${ECHO_T}$RANLIB" >&6; }
6074 { echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6; }
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_ac_ct_RANLIB="ranlib"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6112 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6114 { echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6; }
6118 if test "x$ac_ct_RANLIB" = x; then
6121 case $cross_compiling:$ac_tool_warned in
6123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&5
6126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6127 whose name does not start with the host triplet. If you think this
6128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6129 ac_tool_warned=yes ;;
6131 RANLIB=$ac_ct_RANLIB
6134 RANLIB="$ac_cv_prog_RANLIB"
6137 if test -n "$ac_tool_prefix"; then
6138 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}ar; ac_word=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_prog_AR+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 if test -n "$AR"; then
6146 ac_cv_prog_AR="$AR" # Let the user override the test.
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_AR="${ac_tool_prefix}ar"
6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 if test -n "$AR"; then
6167 { echo "$as_me:$LINENO: result: $AR" >&5
6168 echo "${ECHO_T}$AR" >&6; }
6170 { echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6; }
6176 if test -z "$ac_cv_prog_AR"; then
6178 # Extract the first word of "ar", so it can be a program name with args.
6179 set dummy ar; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 if test -n "$ac_ct_AR"; then
6186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_AR="ar"
6196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6206 if test -n "$ac_ct_AR"; then
6207 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6208 echo "${ECHO_T}$ac_ct_AR" >&6; }
6210 { echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6; }
6214 if test "x$ac_ct_AR" = x; then
6217 case $cross_compiling:$ac_tool_warned in
6219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet. If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&5
6222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6223 whose name does not start with the host triplet. If you think this
6224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6225 ac_tool_warned=yes ;;
6233 # Extract the first word of "rm", so it can be a program name with args.
6234 set dummy rm; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_path_RM+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6265 if test -n "$RM"; then
6266 { echo "$as_me:$LINENO: result: $RM" >&5
6267 echo "${ECHO_T}$RM" >&6; }
6269 { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6274 # Extract the first word of "sed", so it can be a program name with args.
6275 set dummy sed; ac_word=$2
6276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6278 if test "${ac_cv_path_SED+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6306 if test -n "$SED"; then
6307 { echo "$as_me:$LINENO: result: $SED" >&5
6308 echo "${ECHO_T}$SED" >&6; }
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6315 # Extract the first word of "tar", so it can be a program name with args.
6316 set dummy tar; ac_word=$2
6317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6319 if test "${ac_cv_path_TAR+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6334 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6347 if test -n "$TAR"; then
6348 { echo "$as_me:$LINENO: result: $TAR" >&5
6349 echo "${ECHO_T}$TAR" >&6; }
6351 { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6356 # Extract the first word of "pwd", so it can be a program name with args.
6357 set dummy pwd; ac_word=$2
6358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6360 if test "${ac_cv_path_BINPWD+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6387 BINPWD=$ac_cv_path_BINPWD
6388 if test -n "$BINPWD"; then
6389 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6390 echo "${ECHO_T}$BINPWD" >&6; }
6392 { echo "$as_me:$LINENO: result: no" >&5
6393 echo "${ECHO_T}no" >&6; }
6398 # Extract the first word of "Graphviz", so it can be a program name with args.
6399 set dummy Graphviz; ac_word=$2
6400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6429 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6430 if test -n "$GRAPHVIZ"; then
6431 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6432 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6434 { echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6; }
6439 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6441 cat >>confdefs.h <<\_ACEOF
6442 #define HAVE_GRAPHVIZ 1
6445 if test "$llvm_cv_os_type" = "MingW" ; then
6446 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6449 cat >>confdefs.h <<_ACEOF
6450 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6454 # Extract the first word of "dot", so it can be a program name with args.
6455 set dummy dot; ac_word=$2
6456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6458 if test "${ac_cv_path_DOT+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6486 if test -n "$DOT"; then
6487 { echo "$as_me:$LINENO: result: $DOT" >&5
6488 echo "${ECHO_T}$DOT" >&6; }
6490 { echo "$as_me:$LINENO: result: no" >&5
6491 echo "${ECHO_T}no" >&6; }
6495 if test "$DOT" != "echo dot" ; then
6497 cat >>confdefs.h <<\_ACEOF
6501 if test "$llvm_cv_os_type" = "MingW" ; then
6502 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6505 cat >>confdefs.h <<_ACEOF
6506 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6510 # Extract the first word of "fdp", so it can be a program name with args.
6511 set dummy fdp; ac_word=$2
6512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514 if test "${ac_cv_path_FDP+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6542 if test -n "$FDP"; then
6543 { echo "$as_me:$LINENO: result: $FDP" >&5
6544 echo "${ECHO_T}$FDP" >&6; }
6546 { echo "$as_me:$LINENO: result: no" >&5
6547 echo "${ECHO_T}no" >&6; }
6551 if test "$FDP" != "echo fdp" ; then
6553 cat >>confdefs.h <<\_ACEOF
6557 if test "$llvm_cv_os_type" = "MingW" ; then
6558 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6561 cat >>confdefs.h <<_ACEOF
6562 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6566 # Extract the first word of "neato", so it can be a program name with args.
6567 set dummy neato; ac_word=$2
6568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6570 if test "${ac_cv_path_NEATO+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6597 NEATO=$ac_cv_path_NEATO
6598 if test -n "$NEATO"; then
6599 { echo "$as_me:$LINENO: result: $NEATO" >&5
6600 echo "${ECHO_T}$NEATO" >&6; }
6602 { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6607 if test "$NEATO" != "echo neato" ; then
6609 cat >>confdefs.h <<\_ACEOF
6610 #define HAVE_NEATO 1
6613 if test "$llvm_cv_os_type" = "MingW" ; then
6614 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6617 cat >>confdefs.h <<_ACEOF
6618 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6622 # Extract the first word of "twopi", so it can be a program name with args.
6623 set dummy twopi; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_TWOPI+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6653 TWOPI=$ac_cv_path_TWOPI
6654 if test -n "$TWOPI"; then
6655 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6656 echo "${ECHO_T}$TWOPI" >&6; }
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 if test "$TWOPI" != "echo twopi" ; then
6665 cat >>confdefs.h <<\_ACEOF
6666 #define HAVE_TWOPI 1
6669 if test "$llvm_cv_os_type" = "MingW" ; then
6670 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6673 cat >>confdefs.h <<_ACEOF
6674 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6678 # Extract the first word of "circo", so it can be a program name with args.
6679 set dummy circo; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_CIRCO+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6709 CIRCO=$ac_cv_path_CIRCO
6710 if test -n "$CIRCO"; then
6711 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6712 echo "${ECHO_T}$CIRCO" >&6; }
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6719 if test "$CIRCO" != "echo circo" ; then
6721 cat >>confdefs.h <<\_ACEOF
6722 #define HAVE_CIRCO 1
6725 if test "$llvm_cv_os_type" = "MingW" ; then
6726 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6729 cat >>confdefs.h <<_ACEOF
6730 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6734 for ac_prog in gv gsview32
6736 # Extract the first word of "$ac_prog", so it can be a program name with args.
6737 set dummy $ac_prog; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_path_GV+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 if test -n "$GV"; then
6768 { echo "$as_me:$LINENO: result: $GV" >&5
6769 echo "${ECHO_T}$GV" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 test -n "$GV" && break
6778 test -n "$GV" || GV="echo gv"
6780 if test "$GV" != "echo gv" ; then
6782 cat >>confdefs.h <<\_ACEOF
6786 if test "$llvm_cv_os_type" = "MingW" ; then
6787 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6790 cat >>confdefs.h <<_ACEOF
6791 #define LLVM_PATH_GV "$GV${EXEEXT}"
6795 # Extract the first word of "dotty", so it can be a program name with args.
6796 set dummy dotty; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_path_DOTTY+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6826 DOTTY=$ac_cv_path_DOTTY
6827 if test -n "$DOTTY"; then
6828 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6829 echo "${ECHO_T}$DOTTY" >&6; }
6831 { echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6; }
6836 if test "$DOTTY" != "echo dotty" ; then
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_DOTTY 1
6842 if test "$llvm_cv_os_type" = "MingW" ; then
6843 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6846 cat >>confdefs.h <<_ACEOF
6847 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6851 # Extract the first word of "xdot.py", so it can be a program name with args.
6852 set dummy xdot.py; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6882 XDOT_PY=$ac_cv_path_XDOT_PY
6883 if test -n "$XDOT_PY"; then
6884 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6885 echo "${ECHO_T}$XDOT_PY" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 if test "$XDOT_PY" != "echo xdot.py" ; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_XDOT_PY 1
6898 if test "$llvm_cv_os_type" = "MingW" ; then
6899 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6902 cat >>confdefs.h <<_ACEOF
6903 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6909 # Extract the first word of "perl", so it can be a program name with args.
6910 set dummy perl; ac_word=$2
6911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913 if test "${ac_cv_path_PERL+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6940 PERL=$ac_cv_path_PERL
6941 if test -n "$PERL"; then
6942 { echo "$as_me:$LINENO: result: $PERL" >&5
6943 echo "${ECHO_T}$PERL" >&6; }
6945 { echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6; }
6950 if test "$PERL" != "none"; then
6951 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6952 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6953 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6954 { echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6; }
6958 { echo "$as_me:$LINENO: result: not found" >&5
6959 echo "${ECHO_T}not found" >&6; }
6964 if test x"$PERL" = xnone; then
6967 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6968 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6969 { (exit 1); exit 1; }; }
6975 # Find a good install program. We prefer a C program (faster),
6976 # so one script is as good as another. But avoid the broken or
6977 # incompatible versions:
6978 # SysV /etc/install, /usr/sbin/install
6979 # SunOS /usr/etc/install
6980 # IRIX /sbin/install
6982 # AmigaOS /C/install, which installs bootblocks on floppy discs
6983 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6984 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6985 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6986 # OS/2's system install, which has a completely different semantic
6987 # ./install, which can be erroneously created by make from ./install.sh.
6988 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6989 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6990 if test -z "$INSTALL"; then
6991 if test "${ac_cv_path_install+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 test -z "$as_dir" && as_dir=.
6999 # Account for people who put trailing slashes in PATH elements.
7001 ./ | .// | /cC/* | \
7002 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7003 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7006 # OSF1 and SCO ODT 3.0 have their own names for install.
7007 # Don't use installbsd from OSF since it installs stuff as root
7009 for ac_prog in ginstall scoinst install; do
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7012 if test $ac_prog = install &&
7013 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # AIX install. It has an incompatible calling convention.
7016 elif test $ac_prog = install &&
7017 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7018 # program-specific install script used by HP pwplus--don't use.
7021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7034 if test "${ac_cv_path_install+set}" = set; then
7035 INSTALL=$ac_cv_path_install
7037 # As a last resort, use the slow shell script. Don't cache a
7038 # value for INSTALL within a source directory, because that will
7039 # break other packages using the cache if that directory is
7040 # removed, or if the value is a relative name.
7041 INSTALL=$ac_install_sh
7044 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7045 echo "${ECHO_T}$INSTALL" >&6; }
7047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7048 # It thinks the first close brace ends the variable substitution.
7049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7056 [\\/$]* | ?:[\\/]* ) ;;
7057 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7060 # Extract the first word of "bzip2", so it can be a program name with args.
7061 set dummy bzip2; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_path_BZIP2+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 BZIP2=$ac_cv_path_BZIP2
7091 if test -n "$BZIP2"; then
7092 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7093 echo "${ECHO_T}$BZIP2" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7100 # Extract the first word of "cat", so it can be a program name with args.
7101 set dummy cat; 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_CAT+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 ac_cv_path_CAT="$CAT" # 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_CAT="$as_dir/$ac_word$ac_exec_ext"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 if test -n "$CAT"; then
7132 { echo "$as_me:$LINENO: result: $CAT" >&5
7133 echo "${ECHO_T}$CAT" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 # Extract the first word of "doxygen", so it can be a program name with args.
7141 set dummy doxygen; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 DOXYGEN=$ac_cv_path_DOXYGEN
7171 if test -n "$DOXYGEN"; then
7172 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7173 echo "${ECHO_T}$DOXYGEN" >&6; }
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7180 # Extract the first word of "groff", so it can be a program name with args.
7181 set dummy groff; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_GROFF+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7199 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 GROFF=$ac_cv_path_GROFF
7211 if test -n "$GROFF"; then
7212 { echo "$as_me:$LINENO: result: $GROFF" >&5
7213 echo "${ECHO_T}$GROFF" >&6; }
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7220 # Extract the first word of "gzip", so it can be a program name with args.
7221 set dummy gzip; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 GZIPBIN=$ac_cv_path_GZIPBIN
7251 if test -n "$GZIPBIN"; then
7252 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7253 echo "${ECHO_T}$GZIPBIN" >&6; }
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 # Extract the first word of "pod2html", so it can be a program name with args.
7261 set dummy pod2html; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_POD2HTML+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 POD2HTML=$ac_cv_path_POD2HTML
7291 if test -n "$POD2HTML"; then
7292 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7293 echo "${ECHO_T}$POD2HTML" >&6; }
7295 { echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6; }
7300 # Extract the first word of "pod2man", so it can be a program name with args.
7301 set dummy pod2man; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_path_POD2MAN+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 POD2MAN=$ac_cv_path_POD2MAN
7331 if test -n "$POD2MAN"; then
7332 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7333 echo "${ECHO_T}$POD2MAN" >&6; }
7335 { echo "$as_me:$LINENO: result: no" >&5
7336 echo "${ECHO_T}no" >&6; }
7340 # Extract the first word of "pdfroff", so it can be a program name with args.
7341 set dummy pdfroff; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_path_PDFROFF+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 PDFROFF=$ac_cv_path_PDFROFF
7371 if test -n "$PDFROFF"; then
7372 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7373 echo "${ECHO_T}$PDFROFF" >&6; }
7375 { echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6; }
7380 # Extract the first word of "runtest", so it can be a program name with args.
7381 set dummy runtest; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_RUNTEST+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 RUNTEST=$ac_cv_path_RUNTEST
7411 if test -n "$RUNTEST"; then
7412 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7413 echo "${ECHO_T}$RUNTEST" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7422 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7423 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7425 # Check whether --with-tclinclude was given.
7426 if test "${with_tclinclude+set}" = set; then
7427 withval=$with_tclinclude; with_tclinclude=${withval}
7432 if test "${ac_cv_path_tclsh+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 if test x"${with_tclinclude}" != x ; then
7437 if test -f ${with_tclinclude}/tclsh ; then
7438 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7439 elif test -f ${with_tclinclude}/src/tclsh ; then
7440 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7442 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7443 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7444 { (exit 1); exit 1; }; }
7450 if test x"${ac_cv_path_tclsh}" = x ; then
7451 { echo "$as_me:$LINENO: result: none" >&5
7452 echo "${ECHO_T}none" >&6; }
7453 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_TCLSH+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 TCLSH=$ac_cv_path_TCLSH
7486 if test -n "$TCLSH"; then
7487 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7488 echo "${ECHO_T}$TCLSH" >&6; }
7490 { echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6; }
7495 test -n "$TCLSH" && break
7498 if test x"${TCLSH}" = x ; then
7499 ac_cv_path_tclsh='';
7501 ac_cv_path_tclsh="${TCLSH}";
7504 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7505 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7506 TCLSH="${ac_cv_path_tclsh}"
7510 # Extract the first word of "zip", so it can be a program name with args.
7511 set dummy zip; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_ZIP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 if test -n "$ZIP"; then
7542 { echo "$as_me:$LINENO: result: $ZIP" >&5
7543 echo "${ECHO_T}$ZIP" >&6; }
7545 { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7550 for ac_prog in ocamlc
7552 # Extract the first word of "$ac_prog", so it can be a program name with args.
7553 set dummy $ac_prog; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_OCAMLC+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 OCAMLC=$ac_cv_path_OCAMLC
7583 if test -n "$OCAMLC"; then
7584 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7585 echo "${ECHO_T}$OCAMLC" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 test -n "$OCAMLC" && break
7595 for ac_prog in ocamlopt
7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
7598 set dummy $ac_prog; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 OCAMLOPT=$ac_cv_path_OCAMLOPT
7628 if test -n "$OCAMLOPT"; then
7629 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7630 echo "${ECHO_T}$OCAMLOPT" >&6; }
7632 { echo "$as_me:$LINENO: result: no" >&5
7633 echo "${ECHO_T}no" >&6; }
7637 test -n "$OCAMLOPT" && break
7640 for ac_prog in ocamldep
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 OCAMLDEP=$ac_cv_path_OCAMLDEP
7673 if test -n "$OCAMLDEP"; then
7674 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7675 echo "${ECHO_T}$OCAMLDEP" >&6; }
7677 { echo "$as_me:$LINENO: result: no" >&5
7678 echo "${ECHO_T}no" >&6; }
7682 test -n "$OCAMLDEP" && break
7685 for ac_prog in ocamldoc
7687 # Extract the first word of "$ac_prog", so it can be a program name with args.
7688 set dummy $ac_prog; ac_word=$2
7689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
7705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7706 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 OCAMLDOC=$ac_cv_path_OCAMLDOC
7718 if test -n "$OCAMLDOC"; then
7719 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7720 echo "${ECHO_T}$OCAMLDOC" >&6; }
7722 { echo "$as_me:$LINENO: result: no" >&5
7723 echo "${ECHO_T}no" >&6; }
7727 test -n "$OCAMLDOC" && break
7730 for ac_prog in gas as
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7736 if test "${ac_cv_path_GAS+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7751 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 if test -n "$GAS"; then
7764 { echo "$as_me:$LINENO: result: $GAS" >&5
7765 echo "${ECHO_T}$GAS" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7772 test -n "$GAS" && break
7776 { echo "$as_me:$LINENO: checking for linker version" >&5
7777 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7778 if test "${llvm_cv_link_version+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 version_string="$(ld -v 2>&1 | head -1)"
7785 if (echo "$version_string" | grep -q "ld64"); then
7786 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7788 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7792 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7793 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7795 cat >>confdefs.h <<_ACEOF
7796 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7801 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7802 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7803 if test "${llvm_cv_link_use_r+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 CFLAGS="$CFLAGS -Wl,-R."
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 llvm_cv_link_use_r=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 llvm_cv_link_use_r=no
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7883 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7884 if test "$llvm_cv_link_use_r" = yes ; then
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_LINK_R 1
7893 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7894 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7895 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 ac_cpp='$CPP $CPPFLAGS'
7900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (ac_try="$ac_link"
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_link") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1 >conftest.err
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7936 { (case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_try") 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try='test -s conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 llvm_cv_link_use_export_dynamic=yes
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 llvm_cv_link_use_export_dynamic=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7975 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7976 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7978 cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LINK_EXPORT_DYNAMIC 1
7985 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7986 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7987 if test "${llvm_cv_link_use_version_script+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 ac_cpp='$CPP $CPPFLAGS'
7992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 # The following code is from the autoconf manual,
7999 # "11.13: Limitations of Usual Tools".
8000 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8001 # Use mktemp if possible; otherwise fall back on mkdir,
8002 # with $RANDOM to make collisions less likely.
8006 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8008 test -n "$tmp" && test -d "$tmp"
8010 tmp=$TMPDIR/foo$$-$RANDOM
8011 (umask 077 && mkdir "$tmp")
8014 echo "{" > "$tmp/export.map"
8015 echo " global: main;" >> "$tmp/export.map"
8016 echo " local: *;" >> "$tmp/export.map"
8017 echo "};" >> "$tmp/export.map"
8019 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050 { (case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_try") 2>&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8069 llvm_cv_link_use_version_script=yes
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 llvm_cv_link_use_version_script=no
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 rm "$tmp/export.map"
8083 ac_cpp='$CPP $CPPFLAGS'
8084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8090 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8091 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8092 if test "$llvm_cv_link_use_version_script" = yes ; then
8093 HAVE_LINK_VERSION_SCRIPT=1
8100 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8101 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8102 if test "${ac_cv_c_const+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8115 /* FIXME: Include the comments suggested by Paul. */
8117 /* Ultrix mips cc rejects this. */
8118 typedef int charset[2];
8120 /* SunOS 4.1.1 cc rejects this. */
8121 char const *const *ccp;
8123 /* NEC SVR4.0.2 mips cc rejects this. */
8124 struct point {int x, y;};
8125 static struct point const zero = {0,0};
8126 /* AIX XL C 1.02.0.0 rejects this.
8127 It does not let you subtract one const X* pointer from another in
8128 an arm of an if-expression whose if-part is not a constant
8130 const char *g = "string";
8131 ccp = &g + (g ? g-g : 0);
8132 /* HPUX 7.0 cc rejects these. */
8135 ccp = (char const *const *) p;
8136 { /* SCO 3.2v4 cc rejects this. */
8138 char const *s = 0 ? (char *) 0 : (char const *) 0;
8143 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8145 const int *foo = &x[0];
8148 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8149 typedef const int *iptr;
8153 { /* AIX XL C 1.02.0.0 rejects this saying
8154 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8155 struct s { int j; const int *ap[3]; };
8156 struct s *b; b->j = 5;
8158 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8162 return !x[0] && !zero.x;
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8178 grep -v '^ *+' conftest.er1 >conftest.err
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8184 { (case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_try") 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8214 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8215 if test $ac_cv_c_const = no; then
8217 cat >>confdefs.h <<\_ACEOF
8229 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8230 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8231 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8232 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 cat >conftest.$ac_ext <<_ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <sys/types.h>
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8269 { (case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_try") 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest.$ac_objext'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 eval "$as_ac_Header=yes"
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 eval "$as_ac_Header=no"
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 ac_res=`eval echo '${'$as_ac_Header'}'`
8299 { echo "$as_me:$LINENO: result: $ac_res" >&5
8300 echo "${ECHO_T}$ac_res" >&6; }
8301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8306 ac_header_dirent=$ac_hdr; break
8310 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8311 if test $ac_header_dirent = dirent.h; then
8312 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8313 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8314 if test "${ac_cv_search_opendir+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 ac_func_search_save_LIBS=$LIBS
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8325 /* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8340 for ac_lib in '' dir; do
8341 if test -z "$ac_lib"; then
8342 ac_res="none required"
8345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347 rm -f conftest.$ac_objext conftest$ac_exeext
8348 if { (ac_try="$ac_link"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_link") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8362 { (case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_try") 2>&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
8381 ac_cv_search_opendir=$ac_res
8383 echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8389 rm -f core conftest.err conftest.$ac_objext \
8391 if test "${ac_cv_search_opendir+set}" = set; then
8395 if test "${ac_cv_search_opendir+set}" = set; then
8398 ac_cv_search_opendir=no
8401 LIBS=$ac_func_search_save_LIBS
8403 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8404 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8405 ac_res=$ac_cv_search_opendir
8406 if test "$ac_res" != no; then
8407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8412 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8413 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8414 if test "${ac_cv_search_opendir+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 ac_func_search_save_LIBS=$LIBS
8418 cat >conftest.$ac_ext <<_ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8440 for ac_lib in '' x; do
8441 if test -z "$ac_lib"; then
8442 ac_res="none required"
8445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (ac_try="$ac_link"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_link") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8462 { (case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_try") 2>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (case "(($ac_try" in
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_try") 2>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 ac_cv_search_opendir=$ac_res
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8489 rm -f core conftest.err conftest.$ac_objext \
8491 if test "${ac_cv_search_opendir+set}" = set; then
8495 if test "${ac_cv_search_opendir+set}" = set; then
8498 ac_cv_search_opendir=no
8501 LIBS=$ac_func_search_save_LIBS
8503 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8504 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8505 ac_res=$ac_cv_search_opendir
8506 if test "$ac_res" != no; then
8507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514 for ac_header in dlfcn.h
8516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 ac_res=`eval echo '${'$as_ac_Header'}'`
8524 { echo "$as_me:$LINENO: result: $ac_res" >&5
8525 echo "${ECHO_T}$ac_res" >&6; }
8527 # Is the header compilable?
8528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8530 cat >conftest.$ac_ext <<_ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #include <$ac_header>
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8554 { (case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_try") 2>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest.$ac_objext'
8564 { (case "(($ac_try" in
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_try") 2>&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_header_compiler=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_header_compiler=no
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8583 echo "${ECHO_T}$ac_header_compiler" >&6; }
8585 # Is the header present?
8586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 #include <$ac_header>
8596 if { (ac_try="$ac_cpp conftest.$ac_ext"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } >/dev/null; then
8609 if test -s conftest.err; then
8610 ac_cpp_err=$ac_c_preproc_warn_flag
8611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8618 if test -z "$ac_cpp_err"; then
8619 ac_header_preproc=yes
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_header_preproc=no
8627 rm -f conftest.err conftest.$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6; }
8631 # So? What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638 ac_header_preproc=yes
8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8654 ## ----------------------------------- ##
8655 ## Report this to llvmbugs@cs.uiuc.edu ##
8656 ## ----------------------------------- ##
8658 ) | sed "s/^/$as_me: WARNING: /" >&2
8661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 eval "$as_ac_Header=\$ac_header_preproc"
8668 ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670 echo "${ECHO_T}$ac_res" >&6; }
8673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8674 cat >>confdefs.h <<_ACEOF
8675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8682 # Check whether --enable-ltdl-install was given.
8683 if test "${enable_ltdl_install+set}" = set; then
8684 enableval=$enable_ltdl_install;
8690 if test x"${enable_ltdl_install-no}" != xno; then
8692 INSTALL_LTDL_FALSE='#'
8694 INSTALL_LTDL_TRUE='#'
8700 if test x"${enable_ltdl_convenience-no}" != xno; then
8701 CONVENIENCE_LTDL_TRUE=
8702 CONVENIENCE_LTDL_FALSE='#'
8704 CONVENIENCE_LTDL_TRUE='#'
8705 CONVENIENCE_LTDL_FALSE=
8709 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8712 libname_spec='lib$name'
8720 shlibpath_overrides_runpath=unknown
8722 dynamic_linker="$host_os ld.so"
8723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8724 if test "$GCC" = yes; then
8725 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8726 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8727 # if the path contains ";" then we assume it to be the separator
8728 # otherwise default to the standard path separator (i.e. ":") - it is
8729 # assumed that no part of a normal pathname contains ";" but that should
8730 # okay in the real world where ";" in dirpaths is itself problematic.
8731 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8733 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8738 need_lib_prefix=unknown
8739 hardcode_into_libs=no
8741 # when you set need_version to no, make sure it does not cause -set_version
8742 # flags to be left without arguments
8743 need_version=unknown
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8749 shlibpath_var=LIBPATH
8751 # AIX 3 has no versioning support, so we append a major version to the name.
8752 soname_spec='${libname}${release}${shared_ext}$major'
8759 hardcode_into_libs=yes
8760 if test "$host_cpu" = ia64; then
8761 # AIX 5 supports IA64
8762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8763 shlibpath_var=LD_LIBRARY_PATH
8765 # With GCC up to 2.95.x, collect2 would create an import file
8766 # for dependence libraries. The import file would start with
8767 # the line `#! .'. This would cause the generated library to
8768 # depend on `.', always an invalid library. This was fixed in
8769 # development snapshots of GCC prior to 3.0.
8771 aix4 | aix4.[01] | aix4.[01].*)
8772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8774 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8782 # soname into executable. Probably we can add versioning support to
8783 # collect2, so additional links can be useful in future.
8784 if test "$aix_use_runtimelinking" = yes; then
8785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8786 # instead of lib<name>.a to let people know that these are not
8787 # typical AIX shared libraries.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 # We preserve .a as extension for shared libraries through AIX4.2
8791 # and later when we are not doing run time linking.
8792 library_names_spec='${libname}${release}.a $libname.a'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8795 shlibpath_var=LIBPATH
8800 library_names_spec='$libname.ixlibrary $libname.a'
8801 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8802 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'
8806 library_names_spec='${libname}${shared_ext}'
8807 dynamic_linker="$host_os ld.so"
8808 shlibpath_var=LIBRARY_PATH
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8817 shlibpath_var=LD_LIBRARY_PATH
8818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8820 # the default ld.so.conf also contains /usr/contrib/lib and
8821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8822 # libtool to hard-code these into programs
8825 cygwin* | mingw* | pw32*)
8826 version_type=windows
8831 case $GCC,$host_os in
8832 yes,cygwin* | yes,mingw* | yes,pw32*)
8833 library_names_spec='$libname.dll.a'
8834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8835 postinstall_cmds='base_file=`basename \${file}`~
8836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8837 dldir=$destdir/`dirname \$dlpath`~
8838 test -d \$dldir || mkdir -p \$dldir~
8839 $install_prog $dir/$dlname \$dldir/$dlname~
8840 chmod a+x \$dldir/$dlname'
8841 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8842 dlpath=$dir/\$dldll~
8844 shlibpath_overrides_runpath=yes
8848 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8849 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8850 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8853 # MinGW DLLs use traditional 'lib' prefix
8854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8855 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8856 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8857 # It is most probably a Windows format PATH printed by
8858 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8859 # path with ; separators, and with drive letters. We can handle the
8860 # drive letters (cygwin fileutils understands them), so leave them,
8861 # especially as we might pass files found there to a mingw objdump,
8862 # which wouldn't understand a cygwinified path. Ahh.
8863 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8869 # pw32 DLLs use 'pw' prefix rather than 'lib'
8870 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8876 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8879 dynamic_linker='Win32 ld.exe'
8880 # FIXME: first we should search . and the directory the executable is in
8884 darwin* | rhapsody*)
8885 dynamic_linker="$host_os dyld"
8889 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8890 soname_spec='${libname}${release}${major}$shared_ext'
8891 shlibpath_overrides_runpath=yes
8892 shlibpath_var=DYLD_LIBRARY_PATH
8893 shrext_cmds='.dylib'
8894 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8895 if test "$GCC" = yes; then
8896 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"`
8898 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 shlibpath_overrides_runpath=no
8924 hardcode_into_libs=yes
8925 dynamic_linker='GNU ld.so'
8928 freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8935 freebsd[123]*) objformat=aout ;;
8939 version_type=freebsd-$objformat
8940 case $version_type in
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8951 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=yes
8956 freebsd3.[01]* | freebsdelf3.[01]*)
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8965 freebsd*) # from 4.6 on
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8982 hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9040 irix5* | irix6* | nonstopux*)
9042 nonstopux*) version_type=nonstopux ;;
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9055 irix5* | nonstopux*)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9077 # No shared lib support for Linux oldld, aout, or coff.
9078 linux*oldld* | linux*aout* | linux*coff*)
9082 # This must be Linux ELF.
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # This implies no fast_install, which is unacceptable.
9093 # Some rework will be needed to allow for fast_install
9094 # before this can be enabled.
9095 hardcode_into_libs=yes
9097 # Append ld.so.conf contents to the search path
9098 if test -f /etc/ld.so.conf; then
9099 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' ' '`
9100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9103 # We used to test for /lib/ld.so.1 and disable shared libraries on
9104 # powerpc, because MkLinux only supported shared libraries with the
9105 # GNU dynamic linker. Since this was broken with cross compilers,
9106 # most powerpc-linux boxes support dynamic linking these days and
9107 # people can always --disable-shared, the test was removed, and we
9108 # assume the GNU/Linux dynamic linker is in use.
9109 dynamic_linker='GNU/Linux ld.so'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=no
9120 hardcode_into_libs=yes
9121 dynamic_linker='GNU ld.so'
9128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9131 dynamic_linker='NetBSD (a.out) ld.so'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9134 soname_spec='${libname}${release}${shared_ext}$major'
9135 dynamic_linker='NetBSD ld.elf_so'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=yes
9161 sys_lib_dlsearch_path_spec="/usr/lib"
9163 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9165 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9166 *) need_version=no ;;
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9173 openbsd2.[89] | openbsd2.[89].*)
9174 shlibpath_overrides_runpath=no
9177 shlibpath_overrides_runpath=yes
9181 shlibpath_overrides_runpath=yes
9186 libname_spec='$name'
9189 library_names_spec='$libname${shared_ext} $libname.a'
9190 dynamic_linker='OS/2 ld.exe'
9191 shlibpath_var=LIBPATH
9194 osf3* | osf4* | osf5*)
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9212 shlibpath_overrides_runpath=yes
9213 hardcode_into_libs=yes
9214 # ldd complains unless libraries are executable
9215 postinstall_cmds='chmod +x $lib'
9220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9224 if test "$with_gnu_ld" = yes; then
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 case $host_vendor in
9237 shlibpath_overrides_runpath=no
9239 export_dynamic_flag_spec='${wl}-Blargedynsym'
9240 runpath_var=LD_RUN_PATH
9248 shlibpath_overrides_runpath=no
9249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9255 if test -d /usr/nec ;then
9257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258 soname_spec='$libname${shared_ext}.$major'
9259 shlibpath_var=LD_LIBRARY_PATH
9263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264 version_type=freebsd-elf
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 hardcode_into_libs=yes
9271 if test "$with_gnu_ld" = yes; then
9272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9273 shlibpath_overrides_runpath=no
9275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276 shlibpath_overrides_runpath=yes
9279 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9283 sys_lib_dlsearch_path_spec='/usr/lib'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9297 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9298 echo "${ECHO_T}$dynamic_linker" >&6; }
9299 test "$dynamic_linker" = no && can_build_shared=no
9301 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9302 if test "$GCC" = yes; then
9303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9307 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9308 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9309 if test "${libltdl_cv_shlibext+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 eval libltdl_cv_shlibext=$shrext_cmds
9317 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9318 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9319 if test -n "$libltdl_cv_shlibext"; then
9321 cat >>confdefs.h <<_ACEOF
9322 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9328 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9329 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9330 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 libltdl_cv_shlibpath_var="$shlibpath_var"
9335 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9336 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9337 if test -n "$libltdl_cv_shlibpath_var"; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9346 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9347 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9348 if test "${libltdl_cv_sys_search_path+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9354 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9355 if test -n "$libltdl_cv_sys_search_path"; then
9357 for dir in $libltdl_cv_sys_search_path; do
9358 if test -z "$sys_search_path"; then
9359 sys_search_path="$dir"
9361 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9365 cat >>confdefs.h <<_ACEOF
9366 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9371 { echo "$as_me:$LINENO: checking for objdir" >&5
9372 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9373 if test "${libltdl_cv_objdir+set}" = set; then
9374 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 libltdl_cv_objdir="$objdir"
9377 if test -n "$objdir"; then
9380 rm -f .libs 2>/dev/null
9381 mkdir .libs 2>/dev/null
9382 if test -d .libs; then
9383 libltdl_cv_objdir=.libs
9385 # MS-DOS does not allow filenames that begin with a dot.
9386 libltdl_cv_objdir=_libs
9388 rmdir .libs 2>/dev/null
9392 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9393 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9395 cat >>confdefs.h <<_ACEOF
9396 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9404 # Check for command to grab the raw symbol name followed by C symbol from nm.
9405 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9406 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 # These are sane defaults that work on at least a few old systems.
9412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9414 # Character class describing NM global symbol codes.
9415 symcode='[BCDEGRST]'
9417 # Regexp to match symbols that can be accessed directly from C.
9418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9420 # Transform an extracted symbol line into a proper C declaration
9421 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9423 # Transform an extracted symbol line into symbol name and symbol address
9424 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'"
9426 # Define system-specific variables.
9431 cygwin* | mingw* | pw32*)
9432 symcode='[ABCDGISTW]'
9434 hpux*) # Its linker distinguishes data from code symbols
9435 if test "$host_cpu" = ia64; then
9436 symcode='[ABCDEGRST]'
9438 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9439 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'"
9442 if test "$host_cpu" = ia64; then
9443 symcode='[ABCDGIRSTW]'
9444 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9445 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'"
9449 symcode='[BCDEGRST]'
9452 symcode='[BCDEGQRST]'
9463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9471 # Handle CRLF in mingw tool chain
9475 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9479 # If we're using GNU nm, then use its standard symbol codes.
9480 case `$NM -V 2>&1` in
9481 *GNU* | *'with BFD'*)
9482 symcode='[ABCDGIRSTW]' ;;
9485 # Try without a prefix undercore, then with it.
9486 for ac_symprfx in "" "_"; do
9488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9489 symxfrm="\\1 $ac_symprfx\\2 \\2"
9491 # Write the raw and C identifiers.
9492 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9494 # Check to see that the pipe works correctly.
9498 cat > conftest.$ac_ext <<EOF
9503 void nm_test_func(){}
9507 int main(){nm_test_var='a';nm_test_func();return(0);}
9510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; then
9515 # Now try to grab the symbols.
9517 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9518 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s "$nlist"; then
9522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9529 # Make sure that we snagged all the symbols we need.
9530 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9531 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<EOF > conftest.$ac_ext
9538 # Now generate the symbol file.
9539 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9541 cat <<EOF >> conftest.$ac_ext
9542 #if defined (__STDC__) && __STDC__
9543 # define lt_ptr_t void *
9545 # define lt_ptr_t char *
9549 /* The mapping between symbol names and symbols. */
9554 lt_preloaded_symbols[] =
9557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9558 cat <<\EOF >> conftest.$ac_ext
9566 # Now try linking the two files.
9567 mv conftest.$ac_objext conftstm.$ac_objext
9568 lt_save_LIBS="$LIBS"
9569 lt_save_CFLAGS="$CFLAGS"
9570 LIBS="conftstm.$ac_objext"
9571 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9579 LIBS="$lt_save_LIBS"
9580 CFLAGS="$lt_save_CFLAGS"
9582 echo "cannot find nm_test_func in $nlist" >&5
9585 echo "cannot find nm_test_var in $nlist" >&5
9588 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9591 echo "$progname: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 rm -f conftest* conftst*
9596 # Do not use the global_symbol_pipe unless it works.
9597 if test "$pipe_works" = yes; then
9600 lt_cv_sys_global_symbol_pipe=
9606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9607 lt_cv_sys_global_symbol_to_cdecl=
9609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9610 { echo "$as_me:$LINENO: result: failed" >&5
9611 echo "${ECHO_T}failed" >&6; }
9613 { echo "$as_me:$LINENO: result: ok" >&5
9614 echo "${ECHO_T}ok" >&6; }
9618 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9624 libltdl_cv_preloaded_symbols=yes
9626 libltdl_cv_preloaded_symbols=no
9630 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9634 cat >>confdefs.h <<\_ACEOF
9635 #define HAVE_PRELOADED_SYMBOLS 1
9643 ac_cpp='$CPP $CPPFLAGS'
9644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9649 { echo "$as_me:$LINENO: checking for shl_load" >&5
9650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9651 if test "${ac_cv_func_shl_load+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662 #define shl_load innocuous_shl_load
9664 /* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9670 # include <limits.h>
9672 # include <assert.h>
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9684 /* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687 #if defined __stub_shl_load || defined __stub___shl_load
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_link") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } &&
9713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9714 { (case "(($ac_try" in
9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_try") 2>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (case "(($ac_try" in
9725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726 *) ac_try_echo=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_try") 2>&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_func_shl_load=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_cv_func_shl_load=no
9741 rm -f core conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9744 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9745 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9746 if test $ac_cv_func_shl_load = yes; then
9748 cat >>confdefs.h <<\_ACEOF
9749 #define HAVE_SHL_LOAD 1
9753 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9754 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9755 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 ac_check_lib_save_LIBS=$LIBS
9760 cat >conftest.$ac_ext <<_ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9767 /* Override any GCC internal prototype to avoid an error.
9768 Use char because int might match the return type of a GCC
9769 builtin and then its argument prototype would still apply. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest$ac_exeext'
9807 { (case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_try") 2>&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; }; then
9816 ac_cv_lib_dld_shl_load=yes
9818 echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_cv_lib_dld_shl_load=no
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 LIBS=$ac_check_lib_save_LIBS
9828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9830 if test $ac_cv_lib_dld_shl_load = yes; then
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_SHL_LOAD 1
9836 LIBADD_DL="$LIBADD_DL -ldld"
9838 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9839 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_check_lib_save_LIBS=$LIBS
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } &&
9881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9882 { (case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887 (eval "$ac_try") 2>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_try") 2>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_lib_dl_dlopen=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_cv_lib_dl_dlopen=no
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9913 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9915 if test $ac_cv_lib_dl_dlopen = yes; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_LIBDL 1
9921 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } &&
9955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956 { (case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_try") 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_LIBDL 1
9979 libltdl_cv_func_dlopen="yes"
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9985 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any GCC internal prototype to avoid an error.
9999 Use char because int might match the return type of a GCC
10000 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (ac_try="$ac_link"
10015 case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_link") 2>conftest.er1
10022 grep -v '^ *+' conftest.er1 >conftest.err
10024 cat conftest.err >&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); } &&
10027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_try") 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 ac_cv_lib_svld_dlopen=yes
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_lib_svld_dlopen=no
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057 LIBS=$ac_check_lib_save_LIBS
10059 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10060 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10061 if test $ac_cv_lib_svld_dlopen = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define HAVE_LIBDL 1
10067 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10069 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10070 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10071 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_check_lib_save_LIBS=$LIBS
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any GCC internal prototype to avoid an error.
10084 Use char because int might match the return type of a GCC
10085 builtin and then its argument prototype would still apply. */
10093 return dld_link ();
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_link") 2>conftest.er1
10107 grep -v '^ *+' conftest.er1 >conftest.err
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113 { (case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_try") 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try='test -s conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_lib_dld_dld_link=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_dld_dld_link=no
10140 rm -f core conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10146 if test $ac_cv_lib_dld_dld_link = yes; then
10148 cat >>confdefs.h <<\_ACEOF
10152 LIBADD_DL="$LIBADD_DL -ldld"
10154 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10155 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10156 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10167 #define _dyld_func_lookup innocuous__dyld_func_lookup
10169 /* System header to define __stub macros and hopefully few prototypes,
10170 which can conflict with char _dyld_func_lookup (); below.
10171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10172 <limits.h> exists even on freestanding compilers. */
10175 # include <limits.h>
10177 # include <assert.h>
10180 #undef _dyld_func_lookup
10182 /* Override any GCC internal prototype to avoid an error.
10183 Use char because int might match the return type of a GCC
10184 builtin and then its argument prototype would still apply. */
10188 char _dyld_func_lookup ();
10189 /* The GNU C library defines this for functions which it implements
10190 to always fail with ENOSYS. Some functions are actually named
10191 something starting with __ and the normal name is an alias. */
10192 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10199 return _dyld_func_lookup ();
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (ac_try="$ac_link"
10206 case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_func__dyld_func_lookup=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_func__dyld_func_lookup=no
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10249 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10250 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10251 if test $ac_cv_func__dyld_func_lookup = yes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_DYLD 1
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10280 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10282 lt_save_LIBS="$LIBS"
10283 LIBS="$LIBS $LIBADD_DL"
10285 for ac_func in dlerror
10287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10301 #define $ac_func innocuous_$ac_func
10303 /* System header to define __stub macros and hopefully few prototypes,
10304 which can conflict with char $ac_func (); below.
10305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306 <limits.h> exists even on freestanding compilers. */
10309 # include <limits.h>
10311 # include <assert.h>
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10323 /* The GNU C library defines this for functions which it implements
10324 to always fail with ENOSYS. Some functions are actually named
10325 something starting with __ and the normal name is an alias. */
10326 #if defined __stub_$ac_func || defined __stub___$ac_func
10333 return $ac_func ();
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 eval "$as_ac_var=yes"
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 eval "$as_ac_var=no"
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10383 ac_res=`eval echo '${'$as_ac_var'}'`
10384 { echo "$as_me:$LINENO: result: $ac_res" >&5
10385 echo "${ECHO_T}$ac_res" >&6; }
10386 if test `eval echo '${'$as_ac_var'}'` = yes; then
10387 cat >>confdefs.h <<_ACEOF
10388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10394 LIBS="$lt_save_LIBS"
10397 ac_cpp='$CPP $CPPFLAGS'
10398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10404 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10405 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10406 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10409 ac_cv_sys_symbol_underscore=no
10410 cat > conftest.$ac_ext <<EOF
10411 void nm_test_func(){}
10412 int main(){nm_test_func;return 0;}
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; then
10419 # Now try to grab the symbols.
10420 ac_nlist=conftest.nm
10421 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10422 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && test -s "$ac_nlist"; then
10426 # See whether the symbols have a leading underscore.
10427 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10428 ac_cv_sys_symbol_underscore=yes
10430 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10433 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10437 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10440 echo "configure: failed program was:" >&5
10446 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10447 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10450 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10451 if test x"$libltdl_cv_func_dlopen" = xyes ||
10452 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10453 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10454 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10455 if test "${libltdl_cv_need_uscore+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 libltdl_cv_need_uscore=unknown
10460 LIBS="$LIBS $LIBADD_DL"
10461 if test "$cross_compiling" = yes; then :
10462 libltdl_cv_need_uscore=cross
10464 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10465 lt_status=$lt_dlunknown
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10474 "configure"
10468 #include "confdefs.h"
10477 # define LT_DLGLOBAL RTLD_GLOBAL
10480 # define LT_DLGLOBAL DL_GLOBAL
10482 # define LT_DLGLOBAL 0
10486 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10487 find out it does not work in some platform. */
10488 #ifndef LT_DLLAZY_OR_NOW
10490 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10493 # define LT_DLLAZY_OR_NOW DL_LAZY
10496 # define LT_DLLAZY_OR_NOW RTLD_NOW
10499 # define LT_DLLAZY_OR_NOW DL_NOW
10501 # define LT_DLLAZY_OR_NOW 0
10509 extern "C" void exit (int);
10512 void fnord() { int i=42;}
10515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10516 int status = $lt_dlunknown;
10520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10521 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10522 /* dlclose (self); */
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10535 (./conftest; exit; ) >&5 2>/dev/null
10537 case x$lt_status in
10538 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10539 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10540 x$lt_dlunknown|x*) ;;
10543 # compilation failed
10552 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10553 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10557 if test x"$libltdl_cv_need_uscore" = xyes; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define NEED_USCORE 1
10566 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10567 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10568 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10569 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 # PORTME does your system automatically load deplibs for dlopen?
10572 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10573 # For now, we just catch OSes we know something about -- in the
10574 # future, we'll try test this programmatically.
10575 libltdl_cv_sys_dlopen_deplibs=unknown
10577 aix3*|aix4.1.*|aix4.2.*)
10578 # Unknown whether this is true for these versions of AIX, but
10579 # we want this `case' here to explicitly catch those versions.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10583 libltdl_cv_sys_dlopen_deplibs=yes
10586 # Assuming the user has installed a libdl from somewhere, this is true
10587 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10588 libltdl_cv_sys_dlopen_deplibs=yes
10590 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10591 # GNU and its variants, using gnu ld.so (Glibc)
10592 libltdl_cv_sys_dlopen_deplibs=yes
10595 libltdl_cv_sys_dlopen_deplibs=yes
10598 libltdl_cv_sys_dlopen_deplibs=yes
10600 irix[12345]*|irix6.[01]*)
10601 # Catch all versions of IRIX before 6.2, and indicate that we don't
10602 # know how it worked for any of those versions.
10603 libltdl_cv_sys_dlopen_deplibs=unknown
10606 # The case above catches anything before 6.2, and it's known that
10607 # at 6.2 and later dlopen does load deplibs.
10608 libltdl_cv_sys_dlopen_deplibs=yes
10611 libltdl_cv_sys_dlopen_deplibs=yes
10614 libltdl_cv_sys_dlopen_deplibs=yes
10617 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10618 # it did *not* use an RPATH in a shared library to find objects the
10619 # library depends on, so we explicitly say `no'.
10620 libltdl_cv_sys_dlopen_deplibs=no
10622 osf5.0|osf5.0a|osf5.1)
10623 # dlopen *does* load deplibs and with the right loader patch applied
10624 # it even uses RPATH in a shared library to search for shared objects
10625 # that the library depends on, but there's no easy way to know if that
10626 # patch is installed. Since this is the case, all we can really
10627 # say is unknown -- it depends on the patch being installed. If
10628 # it is, this changes to `yes'. Without it, it would be `no'.
10629 libltdl_cv_sys_dlopen_deplibs=unknown
10632 # the two cases above should catch all versions of osf <= 5.1. Read
10633 # the comments above for what we know about them.
10634 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10635 # is used to find them so we can finally say `yes'.
10636 libltdl_cv_sys_dlopen_deplibs=yes
10639 libltdl_cv_sys_dlopen_deplibs=yes
10641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10642 libltdl_cv_sys_dlopen_deplibs=yes
10647 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10648 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10649 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define LTDL_DLOPEN_DEPLIBS 1
10658 for ac_header in argz.h
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668 { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10671 # Is the header compilable?
10672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 #include <$ac_header>
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1 >conftest.err
10694 cat conftest.err >&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_header_compiler=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_header_compiler=no
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727 echo "${ECHO_T}$ac_header_compiler" >&6; }
10729 # Is the header present?
10730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 #include <$ac_header>
10740 if { (ac_try="$ac_cpp conftest.$ac_ext"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 if test -z "$ac_cpp_err"; then
10763 ac_header_preproc=yes
10765 echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10768 ac_header_preproc=no
10771 rm -f conftest.err conftest.$ac_ext
10772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 echo "${ECHO_T}$ac_header_preproc" >&6; }
10775 # So? What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10798 ## ----------------------------------- ##
10799 ## Report this to llvmbugs@cs.uiuc.edu ##
10800 ## ----------------------------------- ##
10802 ) | sed "s/^/$as_me: WARNING: /" >&2
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 eval "$as_ac_Header=\$ac_header_preproc"
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10827 { echo "$as_me:$LINENO: checking for error_t" >&5
10828 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10829 if test "${ac_cv_type_error_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.$ac_ext <<_ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10842 typedef error_t ac__type_new_;
10846 if ((ac__type_new_ *) 0)
10848 if (sizeof (ac__type_new_))
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1 >conftest.err
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869 { (case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_try") 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_try") 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; }; then
10888 ac_cv_type_error_t=yes
10890 echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10893 ac_cv_type_error_t=no
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10898 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10899 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10900 if test $ac_cv_type_error_t = yes; then
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_ERROR_T 1
10909 cat >>confdefs.h <<\_ACEOF
10910 #define error_t int
10921 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 cat >conftest.$ac_ext <<_ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10945 # include <limits.h>
10947 # include <assert.h>
10952 /* Override any GCC internal prototype to avoid an error.
10953 Use char because int might match the return type of a GCC
10954 builtin and then its argument prototype would still apply. */
10959 /* The GNU C library defines this for functions which it implements
10960 to always fail with ENOSYS. Some functions are actually named
10961 something starting with __ and the normal name is an alias. */
10962 #if defined __stub_$ac_func || defined __stub___$ac_func
10969 return $ac_func ();
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_link") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1 >conftest.err
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest$ac_exeext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11008 eval "$as_ac_var=yes"
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 eval "$as_ac_var=no"
11016 rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
11019 ac_res=`eval echo '${'$as_ac_var'}'`
11020 { echo "$as_me:$LINENO: result: $ac_res" >&5
11021 echo "${ECHO_T}$ac_res" >&6; }
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11057 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 ac_res=`eval echo '${'$as_ac_Header'}'`
11068 { echo "$as_me:$LINENO: result: $ac_res" >&5
11069 echo "${ECHO_T}$ac_res" >&6; }
11071 # Is the header compilable?
11072 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11081 #include <$ac_header>
11083 rm -f conftest.$ac_objext
11084 if { (ac_try="$ac_compile"
11085 case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11098 { (case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11103 (eval "$ac_try") 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; } &&
11107 { ac_try='test -s conftest.$ac_objext'
11108 { (case "(($ac_try" in
11109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11110 *) ac_try_echo=$ac_try;;
11112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11113 (eval "$ac_try") 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 ac_header_compiler=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_header_compiler=no
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11138 #include <$ac_header>
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1 >conftest.err
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } >/dev/null; then
11153 if test -s conftest.err; then
11154 ac_cpp_err=$ac_c_preproc_warn_flag
11155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 if test -z "$ac_cpp_err"; then
11163 ac_header_preproc=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_header_preproc=no
11171 rm -f conftest.err conftest.$ac_ext
11172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11173 echo "${ECHO_T}$ac_header_preproc" >&6; }
11175 # So? What about this header?
11176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11182 ac_header_preproc=yes
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11198 ## ----------------------------------- ##
11199 ## Report this to llvmbugs@cs.uiuc.edu ##
11200 ## ----------------------------------- ##
11202 ) | sed "s/^/$as_me: WARNING: /" >&2
11205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 eval "$as_ac_Header=\$ac_header_preproc"
11212 ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11230 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_res=`eval echo '${'$as_ac_Header'}'`
11240 { echo "$as_me:$LINENO: result: $ac_res" >&5
11241 echo "${ECHO_T}$ac_res" >&6; }
11243 # Is the header compilable?
11244 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 $ac_includes_default
11253 #include <$ac_header>
11255 rm -f conftest.$ac_objext
11256 if { (ac_try="$ac_compile"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11270 { (case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_try") 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; } &&
11279 { ac_try='test -s conftest.$ac_objext'
11280 { (case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_try") 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_header_compiler=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_header_compiler=no
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11299 echo "${ECHO_T}$ac_header_compiler" >&6; }
11301 # Is the header present?
11302 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11304 cat >conftest.$ac_ext <<_ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h. */
11310 #include <$ac_header>
11312 if { (ac_try="$ac_cpp conftest.$ac_ext"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } >/dev/null; then
11325 if test -s conftest.err; then
11326 ac_cpp_err=$ac_c_preproc_warn_flag
11327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 if test -z "$ac_cpp_err"; then
11335 ac_header_preproc=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_preproc=no
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11347 # So? What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354 ac_header_preproc=yes
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11370 ## ----------------------------------- ##
11371 ## Report this to llvmbugs@cs.uiuc.edu ##
11372 ## ----------------------------------- ##
11374 ) | sed "s/^/$as_me: WARNING: /" >&2
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 eval "$as_ac_Header=\$ac_header_preproc"
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11400 for ac_header in string.h strings.h
11402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 ac_res=`eval echo '${'$as_ac_Header'}'`
11410 { echo "$as_me:$LINENO: result: $ac_res" >&5
11411 echo "${ECHO_T}$ac_res" >&6; }
11413 # Is the header compilable?
11414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11416 cat >conftest.$ac_ext <<_ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 $ac_includes_default
11423 #include <$ac_header>
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11434 grep -v '^ *+' conftest.er1 >conftest.err
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_header_compiler=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_header_compiler=no
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11469 echo "${ECHO_T}$ac_header_compiler" >&6; }
11471 # Is the header present?
11472 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 #include <$ac_header>
11482 if { (ac_try="$ac_cpp conftest.$ac_ext"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1 >conftest.err
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } >/dev/null; then
11495 if test -s conftest.err; then
11496 ac_cpp_err=$ac_c_preproc_warn_flag
11497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11504 if test -z "$ac_cpp_err"; then
11505 ac_header_preproc=yes
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_header_preproc=no
11513 rm -f conftest.err conftest.$ac_ext
11514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11515 echo "${ECHO_T}$ac_header_preproc" >&6; }
11517 # So? What about this header?
11518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11524 ac_header_preproc=yes
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11530 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11534 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11540 ## ----------------------------------- ##
11541 ## Report this to llvmbugs@cs.uiuc.edu ##
11542 ## ----------------------------------- ##
11544 ) | sed "s/^/$as_me: WARNING: /" >&2
11547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 eval "$as_ac_Header=\$ac_header_preproc"
11554 ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11571 for ac_func in strchr index
11573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11587 #define $ac_func innocuous_$ac_func
11589 /* System header to define __stub macros and hopefully few prototypes,
11590 which can conflict with char $ac_func (); below.
11591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11592 <limits.h> exists even on freestanding compilers. */
11595 # include <limits.h>
11597 # include <assert.h>
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined __stub_$ac_func || defined __stub___$ac_func
11619 return $ac_func ();
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (ac_try="$ac_link"
11626 case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_link") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11639 { (case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_try") 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try='test -s conftest$ac_exeext'
11649 { (case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_try") 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no"
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11669 ac_res=`eval echo '${'$as_ac_var'}'`
11670 { echo "$as_me:$LINENO: result: $ac_res" >&5
11671 echo "${ECHO_T}$ac_res" >&6; }
11672 if test `eval echo '${'$as_ac_var'}'` = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11682 for ac_func in strrchr rindex
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698 #define $ac_func innocuous_$ac_func
11700 /* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11706 # include <limits.h>
11708 # include <assert.h>
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11720 /* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
11723 #if defined __stub_$ac_func || defined __stub___$ac_func
11730 return $ac_func ();
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (ac_try="$ac_link"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11769 eval "$as_ac_var=yes"
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 eval "$as_ac_var=no"
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11780 ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782 echo "${ECHO_T}$ac_res" >&6; }
11783 if test `eval echo '${'$as_ac_var'}'` = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11793 for ac_func in memcpy bcopy
11795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define $ac_func innocuous_$ac_func
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11817 # include <limits.h>
11819 # include <assert.h>
11824 /* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
11831 /* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
11834 #if defined __stub_$ac_func || defined __stub___$ac_func
11841 return $ac_func ();
11846 rm -f conftest.$ac_objext conftest$ac_exeext
11847 if { (ac_try="$ac_link"
11848 case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_var=yes"
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 eval "$as_ac_var=no"
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11891 ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893 echo "${ECHO_T}$ac_res" >&6; }
11894 if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11904 for ac_func in memmove strcmp
11906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920 #define $ac_func innocuous_$ac_func
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11928 # include <limits.h>
11930 # include <assert.h>
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined __stub_$ac_func || defined __stub___$ac_func
11952 return $ac_func ();
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (ac_try="$ac_link"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_link") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "$as_ac_var=no"
11999 rm -f core conftest.err conftest.$ac_objext \
12000 conftest$ac_exeext conftest.$ac_ext
12002 ac_res=`eval echo '${'$as_ac_var'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004 echo "${ECHO_T}$ac_res" >&6; }
12005 if test `eval echo '${'$as_ac_var'}'` = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12016 for ac_func in closedir opendir readdir
12018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032 #define $ac_func innocuous_$ac_func
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char $ac_func (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12040 # include <limits.h>
12042 # include <assert.h>
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12054 /* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057 #if defined __stub_$ac_func || defined __stub___$ac_func
12064 return $ac_func ();
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12078 grep -v '^ *+' conftest.er1 >conftest.err
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12105 echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12114 ac_res=`eval echo '${'$as_ac_var'}'`
12115 { echo "$as_me:$LINENO: result: $ac_res" >&5
12116 echo "${ECHO_T}$ac_res" >&6; }
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12128 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12141 if test "$GCC" != "yes" && test "$ICC" != "yes"
12143 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12144 echo "$as_me: error: gcc|icc required but not found" >&2;}
12145 { (exit 1); exit 1; }; }
12148 if test "$GXX" != "yes" && test "$IXX" != "yes"
12150 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12151 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
12155 if test "$GCC" = "yes"
12157 cat >conftest.$ac_ext <<_ACEOF
12158 #if !defined(__GNUC__) || __GNUC__ < 3
12159 #error Unsupported GCC version
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12178 { (case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_try") 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12193 (eval "$ac_try") 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12203 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12204 { (exit 1); exit 1; }; }
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 if test -z "$llvm_cv_gnu_make_command"
12212 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12213 echo "$as_me: error: GNU Make required but not found" >&2;}
12214 { (exit 1); exit 1; }; }
12217 { echo "$as_me:$LINENO: result: ok" >&5
12218 echo "${ECHO_T}ok" >&6; }
12220 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12221 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12222 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12224 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12226 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12227 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12231 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12232 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12233 if test "${ac_cv_lib_m_sin+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 ac_check_lib_save_LIBS=$LIBS
12238 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (ac_try="$ac_link"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_link") 2>conftest.er1
12269 grep -v '^ *+' conftest.er1 >conftest.err
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12275 { (case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_try") 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; } &&
12284 { ac_try='test -s conftest$ac_exeext'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_lib_m_sin=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12307 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12308 if test $ac_cv_lib_m_sin = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_LIBM 1
12317 if test "$llvm_cv_os_type" = "MingW" ; then
12319 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12320 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12321 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 ac_check_lib_save_LIBS=$LIBS
12325 LIBS="-limagehlp $LIBS"
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12342 rm -f conftest.$ac_objext conftest$ac_exeext
12343 if { (ac_try="$ac_link"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12357 { (case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_try") 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_imagehlp_main=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_imagehlp_main=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12389 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12390 if test $ac_cv_lib_imagehlp_main = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392 #define HAVE_LIBIMAGEHLP 1
12395 LIBS="-limagehlp $LIBS"
12400 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12401 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_psapi_main+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lpsapi $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12438 { (case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_try") 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_lib_psapi_main=yes
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_cv_lib_psapi_main=no
12465 rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12469 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12470 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12471 if test $ac_cv_lib_psapi_main = yes; then
12472 cat >>confdefs.h <<_ACEOF
12473 #define HAVE_LIBPSAPI 1
12476 LIBS="-lpsapi $LIBS"
12482 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12483 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12484 if test "${ac_cv_search_dlopen+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 ac_func_search_save_LIBS=$LIBS
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12495 /* Override any GCC internal prototype to avoid an error.
12496 Use char because int might match the return type of a GCC
12497 builtin and then its argument prototype would still apply. */
12510 for ac_lib in '' dl; do
12511 if test -z "$ac_lib"; then
12512 ac_res="none required"
12515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_link") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_try") 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_search_dlopen=$ac_res
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12559 rm -f core conftest.err conftest.$ac_objext \
12561 if test "${ac_cv_search_dlopen+set}" = set; then
12565 if test "${ac_cv_search_dlopen+set}" = set; then
12568 ac_cv_search_dlopen=no
12570 rm conftest.$ac_ext
12571 LIBS=$ac_func_search_save_LIBS
12573 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12574 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12575 ac_res=$ac_cv_search_dlopen
12576 if test "$ac_res" != no; then
12577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12579 cat >>confdefs.h <<\_ACEOF
12580 #define HAVE_DLOPEN 1
12584 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12585 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12589 if test "$llvm_cv_enable_libffi" = "yes" ; then
12590 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12591 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_ffi_call+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12613 return ffi_call ();
12618 for ac_lib in '' ffi; do
12619 if test -z "$ac_lib"; then
12620 ac_res="none required"
12623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_link") 2>conftest.er1
12634 grep -v '^ *+' conftest.er1 >conftest.err
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
12639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest$ac_exeext'
12650 { (case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_try") 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 ac_cv_search_ffi_call=$ac_res
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f core conftest.err conftest.$ac_objext \
12669 if test "${ac_cv_search_ffi_call+set}" = set; then
12673 if test "${ac_cv_search_ffi_call+set}" = set; then
12676 ac_cv_search_ffi_call=no
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12682 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12683 ac_res=$ac_cv_search_ffi_call
12684 if test "$ac_res" != no; then
12685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12687 cat >>confdefs.h <<\_ACEOF
12688 #define HAVE_FFI_CALL 1
12692 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12693 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12694 { (exit 1); exit 1; }; }
12699 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12700 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12701 if test "${ac_cv_search_mallinfo+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 ac_func_search_save_LIBS=$LIBS
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 /* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
12722 return mallinfo ();
12727 for ac_lib in '' malloc; do
12728 if test -z "$ac_lib"; then
12729 ac_res="none required"
12732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_link") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749 { (case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_try") 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest$ac_exeext'
12759 { (case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_try") 2>&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 ac_cv_search_mallinfo=$ac_res
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12776 rm -f core conftest.err conftest.$ac_objext \
12778 if test "${ac_cv_search_mallinfo+set}" = set; then
12782 if test "${ac_cv_search_mallinfo+set}" = set; then
12785 ac_cv_search_mallinfo=no
12787 rm conftest.$ac_ext
12788 LIBS=$ac_func_search_save_LIBS
12790 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12791 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12792 ac_res=$ac_cv_search_mallinfo
12793 if test "$ac_res" != no; then
12794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12796 cat >>confdefs.h <<\_ACEOF
12797 #define HAVE_MALLINFO 1
12803 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12805 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12806 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12807 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lpthread $LIBS"
12812 cat >conftest.$ac_ext <<_ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12825 char pthread_mutex_init ();
12829 return pthread_mutex_init ();
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (ac_try="$ac_link"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_link") 2>conftest.er1
12843 grep -v '^ *+' conftest.er1 >conftest.err
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } &&
12848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12849 { (case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_try") 2>&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_try") 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 ac_cv_lib_pthread_pthread_mutex_init=yes
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 ac_cv_lib_pthread_pthread_mutex_init=no
12876 rm -f core conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
12878 LIBS=$ac_check_lib_save_LIBS
12880 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12881 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12882 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12883 cat >>confdefs.h <<_ACEOF
12884 #define HAVE_LIBPTHREAD 1
12887 LIBS="-lpthread $LIBS"
12891 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12892 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12893 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 ac_func_search_save_LIBS=$LIBS
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char pthread_mutex_lock ();
12914 return pthread_mutex_lock ();
12919 for ac_lib in '' pthread; do
12920 if test -z "$ac_lib"; then
12921 ac_res="none required"
12924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; } &&
12950 { ac_try='test -s conftest$ac_exeext'
12951 { (case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_try") 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; }; then
12960 ac_cv_search_pthread_mutex_lock=$ac_res
12962 echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12968 rm -f core conftest.err conftest.$ac_objext \
12970 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12974 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12977 ac_cv_search_pthread_mutex_lock=no
12979 rm conftest.$ac_ext
12980 LIBS=$ac_func_search_save_LIBS
12982 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12983 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12984 ac_res=$ac_cv_search_pthread_mutex_lock
12985 if test "$ac_res" != no; then
12986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12988 cat >>confdefs.h <<\_ACEOF
12989 #define HAVE_PTHREAD_MUTEX_LOCK 1
12994 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12995 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12996 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 ac_func_search_save_LIBS=$LIBS
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13013 char pthread_rwlock_init ();
13017 return pthread_rwlock_init ();
13022 for ac_lib in '' pthread; do
13023 if test -z "$ac_lib"; then
13024 ac_res="none required"
13027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13029 rm -f conftest.$ac_objext conftest$ac_exeext
13030 if { (ac_try="$ac_link"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_link") 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } &&
13043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; } &&
13053 { ac_try='test -s conftest$ac_exeext'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_search_pthread_rwlock_init=$ac_res
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13071 rm -f core conftest.err conftest.$ac_objext \
13073 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13077 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13080 ac_cv_search_pthread_rwlock_init=no
13082 rm conftest.$ac_ext
13083 LIBS=$ac_func_search_save_LIBS
13085 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13086 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13087 ac_res=$ac_cv_search_pthread_rwlock_init
13088 if test "$ac_res" != no; then
13089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13091 cat >>confdefs.h <<\_ACEOF
13092 #define HAVE_PTHREAD_RWLOCK_INIT 1
13097 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13098 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13099 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 ac_func_search_save_LIBS=$LIBS
13103 cat >conftest.$ac_ext <<_ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13116 char pthread_getspecific ();
13120 return pthread_getspecific ();
13125 for ac_lib in '' pthread; do
13126 if test -z "$ac_lib"; then
13127 ac_res="none required"
13130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_link") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_search_pthread_getspecific=$ac_res
13168 echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13174 rm -f core conftest.err conftest.$ac_objext \
13176 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13180 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13183 ac_cv_search_pthread_getspecific=no
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13188 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13189 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13190 ac_res=$ac_cv_search_pthread_getspecific
13191 if test "$ac_res" != no; then
13192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13194 cat >>confdefs.h <<\_ACEOF
13195 #define HAVE_PTHREAD_GETSPECIFIC 1
13203 # Check whether --with-udis86 was given.
13204 if test "${with_udis86+set}" = set; then
13205 withval=$with_udis86;
13210 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13213 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13214 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13215 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-ludis86 $LIBS"
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest$ac_exeext'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_cv_lib_udis86_ud_init=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_cv_lib_udis86_ud_init=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13289 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13290 if test $ac_cv_lib_udis86_ud_init = yes; then
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_LIBUDIS86 1
13295 LIBS="-ludis86 $LIBS"
13299 echo "Error! You need to have libudis86 around."
13311 cat >>confdefs.h <<_ACEOF
13312 #define USE_UDIS86 $USE_UDIS86
13317 # Check whether --with-oprofile was given.
13318 if test "${with_oprofile+set}" = set; then
13319 withval=$with_oprofile;
13323 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13324 no) llvm_cv_oppath=
13327 *) llvm_cv_oppath="${withval}/lib/oprofile"
13328 CPPFLAGS="-I${withval}/include";;
13330 if test -n "$llvm_cv_oppath" ; then
13331 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13332 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13333 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13334 if test "${ac_cv_search_bfd_init+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 ac_func_search_save_LIBS=$LIBS
13338 cat >conftest.$ac_ext <<_ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13345 /* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13355 return bfd_init ();
13360 for ac_lib in '' bfd; do
13361 if test -z "$ac_lib"; then
13362 ac_res="none required"
13365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>conftest.er1
13376 grep -v '^ *+' conftest.er1 >conftest.err
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; } &&
13391 { ac_try='test -s conftest$ac_exeext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_search_bfd_init=$ac_res
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13409 rm -f core conftest.err conftest.$ac_objext \
13411 if test "${ac_cv_search_bfd_init+set}" = set; then
13415 if test "${ac_cv_search_bfd_init+set}" = set; then
13418 ac_cv_search_bfd_init=no
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13423 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13424 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13425 ac_res=$ac_cv_search_bfd_init
13426 if test "$ac_res" != no; then
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13431 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13432 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13433 if test "${ac_cv_search_op_open_agent+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 ac_func_search_save_LIBS=$LIBS
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13450 char op_open_agent ();
13454 return op_open_agent ();
13459 for ac_lib in '' opagent; do
13460 if test -z "$ac_lib"; then
13461 ac_res="none required"
13464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13466 rm -f conftest.$ac_objext conftest$ac_exeext
13467 if { (ac_try="$ac_link"
13468 case "(($ac_try" in
13469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_link") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13500 ac_cv_search_op_open_agent=$ac_res
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13508 rm -f core conftest.err conftest.$ac_objext \
13510 if test "${ac_cv_search_op_open_agent+set}" = set; then
13514 if test "${ac_cv_search_op_open_agent+set}" = set; then
13517 ac_cv_search_op_open_agent=no
13519 rm conftest.$ac_ext
13520 LIBS=$ac_func_search_save_LIBS
13522 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13523 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13524 ac_res=$ac_cv_search_op_open_agent
13525 if test "$ac_res" != no; then
13526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13530 echo "Error! You need to have libopagent around."
13535 if test "${ac_cv_header_opagent_h+set}" = set; then
13536 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13537 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_opagent_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13542 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13544 # Is the header compilable?
13545 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13546 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 $ac_includes_default
13554 #include <opagent.h>
13556 rm -f conftest.$ac_objext
13557 if { (ac_try="$ac_compile"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_compile") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest.$ac_objext'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_header_compiler=yes
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ac_header_compiler=no
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6; }
13602 # Is the header present?
13603 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13604 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 #include <opagent.h>
13613 if { (ac_try="$ac_cpp conftest.$ac_ext"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13621 grep -v '^ *+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } >/dev/null; then
13626 if test -s conftest.err; then
13627 ac_cpp_err=$ac_c_preproc_warn_flag
13628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13635 if test -z "$ac_cpp_err"; then
13636 ac_header_preproc=yes
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 ac_header_preproc=no
13644 rm -f conftest.err conftest.$ac_ext
13645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13646 echo "${ECHO_T}$ac_header_preproc" >&6; }
13648 # So? What about this header?
13649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13651 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13652 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13654 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13655 ac_header_preproc=yes
13658 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13659 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13661 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13663 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13665 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13667 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13669 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13671 ## ----------------------------------- ##
13672 ## Report this to llvmbugs@cs.uiuc.edu ##
13673 ## ----------------------------------- ##
13675 ) | sed "s/^/$as_me: WARNING: /" >&2
13678 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13679 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13680 if test "${ac_cv_header_opagent_h+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 ac_cv_header_opagent_h=$ac_header_preproc
13685 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13686 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13689 if test $ac_cv_header_opagent_h = yes; then
13693 echo "Error! You need to have opagent.h around."
13709 cat >>confdefs.h <<_ACEOF
13710 #define USE_OPROFILE $USE_OPROFILE
13720 ac_header_dirent=no
13721 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13722 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13723 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13724 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13728 cat >conftest.$ac_ext <<_ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13734 #include <sys/types.h>
13746 rm -f conftest.$ac_objext
13747 if { (ac_try="$ac_compile"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_compile") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 eval "$as_ac_Header=yes"
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 eval "$as_ac_Header=no"
13788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 ac_res=`eval echo '${'$as_ac_Header'}'`
13791 { echo "$as_me:$LINENO: result: $ac_res" >&5
13792 echo "${ECHO_T}$ac_res" >&6; }
13793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13794 cat >>confdefs.h <<_ACEOF
13795 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13798 ac_header_dirent=$ac_hdr; break
13802 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13803 if test $ac_header_dirent = dirent.h; then
13804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_opendir+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13832 for ac_lib in '' dir; do
13833 if test -z "$ac_lib"; then
13834 ac_res="none required"
13837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } &&
13853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_try") 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; } &&
13863 { ac_try='test -s conftest$ac_exeext'
13864 { (case "(($ac_try" in
13865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_try") 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_cv_search_opendir=$ac_res
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13881 rm -f core conftest.err conftest.$ac_objext \
13883 if test "${ac_cv_search_opendir+set}" = set; then
13887 if test "${ac_cv_search_opendir+set}" = set; then
13890 ac_cv_search_opendir=no
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13897 ac_res=$ac_cv_search_opendir
13898 if test "$ac_res" != no; then
13899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13906 if test "${ac_cv_search_opendir+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 ac_func_search_save_LIBS=$LIBS
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13917 /* Override any GCC internal prototype to avoid an error.
13918 Use char because int might match the return type of a GCC
13919 builtin and then its argument prototype would still apply. */
13932 for ac_lib in '' x; do
13933 if test -z "$ac_lib"; then
13934 ac_res="none required"
13937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13939 rm -f conftest.$ac_objext conftest$ac_exeext
13940 if { (ac_try="$ac_link"
13941 case "(($ac_try" in
13942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943 *) ac_try_echo=$ac_try;;
13945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946 (eval "$ac_link") 2>conftest.er1
13948 grep -v '^ *+' conftest.er1 >conftest.err
13950 cat conftest.err >&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); } &&
13953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13954 { (case "(($ac_try" in
13955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956 *) ac_try_echo=$ac_try;;
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959 (eval "$ac_try") 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; } &&
13963 { ac_try='test -s conftest$ac_exeext'
13964 { (case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_try") 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_search_opendir=$ac_res
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13981 rm -f core conftest.err conftest.$ac_objext \
13983 if test "${ac_cv_search_opendir+set}" = set; then
13987 if test "${ac_cv_search_opendir+set}" = set; then
13990 ac_cv_search_opendir=no
13992 rm conftest.$ac_ext
13993 LIBS=$ac_func_search_save_LIBS
13995 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13996 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13997 ac_res=$ac_cv_search_opendir
13998 if test "$ac_res" != no; then
13999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14005 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14006 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14007 if test "${ac_cv_header_mmap_anon+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 ac_cpp='$CPP $CPPFLAGS'
14012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 #include <sys/mman.h>
14023 #include <unistd.h>
14028 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14033 rm -f conftest.$ac_objext
14034 if { (ac_try="$ac_compile"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_header_mmap_anon=yes
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_cv_header_mmap_anon=no
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 ac_cpp='$CPP $CPPFLAGS'
14078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14084 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14085 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14086 if test "$ac_cv_header_mmap_anon" = yes; then
14088 cat >>confdefs.h <<\_ACEOF
14089 #define HAVE_MMAP_ANONYMOUS 1
14094 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14095 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14096 if test "${ac_cv_header_stat_broken+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 #include <sys/types.h>
14106 #include <sys/stat.h>
14108 #if defined S_ISBLK && defined S_IFDIR
14109 # if S_ISBLK (S_IFDIR)
14114 #if defined S_ISBLK && defined S_IFCHR
14115 # if S_ISBLK (S_IFCHR)
14120 #if defined S_ISLNK && defined S_IFREG
14121 # if S_ISLNK (S_IFREG)
14126 #if defined S_ISSOCK && defined S_IFREG
14127 # if S_ISSOCK (S_IFREG)
14133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14134 $EGREP "You lose" >/dev/null 2>&1; then
14135 ac_cv_header_stat_broken=yes
14137 ac_cv_header_stat_broken=no
14142 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14143 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14144 if test $ac_cv_header_stat_broken = yes; then
14146 cat >>confdefs.h <<\_ACEOF
14147 #define STAT_MACROS_BROKEN 1
14152 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14153 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14154 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 cat >conftest.$ac_ext <<_ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 #include <sys/types.h>
14164 #include <sys/wait.h>
14165 #ifndef WEXITSTATUS
14166 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14169 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14197 { (case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_try") 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_cv_header_sys_wait_h=yes
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ac_cv_header_sys_wait_h=no
14224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14227 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14228 if test $ac_cv_header_sys_wait_h = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_SYS_WAIT_H 1
14236 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14237 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14238 if test "${ac_cv_header_time+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <sys/types.h>
14248 #include <sys/time.h>
14254 if ((struct tm *) 0)
14260 rm -f conftest.$ac_objext
14261 if { (ac_try="$ac_compile"
14262 case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_compile") 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14275 { (case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_try") 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_try") 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_cv_header_time=yes
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_header_time=no
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14305 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14306 if test $ac_cv_header_time = yes; then
14308 cat >>confdefs.h <<\_ACEOF
14309 #define TIME_WITH_SYS_TIME 1
14321 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 ac_res=`eval echo '${'$as_ac_Header'}'`
14331 { echo "$as_me:$LINENO: result: $ac_res" >&5
14332 echo "${ECHO_T}$ac_res" >&6; }
14334 # Is the header compilable?
14335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14344 #include <$ac_header>
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350 *) ac_try_echo=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1 >conftest.err
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (case "(($ac_try" in
14362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363 *) ac_try_echo=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_try") 2>&5
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; } &&
14370 { ac_try='test -s conftest.$ac_objext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_header_compiler=yes
14382 echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 ac_header_compiler=no
14388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14390 echo "${ECHO_T}$ac_header_compiler" >&6; }
14392 # Is the header present?
14393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 #include <$ac_header>
14403 if { (ac_try="$ac_cpp conftest.$ac_ext"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14411 grep -v '^ *+' conftest.er1 >conftest.err
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } >/dev/null; then
14416 if test -s conftest.err; then
14417 ac_cpp_err=$ac_c_preproc_warn_flag
14418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14425 if test -z "$ac_cpp_err"; then
14426 ac_header_preproc=yes
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 ac_header_preproc=no
14434 rm -f conftest.err conftest.$ac_ext
14435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14436 echo "${ECHO_T}$ac_header_preproc" >&6; }
14438 # So? What about this header?
14439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14445 ac_header_preproc=yes
14448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14461 ## ----------------------------------- ##
14462 ## Report this to llvmbugs@cs.uiuc.edu ##
14463 ## ----------------------------------- ##
14465 ) | sed "s/^/$as_me: WARNING: /" >&2
14468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 eval "$as_ac_Header=\$ac_header_preproc"
14475 ac_res=`eval echo '${'$as_ac_Header'}'`
14476 { echo "$as_me:$LINENO: result: $ac_res" >&5
14477 echo "${ECHO_T}$ac_res" >&6; }
14480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14481 cat >>confdefs.h <<_ACEOF
14482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14504 ac_res=`eval echo '${'$as_ac_Header'}'`
14505 { echo "$as_me:$LINENO: result: $ac_res" >&5
14506 echo "${ECHO_T}$ac_res" >&6; }
14508 # Is the header compilable?
14509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 $ac_includes_default
14518 #include <$ac_header>
14520 rm -f conftest.$ac_objext
14521 if { (ac_try="$ac_compile"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest.$ac_objext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_header_compiler=yes
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_header_compiler=no
14562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14564 echo "${ECHO_T}$ac_header_compiler" >&6; }
14566 # Is the header present?
14567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14569 cat >conftest.$ac_ext <<_ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 #include <$ac_header>
14577 if { (ac_try="$ac_cpp conftest.$ac_ext"
14578 case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14585 grep -v '^ *+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } >/dev/null; then
14590 if test -s conftest.err; then
14591 ac_cpp_err=$ac_c_preproc_warn_flag
14592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14599 if test -z "$ac_cpp_err"; then
14600 ac_header_preproc=yes
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_header_preproc=no
14608 rm -f conftest.err conftest.$ac_ext
14609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14610 echo "${ECHO_T}$ac_header_preproc" >&6; }
14612 # So? What about this header?
14613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14619 ac_header_preproc=yes
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14635 ## ----------------------------------- ##
14636 ## Report this to llvmbugs@cs.uiuc.edu ##
14637 ## ----------------------------------- ##
14639 ) | sed "s/^/$as_me: WARNING: /" >&2
14642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 eval "$as_ac_Header=\$ac_header_preproc"
14649 ac_res=`eval echo '${'$as_ac_Header'}'`
14650 { echo "$as_me:$LINENO: result: $ac_res" >&5
14651 echo "${ECHO_T}$ac_res" >&6; }
14654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14655 cat >>confdefs.h <<_ACEOF
14656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14665 for ac_header in utime.h windows.h
14667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 ac_res=`eval echo '${'$as_ac_Header'}'`
14675 { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14678 # Is the header compilable?
14679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include <$ac_header>
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } &&
14704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14705 { (case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_try") 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest.$ac_objext'
14715 { (case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_try") 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_header_compiler=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 ac_header_compiler=no
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14734 echo "${ECHO_T}$ac_header_compiler" >&6; }
14736 # Is the header present?
14737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14739 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #include <$ac_header>
14747 if { (ac_try="$ac_cpp conftest.$ac_ext"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14755 grep -v '^ *+' conftest.er1 >conftest.err
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } >/dev/null; then
14760 if test -s conftest.err; then
14761 ac_cpp_err=$ac_c_preproc_warn_flag
14762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14769 if test -z "$ac_cpp_err"; then
14770 ac_header_preproc=yes
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ac_header_preproc=no
14778 rm -f conftest.err conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14780 echo "${ECHO_T}$ac_header_preproc" >&6; }
14782 # So? What about this header?
14783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14789 ac_header_preproc=yes
14792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14805 ## ----------------------------------- ##
14806 ## Report this to llvmbugs@cs.uiuc.edu ##
14807 ## ----------------------------------- ##
14809 ) | sed "s/^/$as_me: WARNING: /" >&2
14812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 eval "$as_ac_Header=\$ac_header_preproc"
14819 ac_res=`eval echo '${'$as_ac_Header'}'`
14820 { echo "$as_me:$LINENO: result: $ac_res" >&5
14821 echo "${ECHO_T}$ac_res" >&6; }
14824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14825 cat >>confdefs.h <<_ACEOF
14826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14838 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 ac_res=`eval echo '${'$as_ac_Header'}'`
14848 { echo "$as_me:$LINENO: result: $ac_res" >&5
14849 echo "${ECHO_T}$ac_res" >&6; }
14851 # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <$ac_header>
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14872 grep -v '^ *+' conftest.er1 >conftest.err
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_header_compiler=yes
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 ac_header_compiler=no
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907 echo "${ECHO_T}$ac_header_compiler" >&6; }
14909 # Is the header present?
14910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <$ac_header>
14920 if { (ac_try="$ac_cpp conftest.$ac_ext"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14942 if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_header_preproc=no
14951 rm -f conftest.err conftest.$ac_ext
14952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14953 echo "${ECHO_T}$ac_header_preproc" >&6; }
14955 # So? What about this header?
14956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14962 ac_header_preproc=yes
14965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14978 ## ----------------------------------- ##
14979 ## Report this to llvmbugs@cs.uiuc.edu ##
14980 ## ----------------------------------- ##
14982 ) | sed "s/^/$as_me: WARNING: /" >&2
14985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 eval "$as_ac_Header=\$ac_header_preproc"
14992 ac_res=`eval echo '${'$as_ac_Header'}'`
14993 { echo "$as_me:$LINENO: result: $ac_res" >&5
14994 echo "${ECHO_T}$ac_res" >&6; }
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 ac_res=`eval echo '${'$as_ac_Header'}'`
15020 { echo "$as_me:$LINENO: result: $ac_res" >&5
15021 echo "${ECHO_T}$ac_res" >&6; }
15023 # Is the header compilable?
15024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 $ac_includes_default
15033 #include <$ac_header>
15035 rm -f conftest.$ac_objext
15036 if { (ac_try="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } &&
15049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15050 { (case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_try") 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } &&
15059 { ac_try='test -s conftest.$ac_objext'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 ac_header_compiler=yes
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_header_compiler=no
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15079 echo "${ECHO_T}$ac_header_compiler" >&6; }
15081 # Is the header present?
15082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15084 cat >conftest.$ac_ext <<_ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 #include <$ac_header>
15092 if { (ac_try="$ac_cpp conftest.$ac_ext"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15100 grep -v '^ *+' conftest.er1 >conftest.err
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } >/dev/null; then
15105 if test -s conftest.err; then
15106 ac_cpp_err=$ac_c_preproc_warn_flag
15107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15114 if test -z "$ac_cpp_err"; then
15115 ac_header_preproc=yes
15117 echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15120 ac_header_preproc=no
15123 rm -f conftest.err conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15125 echo "${ECHO_T}$ac_header_preproc" >&6; }
15127 # So? What about this header?
15128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15134 ac_header_preproc=yes
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15150 ## ----------------------------------- ##
15151 ## Report this to llvmbugs@cs.uiuc.edu ##
15152 ## ----------------------------------- ##
15154 ) | sed "s/^/$as_me: WARNING: /" >&2
15157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 eval "$as_ac_Header=\$ac_header_preproc"
15164 ac_res=`eval echo '${'$as_ac_Header'}'`
15165 { echo "$as_me:$LINENO: result: $ac_res" >&5
15166 echo "${ECHO_T}$ac_res" >&6; }
15169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15170 cat >>confdefs.h <<_ACEOF
15171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15179 for ac_header in valgrind/valgrind.h
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_res=`eval echo '${'$as_ac_Header'}'`
15189 { echo "$as_me:$LINENO: result: $ac_res" >&5
15190 echo "${ECHO_T}$ac_res" >&6; }
15192 # Is the header compilable?
15193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 $ac_includes_default
15202 #include <$ac_header>
15204 rm -f conftest.$ac_objext
15205 if { (ac_try="$ac_compile"
15206 case "(($ac_try" in
15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208 *) ac_try_echo=$ac_try;;
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211 (eval "$ac_compile") 2>conftest.er1
15213 grep -v '^ *+' conftest.er1 >conftest.err
15215 cat conftest.err >&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
15229 { (case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_try") 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 ac_header_compiler=yes
15240 echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 ac_header_compiler=no
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15248 echo "${ECHO_T}$ac_header_compiler" >&6; }
15250 # Is the header present?
15251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15253 cat >conftest.$ac_ext <<_ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <$ac_header>
15261 if { (ac_try="$ac_cpp conftest.$ac_ext"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } >/dev/null; then
15274 if test -s conftest.err; then
15275 ac_cpp_err=$ac_c_preproc_warn_flag
15276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15283 if test -z "$ac_cpp_err"; then
15284 ac_header_preproc=yes
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 ac_header_preproc=no
15292 rm -f conftest.err conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294 echo "${ECHO_T}$ac_header_preproc" >&6; }
15296 # So? What about this header?
15297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15303 ac_header_preproc=yes
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15319 ## ----------------------------------- ##
15320 ## Report this to llvmbugs@cs.uiuc.edu ##
15321 ## ----------------------------------- ##
15323 ) | sed "s/^/$as_me: WARNING: /" >&2
15326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 echo $ECHO_N "(cached) $ECHO_C" >&6
15331 eval "$as_ac_Header=\$ac_header_preproc"
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348 for ac_header in fenv.h
15350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <$ac_header>
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_header_compiler=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <$ac_header>
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15452 if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_header_preproc=no
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15488 ## ----------------------------------- ##
15489 ## Report this to llvmbugs@cs.uiuc.edu ##
15490 ## ----------------------------------- ##
15492 ) | sed "s/^/$as_me: WARNING: /" >&2
15495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 eval "$as_ac_Header=\$ac_header_preproc"
15502 ac_res=`eval echo '${'$as_ac_Header'}'`
15503 { echo "$as_me:$LINENO: result: $ac_res" >&5
15504 echo "${ECHO_T}$ac_res" >&6; }
15507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15508 cat >>confdefs.h <<_ACEOF
15509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15516 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15518 for ac_header in pthread.h
15520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15531 # Is the header compilable?
15532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 #include <$ac_header>
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_try") 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_header_compiler=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_compiler=no
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15587 echo "${ECHO_T}$ac_header_compiler" >&6; }
15589 # Is the header present?
15590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <$ac_header>
15600 if { (ac_try="$ac_cpp conftest.$ac_ext"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15608 grep -v '^ *+' conftest.er1 >conftest.err
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } >/dev/null; then
15613 if test -s conftest.err; then
15614 ac_cpp_err=$ac_c_preproc_warn_flag
15615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15622 if test -z "$ac_cpp_err"; then
15623 ac_header_preproc=yes
15625 echo "$as_me: failed program was:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 ac_header_preproc=no
15631 rm -f conftest.err conftest.$ac_ext
15632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15633 echo "${ECHO_T}$ac_header_preproc" >&6; }
15635 # So? What about this header?
15636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15642 ac_header_preproc=yes
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15658 ## ----------------------------------- ##
15659 ## Report this to llvmbugs@cs.uiuc.edu ##
15660 ## ----------------------------------- ##
15662 ) | sed "s/^/$as_me: WARNING: /" >&2
15665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15670 eval "$as_ac_Header=\$ac_header_preproc"
15672 ac_res=`eval echo '${'$as_ac_Header'}'`
15673 { echo "$as_me:$LINENO: result: $ac_res" >&5
15674 echo "${ECHO_T}$ac_res" >&6; }
15677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15678 cat >>confdefs.h <<_ACEOF
15679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 if test "$llvm_cv_enable_libffi" = "yes" ; then
15698 for ac_header in ffi.h ffi/ffi.h
15700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_res=`eval echo '${'$as_ac_Header'}'`
15708 { echo "$as_me:$LINENO: result: $ac_res" >&5
15709 echo "${ECHO_T}$ac_res" >&6; }
15711 # Is the header compilable?
15712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15721 #include <$ac_header>
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15738 { (case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_try") 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_header_compiler=yes
15759 echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_header_compiler=no
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15767 echo "${ECHO_T}$ac_header_compiler" >&6; }
15769 # Is the header present?
15770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15772 cat >conftest.$ac_ext <<_ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 #include <$ac_header>
15780 if { (ac_try="$ac_cpp conftest.$ac_ext"
15781 case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15788 grep -v '^ *+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
15795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15802 if test -z "$ac_cpp_err"; then
15803 ac_header_preproc=yes
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 ac_header_preproc=no
15811 rm -f conftest.err conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6; }
15815 # So? What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc=yes
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15838 ## ----------------------------------- ##
15839 ## Report this to llvmbugs@cs.uiuc.edu ##
15840 ## ----------------------------------- ##
15842 ) | sed "s/^/$as_me: WARNING: /" >&2
15845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 eval "$as_ac_Header=\$ac_header_preproc"
15852 ac_res=`eval echo '${'$as_ac_Header'}'`
15853 { echo "$as_me:$LINENO: result: $ac_res" >&5
15854 echo "${ECHO_T}$ac_res" >&6; }
15857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15869 for ac_header in CrashReporterClient.h
15871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 ac_res=`eval echo '${'$as_ac_Header'}'`
15879 { echo "$as_me:$LINENO: result: $ac_res" >&5
15880 echo "${ECHO_T}$ac_res" >&6; }
15882 # Is the header compilable?
15883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15885 cat >conftest.$ac_ext <<_ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 $ac_includes_default
15892 #include <$ac_header>
15894 rm -f conftest.$ac_objext
15895 if { (ac_try="$ac_compile"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_compile") 2>conftest.er1
15903 grep -v '^ *+' conftest.er1 >conftest.err
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15909 { (case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15914 (eval "$ac_try") 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
15919 { (case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_try") 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_header_compiler=yes
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ac_header_compiler=no
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15938 echo "${ECHO_T}$ac_header_compiler" >&6; }
15940 # Is the header present?
15941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15943 cat >conftest.$ac_ext <<_ACEOF
15946 cat confdefs.h >>conftest.$ac_ext
15947 cat >>conftest.$ac_ext <<_ACEOF
15948 /* end confdefs.h. */
15949 #include <$ac_header>
15951 if { (ac_try="$ac_cpp conftest.$ac_ext"
15952 case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } >/dev/null; then
15964 if test -s conftest.err; then
15965 ac_cpp_err=$ac_c_preproc_warn_flag
15966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15973 if test -z "$ac_cpp_err"; then
15974 ac_header_preproc=yes
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 ac_header_preproc=no
15982 rm -f conftest.err conftest.$ac_ext
15983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15984 echo "${ECHO_T}$ac_header_preproc" >&6; }
15986 # So? What about this header?
15987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15993 ac_header_preproc=yes
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16009 ## ----------------------------------- ##
16010 ## Report this to llvmbugs@cs.uiuc.edu ##
16011 ## ----------------------------------- ##
16013 ) | sed "s/^/$as_me: WARNING: /" >&2
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 eval "$as_ac_Header=\$ac_header_preproc"
16023 ac_res=`eval echo '${'$as_ac_Header'}'`
16024 { echo "$as_me:$LINENO: result: $ac_res" >&5
16025 echo "${ECHO_T}$ac_res" >&6; }
16028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16038 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16039 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 extern const char *__crashreporter_info__;
16048 __crashreporter_info__ = "test";
16053 rm -f conftest.$ac_objext conftest$ac_exeext
16054 if { (ac_try="$ac_link"
16055 case "(($ac_try" in
16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16057 *) ac_try_echo=$ac_try;;
16059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16060 (eval "$ac_link") 2>conftest.er1
16062 grep -v '^ *+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16068 { (case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_try") 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_try") 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 { echo "$as_me:$LINENO: result: yes" >&5
16088 echo "${ECHO_T}yes" >&6; }
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_CRASHREPORTER_INFO 1
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 { echo "$as_me:$LINENO: result: no" >&5
16099 echo "${ECHO_T}no" >&6; }
16101 cat >>confdefs.h <<\_ACEOF
16102 #define HAVE_CRASHREPORTER_INFO 0
16107 rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16113 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16114 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16115 if test "${ac_cv_huge_val_sanity+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 ac_cpp='$CXXCPP $CPPFLAGS'
16121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16125 ac_save_CXXFLAGS=$CXXFLAGS
16127 if test "$cross_compiling" = yes; then
16128 ac_cv_huge_val_sanity=yes
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16140 double x = HUGE_VAL; return x != x;
16145 rm -f conftest$ac_exeext
16146 if { (ac_try="$ac_link"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_link") 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_cv_huge_val_sanity=yes
16167 echo "$as_me: program exited with status $ac_status" >&5
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ( exit $ac_status )
16172 ac_cv_huge_val_sanity=no
16174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16178 CXXFLAGS=$ac_save_CXXFLAGS
16180 ac_cpp='$CPP $CPPFLAGS'
16181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16187 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16188 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16189 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16192 { echo "$as_me:$LINENO: checking for pid_t" >&5
16193 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16194 if test "${ac_cv_type_pid_t+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $ac_includes_default
16204 typedef pid_t ac__type_new_;
16208 if ((ac__type_new_ *) 0)
16210 if (sizeof (ac__type_new_))
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (case "(($ac_try" in
16242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243 *) ac_try_echo=$ac_try;;
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246 (eval "$ac_try") 2>&5
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; }; then
16250 ac_cv_type_pid_t=yes
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_cv_type_pid_t=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16261 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16262 if test $ac_cv_type_pid_t = yes; then
16266 cat >>confdefs.h <<_ACEOF
16272 { echo "$as_me:$LINENO: checking for size_t" >&5
16273 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16274 if test "${ac_cv_type_size_t+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16277 cat >conftest.$ac_ext <<_ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h. */
16283 $ac_includes_default
16284 typedef size_t ac__type_new_;
16288 if ((ac__type_new_ *) 0)
16290 if (sizeof (ac__type_new_))
16296 rm -f conftest.$ac_objext
16297 if { (ac_try="$ac_compile"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
16310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311 { (case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_try") 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326 (eval "$ac_try") 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_cv_type_size_t=yes
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_cv_type_size_t=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16340 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16341 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16342 if test $ac_cv_type_size_t = yes; then
16346 cat >>confdefs.h <<_ACEOF
16347 #define size_t unsigned int
16353 cat >>confdefs.h <<_ACEOF
16354 #define RETSIGTYPE void
16357 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16358 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16359 if test "${ac_cv_struct_tm+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 #include <sys/types.h>
16374 struct tm *tp; tp->tm_sec;
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16394 { (case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_try") 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_try") 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_struct_tm=time.h
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 ac_cv_struct_tm=sys/time.h
16421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16424 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16425 if test $ac_cv_struct_tm = sys/time.h; then
16427 cat >>confdefs.h <<\_ACEOF
16428 #define TM_IN_SYS_TIME 1
16433 { echo "$as_me:$LINENO: checking for int64_t" >&5
16434 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16435 if test "${ac_cv_type_int64_t+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 cat >conftest.$ac_ext <<_ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16445 typedef int64_t ac__type_new_;
16449 if ((ac__type_new_ *) 0)
16451 if (sizeof (ac__type_new_))
16457 rm -f conftest.$ac_objext
16458 if { (ac_try="$ac_compile"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_compile") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472 { (case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_try") 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_try") 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_cv_type_int64_t=yes
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_cv_type_int64_t=no
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16502 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16503 if test $ac_cv_type_int64_t = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define HAVE_INT64_T 1
16511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16512 echo "$as_me: error: Type int64_t required but not found" >&2;}
16513 { (exit 1); exit 1; }; }
16516 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16517 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16518 if test "${ac_cv_type_uint64_t+set}" = set; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 $ac_includes_default
16528 typedef uint64_t ac__type_new_;
16532 if ((ac__type_new_ *) 0)
16534 if (sizeof (ac__type_new_))
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_compile") 2>conftest.er1
16549 grep -v '^ *+' conftest.er1 >conftest.err
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_cv_type_uint64_t=yes
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ac_cv_type_uint64_t=no
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16585 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16586 if test $ac_cv_type_uint64_t = yes; then
16588 cat >>confdefs.h <<_ACEOF
16589 #define HAVE_UINT64_T 1
16594 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16595 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16596 if test "${ac_cv_type_u_int64_t+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 $ac_includes_default
16606 typedef u_int64_t ac__type_new_;
16610 if ((ac__type_new_ *) 0)
16612 if (sizeof (ac__type_new_))
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_type_u_int64_t=yes
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ac_cv_type_u_int64_t=no
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16663 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16664 if test $ac_cv_type_u_int64_t = yes; then
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_U_INT64_T 1
16672 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16673 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16674 { (exit 1); exit 1; }; }
16688 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16696 cat >conftest.$ac_ext <<_ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16704 #define $ac_func innocuous_$ac_func
16706 /* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char $ac_func (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16712 # include <limits.h>
16714 # include <assert.h>
16719 /* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined __stub_$ac_func || defined __stub___$ac_func
16736 return $ac_func ();
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16756 { (case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_try") 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (case "(($ac_try" in
16767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768 *) ac_try_echo=$ac_try;;
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771 (eval "$ac_try") 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775 eval "$as_ac_var=yes"
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 eval "$as_ac_var=no"
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16786 ac_res=`eval echo '${'$as_ac_var'}'`
16787 { echo "$as_me:$LINENO: result: $ac_res" >&5
16788 echo "${ECHO_T}$ac_res" >&6; }
16789 if test `eval echo '${'$as_ac_var'}'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16801 for ac_func in powf fmodf strtof round
16803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817 #define $ac_func innocuous_$ac_func
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16825 # include <limits.h>
16827 # include <assert.h>
16832 /* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16839 /* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16849 return $ac_func ();
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869 { (case "(($ac_try" in
16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871 *) ac_try_echo=$ac_try;;
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874 (eval "$ac_try") 2>&5
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; } &&
16878 { ac_try='test -s conftest$ac_exeext'
16879 { (case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_try") 2>&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16888 eval "$as_ac_var=yes"
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 eval "$as_ac_var=no"
16896 rm -f core conftest.err conftest.$ac_objext \
16897 conftest$ac_exeext conftest.$ac_ext
16899 ac_res=`eval echo '${'$as_ac_var'}'`
16900 { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16915 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16920 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16921 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 cat >conftest.$ac_ext <<_ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16931 #define $ac_func innocuous_$ac_func
16933 /* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char $ac_func (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16939 # include <limits.h>
16941 # include <assert.h>
16946 /* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
16953 /* The GNU C library defines this for functions which it implements
16954 to always fail with ENOSYS. Some functions are actually named
16955 something starting with __ and the normal name is an alias. */
16956 #if defined __stub_$ac_func || defined __stub___$ac_func
16963 return $ac_func ();
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (ac_try="$ac_link"
16970 case "(($ac_try" in
16971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16972 *) ac_try_echo=$ac_try;;
16974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16975 (eval "$ac_link") 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_try") 2>&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; } &&
16992 { ac_try='test -s conftest$ac_exeext'
16993 { (case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_try") 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); }; }; then
17002 eval "$as_ac_var=yes"
17004 echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 eval "$as_ac_var=no"
17010 rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17013 ac_res=`eval echo '${'$as_ac_var'}'`
17014 { echo "$as_me:$LINENO: result: $ac_res" >&5
17015 echo "${ECHO_T}$ac_res" >&6; }
17016 if test `eval echo '${'$as_ac_var'}'` = yes; then
17017 cat >>confdefs.h <<_ACEOF
17018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17027 for ac_func in isatty mkdtemp mkstemp
17029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 cat >conftest.$ac_ext <<_ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h. */
17041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17043 #define $ac_func innocuous_$ac_func
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func (); below.
17047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17048 <limits.h> exists even on freestanding compilers. */
17051 # include <limits.h>
17053 # include <assert.h>
17058 /* Override any GCC internal prototype to avoid an error.
17059 Use char because int might match the return type of a GCC
17060 builtin and then its argument prototype would still apply. */
17065 /* The GNU C library defines this for functions which it implements
17066 to always fail with ENOSYS. Some functions are actually named
17067 something starting with __ and the normal name is an alias. */
17068 #if defined __stub_$ac_func || defined __stub___$ac_func
17075 return $ac_func ();
17080 rm -f conftest.$ac_objext conftest$ac_exeext
17081 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17089 grep -v '^ *+' conftest.er1 >conftest.err
17091 cat conftest.err >&5
17092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093 (exit $ac_status); } &&
17094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 eval "$as_ac_var=yes"
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 eval "$as_ac_var=no"
17122 rm -f core conftest.err conftest.$ac_objext \
17123 conftest$ac_exeext conftest.$ac_ext
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126 { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.$ac_ext <<_ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158 #define $ac_func innocuous_$ac_func
17160 /* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char $ac_func (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17166 # include <limits.h>
17168 # include <assert.h>
17173 /* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17180 /* The GNU C library defines this for functions which it implements
17181 to always fail with ENOSYS. Some functions are actually named
17182 something starting with __ and the normal name is an alias. */
17183 #if defined __stub_$ac_func || defined __stub___$ac_func
17190 return $ac_func ();
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); } &&
17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17210 { (case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_try") 2>&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 eval "$as_ac_var=yes"
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 eval "$as_ac_var=no"
17237 rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17240 ac_res=`eval echo '${'$as_ac_var'}'`
17241 { echo "$as_me:$LINENO: result: $ac_res" >&5
17242 echo "${ECHO_T}$ac_res" >&6; }
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 for ac_func in strerror strerror_r setenv
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17260 echo $ECHO_N "(cached) $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17270 #define $ac_func innocuous_$ac_func
17272 /* System header to define __stub macros and hopefully few prototypes,
17273 which can conflict with char $ac_func (); below.
17274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17275 <limits.h> exists even on freestanding compilers. */
17278 # include <limits.h>
17280 # include <assert.h>
17285 /* Override any GCC internal prototype to avoid an error.
17286 Use char because int might match the return type of a GCC
17287 builtin and then its argument prototype would still apply. */
17292 /* The GNU C library defines this for functions which it implements
17293 to always fail with ENOSYS. Some functions are actually named
17294 something starting with __ and the normal name is an alias. */
17295 #if defined __stub_$ac_func || defined __stub___$ac_func
17302 return $ac_func ();
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (ac_try="$ac_link"
17309 case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_link") 2>conftest.er1
17316 grep -v '^ *+' conftest.er1 >conftest.err
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17322 { (case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_try") 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; } &&
17331 { ac_try='test -s conftest$ac_exeext'
17332 { (case "(($ac_try" in
17333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_try") 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 eval "$as_ac_var=yes"
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17346 eval "$as_ac_var=no"
17349 rm -f core conftest.err conftest.$ac_objext \
17350 conftest$ac_exeext conftest.$ac_ext
17352 ac_res=`eval echo '${'$as_ac_var'}'`
17353 { echo "$as_me:$LINENO: result: $ac_res" >&5
17354 echo "${ECHO_T}$ac_res" >&6; }
17355 if test `eval echo '${'$as_ac_var'}'` = yes; then
17356 cat >>confdefs.h <<_ACEOF
17357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 cat >conftest.$ac_ext <<_ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17383 #define $ac_func innocuous_$ac_func
17385 /* System header to define __stub macros and hopefully few prototypes,
17386 which can conflict with char $ac_func (); below.
17387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 <limits.h> exists even on freestanding compilers. */
17391 # include <limits.h>
17393 # include <assert.h>
17398 /* Override any GCC internal prototype to avoid an error.
17399 Use char because int might match the return type of a GCC
17400 builtin and then its argument prototype would still apply. */
17405 /* The GNU C library defines this for functions which it implements
17406 to always fail with ENOSYS. Some functions are actually named
17407 something starting with __ and the normal name is an alias. */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17415 return $ac_func ();
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424 *) ac_try_echo=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17435 { (case "(($ac_try" in
17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17437 *) ac_try_echo=$ac_try;;
17439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17440 (eval "$ac_try") 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_try") 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 eval "$as_ac_var=yes"
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no"
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17487 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17497 #define $ac_func innocuous_$ac_func
17499 /* System header to define __stub macros and hopefully few prototypes,
17500 which can conflict with char $ac_func (); below.
17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17502 <limits.h> exists even on freestanding compilers. */
17505 # include <limits.h>
17507 # include <assert.h>
17512 /* Override any GCC internal prototype to avoid an error.
17513 Use char because int might match the return type of a GCC
17514 builtin and then its argument prototype would still apply. */
17519 /* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
17522 #if defined __stub_$ac_func || defined __stub___$ac_func
17529 return $ac_func ();
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>conftest.er1
17543 grep -v '^ *+' conftest.er1 >conftest.err
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17549 { (case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_try") 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 eval "$as_ac_var=no"
17576 rm -f core conftest.err conftest.$ac_objext \
17577 conftest$ac_exeext conftest.$ac_ext
17579 ac_res=`eval echo '${'$as_ac_var'}'`
17580 { echo "$as_me:$LINENO: result: $ac_res" >&5
17581 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17591 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17592 if test "${llvm_cv_c_printf_a+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17601 if test "$cross_compiling" = yes; then
17602 llvmac_cv_c_printf_a=no
17604 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17613 #include <stdlib.h>
17619 volatile double A, B;
17623 sprintf(Buffer, "%a", A);
17627 if (A != 0x1.999999999999ap-4)
17634 rm -f conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17645 { (case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_try") 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; }; then
17654 llvm_cv_c_printf_a=yes
17656 echo "$as_me: program exited with status $ac_status" >&5
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ( exit $ac_status )
17661 llvmac_cv_c_printf_a=no
17663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17674 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17675 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17676 if test "$llvm_cv_c_printf_a" = "yes"; then
17678 cat >>confdefs.h <<\_ACEOF
17679 #define HAVE_PRINTF_A 1
17685 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17686 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17687 if test "${ac_cv_func_rand48+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17691 ac_cpp='$CXXCPP $CPPFLAGS'
17692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 #include <stdlib.h>
17706 srand48(0);lrand48();drand48();
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest.$ac_objext'
17736 { (case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_try") 2>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_func_rand48=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_cv_func_rand48=no
17753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 ac_cpp='$CPP $CPPFLAGS'
17756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17762 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17764 if test "$ac_cv_func_rand48" = "yes" ; then
17766 cat >>confdefs.h <<\_ACEOF
17767 #define HAVE_RAND48 1
17773 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17774 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17775 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17776 echo $ECHO_N "(cached) $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17789 char *p = (char *) strerror_s;
17797 rm -f conftest.$ac_objext
17798 if { (ac_try="$ac_compile"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_compile") 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 ac_cv_have_decl_strerror_s=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_cv_have_decl_strerror_s=no
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17842 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17843 if test $ac_cv_have_decl_strerror_s = yes; then
17845 cat >>confdefs.h <<_ACEOF
17846 #define HAVE_DECL_STRERROR_S 1
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_DECL_STRERROR_S 0
17860 if test "$llvm_cv_os_type" = "MingW" ; then
17861 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17862 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17863 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17864 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 ac_check_lib_save_LIBS=$LIBS
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any GCC internal prototype to avoid an error.
17876 Use char because int might match the return type of a GCC
17877 builtin and then its argument prototype would still apply. */
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (ac_try="$ac_link"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_link") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17905 { (case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_try") 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_try") 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_gcc__alloca=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_gcc__alloca=no
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17936 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17937 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17938 if test $ac_cv_lib_gcc__alloca = yes; then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE__ALLOCA 1
17946 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17947 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17948 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 ac_check_lib_save_LIBS=$LIBS
17953 cat >conftest.$ac_ext <<_ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17970 return __alloca ();
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (ac_try="$ac_link"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } &&
17989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17990 { (case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_try") 2>&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); }; } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_try") 2>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_lib_gcc___alloca=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_lib_gcc___alloca=no
18017 rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18022 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18023 if test $ac_cv_lib_gcc___alloca = yes; then
18025 cat >>confdefs.h <<\_ACEOF
18026 #define HAVE___ALLOCA 1
18031 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18032 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18033 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 ac_check_lib_save_LIBS=$LIBS
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18045 /* Override any GCC internal prototype to avoid an error.
18046 Use char because int might match the return type of a GCC
18047 builtin and then its argument prototype would still apply. */
18055 return __chkstk ();
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (ac_try="$ac_link"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_lib_gcc___chkstk=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_lib_gcc___chkstk=no
18102 rm -f core conftest.err conftest.$ac_objext \
18103 conftest$ac_exeext conftest.$ac_ext
18104 LIBS=$ac_check_lib_save_LIBS
18106 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18107 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18108 if test $ac_cv_lib_gcc___chkstk = yes; then
18110 cat >>confdefs.h <<\_ACEOF
18111 #define HAVE___CHKSTK 1
18116 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18117 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18118 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 ac_check_lib_save_LIBS=$LIBS
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18140 return ___chkstk ();
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_link") 2>conftest.er1
18154 grep -v '^ *+' conftest.er1 >conftest.err
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_try") 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest$ac_exeext'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; }; then
18179 ac_cv_lib_gcc____chkstk=yes
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18184 ac_cv_lib_gcc____chkstk=no
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18191 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18192 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18193 if test $ac_cv_lib_gcc____chkstk = yes; then
18195 cat >>confdefs.h <<\_ACEOF
18196 #define HAVE____CHKSTK 1
18202 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18203 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18204 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 ac_check_lib_save_LIBS=$LIBS
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18226 return __ashldi3 ();
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (ac_try="$ac_link"
18233 case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_link") 2>conftest.er1
18240 grep -v '^ *+' conftest.er1 >conftest.err
18242 cat conftest.err >&5
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); } &&
18245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18246 { (case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_try") 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try='test -s conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; }; then
18265 ac_cv_lib_gcc___ashldi3=yes
18267 echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 ac_cv_lib_gcc___ashldi3=no
18273 rm -f core conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 LIBS=$ac_check_lib_save_LIBS
18277 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18278 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18279 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18281 cat >>confdefs.h <<\_ACEOF
18282 #define HAVE___ASHLDI3 1
18287 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18288 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18289 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 ac_check_lib_save_LIBS=$LIBS
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18301 /* Override any GCC internal prototype to avoid an error.
18302 Use char because int might match the return type of a GCC
18303 builtin and then its argument prototype would still apply. */
18311 return __ashrdi3 ();
18316 rm -f conftest.$ac_objext conftest$ac_exeext
18317 if { (ac_try="$ac_link"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_link") 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest$ac_exeext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_lib_gcc___ashrdi3=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_gcc___ashrdi3=no
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18363 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18364 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE___ASHRDI3 1
18372 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18373 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18374 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 ac_check_lib_save_LIBS=$LIBS
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18386 /* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18396 return __divdi3 ();
18401 rm -f conftest.$ac_objext conftest$ac_exeext
18402 if { (ac_try="$ac_link"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_link") 2>conftest.er1
18410 grep -v '^ *+' conftest.er1 >conftest.err
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_try") 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_cv_lib_gcc___divdi3=yes
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 ac_cv_lib_gcc___divdi3=no
18443 rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18448 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18449 if test $ac_cv_lib_gcc___divdi3 = yes; then
18451 cat >>confdefs.h <<\_ACEOF
18452 #define HAVE___DIVDI3 1
18457 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18458 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18459 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 ac_check_lib_save_LIBS=$LIBS
18464 cat >conftest.$ac_ext <<_ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18471 /* Override any GCC internal prototype to avoid an error.
18472 Use char because int might match the return type of a GCC
18473 builtin and then its argument prototype would still apply. */
18481 return __fixdfdi ();
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (ac_try="$ac_link"
18488 case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_link") 2>conftest.er1
18495 grep -v '^ *+' conftest.er1 >conftest.err
18497 cat conftest.err >&5
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); } &&
18500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18501 { (case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_try") 2>&5
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest$ac_exeext'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; }; then
18520 ac_cv_lib_gcc___fixdfdi=yes
18522 echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18525 ac_cv_lib_gcc___fixdfdi=no
18528 rm -f core conftest.err conftest.$ac_objext \
18529 conftest$ac_exeext conftest.$ac_ext
18530 LIBS=$ac_check_lib_save_LIBS
18532 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18533 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18534 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18536 cat >>confdefs.h <<\_ACEOF
18537 #define HAVE___FIXDFDI 1
18542 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18543 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18544 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 ac_check_lib_save_LIBS=$LIBS
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18556 /* Override any GCC internal prototype to avoid an error.
18557 Use char because int might match the return type of a GCC
18558 builtin and then its argument prototype would still apply. */
18566 return __fixsfdi ();
18571 rm -f conftest.$ac_objext conftest$ac_exeext
18572 if { (ac_try="$ac_link"
18573 case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_link") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18586 { (case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_try") 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_try") 2>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 ac_cv_lib_gcc___fixsfdi=yes
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_lib_gcc___fixsfdi=no
18613 rm -f core conftest.err conftest.$ac_objext \
18614 conftest$ac_exeext conftest.$ac_ext
18615 LIBS=$ac_check_lib_save_LIBS
18617 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18618 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18619 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE___FIXSFDI 1
18627 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18628 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18629 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18632 ac_check_lib_save_LIBS=$LIBS
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18647 char __floatdidf ();
18651 return __floatdidf ();
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_link") 2>conftest.er1
18665 grep -v '^ *+' conftest.er1 >conftest.err
18667 cat conftest.err >&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_try") 2>&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; } &&
18680 { ac_try='test -s conftest$ac_exeext'
18681 { (case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_try") 2>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_cv_lib_gcc___floatdidf=yes
18692 echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 ac_cv_lib_gcc___floatdidf=no
18698 rm -f core conftest.err conftest.$ac_objext \
18699 conftest$ac_exeext conftest.$ac_ext
18700 LIBS=$ac_check_lib_save_LIBS
18702 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18703 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18704 if test $ac_cv_lib_gcc___floatdidf = yes; then
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE___FLOATDIDF 1
18712 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18713 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18714 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 ac_check_lib_save_LIBS=$LIBS
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18726 /* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18736 return __lshrdi3 ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18756 { (case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_try") 2>&5
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_try") 2>&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; }; then
18775 ac_cv_lib_gcc___lshrdi3=yes
18777 echo "$as_me: failed program was:" >&5
18778 sed 's/^/| /' conftest.$ac_ext >&5
18780 ac_cv_lib_gcc___lshrdi3=no
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS=$ac_check_lib_save_LIBS
18787 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18788 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18789 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE___LSHRDI3 1
18797 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18798 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 ac_check_lib_save_LIBS=$LIBS
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18821 return __moddi3 ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_lib_gcc___moddi3=yes
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18865 ac_cv_lib_gcc___moddi3=no
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18872 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18873 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18874 if test $ac_cv_lib_gcc___moddi3 = yes; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define HAVE___MODDI3 1
18882 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18883 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18884 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 ac_check_lib_save_LIBS=$LIBS
18889 cat >conftest.$ac_ext <<_ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18896 /* Override any GCC internal prototype to avoid an error.
18897 Use char because int might match the return type of a GCC
18898 builtin and then its argument prototype would still apply. */
18906 return __udivdi3 ();
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18926 { (case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_try") 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest$ac_exeext'
18936 { (case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18941 (eval "$ac_try") 2>&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_lib_gcc___udivdi3=yes
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18950 ac_cv_lib_gcc___udivdi3=no
18953 rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18958 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18959 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE___UDIVDI3 1
18967 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18968 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18969 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18972 ac_check_lib_save_LIBS=$LIBS
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18981 /* Override any GCC internal prototype to avoid an error.
18982 Use char because int might match the return type of a GCC
18983 builtin and then its argument prototype would still apply. */
18991 return __umoddi3 ();
18996 rm -f conftest.$ac_objext conftest$ac_exeext
18997 if { (ac_try="$ac_link"
18998 case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_link") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19007 cat conftest.err >&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } &&
19010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19011 { (case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_try") 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest$ac_exeext'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; }; then
19030 ac_cv_lib_gcc___umoddi3=yes
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_cv_lib_gcc___umoddi3=no
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040 LIBS=$ac_check_lib_save_LIBS
19042 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19043 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19044 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19046 cat >>confdefs.h <<\_ACEOF
19047 #define HAVE___UMODDI3 1
19053 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19054 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19055 if test "${ac_cv_lib_gcc___main+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19097 { (case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_try") 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest$ac_exeext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 ac_cv_lib_gcc___main=yes
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_lib_gcc___main=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19129 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19130 if test $ac_cv_lib_gcc___main = yes; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE___MAIN 1
19138 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19139 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19140 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19143 ac_check_lib_save_LIBS=$LIBS
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19152 /* Override any GCC internal prototype to avoid an error.
19153 Use char because int might match the return type of a GCC
19154 builtin and then its argument prototype would still apply. */
19162 return __cmpdi2 ();
19167 rm -f conftest.$ac_objext conftest$ac_exeext
19168 if { (ac_try="$ac_link"
19169 case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_link") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; } &&
19191 { ac_try='test -s conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
19201 ac_cv_lib_gcc___cmpdi2=yes
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_lib_gcc___cmpdi2=no
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19214 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19215 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE___CMPDI2 1
19225 if test "$llvm_cv_os_type" = "MingW" ; then
19226 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19227 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19228 cat >conftest.$ac_ext <<_ACEOF
19229 #include <windows.h>
19230 #include <imagehlp.h>
19231 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19232 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19234 rm -f conftest.$ac_objext
19235 if { (ac_try="$ac_compile"
19236 case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_compile") 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_try") 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
19259 { (case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19269 { echo "$as_me:$LINENO: result: yes" >&5
19270 echo "${ECHO_T}yes" >&6; }
19271 llvm_cv_win32_elmcb_pcstr="PCSTR"
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19278 { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280 llvm_cv_win32_elmcb_pcstr="PSTR"
19284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19286 cat >>confdefs.h <<_ACEOF
19287 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19293 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19294 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19295 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 ac_cpp='$CXXCPP $CPPFLAGS'
19300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19304 cat >conftest.$ac_ext <<_ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1 >conftest.err
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334 { (case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_try") 2>&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; } &&
19343 { ac_try='test -s conftest.$ac_objext'
19344 { (case "(($ac_try" in
19345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_try") 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_func_isnan_in_math_h=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19358 ac_cv_func_isnan_in_math_h=no
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 ac_cpp='$CPP $CPPFLAGS'
19364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19369 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19370 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19373 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_ISNAN_IN_MATH_H 1
19381 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19382 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19383 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19387 ac_cpp='$CXXCPP $CPPFLAGS'
19388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest.$ac_objext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_func_isnan_in_cmath=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_func_isnan_in_cmath=no
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19457 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19458 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19460 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_ISNAN_IN_CMATH 1
19468 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19469 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 ac_cpp='$CXXCPP $CPPFLAGS'
19475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19489 float f; std::isnan(f);
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_try") 2>&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19528 ac_cv_func_std_isnan_in_cmath=yes
19530 echo "$as_me: failed program was:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_func_std_isnan_in_cmath=no
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 ac_cpp='$CPP $CPPFLAGS'
19539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19544 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19545 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19547 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define HAVE_STD_ISNAN_IN_CMATH 1
19556 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19557 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19567 cat >conftest.$ac_ext <<_ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_func_isinf_in_math_h=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_cv_func_isinf_in_math_h=no
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19635 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_ISINF_IN_MATH_H 1
19643 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19644 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19645 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 ac_cpp='$CXXCPP $CPPFLAGS'
19650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19669 rm -f conftest.$ac_objext
19670 if { (ac_try="$ac_compile"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_compile") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
19683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19684 { (case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_try") 2>&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; } &&
19693 { ac_try='test -s conftest.$ac_objext'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_func_isinf_in_cmath=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_func_isinf_in_cmath=no
19711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19713 ac_cpp='$CPP $CPPFLAGS'
19714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19719 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19720 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19722 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19724 cat >>confdefs.h <<\_ACEOF
19725 #define HAVE_ISINF_IN_CMATH 1
19730 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19731 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19732 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 ac_cpp='$CXXCPP $CPPFLAGS'
19737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741 cat >conftest.$ac_ext <<_ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19751 float f; std::isinf(f)}
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
19770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_func_std_isinf_in_cmath=yes
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ac_cv_func_std_isinf_in_cmath=no
19798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19800 ac_cpp='$CPP $CPPFLAGS'
19801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19806 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19807 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19809 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19811 cat >>confdefs.h <<\_ACEOF
19812 #define HAVE_STD_ISINF_IN_CMATH 1
19817 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19818 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19819 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 ac_cpp='$CXXCPP $CPPFLAGS'
19824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 #include <ieeefp.h>
19838 float f; finite(f);
19843 rm -f conftest.$ac_objext
19844 if { (ac_try="$ac_compile"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_compile") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } &&
19857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try='test -s conftest.$ac_objext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_func_finite_in_ieeefp_h=yes
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_func_finite_in_ieeefp_h=no
19885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19887 ac_cpp='$CPP $CPPFLAGS'
19888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19893 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19894 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19896 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19898 cat >>confdefs.h <<\_ACEOF
19899 #define HAVE_FINITE_IN_IEEEFP_H 1
19906 if test "$llvm_cv_platform_type" = "Unix" ; then
19909 for ac_header in stdlib.h unistd.h
19911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19918 ac_res=`eval echo '${'$as_ac_Header'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19922 # Is the header compilable?
19923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 $ac_includes_default
19932 #include <$ac_header>
19934 rm -f conftest.$ac_objext
19935 if { (ac_try="$ac_compile"
19936 case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_compile") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1 >conftest.err
19945 cat conftest.err >&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } &&
19948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19949 { (case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_try") 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
19959 { (case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_try") 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_header_compiler=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_header_compiler=no
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19978 echo "${ECHO_T}$ac_header_compiler" >&6; }
19980 # Is the header present?
19981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19989 #include <$ac_header>
19991 if { (ac_try="$ac_cpp conftest.$ac_ext"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19999 grep -v '^ *+' conftest.er1 >conftest.err
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } >/dev/null; then
20004 if test -s conftest.err; then
20005 ac_cpp_err=$ac_c_preproc_warn_flag
20006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20013 if test -z "$ac_cpp_err"; then
20014 ac_header_preproc=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_header_preproc=no
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20026 # So? What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033 ac_header_preproc=yes
20036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20049 ## ----------------------------------- ##
20050 ## Report this to llvmbugs@cs.uiuc.edu ##
20051 ## ----------------------------------- ##
20053 ) | sed "s/^/$as_me: WARNING: /" >&2
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 eval "$as_ac_Header=\$ac_header_preproc"
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064 { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069 cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20078 for ac_func in getpagesize
20080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20094 #define $ac_func innocuous_$ac_func
20096 /* System header to define __stub macros and hopefully few prototypes,
20097 which can conflict with char $ac_func (); below.
20098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20099 <limits.h> exists even on freestanding compilers. */
20102 # include <limits.h>
20104 # include <assert.h>
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20116 /* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
20119 #if defined __stub_$ac_func || defined __stub___$ac_func
20126 return $ac_func ();
20131 rm -f conftest.$ac_objext conftest$ac_exeext
20132 if { (ac_try="$ac_link"
20133 case "(($ac_try" in
20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20135 *) ac_try_echo=$ac_try;;
20137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20138 (eval "$ac_link") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; } &&
20155 { ac_try='test -s conftest$ac_exeext'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 eval "$as_ac_var=yes"
20167 echo "$as_me: failed program was:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 eval "$as_ac_var=no"
20173 rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20176 ac_res=`eval echo '${'$as_ac_var'}'`
20177 { echo "$as_me:$LINENO: result: $ac_res" >&5
20178 echo "${ECHO_T}$ac_res" >&6; }
20179 if test `eval echo '${'$as_ac_var'}'` = yes; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20187 { echo "$as_me:$LINENO: checking for working mmap" >&5
20188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 if test "$cross_compiling" = yes; then
20193 ac_cv_func_mmap_fixed_mapped=no
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20202 /* malloc might have been renamed as rpl_malloc. */
20205 /* Thanks to Mike Haertel and Jim Avera for this test.
20206 Here is a matrix of mmap possibilities:
20207 mmap private not fixed
20208 mmap private fixed at somewhere currently unmapped
20209 mmap private fixed at somewhere already mapped
20210 mmap shared not fixed
20211 mmap shared fixed at somewhere currently unmapped
20212 mmap shared fixed at somewhere already mapped
20213 For private mappings, we should verify that changes cannot be read()
20214 back from the file, nor mmap's back from the file at a different
20215 address. (There have been systems where private was not correctly
20216 implemented like the infamous i386 svr4.0, and systems where the
20217 VM page cache was not coherent with the file system buffer cache
20218 like early versions of FreeBSD and possibly contemporary NetBSD.)
20219 For shared mappings, we should conversely verify that changes get
20220 propagated back to all the places they're supposed to be.
20222 Grep wants private fixed already mapped.
20223 The main things grep needs to know about mmap are:
20224 * does it exist and is it safe to write into the mmap'd area
20225 * how to use it (BSD variants) */
20228 #include <sys/mman.h>
20230 #if !STDC_HEADERS && !HAVE_STDLIB_H
20234 /* This mess was copied from the GNU getpagesize.h. */
20235 #if !HAVE_GETPAGESIZE
20236 /* Assume that all systems that can run configure have sys/param.h. */
20237 # if !HAVE_SYS_PARAM_H
20238 # define HAVE_SYS_PARAM_H 1
20241 # ifdef _SC_PAGESIZE
20242 # define getpagesize() sysconf(_SC_PAGESIZE)
20243 # else /* no _SC_PAGESIZE */
20244 # if HAVE_SYS_PARAM_H
20245 # include <sys/param.h>
20246 # ifdef EXEC_PAGESIZE
20247 # define getpagesize() EXEC_PAGESIZE
20248 # else /* no EXEC_PAGESIZE */
20250 # define getpagesize() NBPG * CLSIZE
20253 # endif /* no CLSIZE */
20254 # else /* no NBPG */
20256 # define getpagesize() NBPC
20257 # else /* no NBPC */
20259 # define getpagesize() PAGESIZE
20260 # endif /* PAGESIZE */
20261 # endif /* no NBPC */
20262 # endif /* no NBPG */
20263 # endif /* no EXEC_PAGESIZE */
20264 # else /* no HAVE_SYS_PARAM_H */
20265 # define getpagesize() 8192 /* punt totally */
20266 # endif /* no HAVE_SYS_PARAM_H */
20267 # endif /* no _SC_PAGESIZE */
20269 #endif /* no HAVE_GETPAGESIZE */
20274 char *data, *data2, *data3;
20278 pagesize = getpagesize ();
20280 /* First, make a file with some known garbage in it. */
20281 data = (char *) malloc (pagesize);
20284 for (i = 0; i < pagesize; ++i)
20285 *(data + i) = rand ();
20287 fd = creat ("conftest.mmap", 0600);
20290 if (write (fd, data, pagesize) != pagesize)
20294 /* Next, try to mmap the file at a fixed address which already has
20295 something else allocated at it. If we can, also make sure that
20296 we see the same garbage. */
20297 fd = open ("conftest.mmap", O_RDWR);
20300 data2 = (char *) malloc (2 * pagesize);
20303 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20307 for (i = 0; i < pagesize; ++i)
20308 if (*(data + i) != *(data2 + i))
20311 /* Finally, make sure that changes to the mapped area do not
20312 percolate back to the file as seen by read(). (This is a bug on
20313 some variants of i386 svr4.0.) */
20314 for (i = 0; i < pagesize; ++i)
20315 *(data2 + i) = *(data2 + i) + 1;
20316 data3 = (char *) malloc (pagesize);
20319 if (read (fd, data3, pagesize) != pagesize)
20321 for (i = 0; i < pagesize; ++i)
20322 if (*(data + i) != *(data3 + i))
20328 rm -f conftest$ac_exeext
20329 if { (ac_try="$ac_link"
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_link") 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_func_mmap_fixed_mapped=yes
20350 echo "$as_me: program exited with status $ac_status" >&5
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ( exit $ac_status )
20355 ac_cv_func_mmap_fixed_mapped=no
20357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20363 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20364 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define HAVE_MMAP 1
20371 rm -f conftest.mmap
20373 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20374 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20375 if test "${ac_cv_func_mmap_file+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20384 if test "$cross_compiling" = yes; then
20385 ac_cv_func_mmap_file=no
20387 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20395 #include <sys/types.h>
20396 #include <sys/mman.h>
20404 fd = creat ("foo",0777);
20405 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20407 return (fd != (int) MAP_FAILED);
20412 rm -f conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20423 { (case "(($ac_try" in
20424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20425 *) ac_try_echo=$ac_try;;
20427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20428 (eval "$ac_try") 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_func_mmap_file=yes
20434 echo "$as_me: program exited with status $ac_status" >&5
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 ( exit $ac_status )
20439 ac_cv_func_mmap_file=no
20441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20446 ac_cpp='$CPP $CPPFLAGS'
20447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20454 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20455 if test "$ac_cv_func_mmap_file" = yes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_MMAP_FILE
20465 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20466 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20467 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 if test "$llvm_cv_os_type" = "Interix" ; then
20471 ac_cv_need_dev_zero_for_mmap=yes
20473 ac_cv_need_dev_zero_for_mmap=no
20477 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20478 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20479 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20481 cat >>confdefs.h <<\_ACEOF
20482 #define NEED_DEV_ZERO_FOR_MMAP 1
20487 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20489 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20490 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20492 if test "$ac_cv_func_mmap_file" = "no"
20494 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20495 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20499 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20500 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20502 ac_cpp='$CXXCPP $CPPFLAGS'
20503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 volatile unsigned long val = 1;
20515 __sync_synchronize();
20516 __sync_val_compare_and_swap(&val, 1, 0);
20517 __sync_add_and_fetch(&val, 1);
20518 __sync_sub_and_fetch(&val, 1);
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } &&
20537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest$ac_exeext'
20548 { (case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_try") 2>&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20558 ac_cpp='$CPP $CPPFLAGS'
20559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563 { echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6; }
20566 cat >>confdefs.h <<\_ACEOF
20567 #define LLVM_HAS_ATOMICS 1
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 { echo "$as_me:$LINENO: result: no" >&5
20575 echo "${ECHO_T}no" >&6; }
20577 cat >>confdefs.h <<\_ACEOF
20578 #define LLVM_HAS_ATOMICS 0
20581 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20582 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20585 rm -f core conftest.err conftest.$ac_objext \
20586 conftest$ac_exeext conftest.$ac_ext
20589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20590 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20592 if test "${llvm_cv_linux_mixed+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 ac_cpp='$CPP $CPPFLAGS'
20597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20601 cat >conftest.$ac_ext <<_ACEOF
20604 cat confdefs.h >>conftest.$ac_ext
20605 cat >>conftest.$ac_ext <<_ACEOF
20606 /* end confdefs.h. */
20608 error: Not x86-64 even if uname says so!
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } &&
20633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; } &&
20643 { ac_try='test -s conftest.$ac_objext'
20644 { (case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649 (eval "$ac_try") 2>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); }; }; then
20653 llvm_cv_linux_mixed=no
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20658 llvm_cv_linux_mixed=yes
20661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 ac_cpp='$CPP $CPPFLAGS'
20664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20673 if test "$llvm_cv_linux_mixed" = "yes"; then
20674 llvm_cv_target_arch="x86"
20680 for ac_func in __dso_handle
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696 #define $ac_func innocuous_$ac_func
20698 /* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20704 # include <limits.h>
20706 # include <assert.h>
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20728 return $ac_func ();
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_link") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20748 { (case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_try") 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest$ac_exeext'
20758 { (case "(($ac_try" in
20759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760 *) ac_try_echo=$ac_try;;
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763 (eval "$ac_try") 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 eval "$as_ac_var=yes"
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 eval "$as_ac_var=no"
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20778 ac_res=`eval echo '${'$as_ac_var'}'`
20779 { echo "$as_me:$LINENO: result: $ac_res" >&5
20780 echo "${ECHO_T}$ac_res" >&6; }
20781 if test `eval echo '${'$as_ac_var'}'` = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20790 SHLIBEXT=$libltdl_cv_shlibext
20793 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20796 # Translate the various configuration directories and other basic
20797 # information into substitutions that will end up in Makefile.config.in
20798 # that these configured values can be used by the makefiles
20799 if test "${prefix}" = "NONE" ; then
20800 prefix="/usr/local"
20802 eval LLVM_PREFIX="${prefix}";
20803 eval LLVM_BINDIR="${prefix}/bin";
20804 eval LLVM_LIBDIR="${prefix}/lib";
20805 eval LLVM_DATADIR="${prefix}/share/llvm";
20806 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20807 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20808 eval LLVM_INCLUDEDIR="${prefix}/include";
20809 eval LLVM_INFODIR="${prefix}/info";
20810 eval LLVM_MANDIR="${prefix}/man";
20811 LLVM_CONFIGTIME=`date`
20823 # Place the various directores into the config.h file as #defines so that we
20824 # can know about the installation paths within LLVM.
20826 cat >>confdefs.h <<_ACEOF
20827 #define LLVM_PREFIX "$LLVM_PREFIX"
20831 cat >>confdefs.h <<_ACEOF
20832 #define LLVM_BINDIR "$LLVM_BINDIR"
20836 cat >>confdefs.h <<_ACEOF
20837 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20841 cat >>confdefs.h <<_ACEOF
20842 #define LLVM_DATADIR "$LLVM_DATADIR"
20846 cat >>confdefs.h <<_ACEOF
20847 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20851 cat >>confdefs.h <<_ACEOF
20852 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20856 cat >>confdefs.h <<_ACEOF
20857 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20861 cat >>confdefs.h <<_ACEOF
20862 #define LLVM_INFODIR "$LLVM_INFODIR"
20866 cat >>confdefs.h <<_ACEOF
20867 #define LLVM_MANDIR "$LLVM_MANDIR"
20871 cat >>confdefs.h <<_ACEOF
20872 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20876 cat >>confdefs.h <<_ACEOF
20877 #define LLVM_HOSTTRIPLE "$host"
20881 # Determine which bindings to build.
20882 if test "$BINDINGS_TO_BUILD" = auto ; then
20883 BINDINGS_TO_BUILD=""
20884 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20885 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20888 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20891 # This isn't really configurey, but it avoids having to repeat the list in
20896 # Do any work necessary to ensure that bindings have what they need.
20897 binding_prereqs_failed=0
20898 for a_binding in $BINDINGS_TO_BUILD ; do
20899 case "$a_binding" in
20901 if test "x$OCAMLC" = x ; then
20902 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20903 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20904 binding_prereqs_failed=1
20906 if test "x$OCAMLDEP" = x ; then
20907 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20909 binding_prereqs_failed=1
20911 if test "x$OCAMLOPT" = x ; then
20912 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20913 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20915 if test "x$with_ocaml_libdir" != xauto ; then
20916 OCAML_LIBDIR=$with_ocaml_libdir
20919 ocaml_stdlib="`"$OCAMLC" -where`"
20920 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20922 # ocaml stdlib is beneath our prefix; use stdlib
20923 OCAML_LIBDIR=$ocaml_stdlib
20926 # ocaml stdlib is outside our prefix; use libdir/ocaml
20927 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20934 if test "$binding_prereqs_failed" = 1 ; then
20935 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20936 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20937 { (exit 1); exit 1; }; }
20940 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20941 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20942 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20946 ac_cpp='$CXXCPP $CPPFLAGS'
20947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20951 oldcxxflags="$CXXFLAGS"
20952 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20953 cat >conftest.$ac_ext <<_ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h. */
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20983 { (case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_try") 2>&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; } &&
20992 { ac_try='test -s conftest.$ac_objext'
20993 { (case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_try") 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; }; then
21002 llvm_cv_cxx_visibility_inlines_hidden=yes
21004 echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 llvm_cv_cxx_visibility_inlines_hidden=no
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 CXXFLAGS="$oldcxxflags"
21013 ac_cpp='$CPP $CPPFLAGS'
21014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21021 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21022 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21023 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21026 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21031 if test "$llvm_cv_link_use_r" = "yes" ; then
21038 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21039 RDYNAMIC="-Wl,-export-dynamic"
21046 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21053 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21055 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21057 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21059 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21061 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21064 ac_config_files="$ac_config_files Makefile.config"
21066 ac_config_files="$ac_config_files llvm.spec"
21069 ac_config_files="$ac_config_files docs/doxygen.cfg"
21071 if test -f ${srcdir}/tools/clang/README.txt; then
21072 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21076 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21078 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21080 ac_config_commands="$ac_config_commands setup"
21082 ac_config_commands="$ac_config_commands Makefile"
21085 ac_config_commands="$ac_config_commands Makefile.common"
21088 ac_config_commands="$ac_config_commands examples/Makefile"
21091 ac_config_commands="$ac_config_commands lib/Makefile"
21094 ac_config_commands="$ac_config_commands runtime/Makefile"
21097 ac_config_commands="$ac_config_commands test/Makefile"
21100 ac_config_commands="$ac_config_commands test/Makefile.tests"
21103 ac_config_commands="$ac_config_commands unittests/Makefile"
21106 ac_config_commands="$ac_config_commands tools/Makefile"
21109 ac_config_commands="$ac_config_commands utils/Makefile"
21112 ac_config_commands="$ac_config_commands projects/Makefile"
21115 ac_config_commands="$ac_config_commands bindings/Makefile"
21118 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21122 cat >confcache <<\_ACEOF
21123 # This file is a shell script that caches the results of configure
21124 # tests run on this system so they can be shared between configure
21125 # scripts and configure runs, see configure's option --config-cache.
21126 # It is not useful on other systems. If it contains results you don't
21127 # want to keep, you may remove or edit it.
21129 # config.status only pays attention to the cache file if you give it
21130 # the --recheck option to rerun configure.
21132 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21134 # following values.
21138 # The following way of writing the cache mishandles newlines in values,
21139 # but we know of no workaround that is simple, portable, and efficient.
21140 # So, we kill variables containing newlines.
21141 # Ultrix sh set writes to stderr and can't be redirected directly,
21142 # and sets the high bit in the cache file unless we assign to the vars.
21144 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21145 eval ac_val=\$$ac_var
21149 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21150 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21153 _ | IFS | as_nl) ;; #(
21154 *) $as_unset $ac_var ;;
21160 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21161 *${as_nl}ac_space=\ *)
21162 # `set' does not quote correctly, so add quotes (double-quote
21163 # substitution turns \\\\ into \\, and sed turns \\ into \).
21166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21169 # `set' quotes correctly as required by POSIX, so do not add quotes.
21170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21181 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21183 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21184 if test -w "$cache_file"; then
21185 test "x$cache_file" != "x/dev/null" &&
21186 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21187 echo "$as_me: updating cache $cache_file" >&6;}
21188 cat confcache >$cache_file
21190 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21191 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21196 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21197 # Let make expand exec_prefix.
21198 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21200 DEFS=-DHAVE_CONFIG_H
21204 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21205 # 1. Remove the extension, and $U if already installed.
21206 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21207 ac_i=`echo "$ac_i" | sed "$ac_script"`
21208 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21209 # will be set to the directory where LIBOBJS objects are built.
21210 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21211 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21213 LIBOBJS=$ac_libobjs
21215 LTLIBOBJS=$ac_ltlibobjs
21218 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21219 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21220 Usually this means the macro was only invoked conditionally." >&5
21221 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21222 Usually this means the macro was only invoked conditionally." >&2;}
21223 { (exit 1); exit 1; }; }
21225 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21226 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21227 Usually this means the macro was only invoked conditionally." >&5
21228 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21229 Usually this means the macro was only invoked conditionally." >&2;}
21230 { (exit 1); exit 1; }; }
21233 : ${CONFIG_STATUS=./config.status}
21234 ac_clean_files_save=$ac_clean_files
21235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21236 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21237 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21238 cat >$CONFIG_STATUS <<_ACEOF
21240 # Generated by $as_me.
21241 # Run this file to recreate the current configuration.
21242 # Compiler output produced by configure, useful for debugging
21243 # configure, is in config.log if it exists.
21246 ac_cs_recheck=false
21248 SHELL=\${CONFIG_SHELL-$SHELL}
21251 cat >>$CONFIG_STATUS <<\_ACEOF
21252 ## --------------------- ##
21253 ## M4sh Initialization. ##
21254 ## --------------------- ##
21256 # Be Bourne compatible
21257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21261 # is contrary to our usage. Disable this feature.
21262 alias -g '${1+"$@"}'='"$@"'
21263 setopt NO_GLOB_SUBST
21265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21267 BIN_SH=xpg4; export BIN_SH # for Tru64
21268 DUALCASE=1; export DUALCASE # for MKS sh
21272 # Avoid depending upon Character Ranges.
21273 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21276 as_cr_digits='0123456789'
21277 as_cr_alnum=$as_cr_Letters$as_cr_digits
21279 # The user is always right.
21280 if test "${PATH_SEPARATOR+set}" != set; then
21281 echo "#! /bin/sh" >conf$$.sh
21282 echo "exit 0" >>conf$$.sh
21284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21292 # Support unset when possible.
21293 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21301 # We need space, tab and new line, in precisely that order. Quoting is
21302 # there to prevent editors from complaining about space-tab.
21303 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21304 # splitting by setting IFS to empty value.)
21309 # Find who we are. Look in the path if we contain no directory separator.
21311 *[\\/]* ) as_myself=$0 ;;
21312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $PATH
21316 test -z "$as_dir" && as_dir=.
21317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21323 # We did not find ourselves, most probably we were run as `sh COMMAND'
21324 # in which case we are not to be found in the path.
21325 if test "x$as_myself" = x; then
21328 if test ! -f "$as_myself"; then
21329 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21330 { (exit 1); exit 1; }
21333 # Work around bugs in pre-3.0 UWIN ksh.
21334 for as_var in ENV MAIL MAILPATH
21335 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21343 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21344 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21345 LC_TELEPHONE LC_TIME
21347 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21348 eval $as_var=C; export $as_var
21350 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21354 # Required to use basename.
21355 if expr a : '\(a\)' >/dev/null 2>&1 &&
21356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21363 as_basename=basename
21369 # Name of the executable.
21370 as_me=`$as_basename -- "$0" ||
21371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21372 X"$0" : 'X\(//\)$' \| \
21373 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21375 sed '/^.*\/\([^/][^/]*\)\/*$/{
21394 as_lineno_1=$LINENO
21395 as_lineno_2=$LINENO
21396 test "x$as_lineno_1" != "x$as_lineno_2" &&
21397 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21399 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21400 # uniformly replaced by the line number. The first 'sed' inserts a
21401 # line-number line after each line using $LINENO; the second 'sed'
21402 # does the real work. The second script uses 'N' to pair each
21403 # line-number line with the line containing $LINENO, and appends
21404 # trailing '-' during substitution so that $LINENO is not a special
21405 # case at line end.
21406 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21407 # scripts with optimization help from Paolo Bonzini. Blame Lee
21408 # E. McMahon (1931-1989) for sed's syntax. :-)
21420 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21423 ' >$as_me.lineno &&
21424 chmod +x "$as_me.lineno" ||
21425 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21426 { (exit 1); exit 1; }; }
21428 # Don't try to exec as it changes $[0], causing all sort of problems
21429 # (the dirname of $[0] is not the place where we might find the
21430 # original and so on. Autoconf is especially sensitive to this).
21431 . "./$as_me.lineno"
21432 # Exit status is that of the last command.
21437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21443 ECHO_C= ECHO_N= ECHO_T=
21444 case `echo -n x` in
21446 case `echo 'x\c'` in
21447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21454 if expr a : '\(a\)' >/dev/null 2>&1 &&
21455 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21461 rm -f conf$$ conf$$.exe conf$$.file
21462 if test -d conf$$.dir; then
21463 rm -f conf$$.dir/conf$$.file
21469 if ln -s conf$$.file conf$$ 2>/dev/null; then
21471 # ... but there are two gotchas:
21472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21474 # In both cases, we have to default to `cp -p'.
21475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21477 elif ln conf$$.file conf$$ 2>/dev/null; then
21482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21483 rmdir conf$$.dir 2>/dev/null
21485 if mkdir -p . 2>/dev/null; then
21488 test -d ./-p && rmdir ./-p
21492 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21493 # systems may use methods other than mode bits to determine executability.
21494 cat >conf$$.file <<_ASEOF
21498 chmod +x conf$$.file
21499 if test -x conf$$.file >/dev/null 2>&1; then
21500 as_executable_p="test -x"
21506 # Sed expression to map a string onto a valid CPP name.
21507 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21509 # Sed expression to map a string onto a valid variable name.
21510 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21515 # Save the log message, to keep $[0] and so on meaningful, and to
21516 # report actual input values of CONFIG_FILES etc. instead of their
21517 # values after options handling.
21519 This file was extended by llvm $as_me 3.1svn, which was
21520 generated by GNU Autoconf 2.60. Invocation command line was
21522 CONFIG_FILES = $CONFIG_FILES
21523 CONFIG_HEADERS = $CONFIG_HEADERS
21524 CONFIG_LINKS = $CONFIG_LINKS
21525 CONFIG_COMMANDS = $CONFIG_COMMANDS
21528 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21533 cat >>$CONFIG_STATUS <<_ACEOF
21534 # Files that config.status was made for.
21535 config_files="$ac_config_files"
21536 config_headers="$ac_config_headers"
21537 config_commands="$ac_config_commands"
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21543 \`$as_me' instantiates files from templates according to the
21544 current configuration.
21546 Usage: $0 [OPTIONS] [FILE]...
21548 -h, --help print this help, then exit
21549 -V, --version print version number, then exit
21550 -q, --quiet do not print progress messages
21551 -d, --debug don't remove temporary files
21552 --recheck update $as_me by reconfiguring in the same conditions
21553 --file=FILE[:TEMPLATE]
21554 instantiate the configuration file FILE
21555 --header=FILE[:TEMPLATE]
21556 instantiate the configuration header FILE
21558 Configuration files:
21561 Configuration headers:
21564 Configuration commands:
21567 Report bugs to <bug-autoconf@gnu.org>."
21570 cat >>$CONFIG_STATUS <<_ACEOF
21572 llvm config.status 3.1svn
21573 configured by $0, generated by GNU Autoconf 2.60,
21574 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21576 Copyright (C) 2006 Free Software Foundation, Inc.
21577 This config.status script is free software; the Free Software Foundation
21578 gives unlimited permission to copy, distribute and modify it."
21585 cat >>$CONFIG_STATUS <<\_ACEOF
21586 # If no file are specified by the user, then we need to provide default
21587 # value. By we need to know if files were specified by the user.
21593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21594 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21605 # Handling of the options.
21606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21609 echo "$ac_cs_version"; exit ;;
21610 --debug | --debu | --deb | --de | --d | -d )
21612 --file | --fil | --fi | --f )
21614 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21615 ac_need_defaults=false;;
21616 --header | --heade | --head | --hea )
21618 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21619 ac_need_defaults=false;;
21621 # Conflict between --help and --header
21622 { echo "$as_me: error: ambiguous option: $1
21623 Try \`$0 --help' for more information." >&2
21624 { (exit 1); exit 1; }; };;
21625 --help | --hel | -h )
21626 echo "$ac_cs_usage"; exit ;;
21627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21628 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21631 # This is an error.
21632 -*) { echo "$as_me: error: unrecognized option: $1
21633 Try \`$0 --help' for more information." >&2
21634 { (exit 1); exit 1; }; } ;;
21636 *) ac_config_targets="$ac_config_targets $1"
21637 ac_need_defaults=false ;;
21643 ac_configure_extra_args=
21645 if $ac_cs_silent; then
21647 ac_configure_extra_args="$ac_configure_extra_args --silent"
21651 cat >>$CONFIG_STATUS <<_ACEOF
21652 if \$ac_cs_recheck; then
21653 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21654 CONFIG_SHELL=$SHELL
21655 export CONFIG_SHELL
21656 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21665 ## Running $as_me. ##
21671 cat >>$CONFIG_STATUS <<_ACEOF
21675 llvm_src="${srcdir}"
21679 cat >>$CONFIG_STATUS <<\_ACEOF
21681 # Handling of arguments.
21682 for ac_config_target in $ac_config_targets
21684 case $ac_config_target in
21685 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21686 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21687 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21688 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21689 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21690 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21691 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21692 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21693 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21694 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21695 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21696 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21697 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21698 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21699 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21700 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21701 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21702 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21703 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21704 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21705 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21706 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21707 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21708 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21709 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21710 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21712 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
21719 # If the user did not use the arguments to specify the items to instantiate,
21720 # then the envvar interface is used. Set only those that are not.
21721 # We use the long form for the default assignment because of an extremely
21722 # bizarre bug on SunOS 4.1.3.
21723 if $ac_need_defaults; then
21724 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21725 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21726 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21729 # Have a temporary directory for convenience. Make it in the build tree
21730 # simply because there is no reason against having it here, and in addition,
21731 # creating and moving files from /tmp can sometimes cause problems.
21732 # Hook for its removal unless debugging.
21733 # Note that there is a small window in which the directory will not be cleaned:
21734 # after its creation but before its name has been assigned to `$tmp'.
21738 trap 'exit_status=$?
21739 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21741 trap '{ (exit 1); exit 1; }' 1 2 13 15
21743 # Create a (secure) tmp directory for tmp files.
21746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21747 test -n "$tmp" && test -d "$tmp"
21750 tmp=./conf$$-$RANDOM
21751 (umask 077 && mkdir "$tmp")
21754 echo "$me: cannot create a temporary directory in ." >&2
21755 { (exit 1); exit 1; }
21759 # Set up the sed scripts for CONFIG_FILES section.
21762 # No need to generate the scripts if there are no CONFIG_FILES.
21763 # This happens for instance when ./config.status config.h
21764 if test -n "$CONFIG_FILES"; then
21771 for ac_last_try in false false false false false :; do
21772 cat >conf$$subs.sed <<_ACEOF
21773 SHELL!$SHELL$ac_delim
21774 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21775 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21776 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21777 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21778 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21779 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21780 exec_prefix!$exec_prefix$ac_delim
21781 prefix!$prefix$ac_delim
21782 program_transform_name!$program_transform_name$ac_delim
21783 bindir!$bindir$ac_delim
21784 sbindir!$sbindir$ac_delim
21785 libexecdir!$libexecdir$ac_delim
21786 datarootdir!$datarootdir$ac_delim
21787 datadir!$datadir$ac_delim
21788 sysconfdir!$sysconfdir$ac_delim
21789 sharedstatedir!$sharedstatedir$ac_delim
21790 localstatedir!$localstatedir$ac_delim
21791 includedir!$includedir$ac_delim
21792 oldincludedir!$oldincludedir$ac_delim
21793 docdir!$docdir$ac_delim
21794 infodir!$infodir$ac_delim
21795 htmldir!$htmldir$ac_delim
21796 dvidir!$dvidir$ac_delim
21797 pdfdir!$pdfdir$ac_delim
21798 psdir!$psdir$ac_delim
21799 libdir!$libdir$ac_delim
21800 localedir!$localedir$ac_delim
21801 mandir!$mandir$ac_delim
21802 DEFS!$DEFS$ac_delim
21803 ECHO_C!$ECHO_C$ac_delim
21804 ECHO_N!$ECHO_N$ac_delim
21805 ECHO_T!$ECHO_T$ac_delim
21806 LIBS!$LIBS$ac_delim
21807 build_alias!$build_alias$ac_delim
21808 host_alias!$host_alias$ac_delim
21809 target_alias!$target_alias$ac_delim
21810 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21812 CFLAGS!$CFLAGS$ac_delim
21813 LDFLAGS!$LDFLAGS$ac_delim
21814 CPPFLAGS!$CPPFLAGS$ac_delim
21815 ac_ct_CC!$ac_ct_CC$ac_delim
21816 EXEEXT!$EXEEXT$ac_delim
21817 OBJEXT!$OBJEXT$ac_delim
21819 CXXFLAGS!$CXXFLAGS$ac_delim
21820 ac_ct_CXX!$ac_ct_CXX$ac_delim
21822 subdirs!$subdirs$ac_delim
21823 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21824 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21825 build!$build$ac_delim
21826 build_cpu!$build_cpu$ac_delim
21827 build_vendor!$build_vendor$ac_delim
21828 build_os!$build_os$ac_delim
21829 host!$host$ac_delim
21830 host_cpu!$host_cpu$ac_delim
21831 host_vendor!$host_vendor$ac_delim
21832 host_os!$host_os$ac_delim
21833 target!$target$ac_delim
21834 target_cpu!$target_cpu$ac_delim
21835 target_vendor!$target_vendor$ac_delim
21836 target_os!$target_os$ac_delim
21838 HOST_OS!$HOST_OS$ac_delim
21839 TARGET_OS!$TARGET_OS$ac_delim
21840 LINKALL!$LINKALL$ac_delim
21841 NOLINKALL!$NOLINKALL$ac_delim
21842 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21843 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21844 ARCH!$ARCH$ac_delim
21845 ENDIAN!$ENDIAN$ac_delim
21846 GREP!$GREP$ac_delim
21847 EGREP!$EGREP$ac_delim
21848 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21849 BUILD_CC!$BUILD_CC$ac_delim
21850 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21851 BUILD_CXX!$BUILD_CXX$ac_delim
21852 CVSBUILD!$CVSBUILD$ac_delim
21853 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21854 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21855 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21856 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21857 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21858 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21859 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21861 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21862 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21863 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21864 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21865 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21866 ENABLE_PIC!$ENABLE_PIC$ac_delim
21867 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21868 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21869 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21874 elif $ac_last_try; then
21875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21877 { (exit 1); exit 1; }; }
21879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21884 if test -n "$ac_eof"; then
21885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21886 ac_eof=`expr $ac_eof + 1`
21889 cat >>$CONFIG_STATUS <<_ACEOF
21890 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21895 s/^/s,@/; s/!/@,|#_!!_#|/
21898 s/'"$ac_delim"'$/,g/; t
21900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21901 ' >>$CONFIG_STATUS <conf$$subs.sed
21902 rm -f conf$$subs.sed
21903 cat >>$CONFIG_STATUS <<_ACEOF
21909 for ac_last_try in false false false false false :; do
21910 cat >conf$$subs.sed <<_ACEOF
21911 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21912 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21913 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21914 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21915 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21916 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21917 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21918 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21919 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21920 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21921 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21923 ifGNUmake!$ifGNUmake$ac_delim
21924 LN_S!$LN_S$ac_delim
21927 DATE!$DATE$ac_delim
21928 FIND!$FIND$ac_delim
21929 MKDIR!$MKDIR$ac_delim
21931 RANLIB!$RANLIB$ac_delim
21936 BINPWD!$BINPWD$ac_delim
21937 GRAPHVIZ!$GRAPHVIZ$ac_delim
21940 NEATO!$NEATO$ac_delim
21941 TWOPI!$TWOPI$ac_delim
21942 CIRCO!$CIRCO$ac_delim
21944 DOTTY!$DOTTY$ac_delim
21945 XDOT_PY!$XDOT_PY$ac_delim
21946 PERL!$PERL$ac_delim
21947 HAVE_PERL!$HAVE_PERL$ac_delim
21948 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21949 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21950 INSTALL_DATA!$INSTALL_DATA$ac_delim
21951 BZIP2!$BZIP2$ac_delim
21953 DOXYGEN!$DOXYGEN$ac_delim
21954 GROFF!$GROFF$ac_delim
21955 GZIPBIN!$GZIPBIN$ac_delim
21956 POD2HTML!$POD2HTML$ac_delim
21957 POD2MAN!$POD2MAN$ac_delim
21958 PDFROFF!$PDFROFF$ac_delim
21959 RUNTEST!$RUNTEST$ac_delim
21960 TCLSH!$TCLSH$ac_delim
21962 OCAMLC!$OCAMLC$ac_delim
21963 OCAMLOPT!$OCAMLOPT$ac_delim
21964 OCAMLDEP!$OCAMLDEP$ac_delim
21965 OCAMLDOC!$OCAMLDOC$ac_delim
21967 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21968 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21969 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21970 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21971 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21972 LIBADD_DL!$LIBADD_DL$ac_delim
21973 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21974 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21975 USE_UDIS86!$USE_UDIS86$ac_delim
21976 USE_OPROFILE!$USE_OPROFILE$ac_delim
21977 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21978 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21979 MMAP_FILE!$MMAP_FILE$ac_delim
21980 SHLIBEXT!$SHLIBEXT$ac_delim
21981 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21982 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21983 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21984 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21985 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21986 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21987 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21988 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21989 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21990 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21991 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21992 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21993 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21994 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21995 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21996 RPATH!$RPATH$ac_delim
21997 RDYNAMIC!$RDYNAMIC$ac_delim
21998 LIBOBJS!$LIBOBJS$ac_delim
21999 LTLIBOBJS!$LTLIBOBJS$ac_delim
22002 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
22004 elif $ac_last_try; then
22005 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22006 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22007 { (exit 1); exit 1; }; }
22009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22013 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22014 if test -n "$ac_eof"; then
22015 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22016 ac_eof=`expr $ac_eof + 1`
22019 cat >>$CONFIG_STATUS <<_ACEOF
22020 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22021 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22024 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22025 s/^/s,@/; s/!/@,|#_!!_#|/
22028 s/'"$ac_delim"'$/,g/; t
22030 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22031 ' >>$CONFIG_STATUS <conf$$subs.sed
22032 rm -f conf$$subs.sed
22033 cat >>$CONFIG_STATUS <<_ACEOF
22040 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22041 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22042 # trailing colons and then remove the whole line if VPATH becomes empty
22043 # (actually we leave an empty line to preserve line numbers).
22044 if test "x$srcdir" = x.; then
22045 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22046 s/:*\$(srcdir):*/:/
22047 s/:*\${srcdir}:*/:/
22049 s/^\([^=]*=[ ]*\):*/\1/
22055 cat >>$CONFIG_STATUS <<\_ACEOF
22056 fi # test -n "$CONFIG_FILES"
22059 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22062 :[FHLC]) ac_mode=$ac_tag; continue;;
22064 case $ac_mode$ac_tag in
22066 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22067 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22068 { (exit 1); exit 1; }; };;
22069 :[FH]-) ac_tag=-:-;;
22070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22087 -) ac_f="$tmp/stdin";;
22088 *) # Look for the file first in the build tree, then in the source tree
22089 # (if the path is not absolute). The absolute path cannot be DOS-style,
22090 # because $ac_f cannot contain `:'.
22094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22096 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22097 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22098 { (exit 1); exit 1; }; };;
22100 ac_file_inputs="$ac_file_inputs $ac_f"
22103 # Let's still pretend it is `configure' which instantiates (i.e., don't
22104 # use $as_me), people would be surprised to read:
22105 # /* config.h. Generated by config.status. */
22106 configure_input="Generated from "`IFS=:
22107 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22108 if test x"$ac_file" != x-; then
22109 configure_input="$ac_file. $configure_input"
22110 { echo "$as_me:$LINENO: creating $ac_file" >&5
22111 echo "$as_me: creating $ac_file" >&6;}
22115 *:-:* | *:-) cat >"$tmp/stdin";;
22120 ac_dir=`$as_dirname -- "$ac_file" ||
22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22122 X"$ac_file" : 'X\(//\)[^/]' \| \
22123 X"$ac_file" : 'X\(//\)$' \| \
22124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22130 /^X\(\/\/\)[^/].*/{
22145 -*) as_dir=./$as_dir;;
22147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22151 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22152 *) as_qdir=$as_dir;;
22154 as_dirs="'$as_qdir' $as_dirs"
22155 as_dir=`$as_dirname -- "$as_dir" ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22165 /^X\(\/\/\)[^/].*/{
22178 test -d "$as_dir" && break
22180 test -z "$as_dirs" || eval "mkdir $as_dirs"
22181 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22182 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22183 { (exit 1); exit 1; }; }; }
22187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22190 # A ".." for each directory in $ac_dir_suffix.
22191 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22192 case $ac_top_builddir_sub in
22193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22197 ac_abs_top_builddir=$ac_pwd
22198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22199 # for backward compatibility:
22200 ac_top_builddir=$ac_top_build_prefix
22203 .) # We are building in place.
22205 ac_top_srcdir=$ac_top_builddir_sub
22206 ac_abs_top_srcdir=$ac_pwd ;;
22207 [\\/]* | ?:[\\/]* ) # Absolute name.
22208 ac_srcdir=$srcdir$ac_dir_suffix;
22209 ac_top_srcdir=$srcdir
22210 ac_abs_top_srcdir=$srcdir ;;
22211 *) # Relative name.
22212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22213 ac_top_srcdir=$ac_top_build_prefix$srcdir
22214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22231 cat >>$CONFIG_STATUS <<\_ACEOF
22232 # If the template does not know about datarootdir, expand it.
22233 # FIXME: This hack should be removed a few years after 2.60.
22234 ac_datarootdir_hack=; ac_datarootdir_seen=
22236 case `sed -n '/datarootdir/ {
22245 ' $ac_file_inputs` in
22246 *datarootdir*) ac_datarootdir_seen=yes;;
22247 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22248 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22249 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22251 cat >>$CONFIG_STATUS <<_ACEOF
22252 ac_datarootdir_hack='
22253 s&@datadir@&$datadir&g
22254 s&@docdir@&$docdir&g
22255 s&@infodir@&$infodir&g
22256 s&@localedir@&$localedir&g
22257 s&@mandir@&$mandir&g
22258 s&\\\${datarootdir}&$datarootdir&g' ;;
22262 # Neutralize VPATH when `$srcdir' = `.'.
22263 # Shell code in configure.ac might set extrasub.
22264 # FIXME: do we really want to maintain this feature?
22265 cat >>$CONFIG_STATUS <<_ACEOF
22269 cat >>$CONFIG_STATUS <<\_ACEOF
22271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22272 s&@configure_input@&$configure_input&;t t
22273 s&@top_builddir@&$ac_top_builddir_sub&;t t
22274 s&@srcdir@&$ac_srcdir&;t t
22275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22276 s&@top_srcdir@&$ac_top_srcdir&;t t
22277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22278 s&@builddir@&$ac_builddir&;t t
22279 s&@abs_builddir@&$ac_abs_builddir&;t t
22280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22281 s&@INSTALL@&$ac_INSTALL&;t t
22282 $ac_datarootdir_hack
22283 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22286 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22288 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22289 which seems to be undefined. Please make sure it is defined." >&5
22290 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22291 which seems to be undefined. Please make sure it is defined." >&2;}
22295 -) cat "$tmp/out"; rm -f "$tmp/out";;
22296 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22305 # Transform confdefs.h into a sed script `conftest.defines', that
22306 # substitutes the proper values into config.h.in to produce config.h.
22307 rm -f conftest.defines conftest.tail
22308 # First, append a space to every undef/define line, to ease matching.
22309 echo 's/$/ /' >conftest.defines
22310 # Then, protect against being on the right side of a sed subst, or in
22311 # an unquoted here document, in config.status. If some macros were
22312 # called several times there might be several #defines for the same
22313 # symbol, which is useless. But do not sort them, since the last
22314 # AC_DEFINE must be honored.
22315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22316 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22317 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22318 # PARAMS is the parameter list in the macro definition--in most cases, it's
22319 # just an empty string.
22320 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22321 ac_dB='\\)[ (].*,\\1define\\2'
22329 s/^[ ]*#[ ]*define[ ][ ]*//
22334 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22335 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22336 ' >>conftest.defines
22338 # Remove the space that was appended to ease matching.
22339 # Then replace #undef with comments. This is necessary, for
22340 # example, in the case of _POSIX_SOURCE, which is predefined and required
22341 # on some systems where configure will not decide to define it.
22342 # (The regexp can be short, since the line contains either #define or #undef.)
22344 s,^[ #]*u.*,/* & */,' >>conftest.defines
22346 # Break up conftest.defines:
22347 ac_max_sed_lines=50
22349 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22350 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22351 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22353 ac_in='$ac_file_inputs'
22354 ac_out='"$tmp/out1"'
22355 ac_nxt='"$tmp/out2"'
22359 # Write a here document:
22360 cat >>$CONFIG_STATUS <<_ACEOF
22361 # First, check the format of the line:
22362 cat >"\$tmp/defines.sed" <<\\CEOF
22363 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22364 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22368 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22370 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22371 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22372 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22373 grep . conftest.tail >/dev/null || break
22374 rm -f conftest.defines
22375 mv conftest.tail conftest.defines
22377 rm -f conftest.defines conftest.tail
22379 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22380 cat >>$CONFIG_STATUS <<\_ACEOF
22381 if test x"$ac_file" != x-; then
22382 echo "/* $configure_input */" >"$tmp/config.h"
22383 cat "$ac_result" >>"$tmp/config.h"
22384 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22385 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22386 echo "$as_me: $ac_file is unchanged" >&6;}
22389 mv "$tmp/config.h" $ac_file
22392 echo "/* $configure_input */"
22398 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22399 echo "$as_me: executing $ac_file commands" >&6;}
22404 case $ac_file$ac_mode in
22405 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22406 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22407 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22408 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22409 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22410 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22411 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22412 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22413 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22414 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22415 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22416 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22417 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22418 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22419 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22420 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22421 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22422 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22423 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22424 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22425 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22426 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22427 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22428 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22429 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22430 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22436 { (exit 0); exit 0; }
22438 chmod +x $CONFIG_STATUS
22439 ac_clean_files=$ac_clean_files_save
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded. So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status. When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
22456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
22460 $ac_cs_success || { (exit 1); exit 1; }
22464 # CONFIG_SUBDIRS section.
22466 if test "$no_recursion" != yes; then
22468 # Remove --cache-file and --srcdir arguments so they do not pile up.
22469 ac_sub_configure_args=
22471 eval "set x $ac_configure_args"
22475 if test -n "$ac_prev"; then
22480 -cache-file | --cache-file | --cache-fil | --cache-fi \
22481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22482 ac_prev=cache_file ;;
22483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22487 --config-cache | -C)
22489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22499 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22501 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22505 # Always prepend --prefix to ensure using the same prefix
22506 # in subdir configurations.
22507 ac_arg="--prefix=$prefix"
22509 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22511 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22514 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22516 # Do not complain, so a configure script can configure whichever
22517 # parts of a large source tree are present.
22518 test -d "$srcdir/$ac_dir" || continue
22520 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22521 echo "$as_me:$LINENO: $ac_msg" >&5
22525 -*) as_dir=./$as_dir;;
22527 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22531 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22532 *) as_qdir=$as_dir;;
22534 as_dirs="'$as_qdir' $as_dirs"
22535 as_dir=`$as_dirname -- "$as_dir" ||
22536 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22537 X"$as_dir" : 'X\(//\)[^/]' \| \
22538 X"$as_dir" : 'X\(//\)$' \| \
22539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22545 /^X\(\/\/\)[^/].*/{
22558 test -d "$as_dir" && break
22560 test -z "$as_dirs" || eval "mkdir $as_dirs"
22561 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22562 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22563 { (exit 1); exit 1; }; }; }
22567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22570 # A ".." for each directory in $ac_dir_suffix.
22571 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22572 case $ac_top_builddir_sub in
22573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22577 ac_abs_top_builddir=$ac_pwd
22578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22579 # for backward compatibility:
22580 ac_top_builddir=$ac_top_build_prefix
22583 .) # We are building in place.
22585 ac_top_srcdir=$ac_top_builddir_sub
22586 ac_abs_top_srcdir=$ac_pwd ;;
22587 [\\/]* | ?:[\\/]* ) # Absolute name.
22588 ac_srcdir=$srcdir$ac_dir_suffix;
22589 ac_top_srcdir=$srcdir
22590 ac_abs_top_srcdir=$srcdir ;;
22591 *) # Relative name.
22592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22593 ac_top_srcdir=$ac_top_build_prefix$srcdir
22594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22601 # Check for guested configure; otherwise get Cygnus style configure.
22602 if test -f "$ac_srcdir/configure.gnu"; then
22603 ac_sub_configure=$ac_srcdir/configure.gnu
22604 elif test -f "$ac_srcdir/configure"; then
22605 ac_sub_configure=$ac_srcdir/configure
22606 elif test -f "$ac_srcdir/configure.in"; then
22607 # This should be Cygnus configure.
22608 ac_sub_configure=$ac_aux_dir/configure
22610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22615 # The recursion is here.
22616 if test -n "$ac_sub_configure"; then
22617 # Make the cache file name correct relative to the subdirectory.
22618 case $cache_file in
22619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22620 *) # Relative name.
22621 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22624 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22625 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22626 # The eval makes quoting arguments work.
22627 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22628 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22631 { (exit 1); exit 1; }; }